/* ==========================================================================
   facilities.css — bespoke styles for the Facilities page (spaces.html) only.
   Linked AFTER styles.css and only on spaces.html, so:
     • the shared header / nav / footer keep their styles from styles.css;
     • the design tokens + lightbox overrides below are page-scoped in practice
       (this file is never loaded anywhere else).

   Design language — "warm, calm, trustworthy":
     • palette: deep pine ink on warm cream, with muted sage, dusty blue and
       soft clay accents (natural, soft, accessible — no harsh primaries);
     • type pairing: Alegreya (warm humanist serif, display) +
       Commissioner (humanist sans, body/UI) — both with full Greek support;
     • the real facility photos are only ~300px wide, so they are always
       capped + framed like prints and never shown full-bleed.

   All .fac-* class hooks and the .space-modal lightbox match what app.js
   builds — markup/content is untouched; this only restyles it.
   ========================================================================== */

:root {
  /* — surfaces — */
  --fc-cream: #fbf6ec;
  --fc-cream-2: #f5ecdd;
  --fc-paper: #fffdf9;
  --fc-sand: #f3ead8;
  --fc-sage-1: #e7f0e4;
  --fc-sky-1: #e5eef0;

  /* — text — */
  --fc-ink: #26312a;        /* headings */
  --fc-body: #39463b;       /* body copy */
  --fc-muted: #51614f;      /* secondary / meta */

  /* — accents — */
  --fc-sage: #6f9077;       /* decorative green */
  --fc-sage-deep: #3c6147;  /* green text/labels on light */
  --fc-clay: #c07a57;       /* decorative terracotta */
  --fc-clay-deep: #9c4e2b;  /* deep clay for accents / fills (AA on warm bands) */
  --fc-sky: #6e97ae;        /* decorative blue */
  --fc-sky-deep: #3a5f74;   /* blue text on light */
  --fc-pine: #2f4636;       /* deep green for dark panels */

  /* — lines & shadows — */
  --fc-line: rgba(38, 49, 42, 0.12);
  --fc-line-2: rgba(38, 49, 42, 0.2);
  --fc-shadow-sm: 0 10px 28px rgba(45, 58, 45, 0.08);
  --fc-shadow-md: 0 20px 48px rgba(45, 58, 45, 0.12);
  --fc-shadow-lg: 0 32px 70px rgba(40, 55, 42, 0.16);

  /* — type — */
  --fc-display: "Alegreya", Georgia, "Times New Roman", serif;
  --fc-body-font: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.fac {
  color: var(--fc-body);
  font-family: var(--fc-body-font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(110% 60% at 50% -8%, #ffffff 0%, transparent 46%),
    radial-gradient(80% 50% at 100% 8%, rgba(110, 151, 174, 0.07), transparent 55%),
    radial-gradient(70% 45% at 0% 18%, rgba(111, 144, 119, 0.08), transparent 55%),
    linear-gradient(180deg, var(--fc-cream) 0%, var(--fc-cream) 60%, var(--fc-cream-2) 100%);
}

.fac img { display: block; max-width: 100%; }

.fac-wrap {
  margin-inline: auto;
  width: 100%;
  max-width: 1180px;
  padding-inline: 20px;
}

/* ==========================================================================
   1. Hero — the one high-resolution asset (aerial), warm green wash
   ========================================================================== */
.fac-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(540px, 84vh, 820px);
  overflow: hidden;
}
.fac-hero-media {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.fac-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(26, 38, 29, 0.34) 0%,
      rgba(26, 38, 29, 0.08) 30%,
      rgba(24, 35, 27, 0.58) 78%,
      rgba(20, 30, 23, 0.82) 100%
    ),
    radial-gradient(85% 55% at 82% 4%, rgba(192, 122, 87, 0.22), transparent 55%);
}
.fac-hero-inner {
  position: relative;
  width: 100%;
  padding-top: 132px;
  padding-bottom: clamp(48px, 7vw, 84px);
}
.fac-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--fc-body-font);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}
.fac-hero-eyebrow::before {
  content: "";
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e9c9a6, var(--fc-clay));
  box-shadow: 0 0 10px rgba(192, 122, 87, 0.7);
}
.fac-hero-title {
  margin: 22px 0 0;
  max-width: 18ch;
  font-family: var(--fc-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  font-size: clamp(2.7rem, 6.2vw, 5rem);
  line-height: 1.04;
  text-shadow: 0 8px 36px rgba(18, 28, 20, 0.5);
}
.fac-hero-lead {
  margin: 20px 0 0;
  max-width: 40rem;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 18px rgba(18, 28, 20, 0.55);
}
.fac-scrollcue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}
.fac-scrollcue-dot {
  position: relative;
  display: grid;
  place-items: center;
  height: 38px;
  width: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}
.fac-scrollcue-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-2px) rotate(45deg);
  animation: facBob 1.8s ease-in-out infinite;
}
.fac-scrollcue:hover .fac-scrollcue-dot { background: rgba(255, 255, 255, 0.22); }

/* ==========================================================================
   2. Section scaffolding
   ========================================================================== */
.fac-section { position: relative; padding-block: clamp(56px, 8vw, 96px); }
.fac-section-head { max-width: 54rem; }
.fac-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fc-sage-deep);
}
.fac-kicker::before {
  content: "";
  height: 2px;
  width: 30px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--fc-clay), var(--fc-sage));
}
.fac-h2 {
  margin: 14px 0 0;
  font-family: var(--fc-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fc-ink);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.08;
}
.fac-lead {
  margin: 16px 0 0;
  max-width: 44rem;
  font-size: 1.1rem;
  line-height: 1.62;
  color: var(--fc-muted);
}

/* ==========================================================================
   3. Overview — a soft "key" / index to every space (cards link to the tour)
   ========================================================================== */
.fac-principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 38px;
}
.fac-principle {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(165deg, var(--fc-paper), #f7f1e6);
  border: 1px solid var(--fc-line);
  box-shadow: var(--fc-shadow-sm);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 280ms ease, border-color 280ms ease;
}
.fac-principle:hover {
  transform: translateY(-5px);
  border-color: rgba(111, 144, 119, 0.5);
  box-shadow: var(--fc-shadow-md);
}
.fac-principle-ico {
  display: grid;
  place-items: center;
  height: 54px;
  width: 54px;
  border-radius: 16px;
  color: var(--fc-sage-deep);
  background: var(--fc-sage-1);
  border: 1px solid rgba(111, 144, 119, 0.28);
  transition: background 280ms ease, color 280ms ease, transform 280ms ease;
}
.fac-principle-ico svg { width: 27px; height: 27px; display: block; }
.fac-principle:hover .fac-principle-ico {
  background: linear-gradient(140deg, var(--fc-sage), var(--fc-sage-deep));
  color: #fff;
  transform: rotate(-3deg);
}
.fac-principle-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--fc-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fc-line-2);
  letter-spacing: 0.02em;
}
.fac-principle h3 {
  margin: 0;
  font-family: var(--fc-display);
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.2;
  color: var(--fc-ink);
}
.fac-principle p {
  margin: 0;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fc-sage-deep);
}
.fac-principle p::before {
  content: "";
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--fc-clay);
}

/* ==========================================================================
   4. The spaces, one by one — framed-print editorial tour
   ========================================================================== */
#fac-tour {
  scroll-margin-top: 84px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(243, 234, 216, 0.7), transparent 60%),
    linear-gradient(180deg, var(--fc-sand) 0%, #f5eede 100%);
  border-block: 1px solid var(--fc-line);
}
.fac-tour { display: flex; flex-direction: column; gap: clamp(56px, 9vw, 104px); margin-top: 46px; }
.fac-tour-item {
  scroll-margin-top: 110px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 26px;
}

/* the photo, framed like a mounted print so a ~300px source still reads as
   intentional rather than stretched */
.fac-tour-media {
  position: relative;
  margin-inline: auto;
  width: 100%;
  max-width: 420px;
  padding: 12px;
  border-radius: 24px;
  background: var(--fc-paper);
  border: 1px solid var(--fc-line);
  box-shadow: var(--fc-shadow-md);
}
.fac-tour-media::before {
  /* a small hung-print accent */
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: var(--fc-clay);
  box-shadow: 0 4px 10px rgba(164, 84, 47, 0.35);
}
.fac-tour-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  background: var(--fc-sage-1);
}
.fac-tour-media img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 240ms ease;
}
.fac-tour-media:hover img { transform: scale(1.05); }
.fac-tour-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), inset 0 -50px 50px -40px rgba(20, 30, 23, 0.4);
}

/* carousel controls (only appear when a space has multiple photos) */
.fac-car-btn {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: grid;
  place-items: center;
  height: 44px;
  width: 44px;
  transform: translateY(-50%);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fc-pine);
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 24px rgba(40, 55, 42, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}
.fac-car-prev { left: 22px; }
.fac-car-next { right: 22px; }
.fac-car-btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.fac-car-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 10;
  display: flex;
  transform: translateX(-50%);
  gap: 8px;
}
.fac-car-dot {
  height: 8px;
  width: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 1px 4px rgba(20, 30, 23, 0.4);
  transition: width 200ms ease, background 200ms ease;
}
.fac-car-dot.is-active { width: 20px; background: var(--fc-clay); }

.fac-more {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--fc-body-font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fc-pine);
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 20px rgba(40, 55, 42, 0.2);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.fac-more::before {
  content: "";
  height: 13px;
  width: 13px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
  box-shadow: 3px 3px 0 -1px currentColor;
  opacity: 0.85;
}
.fac-more:hover { background: #fff; color: var(--fc-clay-deep); transform: translateY(-1px); }

/* copy beside each photo */
.fac-tour-index {
  display: inline-block;
  font-family: var(--fc-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--fc-clay-deep);
}
.fac-tour-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--fc-sage-deep);
  background: var(--fc-sage-1);
  border: 1px solid rgba(111, 144, 119, 0.28);
}
.fac-tour-title {
  margin: 16px 0 0;
  font-family: var(--fc-display);
  font-weight: 700;
  color: var(--fc-ink);
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.12;
}
.fac-tour-text {
  margin: 14px 0 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.66;
  color: var(--fc-body);
}

/* ==========================================================================
   5. Gallery — a quick visual wall of every space (opens the lightbox)
   ========================================================================== */
.fac-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 38px;
}
.fac-gallery-fig {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--fc-line);
  box-shadow: var(--fc-shadow-sm);
  cursor: pointer;
  background: var(--fc-sage-1);
}
.fac-gallery-fig img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fac-gallery-fig:hover img,
.fac-gallery-fig:focus-within img { transform: scale(1.06); }
.fac-gallery-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  min-height: 64%;
  padding: 16px;
  font-family: var(--fc-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(20, 30, 23, 0.82));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 280ms ease, transform 280ms ease;
}
.fac-gallery-fig:hover .fac-gallery-cap,
.fac-gallery-fig:focus-within .fac-gallery-cap { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   6. Visit CTA — warm, reassuring close
   ========================================================================== */
.fac-cta {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 64px);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(85% 120% at 10% 0%, rgba(110, 151, 174, 0.42), transparent 52%),
    radial-gradient(90% 120% at 100% 100%, rgba(192, 122, 87, 0.4), transparent 54%),
    linear-gradient(150deg, #466049 0%, var(--fc-pine) 55%, #25382b 100%);
  box-shadow: var(--fc-shadow-lg);
}
.fac-cta h2 {
  margin: 0 auto;
  max-width: 22ch;
  font-family: var(--fc-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
}
.fac-cta p {
  margin: 16px auto 0;
  max-width: 40rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}
.fac-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

/* ==========================================================================
   7. Buttons
   ========================================================================== */
.fac-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 28px;
  border-radius: 999px;
  font-family: var(--fc-body-font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 200ms ease, background 200ms ease;
}
.fac-btn-primary {
  color: var(--fc-ink);
  background: linear-gradient(140deg, #fffdf9, #f3ead8);
  box-shadow: 0 16px 32px rgba(16, 26, 18, 0.28);
}
.fac-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 42px rgba(16, 26, 18, 0.36); }
.fac-btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.fac-btn-ghost:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }

/* ==========================================================================
   8. Focus states (visible, accessible)
   ========================================================================== */
.fac a:focus-visible,
.fac button:focus-visible,
.fac-gallery-fig:focus-visible {
  outline: 3px solid var(--fc-clay-deep);
  outline-offset: 3px;
  border-radius: 12px;
}
.fac-cta a:focus-visible,
.fac-cta button:focus-visible { outline-color: #fff; }

/* ==========================================================================
   9. Lightbox — reskin of the kept .space-modal to the warm palette.
   (.space-modal lives on <body>, outside .fac; this file is page-scoped.)
   ========================================================================== */
.space-modal { font-family: var(--fc-body-font); }
.space-modal-backdrop {
  background: rgba(28, 40, 30, 0.5) !important;
}
.space-modal-card {
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  background: linear-gradient(150deg, rgba(255, 253, 249, 0.92), rgba(245, 236, 221, 0.78)) !important;
  box-shadow: 0 40px 110px rgba(28, 45, 30, 0.3) !important;
}
.space-modal-image { background: #2a352c !important; }
/* fill the relatively-positioned host reliably (height:100% alone collapses to
   0 against the grid-stretched parent, leaving the photo invisible). Scoped to
   the direct-child main photo so the thumbnail <img>s are unaffected. */
.space-modal-image > img { position: absolute !important; inset: 0 !important; }
.space-modal-close {
  color: var(--fc-pine) !important;
  background: rgba(255, 253, 249, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.75) !important;
}
.space-modal-thumbs button.is-active { border-color: var(--fc-clay) !important; }
.space-modal-body span {
  background: var(--fc-sage-1) !important;
  color: var(--fc-sage-deep) !important;
  font-family: var(--fc-body-font) !important;
  font-weight: 600 !important;
}
.space-modal-body h2 {
  color: var(--fc-ink) !important;
  font-family: var(--fc-display) !important;
  font-weight: 700 !important;
}
.space-modal-body p { color: var(--fc-body) !important; }

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (min-width: 560px) {
  .fac-wrap { padding-inline: 28px; }
  .fac-principles { grid-template-columns: repeat(2, 1fr); }
  .fac-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .fac-wrap { padding-inline: 32px; }
  .fac-principles { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .fac-gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .fac-tour-item { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .fac-tour-item.is-reverse .fac-tour-media { order: 2; }
  .fac-tour-item.is-reverse .fac-tour-body { order: 1; }
  /* keep the 300px-wide source photos crisp: cap + push to the column edge */
  .fac-tour-media { max-width: 400px; }
  .fac-tour-item:not(.is-reverse) .fac-tour-media { margin-left: 0; margin-right: auto; }
  .fac-tour-item.is-reverse .fac-tour-media { margin-left: auto; margin-right: 0; }
}

@media (max-width: 360px) {
  .fac-wrap { padding-inline: 16px; }
  .fac-hero-inner { padding-top: 118px; }
}

/* Mobile: skip the category/index cards and go straight to the spaces. */
@media (max-width: 767px) {
  .fac-section:has(.fac-principles) {
    display: none !important;
  }

  #fac-tour {
    margin-top: 0 !important;
  }

  .fac-tour {
    margin-top: 24px !important;
  }
}

/* ==========================================================================
   11. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .fac-hero-media,
  .fac-tour-media img,
  .fac-gallery-fig img,
  .fac-gallery-cap,
  .fac-car-btn,
  .fac-more,
  .fac-principle,
  .fac-principle-ico,
  .fac-btn { transition: none; }
  .fac-scrollcue-dot::after { animation: none; }
  .fac-tour-media:hover img,
  .fac-gallery-fig:hover img { transform: none; }
}

@keyframes facBob {
  0%, 100% { transform: translateY(-2px) rotate(45deg); }
  50% { transform: translateY(2px) rotate(45deg); }
}

/* Animated 3D Virtual Tour launch — rendered only when the tour is ready. */
.fac-virtual-tour-launch {
  position: relative;
  display: grid;
  width: min(680px, 100%);
  min-height: 92px;
  grid-template-columns: 64px minmax(0, 1fr) 46px;
  gap: 16px;
  align-items: center;
  overflow: hidden;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 6% 50%, rgba(247, 215, 136, 0.16), transparent 25%),
    linear-gradient(135deg, rgba(24, 52, 36, 0.72), rgba(35, 70, 50, 0.58));
  box-shadow:
    0 24px 54px rgba(10, 25, 15, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-decoration: none;
  isolation: isolate;
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms ease, box-shadow 220ms ease;
}

.fac-virtual-tour-launch::before {
  position: absolute;
  inset: -75% auto -75% -18%;
  z-index: -1;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  content: "";
  transform: rotate(16deg);
  animation: facVirtualSheen 5.2s ease-in-out infinite;
}

.fac-virtual-tour-launch::after {
  position: absolute;
  right: -46px;
  bottom: -66px;
  z-index: -2;
  width: 150px;
  height: 150px;
  border: 24px solid rgba(247, 215, 136, 0.07);
  border-radius: 50%;
  content: "";
}

.fac-virtual-tour-launch:hover {
  transform: translateY(-3px);
  border-color: rgba(247, 215, 136, 0.62);
  box-shadow:
    0 30px 68px rgba(10, 25, 15, 0.36),
    0 0 0 5px rgba(247, 215, 136, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.fac-virtual-tour-orbit {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 7px rgba(255, 255, 255, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.fac-virtual-tour-orbit::before,
.fac-virtual-tour-orbit::after {
  position: absolute;
  inset: 7px -5px;
  border: 1px solid rgba(247, 215, 136, 0.72);
  border-radius: 50%;
  content: "";
  transform: rotate(58deg);
  animation: facVirtualOrbit 6s linear infinite;
}

.fac-virtual-tour-orbit::after {
  inset: -5px 10px;
  border-color: rgba(255, 255, 255, 0.34);
  animation-direction: reverse;
  animation-duration: 7.5s;
}

.fac-virtual-tour-orbit i {
  position: relative;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: #263d2c;
  background: linear-gradient(145deg, #f8e4ad, #e7bd71);
  box-shadow: 0 9px 22px rgba(10, 25, 15, 0.24);
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 800;
  animation: facVirtualFloat 3.4s ease-in-out infinite;
}

.fac-virtual-tour-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.fac-virtual-tour-copy small {
  color: #f3d596;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.fac-virtual-tour-copy strong {
  font-family: var(--fc-display);
  font-size: clamp(1.18rem, 2.3vw, 1.58rem);
  line-height: 1.15;
}

.fac-virtual-tour-copy em {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fac-virtual-tour-arrow {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: #263d2c;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 10px 24px rgba(10, 25, 15, 0.2);
  font-size: 1.12rem;
  transition: transform 220ms ease, background 220ms ease;
}

.fac-virtual-tour-launch:hover .fac-virtual-tour-arrow {
  background: #f8e4ad;
  transform: translate(2px, -2px) rotate(5deg);
}

@keyframes facVirtualSheen {
  0%, 66% { left: -18%; }
  100% { left: 125%; }
}

@keyframes facVirtualOrbit {
  to { transform: rotate(418deg); }
}

@keyframes facVirtualFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (max-width: 767px) {
  .fac-virtual-tour-launch {
    width: 100%;
    min-height: 82px;
    grid-template-columns: 54px minmax(0, 1fr) 38px;
    gap: 11px;
    margin-top: 14px;
    padding: 11px 12px;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(12px) saturate(125%);
    backdrop-filter: blur(12px) saturate(125%);
  }

  .fac-virtual-tour-orbit {
    width: 54px;
    height: 54px;
  }

  .fac-virtual-tour-orbit i {
    width: 40px;
    height: 40px;
    font-size: 0.68rem;
  }

  .fac-virtual-tour-copy small {
    font-size: 0.56rem;
    letter-spacing: 0.1em;
  }

  .fac-virtual-tour-copy strong {
    font-size: clamp(0.98rem, 4.5vw, 1.18rem);
  }

  .fac-virtual-tour-copy em {
    font-size: 0.68rem;
  }

  .fac-virtual-tour-arrow {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 390px) {
  .fac-virtual-tour-launch {
    grid-template-columns: 50px minmax(0, 1fr) 34px;
    gap: 9px;
    padding-inline: 10px;
  }

  .fac-virtual-tour-orbit {
    width: 50px;
    height: 50px;
  }

  .fac-virtual-tour-copy em {
    display: none;
  }

  .fac-virtual-tour-arrow {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fac-virtual-tour-launch,
  .fac-virtual-tour-arrow {
    transition: none;
  }

  .fac-virtual-tour-launch::before,
  .fac-virtual-tour-orbit::before,
  .fac-virtual-tour-orbit::after,
  .fac-virtual-tour-orbit i {
    animation: none;
  }
}
