/* Quick Key Locksmith Inc — main page styles (ported from src/pages/Index.tsx) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

html, body { background-color: #000; color: #fff; margin: 0; padding: 0; }
body {
  background-color: #040404;            /* fallback while image loads */
  background-image: url("assets/main-bg.png");
  background-size: cover;                /* fills viewport, may crop */
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;          /* locked to viewport, never scrolls */
}
.qk-page { font-family: 'Plus Jakarta Sans', sans-serif; background-color: transparent; color: #ffffff; overflow-x: hidden; }
.qk-page *::selection { background: #f59e0b; color: #000; }

/* ── Smooth page-to-page navigation ──
   Crossfade between pages instead of a hard black flash. The browser keeps
   the previous page on screen and fades into the next one. The shared dark
   background stays put underneath, so there's no black blink. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.3s;
  animation-timing-function: ease;
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

.bg-ambient-engine {
  position: fixed; inset: 0; z-index: -50;
  background-color: transparent;
  background-image: url("assets/main-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden; pointer-events: none;
}
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.ambient-orb { display: none; }
.orb-1 {
  top: -8%; left: 18%;
  width: 64vw; height: 62vh;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.20) 0%, rgba(212, 175, 55, 0.06) 40%, transparent 70%);
  filter: blur(90px);
  animation: drift 20s infinite alternate ease-in-out;
}
.orb-2 {
  bottom: -12%; left: 20%;
  width: 60vw; height: 62vh;
  background: radial-gradient(circle, rgba(184, 144, 32, 0.14) 0%, rgba(184, 144, 32, 0.04) 40%, transparent 70%);
  filter: blur(100px);
  animation: drift-reverse 25s infinite alternate ease-in-out;
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(5%, 5%); }
}
@keyframes drift-reverse {
  from { transform: translate(0, 0); }
  to   { transform: translate(-5%, -5%); }
}
@media (prefers-reduced-motion: reduce) {
  .orb-1, .orb-2 { animation: none; }
}

.qk-header {
  position: fixed; top: 0; width: 100%; box-sizing: border-box;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05); z-index: 50;
}
@media (min-width: 768px) { .qk-header { padding: 1.25rem 3rem; } }
.qk-brand {
  font-weight: 800; font-size: 1.25rem; color: #fff; margin: 0;
  letter-spacing: 0.15em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.75rem;
}
@media (min-width: 768px) { .qk-brand { font-size: 1.5rem; } }
.qk-brand-bar { display: none; }

.hero-wrapper {
  position: relative; min-height: 100vh;
  box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  padding: 8rem 0 4rem;
}

/* Header brand-pill row */
.header-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: nowrap; justify-content: flex-end; }
@media (max-width: 767px) {
  .header-social-pill .label { display: none; }
  .header-social-pill { padding: 0.55rem 0.75rem !important; }
}

/* Footer link — only color changes, no glow */
.footer-link { color: #737373; text-decoration: none; transition: color 0.3s; }
.footer-link:hover { color: #FACC15; }

/* Header icon buttons expand into pills on hover */
.header-actions a[aria-label] {
  width: 2.4rem !important;
  overflow: hidden;
  white-space: nowrap;
  gap: 0 !important;
  padding: 0 !important;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s cubic-bezier(0.16, 1, 0.3, 1), gap 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease, box-shadow 0.35s ease !important;
}
.header-actions .contact-button-label--icon {
  display: inline-block;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  transform: translateX(-0.2rem);
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, margin-left 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-actions a[aria-label]:hover {
  width: 8.35rem !important;
  gap: 0.5rem !important;
  padding: 0 0.95rem !important;
}
.header-actions a[aria-label]:hover .contact-button-label--icon {
  max-width: 4.75rem;
  opacity: 1;
  margin-left: 0.1rem;
  transform: translateX(0);
}

.text-solid-gold {
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 40%, #B89020 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  color: #D4AF37; text-shadow: 0px 10px 30px rgba(212, 175, 55, 0.2);
}

.glass-card {
  background: rgba(13, 13, 13, 0.5);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  transform: translateY(0);
  transition: background 0.2s ease-out, border-color 0.2s ease-out, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.glass-card:hover {
  background: rgba(20, 20, 20, 0.7);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 24px 50px -18px rgba(212, 175, 55, 0.28), 0 12px 24px -10px rgba(0,0,0,0.7);
}

/* Service cards: hover-in and hover-out animations run to completion
   even if the user moves the cursor away mid-animation. */
@keyframes qk-service-lift-in {
  0% { transform: translateY(0) scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
  100% { transform: translateY(-8px) scale(1); box-shadow: 0 24px 50px -18px rgba(212, 175, 55, 0.35), 0 12px 24px -10px rgba(0,0,0,0.7); }
}
@keyframes qk-service-lift-out {
  0% { transform: translateY(-8px) scale(1); box-shadow: 0 24px 50px -18px rgba(212, 175, 55, 0.35), 0 12px 24px -10px rgba(0,0,0,0.7); }
  100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
}
.services-grid .qk-service-card {
  transition: background 0.3s ease-out, border-color 0.3s ease-out;
}
.services-grid .qk-service-card.reveal-element.visible.qk-hovered:not(:hover) {
  animation: qk-service-lift-out 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.services-grid .qk-service-card.reveal-element.visible:hover {
  animation: qk-service-lift-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.btn-polished {
  background: linear-gradient(135deg, hsl(43 65% 52%) 0%, hsl(42 70% 42%) 100%);
  position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 10px 30px -10px hsl(43 65% 52% / 0.5), inset 0 1px 0 hsl(0 0% 100% / 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: hsl(0 0% 0%); text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-polished:hover {
  transform: translateY(-4px) scale(1.02);
  background: linear-gradient(135deg, hsl(48 96% 53%) 0%, hsl(43 65% 52%) 100%);
}

.glass-card:hover { transition-delay: 0s !important; }

/* Liquid-glass card shell */
.qk-liquid {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.glass-card.qk-liquid {
  background: hsl(0 0% 100% / 0.055) !important;
  border: 1px solid hsl(0 0% 100% / 0.18) !important;
  backdrop-filter: blur(18px) saturate(165%) brightness(1.08) !important;
  -webkit-backdrop-filter: blur(18px) saturate(165%) brightness(1.08) !important;
  box-shadow:
    inset 0 1px 0 hsl(0 0% 100% / 0.36),
    inset 0 -34px 46px -44px hsl(0 0% 0% / 0.85),
    inset 0 0 0 1px hsl(0 0% 100% / 0.08) !important;
}

.qk-liquid-refract-layer { display: none; }

/* Service cards: translucent gray matching pricing section, slightly darker */
.services-grid .qk-service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(13, 13, 13, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow:
    inset 0 1px 0 hsl(0 0% 100% / 0.04),
    0 4px 16px -8px hsl(0 0% 0% / 0.6);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}
.services-grid .qk-service-card > *:not(.qk-brushed) { position: relative; z-index: 1; }
/* Hairline top accent */
.qk-brushed {
  display: block;
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  pointer-events: none; z-index: 0;
  background: linear-gradient(90deg, transparent 0%, hsl(43 65% 52% / 0.55) 50%, transparent 100%);
  opacity: 0.6;
  transition: opacity 0.4s ease;
}
.services-grid .qk-service-card:hover {
  border-color: hsl(43 65% 52% / 0.4) !important;
  background: rgba(20, 20, 20, 0.7) !important;
  box-shadow:
    inset 0 1px 0 hsl(0 0% 100% / 0.06),
    0 24px 50px -18px hsl(43 65% 52% / 0.35),
    0 12px 24px -10px hsl(0 0% 0% / 0.7) !important;
}
.services-grid .qk-service-card:hover .qk-brushed { opacity: 1; }

/* ---- Service card title + golden clickable arrow ---- */
/* Block title so the text keeps the FULL width it had before (no extra wrapping). */
.qk-service-title {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
/* Title + arrow shift together on hover (only this line moves, transform = no reflow) */
.services-grid .qk-service-card:hover .qk-service-title {
  transform: translateX(5px);
}
/* Base text is ALWAYS solid + visible — never clipped, so it can't disappear.
   White at rest, gold on hover. */
.qk-service-title-text {
  display: inline-block;
  position: relative;
  color: #fff;
  transition: color 0.35s ease;
}
.services-grid .qk-service-card:hover .qk-service-title-text {
  color: hsl(43 74% 56%);
}
/* Always-visible golden arrow, flows inline right after the text */
.qk-service-arrow {
  display: inline-block;
  position: relative;
  margin-left: 0.3em;
  color: hsl(43 74% 56%);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* Glisten: a separate light-band layer painted OVER the solid text via a clipped
   duplicate (content: attr). Only the bright band shows; if clip fails the base
   text is untouched. */
@keyframes qk-glisten-sweep {
  0%   { background-position: 180% 0; opacity: 1; }
  100% { background-position: -80% 0; opacity: 1; }
}
.qk-service-title-text::after,
.qk-service-arrow::after {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  pointer-events: none;
  background-image: linear-gradient(
    100deg,
    transparent 0%,
    transparent 43%,
    rgba(255, 247, 224, 0.85) 47%,
    #ffffff 50%,
    rgba(255, 247, 224, 0.85) 53%,
    transparent 57%,
    transparent 100%
  );
  background-size: 220% 100%;
  background-position: 180% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0;
}
.qk-service-title-text::after { content: attr(data-text); }
.qk-service-arrow::after      { content: attr(data-arrow); }
.services-grid .qk-service-card:hover .qk-service-title-text::after,
.services-grid .qk-service-card:hover .qk-service-arrow::after {
  animation: qk-glisten-sweep 1.6s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

/* Sparkle glints: tiny twinkles that pop+fade at points along the title/arrow */
.qk-service-title::before,
.qk-service-title::after,
.qk-service-title-text::before {
  content: "";
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #fff6d8 40%, transparent 72%);
  box-shadow: 0 0 6px 1px rgba(255, 246, 216, 0.9);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.2);
  z-index: 2;
}
.qk-service-title::before     { top: 0;       left: 8%; }
.qk-service-title::after      { bottom: 2px;  left: 46%; }
.qk-service-title-text::before{ top: -3px;    right: -6px; }

@keyframes qk-sparkle-pop {
  0%, 100% { opacity: 0; transform: scale(0.2); }
  45%      { opacity: 0; transform: scale(0.2); }
  60%      { opacity: 1; transform: scale(1); }
  78%      { opacity: 0; transform: scale(0.4); }
}
.services-grid .qk-service-card:hover .qk-service-title::before {
  animation: qk-sparkle-pop 1.6s ease-in-out 0.1s infinite;
}
.services-grid .qk-service-card:hover .qk-service-title::after {
  animation: qk-sparkle-pop 1.6s ease-in-out 0.55s infinite;
}
.services-grid .qk-service-card:hover .qk-service-title-text::before {
  animation: qk-sparkle-pop 1.6s ease-in-out 0.85s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .services-grid .qk-service-card:hover .qk-service-title-text::after,
  .services-grid .qk-service-card:hover .qk-service-arrow::after,
  .services-grid .qk-service-card:hover .qk-service-title::before,
  .services-grid .qk-service-card:hover .qk-service-title::after,
  .services-grid .qk-service-card:hover .qk-service-title-text::before {
    animation: none;
  }
}

.glass-card.qk-liquid:hover {
  background-position: 100% 0, 0 0, 0 0 !important;
  border-color: hsl(43 65% 52% / 0.34) !important;
  box-shadow:
    0 24px 50px -18px hsl(43 65% 52% / 0.35),
    0 12px 24px -10px hsl(0 0% 0% / 0.7) !important;
}

.reveal-element { opacity: 0; transform: translateY(50px) scale(0.95);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s); }
.reveal-element.visible { opacity: 1; transform: translateY(0) scale(1); transition-delay: var(--reveal-delay, 0s); }

/* Service cards: bottom-up reveal with subtle left-to-right slide, staggered */
.services-grid .qk-service-card.reveal-element {
  opacity: 0;
  transform: translate3d(0, 60px, 0);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.services-grid .qk-service-card.reveal-element.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: var(--reveal-delay, 0s);
}
.glass-card.reveal-element.visible { transition: background 0.2s ease-out, border-color 0.2s ease-out, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: 0s; }
.glass-card.reveal-element.visible:hover { transform: translateY(-8px); transition-delay: 0s !important; }

.qk-photo-fade { isolation: isolate; }
.qk-photo-fade::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(212,175,55,0), 0 0 60px 20px rgba(212,175,55,0);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
  pointer-events: none;
}
.qk-photo-fade:hover::before {
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(212,175,55,0.35), 0 0 80px 24px rgba(212,175,55,0.55), 0 0 140px 40px rgba(212,175,55,0.3);
}
.qk-photo-fade img {
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.5));
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.qk-photo-fade:hover img {
  transform: translateY(-8px);
  filter: drop-shadow(0 20px 36px rgba(212, 175, 55, 0.5)) drop-shadow(0 12px 24px rgba(0,0,0,0.55));
}

.qk-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.25rem; border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(0,0,0,0.4); backdrop-filter: blur(12px);
  margin-bottom: 2rem;
}
.qk-pill-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: #f59e0b; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.qk-h1 { font-size: 3rem; font-weight: 900; margin-bottom: 2rem; line-height: 1.05; letter-spacing: -0.02em; margin-top: 0; }
@media (min-width: 768px) { .qk-h1 { font-size: 4.5rem; } }
@media (min-width: 1024px) { .qk-h1 { font-size: 6rem; } }

.qk-h3 { font-size: 1.875rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; margin-top: 0; }
@media (min-width: 768px) { .qk-h3 { font-size: 2.25rem; } }

.qk-h3-big { font-size: 2.25rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-top: 0; }
@media (min-width: 768px) { .qk-h3-big { font-size: 3.75rem; } }

.qk-h3-mega { font-size: 3rem; font-weight: 900; color: #fff; letter-spacing: -0.02em; margin-top: 0; }
@media (min-width: 768px) { .qk-h3-mega { font-size: 4.5rem; } }

.qk-section { position: relative; z-index: 10; padding: 4rem 1.5rem; margin: 0 auto; max-width: 80rem; }
@media (min-width: 768px) { .qk-section { padding: 6rem 1.5rem; } }

.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-icon-wrap {
  width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; background: #000;
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; box-shadow: 0 10px 15px -3px rgba(120, 80, 0, 0.2);
  transition: border-color 0.3s;
}
.glass-card:hover .service-icon-wrap { border-color: #f59e0b; }

.qk-pricing-section {
  padding: 8rem 1.5rem; position: relative; z-index: 10;
  background: rgba(0,0,0,0.2); backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.qk-footer {
  background: rgba(0,0,0,0.6); backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center; padding: 5rem 1.5rem; position: relative; z-index: 10;
}

.leaflet-container { --qk-zoom-scale: 1; }
.qk-static-map-icon {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.qk-static-map-icon--hub { overflow: visible !important; }
.qk-static-map-icon--saved { overflow: visible !important; }

/* Hub pin ripple — single ring centered on the circular pin. */
.qk-hub-pin {
  position: relative;
  width: 24px;
  height: 24px;
  overflow: visible;
  pointer-events: none;
}
.qk-hub-pin__svg {
  position: relative;
  z-index: 2;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6));
}
.qk-hub-pin__ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 9999px;
  border: 0;
  background: rgba(212, 175, 55, 0.85);
  transform: scale(0.2);
  transform-origin: 50% 50%;
  opacity: 0;
  z-index: 1;
  animation: qk-pin-ripple 3.35s cubic-bezier(0.16, 0.84, 0.44, 1) infinite;
  will-change: transform, opacity;
}

/* Searched-pin ripple — single ring emanating from the teardrop tip. */
.qk-search-pin {
  position: relative;
  width: 24px;
  height: 32px;
  overflow: visible;
  pointer-events: none;
}
.qk-search-pin__svg {
  position: relative;
  z-index: 2;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6));
}
.qk-search-pin__ripple {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-bottom: -7px;
  border-radius: 9999px;
  border: 0;
  background: rgba(250, 204, 21, 0.9);
  transform: scale(0.2);
  transform-origin: 50% 50%;
  opacity: 0;
  z-index: 1;
  animation: qk-pin-ripple 3.35s cubic-bezier(0.16, 0.84, 0.44, 1) infinite;
  will-change: transform, opacity;
}
@keyframes qk-pin-ripple {
  0%    { transform: scale(0.2); opacity: 0.85; }
  65.7% { transform: scale(3.2); opacity: 0; }
  100%  { transform: scale(3.2); opacity: 0; }
}

.leaflet-tooltip.qk-hub-tooltip {
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(212,175,55,0.4);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  box-shadow: none;
  white-space: nowrap;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.leaflet-tooltip.qk-hub-tooltip::before { display: none; }
.leaflet-container.qk-hide-labels .leaflet-tooltip.qk-hub-tooltip {
  opacity: 0 !important;
  transform: translateY(-4px) scale(0.92);
  pointer-events: none;
}

/* Hover-only tooltip used by saved + search pins */
.leaflet-tooltip.qk-pin-tooltip {
  background: rgba(0,0,0,0.88);
  border: 1px solid rgba(212,175,55,0.5);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 10px; border-radius: 10px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  max-width: 22rem;
  white-space: normal;
}
.leaflet-tooltip.qk-pin-tooltip strong {
  color: #FACC15; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 800; font-size: 0.7rem;
}
.leaflet-tooltip.qk-pin-tooltip::before { display: none; }

/* Leaflet zoom + custom controls themed */
.leaflet-bar {
  border: 1px solid rgba(212,175,55,0.3) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
  border-radius: 10px !important; overflow: hidden;
}
.leaflet-bar a, .qk-map-ctrl-btn {
  background: rgba(15,15,15,0.85) !important;
  color: #D4AF37 !important;
  border-bottom: 1px solid rgba(212,175,55,0.2) !important;
  font-weight: 700 !important;
  transition: background 0.2s, color 0.2s;
}
.leaflet-bar a:hover, .qk-map-ctrl-btn:hover { background: rgba(212,175,55,0.15) !important; color: #FACC15 !important; }
.leaflet-control-attribution {
  background: rgba(0,0,0,0.5) !important; color: #737373 !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a { color: #a3a3a3 !important; }

/* Custom map control cluster (top-left) */
.qk-map-ctrls {
  position: absolute; top: 12px; left: 12px; z-index: 500;
  display: flex; flex-direction: column; gap: 6px;
}
.qk-map-ctrl-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(212,175,55,0.3);
  cursor: pointer; backdrop-filter: blur(8px);
}
.qk-map-ctrl-btn[aria-pressed="true"] {
  background: rgba(212,175,55,0.25) !important; color: #FACC15 !important;
}

/* Desktop scroll-wheel-zoom toggle (sits under the +/- zoom buttons) */
.qk-scrollzoom-ctrl { margin-top: 6px !important; }
.qk-scrollzoom-btn { display: flex !important; align-items: center; justify-content: center; }
.qk-scrollzoom-ctrl.is-active a.qk-scrollzoom-btn {
  background: rgba(212,175,55,0.25) !important; color: #FACC15 !important;
}

/* Address search bar — sits ABOVE the map in normal flow. */
.qk-search-wrap {
  position: relative;
  margin: 0 auto 0.85rem;
  width: min(32rem, 100%);
  z-index: 700;
}
.qk-search-bar {
  display: flex; gap: 0.5rem; align-items: stretch;
  background: rgba(10,10,10,0.55);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9999px;
  padding: 0.4rem;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 14px 36px rgba(0,0,0,0.55);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.qk-search-bar:focus-within {
  background: rgba(10,10,10,0.85);
  border-color: rgba(212,175,55,0.55);
  box-shadow: 0 14px 36px rgba(0,0,0,0.55), 0 0 0 4px rgba(212,175,55,0.18);
}
.qk-search-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem; padding: 0.5rem 1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.qk-search-input::placeholder { color: #cbd5e1; opacity: 0.7; }
.qk-search-btn {
  background: linear-gradient(135deg, #D4AF37 0%, #B89020 100%);
  color: #000; font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: none; border-radius: 9999px;
  padding: 0 1.25rem; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.qk-search-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #FACC15 0%, #D4AF37 100%);
  box-shadow: 0 8px 20px -6px rgba(212,175,55,0.5);
}
.qk-search-btn:disabled { opacity: 0.6; cursor: wait; }
.qk-search-status {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem; letter-spacing: 0.04em;
  text-align: center;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  border-radius: 10px; padding: 0.4rem 0.7rem;
  pointer-events: none;
}
.qk-search-status.error { color: #fca5a5; border: 1px solid rgba(248,113,113,0.4); }
.qk-search-status.loading { color: #d4d4d8; border: 1px solid rgba(212,175,55,0.3); }

/* Search history dropdown */
.qk-history-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: rgba(10,10,10,0.45); backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 18px; padding: 0.5rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  z-index: 800; max-height: 18rem; overflow: auto;
  text-align: left;
}
.qk-history-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.75rem; border-radius: 12px;
  color: #e5e7eb; font-size: 0.85rem;
  cursor: pointer; transition: background 0.15s ease;
}
.qk-history-item:hover { background: rgba(212,175,55,0.1); color: #FACC15; }
.qk-history-item .qk-history-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qk-history-item .qk-history-remove {
  background: transparent; border: none; color: #6b7280; cursor: pointer;
  padding: 0 0.35rem; font-size: 1rem; line-height: 1;
}
.qk-history-item .qk-history-remove:hover { color: #f87171; }
.qk-history-empty { padding: 0.75rem; color: #6b7280; font-size: 0.8rem; text-align: center; }

/* Saved pins panel — docked inside the map (bottom-right). */
.qk-saved-list {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: min(18rem, calc(100% - 24px));
  max-height: calc(100% - 80px);
  display: flex; flex-direction: column;
  background: rgba(10,10,10,0.32);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 0.5rem 0.6rem;
  text-align: left;
  z-index: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  opacity: 0.55;
  transition: max-height 0.3s ease, opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.qk-saved-list:hover, .qk-saved-list:focus-within {
  opacity: 1;
  background: rgba(10,10,10,0.6);
  border-color: rgba(212,175,55,0.25);
}
.qk-saved-list.is-collapsed { max-height: 42px; overflow: hidden; padding-bottom: 0.4rem; }
.qk-saved-list-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  user-select: none;
}
.qk-saved-list-title {
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #D4AF37;
}
.qk-saved-list-count {
  font-size: 0.65rem; color: #cbd5e1; font-weight: 600;
}
.qk-saved-list-toggle {
  background: transparent; border: none; color: #D4AF37;
  cursor: pointer; font-size: 0.85rem; padding: 0 0.25rem;
  transition: transform 0.25s ease;
}
.qk-saved-list.is-collapsed .qk-saved-list-toggle { transform: rotate(180deg); }
.qk-saved-rows {
  overflow-y: auto;
  margin-right: -0.4rem; padding-right: 0.4rem;
  flex: 1 1 auto;
}
.qk-saved-rows::-webkit-scrollbar { width: 6px; }
.qk-saved-rows::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.4); border-radius: 6px; }
.qk-saved-row {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.55rem; border-radius: 10px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.05);
  margin-top: 0.35rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.qk-saved-row:first-child { margin-top: 0; }
.qk-saved-row:hover { background: rgba(212,175,55,0.12); border-color: rgba(212,175,55,0.35); }
.qk-saved-row.is-hidden { opacity: 0.5; }
.qk-saved-toggle {
  width: 20px; height: 20px; border-radius: 6px;
  background: rgba(212,175,55,0.18); border: 1px solid rgba(212,175,55,0.5);
  color: #FACC15; font-weight: 800; font-size: 0.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.qk-saved-toggle[aria-pressed="false"] { background: transparent; color: #4b5563; border-color: rgba(255,255,255,0.15); }
.qk-saved-label {
  flex: 1; min-width: 0;
  color: #f1f5f9; font-size: 0.78rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  cursor: pointer;
}
.qk-saved-label .qk-saved-query { color: #FACC15; font-weight: 700; margin-right: 0.4rem; }
.qk-saved-remove {
  background: transparent; border: none; color: #94a3b8; cursor: pointer;
  font-size: 1rem; padding: 0 0.3rem; line-height: 1;
}
.qk-saved-remove:hover { color: #f87171; }

/* Map expanded mode — grows taller within the page (no fullscreen takeover). */
.qk-map-shell { position: relative; }
.qk-map-shell .qk-map-canvas { transition: height 0.3s ease; }
.glass-card.qk-map-shell {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: padding 0.3s ease, background 0.2s ease-out, border-color 0.2s ease-out, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.glass-card.qk-map-shell:hover {
  transform: translate3d(0, -8px, 0);
}
.qk-map-shell.is-fullscreen .qk-map-canvas {
  height: 85vh !important;
  min-height: 700px;
}

/* Service cards are links to their detail pages */
a.qk-service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
/* No focus ring at all on the service cards — the click does only the press */
a.qk-service-card:focus,
a.qk-service-card:focus-visible {
  outline: none;
}

/* Quick press-in / press-out feedback before navigating to a service page.
   The card stays in its lifted/hover state (gold ring, glow) and only the
   scale + glow change: glow SWELLS as it presses in, then eases back to the
   normal hover glow as it springs out — nothing else changes. */
@keyframes qk-card-press {
  0%   { transform: translateY(-8px) scale(1);
         box-shadow: 0 24px 50px -18px rgba(212, 175, 55, 0.35), 0 12px 24px -10px rgba(0,0,0,0.7); }
  45%  { transform: translateY(-8px) scale(0.955);
         box-shadow: 0 30px 72px -14px rgba(212, 175, 55, 0.7), 0 0 46px -2px rgba(250, 204, 21, 0.55), 0 12px 24px -10px rgba(0,0,0,0.7); }
  100% { transform: translateY(-8px) scale(1);
         box-shadow: 0 24px 50px -18px rgba(212, 175, 55, 0.35), 0 12px 24px -10px rgba(0,0,0,0.7); }
}
.services-grid .qk-service-card.qk-pressing {
  animation: qk-card-press 0.34s cubic-bezier(0.34, 1.2, 0.64, 1) forwards !important;
}
