/* Hover effect + fullscreen lightbox/slideshow for content photos.
   Only images tagged .kp-zoomable by gallery.js (public mode only) are affected. */

/* hero carousel: original CSS sets opacity but no transition — add a crossfade */
.carousel-slide-fade { transition: opacity .9s ease; }

/* ---- business hours dropdown ---- */
[data-aid="CONTACT_HOURS_REND"] { user-select: none; }
.kp-hours-panel { display: none; margin-top: 10px; max-width: 320px; }
.kp-hours-panel.open { display: block; animation: kp-hours-in .2s ease; }
@keyframes kp-hours-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.kp-hours-row { display: flex; justify-content: space-between; gap: 22px; padding: 7px 2px; font-size: 13.5px; color: inherit; border-bottom: 1px solid rgba(128,128,128,.25); }
.kp-hours-row span:last-child { white-space: nowrap; }
.kp-hours-row.kp-today { font-weight: 700; color: #b8860b; }

/* ---- floating contact launcher (chat) ---- */
#kp-chat-btn {
  position: fixed; bottom: 22px; right: 22px; z-index: 99998;
  width: 60px; height: 60px; border-radius: 50%; border: 0;
  background: #b8860b; color: #1a1a1a; font-size: 26px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .2s, background .2s;
}
#kp-chat-btn:hover { transform: scale(1.08); background: #cda033; }
#kp-chat-panel {
  position: fixed; bottom: 94px; right: 22px; z-index: 99998;
  width: 290px; max-width: calc(100vw - 44px);
  background: #1e293b; color: #e2e8f0; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45); padding: 18px; display: none;
  font-family: Arial, "Segoe UI", Helvetica, sans-serif;
}
#kp-chat-panel.open { display: block; animation: kp-chat-in .2s ease; }
@keyframes kp-chat-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#kp-chat-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
#kp-chat-x { background: none; border: 0; color: #94a3b8; cursor: pointer; font-size: 16px; }
#kp-chat-sub { color: #94a3b8; font-size: 13px; margin: 6px 0 14px; }
.kp-chat-act {
  display: block; background: #0f172a; border: 1px solid #334155; border-radius: 10px;
  padding: 11px 14px; margin-bottom: 8px; color: #e2e8f0; text-decoration: none;
  font-size: 14px; transition: border-color .15s, background .15s;
}
.kp-chat-act:hover { border-color: #b8860b; background: #172033; }

/* ---- Custom Kitchens gallery: frame + effects like the Doors section cards ---- */
#gallery4-5 .kp-gframe {
  border-radius: 14px; overflow: hidden; border: 1px solid #343434;
  transition: border-color .3s ease, transform .45s cubic-bezier(.22,.61,.36,1), box-shadow .4s ease;
}
#gallery4-5 .kp-gframe:hover { border-color: #b8860b; transform: translateY(-5px); box-shadow: 0 14px 32px rgba(0,0,0,.4); }
#gallery4-5 .kp-gframe .kp-zoomable:hover { box-shadow: none; }
#gallery4-5 .kp-gframe img { display: block; }

.kp-zoomable {
  cursor: zoom-in;
  transition: transform .7s cubic-bezier(.22, .61, .36, 1),
              filter .7s ease,
              box-shadow .7s ease;
  will-change: transform;
  backface-visibility: hidden;
}
.kp-zoomable:hover {
  transform: scale(1.035);
  filter: brightness(1.03);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .28);
}
.kp-card .kp-zoomable:hover { box-shadow: none; }

/* ---- lightbox ---- */
#kp-lb {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(8, 10, 15, .94);
  display: none; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
#kp-lb.open { display: flex; }
#kp-lb-img {
  max-width: 92vw; max-height: 84vh; object-fit: contain;
  border-radius: 6px; box-shadow: 0 12px 60px rgba(0,0,0,.6);
  user-select: none; -webkit-user-drag: none;
}
.kp-lb-btn {
  position: absolute; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25); color: #fff; cursor: pointer;
  border-radius: 50%; width: 52px; height: 52px; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
  font-family: Arial, sans-serif;
}
.kp-lb-btn:hover { background: rgba(255,255,255,.22); }
#kp-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
#kp-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
#kp-lb-close { top: 18px; right: 18px; width: 44px; height: 44px; font-size: 20px; }
#kp-lb-cap {
  position: absolute; top: 22px; left: 22px; color: #cbd5e1;
  font-family: Arial, sans-serif; font-size: 14px; max-width: 58vw;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
#kp-lb-bar {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 16px; align-items: center;
  color: #e2e8f0; font-family: Arial, sans-serif; font-size: 14px;
  background: rgba(0,0,0,.45); padding: 9px 18px; border-radius: 999px;
}
#kp-lb-play { background: none; border: 0; color: #e7c66b; cursor: pointer; font-size: 14px; font-weight: 700; font-family: inherit; }
#kp-lb-count { color: #94a3b8; min-width: 56px; text-align: center; }
@media (max-width: 640px) {
  .kp-lb-btn { width: 42px; height: 42px; font-size: 20px; }
  #kp-lb-prev { left: 8px; } #kp-lb-next { right: 8px; }
  #kp-lb-img { max-width: 96vw; max-height: 74vh; }
  #kp-lb-cap { max-width: 70vw; }
}
