@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@300;400;500;600;700;800;900&display=swap");

/* igidelux — global Mediterranean design tokens + shared header / buttons */
:root {
  --ig-navy: #0A192F;
  --ig-navy-2: #0A192F;
  --ig-gold: #D4AF37;
  --ig-gold-deep: #b8932b;
  --ig-sand: #f4ece1;
  --ig-shell: #fffaf2;
  --ig-sea: #1e88a8;
  --ig-ink: #1f2a33;
  --ig-white: #ffffff;
  --booking-blue: #003580;
  /* Legacy aliases used in older inline styles */
  --blue: var(--ig-navy-2);
  --gold: var(--ig-gold);
  --sand: var(--ig-sand);
  --white: var(--ig-white);
}

/* Page shell: subtle coastal gradient */
body {
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ig-ink);
  background:
    radial-gradient(1200px 700px at 12% 0%, rgba(30, 136, 168, 0.12), transparent 55%),
    radial-gradient(1000px 600px at 88% 8%, rgba(212, 175, 55, 0.16), transparent 55%),
    linear-gradient(180deg, var(--ig-shell) 0%, #ffffff 42%);
}

.no-select { -webkit-user-select: none; user-select: none; }

html { scroll-behavior: smooth; }

h1, h2, h3 {
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", Times, serif;
}

/* High-end boutique typography */
h1, h2 { letter-spacing: 2px; }
h3 { letter-spacing: 2px; text-transform: uppercase; }

/* More breathing space on shared sections */
.section {
  padding: 84px 20px;
}
@media (min-width: 901px) {
  .section { padding: 120px 0; }
}

/* Sticky booking bar (homepage) */
.ig-bookbar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 25000;
  pointer-events: none;
}
.ig-bookbar__inner {
  pointer-events: auto;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(236, 244, 252, 0.52) 55%,
    rgba(10, 25, 47, 0.07) 100%
  );
  border: 1px solid rgba(10, 25, 47, 0.07);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 10px 40px rgba(10, 25, 47, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ig-bookbar__price {
  font-weight: 900;
  color: var(--ig-navy-2);
  letter-spacing: -0.01em;
  font-size: 14px;
  line-height: 1.15;
}
.ig-bookbar__sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(10,25,47,0.68);
}
.ig-bookbar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  text-decoration: none;
  color: #fff;
  background: var(--ig-gold);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 40px rgba(10, 25, 47, 0.04);
  white-space: nowrap;
}
.ig-bookbar__cta:hover { background: var(--ig-gold-deep); }

/* Desktop: slides from top */
.ig-bookbar--desktop { top: 12px; transform: translateY(-140%); opacity: 0; transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 420ms ease; }
.ig-bookbar--desktop.is-visible { transform: translateY(0); opacity: 1; }

/* Mobile: slides from bottom */
.ig-bookbar--mobile { bottom: 10px; transform: translateY(140%); opacity: 0; transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 420ms ease; }
.ig-bookbar--mobile.is-visible { transform: translateY(0); opacity: 1; }

/* Mobile boutique bar: slim, upward shadow, perfect gold */
@media (max-width: 900px) {
  .ig-bookbar--mobile {
    left: 0;
    right: 0;
    bottom: calc(env(safe-area-inset-bottom) + 10px);
  }
  .ig-bookbar--mobile .ig-bookbar__inner {
    max-width: 560px;
    margin: 0 auto;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.78) 0%,
      rgba(232, 242, 252, 0.55) 100%
    );
    border: 1px solid rgba(10, 25, 47, 0.07);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
      0 -10px 30px rgba(0, 0, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .ig-bookbar--mobile .ig-bookbar__price { color: rgba(10, 25, 47, 0.92); font-size: 13px; }
  .ig-bookbar--mobile .ig-bookbar__sub { color: rgba(10, 25, 47, 0.62); font-size: 11px; }
  .ig-bookbar--mobile .ig-bookbar__cta {
    padding: 10px 14px;
    border-radius: 2px;
    background: var(--ig-gold);
    color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
  }
  .ig-bookbar--mobile .ig-bookbar__cta:hover { background: var(--ig-gold-deep); }

  /* Prevent fixed bar from covering content */
  .ig-home main { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
}

/* Ensure only the right bar exists per breakpoint (avoids duplicate plain text if JS/CSS order is odd) */
@media (max-width: 900px) {
  .ig-bookbar--desktop { display: none; }
}
@media (min-width: 901px) {
  .ig-bookbar--mobile { display: none; }
}

@media (max-width: 520px) {
  .ig-bookbar__inner { border-radius: 16px; padding: 10px 12px; }
  .ig-bookbar__cta { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ig-bookbar--desktop,
  .ig-bookbar--mobile { transition: none; }
}

/* ----- Top bar (all pages) ----- */
header,
nav.nav-header {
  background: linear-gradient(120deg, rgba(10, 25, 47, 0.98) 0%, rgba(10, 25, 47, 0.94) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(10, 25, 47, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Primary header rows */
.header-container,
.header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 18px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 14px;
}

.nav-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  margin: 0;
}

/* Apartment / compact header — three columns: [spacer] [brand] [actions] */
.ig-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding: 16px 18px;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}
.ig-topbar__pad {
  min-width: 0;
  min-height: 0;
  grid-column: 1;
}
.ig-topbar__brand {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.ig-topbar__brand img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.ig-topbar__actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* Legacy apartment absolute lang strip (if still used): pin to end of topbar */
.ig-topbar .lang-top {
  position: static;
  right: auto;
  top: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* Brand row helpers */
.brand,
.header-left,
.logo-text,
.nav-right,
.header-right {
  display: flex;
  align-items: center;
  gap: 10px 12px;
}

.header-right,
.nav-right {
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Language switcher landmark (semantic list + toggle buttons w/ aria-pressed) */
.lang-nav {
  display: flex;
  align-items: center;
}
.lang-nav .lang-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lang-nav .lang-list > li {
  margin: 0;
  padding: 0;
}

/* ----- Buttons (shared) ----- */
.lang-btn {
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  padding: 0;
}
.lang-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 10px 40px rgba(10, 25, 47, 0.04);
}
.lang-btn[aria-pressed="true"] {
  outline: 2px solid rgba(212, 175, 55, 0.95);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.2);
}
.lang-btn:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.9);
  outline-offset: 3px;
}

/* Ghost pill on dark header: Login / My booking / Admin */
.login-pill,
.ig-ghost,
button.ig-ghost,
a.ig-ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;
  line-height: 1.2;
  font-family: inherit;
}
.login-pill:hover,
.ig-ghost:hover,
button.ig-ghost:hover,
a.ig-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

/* site.js: hide static Login when Admin / My booking+Logout is shown */
a#loginTop.ig-auth-guestonly,
#topActions a.ig-auth-guestonly[href="login.html"] {
  display: none !important;
}

/* “Back to overview” and similar (light chips on content area) */
.back-nav a,
.container > .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ig-navy-2) !important;
  text-decoration: none !important;
  font-weight: 800;
  background: linear-gradient(180deg, rgba(244, 236, 225, 0.95), rgba(255, 250, 242, 0.88));
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 10px 40px rgba(10, 25, 47, 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.back-nav a:hover,
.container > .back-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 40px rgba(10, 25, 47, 0.04);
  border-color: rgba(212, 175, 55, 0.55);
}

/* Nav bar “Home” (white on dark) */
nav .back-btn {
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
nav .back-btn:hover {
  background: rgba(212, 175, 55, 0.35);
  border-color: var(--ig-gold);
  transform: translateY(-1px);
}

/* Gold CTA: Book now, form submit, etc. */
.btn-book,
.btn-gold {
  border-radius: 12px;
  font-weight: 800;
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
  background: var(--ig-gold) !important;
  color: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 40px rgba(10, 25, 47, 0.04);
}
.btn-gold:hover,
.btn-book:hover {
  background: var(--ig-gold-deep) !important;
}

/* Cards: cohesive border */
.card {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

@media (max-width: 640px) {
  .ig-topbar {
    grid-template-columns: 1fr;
  }
  .ig-topbar__brand {
    grid-column: 1;
  }
  .ig-topbar__actions {
    grid-column: 1;
    justify-self: stretch;
    justify-content: center;
  }
}

/* ----- Homepage: trust strip + book CTA ribbon ----- */
.ig-trust-slab {
  background: linear-gradient(180deg, rgba(244, 236, 225, 0.85) 0%, #faf6ef 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.22);
  padding: 28px 20px 32px;
  text-align: center;
}
.ig-trust-eyebrow {
  font-size: 11px;
  color: #5a6470;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 800;
  margin: 0 0 16px;
}
.ig-trust-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.ig-trust-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ig-navy-2);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(20, 50, 76, 0.08);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 10px 40px rgba(10, 25, 47, 0.04);
}

/* Cookie banner (EU / GDPR style opt-in for analytics) */
.ig-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20000;
  padding: 16px 18px 18px;
  background: linear-gradient(180deg, rgba(20, 50, 76, 0.97) 0%, #14324c 100%);
  color: #fff;
  box-shadow: 0 10px 40px rgba(10, 25, 47, 0.04);
  border-top: 1px solid rgba(212, 175, 55, 0.35);
}
.ig-cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
@media (min-width: 720px) {
  .ig-cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
}
.ig-cookie-banner__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  flex: 1;
  min-width: 0;
}
.ig-cookie-banner__text a {
  color: #e4c27f;
  font-weight: 800;
  text-decoration: underline;
}
.ig-cookie-banner__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
}
.ig-cookie-btn {
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 18px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f0d37a, #D4AF37);
  color: #fff;
  box-shadow: 0 10px 40px rgba(10, 25, 47, 0.04);
}
.ig-cookie-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}
.ig-cookie-btn:hover {
  filter: brightness(1.05);
}
.ig-trust-pills li.ig-trust--accent {
  border-color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(165deg, #fff 0%, #fffcf2 100%);
  box-shadow: 0 10px 40px rgba(10, 25, 47, 0.04);
}

.ig-cta-ribbon {
  position: relative;
  padding: 80px 24px 96px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(20, 50, 76, 0.06) 0%, transparent 45%),
    linear-gradient(225deg, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
    #f3f6f9;
  overflow: hidden;
}
.ig-cta-ribbon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 50% 0%, rgba(30, 136, 168, 0.15), transparent 60%);
  pointer-events: none;
}
.ig-cta-ribbon__inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 52px 40px 56px;
  background: linear-gradient(165deg, #ffffff 0%, #fffcf7 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 24px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ig-cta-eyebrow {
  display: inline-block;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(10, 25, 47, 0.58);
  margin: 0 0 28px;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  max-width: 34em;
  line-height: 1.5;
}
.ig-cta-ribbon__title {
  margin: 0 0 24px;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: clamp(28px, 4.2vw, 36px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ig-navy-2);
  line-height: 1.2;
  max-width: min(95%, 22rem);
}
.ig-cta-ribbon__sub {
  margin: 0 0 40px;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: clamp(15px, 2.8vw, 17px);
  line-height: 1.72;
  color: rgba(10, 25, 47, 0.68);
  font-weight: 300;
  max-width: 36em;
}

/* CTA: outline-only, hover fills with gold (no elevation) */
.ig-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  padding: 20px 48px;
  background: transparent;
  color: var(--ig-navy-2);
  border: 1px solid rgba(212, 175, 55, 0.75);
  border-radius: 0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: none;
  transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}
.ig-cta-btn:hover {
  background: var(--ig-gold);
  color: #fdfcf9;
  border-color: var(--ig-gold);
}
.ig-cta-btn:active {
  background: var(--ig-gold-deep);
  border-color: var(--ig-gold-deep);
  color: #fdfcf9;
}
.ig-cta-btn:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.55);
  outline-offset: 4px;
}
.ig-cta-btn__label {
  letter-spacing: inherit;
  color: inherit;
}
.ig-cta-ghostlink {
  display: inline-block;
  margin-top: 28px;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(10, 25, 47, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.45);
  padding-bottom: 3px;
  transition: color 0.35s ease, border-color 0.35s ease;
}
.ig-cta-fineprint {
  margin: 28px 0 0;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: rgba(10, 25, 47, 0.5);
  max-width: 32em;
}
.ig-cta-ghostlink:hover {
  color: var(--ig-sea);
  border-color: rgba(30, 136, 168, 0.45);
}

/* ----- Homepage (index.html) ----- */
.ig-home .reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.ig-home .reveal.active { opacity: 1; transform: translateY(0); }

.ig-home .hero {
  background: linear-gradient(rgba(0,0,0,0.32), rgba(0,0,0,0.32)), url("../images/vila/strand/Villajoyosa-6.jpg");
  height: 100vh;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 0 20px;
}
@media (max-width: 900px) { .ig-home .hero { background-attachment: scroll; } }
@media (max-width: 768px) {
  .ig-home .hero .hero__title { font-size: clamp(22px, 6vw, 34px) !important; }
}
.ig-home .hero .hero__title {
  font-size: clamp(26px, 4.8vw, 44px);
  margin: 0;
  font-weight: 800;
  line-height: 1.08;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 22ch;
  text-wrap: balance;
}

.ig-home .header-home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px 12px;
  color: inherit;
  text-decoration: none;
}
.ig-home .header-home-link:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.9);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Hero: Booking guest-rating badge → #reviews */
.ig-home .ig-hero-trust {
  margin: 26px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: min(420px, 100%);
  padding: 10px 16px 11px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.18);
  transition: background 0.28s ease, border-color 0.28s ease, transform 0.22s ease;
}
.ig-home .ig-hero-trust:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(212, 175, 55, 0.42);
}
.ig-home .ig-hero-trust:focus-visible {
  outline: 2px solid var(--ig-gold);
  outline-offset: 3px;
}
.ig-home .ig-hero-trust:active { transform: scale(0.99); }
.ig-home .ig-hero-trust__logo {
  flex: 0 0 auto;
  height: 15px;
  width: auto;
  display: block;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 3px;
  box-sizing: content-box;
  box-shadow: 0 1px 4px rgba(0, 0, 40, 0.08);
}
.ig-home .ig-hero-trust__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
  padding-left: 14px;
  margin-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}
.ig-home .ig-hero-trust__line {
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
}
.ig-home .ig-hero-trust__sub {
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.88;
}
@media (max-width: 520px) {
  .ig-home .ig-hero-trust {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 14px;
    gap: 10px;
    text-align: center;
  }
  .ig-home .ig-hero-trust__copy {
    align-items: center;
    text-align: center;
    padding-left: 0;
    margin-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-top: 10px;
    width: 100%;
  }
}

.ig-home .features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 40px 20px;
  background: var(--ig-sand);
  text-align: center;
}
.ig-home .feature-item { flex: 1; min-width: 140px; max-width: 200px; margin: 10px; color: var(--ig-navy-2); }
.ig-home .feature-ic {
  display: block;
  margin: 0 auto 12px;
  color: var(--ig-navy-2);
  transition: transform 0.3s ease;
  transform-origin: center center;
}
.ig-home .feature-ic svg { width: 32px; height: 32px; display: block; margin: 0 auto; }
.ig-home .feature-txt {
  display: block;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
  max-width: 12rem;
  margin: 0 auto;
  color: var(--ig-navy-2);
  transition: color 0.3s ease;
}
.ig-home .feature-item:hover .feature-ic { transform: scale(1.1); }
.ig-home .feature-item:hover .feature-txt { color: var(--gold); }

.ig-home .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.ig-home .card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 40px rgba(10, 25, 47, 0.04); display: flex; flex-direction: column; transition: 0.3s; border: 1px solid rgba(0,0,0,0.04); }
.ig-home .card:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(10, 25, 47, 0.04); }
.ig-home .card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; text-align: center; }
.ig-home .btn { display: block; width: 80%; margin: 20px auto 0; padding: 15px 0; text-align: center; text-decoration: none; border-radius: 8px; font-weight: bold; transition: 0.3s; box-sizing: border-box; }
.ig-home .btn-gold { background: var(--ig-gold); color: #fff; border: 1px solid var(--ig-gold); }
.ig-home .btn-gold:hover { background: var(--ig-gold-deep); border-color: var(--ig-gold-deep); }

/* Apartment cards on homepage: narrower, more premium spacing */
.ig-home .apt-grid {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
  gap: 48px;
}
.ig-home .apt-card {
  max-width: 520px;
  width: 100%;
}

/* Apartment image slider (Swiper) */
.ig-home .card-img { height: 320px; overflow: hidden; background: #000; position: relative; }
@media (max-width: 768px) { .ig-home .card-img { height: 240px; } }
.ig-home .ig-apt-swiper { width: 100%; height: 100%; }
.ig-home .ig-apt-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.ig-home .ig-apt-swiper .swiper-pagination-bullet { background: rgba(255,255,255,0.55); opacity: 1; }
.ig-home .ig-apt-swiper .swiper-pagination-bullet-active { background: var(--ig-gold); }

/* Soft reveal for apartment photos (uses existing IntersectionObserver on .reveal) */
.ig-home .section.reveal .ig-apt-swiper .swiper-slide img {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}
.ig-home .section.reveal.active .ig-apt-swiper .swiper-slide img {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .ig-home .section.reveal .ig-apt-swiper .swiper-slide img {
    transition: none;
    transform: none;
    opacity: 1;
  }
  .ig-home .ig-guest__card {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}
.ig-home .slider-nav-arrows { position: absolute; top: 50%; width: 100%; transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0 10px; box-sizing: border-box; z-index: 5; pointer-events: none; }
.ig-home .nav-arrow { background: rgba(255,255,255,0.9); border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; pointer-events: auto; display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--ig-navy-2); box-shadow: 0 10px 40px rgba(10, 25, 47, 0.04); }

/* “The Art of Rest” band */
.ig-home .ig-rest-band { background: var(--ig-navy-2); color: var(--ig-gold); padding: 120px 18px; }
.ig-home .ig-rest-band__inner { max-width: 1100px; margin: 0 auto; display:flex; align-items:center; justify-content:center; gap: 14px; text-align:center; }
.ig-home .ig-rest-band__copy { max-width: 920px; }
.ig-home .ig-rest-band__title { font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", Times, serif; letter-spacing: 2px; font-size: clamp(22px, 3.4vw, 34px); line-height: 1.12; margin: 0; color: var(--ig-gold); }
.ig-home .ig-rest-band__text { font-size: 16px; line-height: 1.55; margin: 18px 0 0; color: rgba(212, 175, 55, 0.92); font-weight: 600; max-width: 56ch; margin-left: auto; margin-right: auto; }
.ig-home .ig-rest-band__icon { width: 34px; height: 34px; flex: 0 0 auto; opacity: 0.7; }
.ig-home .ig-rest-band__icon svg { width: 100%; height: 100%; display:block; }
@media (max-width: 720px) {
  .ig-home .ig-rest-band__title { font-size: 16px; }
  .ig-home .ig-rest-band__text { font-size: 14px; }
  .ig-home .ig-rest-band__icon { width: 30px; height: 30px; }
}

/* Guest Experiences (replaces Booking.com section) */
.ig-home #reviews {
  scroll-margin-top: 96px;
}
.ig-home .ig-guest {
  padding: 90px 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(10, 25, 47, 0.03) 0%, transparent 55%);
}
.ig-home .ig-guest__title {
  margin: 0 0 28px;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ig-navy-2);
}
.ig-home .ig-guest-swiper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 4px 28px;
}
.ig-home .ig-guest__card {
  padding: 22px 18px 20px;
  text-align: left;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s ease, transform 0.72s ease;
  will-change: opacity, transform;
}
.ig-home .ig-guest__card.active {
  opacity: 1;
  transform: translateY(0);
}
.ig-home .ig-guest__stars {
  display: block;
  color: var(--ig-gold);
  letter-spacing: 0.08em;
  font-size: 12px;
  margin-bottom: 12px;
  opacity: 0.85;
}
.ig-home .ig-guest__quote {
  margin: 0;
  color: var(--ig-navy-2);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", Times, serif;
}
.ig-home .ig-guest__name {
  margin: 14px 0 0;
  color: var(--ig-gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}
.ig-home .ig-guest__foot {
  margin: 8px 0 0;
  font-size: 12px;
  font-style: italic;
  color: rgba(10, 25, 47, 0.55);
}
.ig-home .ig-guest-swiper .swiper-pagination-bullet { background: rgba(10, 25, 47, 0.22); opacity: 1; }
.ig-home .ig-guest-swiper .swiper-pagination-bullet-active { background: var(--ig-gold); }

/* Discovery + gallery hover */
.ig-home .discovery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 30px; }
.ig-home .discovery-item { position: relative; height: 350px; border-radius: 15px; overflow: hidden; cursor: pointer; }
.ig-home .discovery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; pointer-events: none; }
.ig-home .discovery-item:hover img { transform: scale(1.05); }
.ig-home .discovery-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(26, 58, 90, 0.9)); color: #fff; padding: 20px; pointer-events: none; }

.ig-home .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 640px) { .ig-home .gallery-grid { gap: 14px; } }

/* Mobile: strict 2-column squares for app-feel */
@media (max-width: 768px) {
  .ig-home .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .ig-home .gallery-item { aspect-ratio: 1 / 1 !important; }
}
@media (max-width: 380px) {
  .ig-home .gallery-grid { grid-template-columns: 1fr; }
}

.ig-home .gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(10, 25, 47, 0.04);
}
.ig-home .gallery-item.bento-square { aspect-ratio: 1 / 1; }
.ig-home .gallery-item.bento-43 { aspect-ratio: 4 / 3; }

.ig-home .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms ease;
  pointer-events: none;
  will-change: transform;
}
.ig-home .gallery-item img.ig-parallax-img {
  --ig-parallax-y: 0px;
  --ig-img-scale: 1.02;
  transform: translate3d(0, var(--ig-parallax-y), 0) scale(var(--ig-img-scale));
}
.ig-home .gallery-item.ig-pos-bottom img { object-position: bottom; }
.ig-home .gallery-item:hover img.ig-parallax-img { --ig-img-scale: 1.03; }
.ig-home .ig-gallery-cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(10, 25, 47, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: rgba(212, 175, 55, 0.95);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 350ms ease, transform 350ms ease;
  pointer-events: none;
}
.ig-home .gallery-item:hover img { transform: scale(1.03); }
.ig-home .gallery-item:hover .ig-gallery-cap { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .ig-home .gallery-item img { transition: none; }
  .ig-home .ig-gallery-cap { transition: none; }
  .ig-home .gallery-item:hover img { transform: none; }
  .ig-home .gallery-item img.ig-parallax-img { transform: none; }
}

/* Map + footer */
.ig-home .map-section { padding: 40px 20px; background: var(--ig-white); text-align: center; }
.ig-home .map-container { max-width: 1100px; margin: 20px auto; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 40px rgba(10, 25, 47, 0.04); border: 1px solid rgba(10, 25, 47, 0.06); position: relative; background: #eceff1; }
.ig-home .ig-location-map { width: 100%; height: 450px; min-height: 320px; display: block; }
.ig-home .ig-location-map.ig-location-map--fallback { display: flex; align-items: center; justify-content: center; padding: 28px 20px; text-align: center; font-size: 14px; line-height: 1.55; color: rgba(10, 25, 47, 0.58); font-weight: 600; }
.ig-home .map-overlay-info { position: absolute; top: 20px; left: 20px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 15px 16px; border-radius: 10px; box-shadow: 0 10px 40px rgba(10, 25, 47, 0.06); text-align: left; z-index: 1000; border-left: 3px solid var(--ig-gold); pointer-events: none; max-width: min(260px, 78vw); }
.ig-home .map-overlay-info h3 { margin: 0; color: var(--ig-navy-2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif; }
.ig-home .map-overlay-info p { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: rgba(10, 25, 47, 0.85); line-height: 1.45; }

/* Leaflet map + popup */
.ig-home .leaflet-container { font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif; }
.ig-home .ig-leaf-pin { background: transparent !important; border: none !important; }
.ig-home .leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 12px 36px rgba(10, 25, 47, 0.12); border: 1px solid rgba(10, 25, 47, 0.08); }
.ig-home .leaflet-popup-tip { box-shadow: 0 2px 8px rgba(10, 25, 47, 0.06); }
.ig-home .leaflet-popup-content { margin: 12px 14px 10px; }
.ig-home .leaflet-popup-content .ig-map-info { font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif; font-size: 13px; max-width: 220px; color: var(--ig-navy-2); line-height: 1.35; }
.ig-home .leaflet-popup-content .ig-map-info__cat { display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(10, 25, 47, 0.5); margin-bottom: 6px; font-weight: 700; }
.ig-home .leaflet-popup-content .ig-map-info strong { font-weight: 800; letter-spacing: 0.02em; display: block; }
@media (max-width: 768px) { .ig-home .map-overlay-info { display: none; } }

.ig-home .ig-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ig-home .ig-lightbox {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(52px, env(safe-area-inset-top));
  cursor: zoom-out;
  background: rgba(0, 0, 0, 0.95);
}
.ig-home .ig-lightbox__close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(10, 25, 47, 0.55);
  color: rgba(255, 255, 255, 0.95);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.ig-home .ig-lightbox__close:hover,
.ig-home .ig-lightbox__close:focus-visible {
  background: rgba(212, 175, 55, 0.35);
  border-color: rgba(212, 175, 55, 0.55);
}
.ig-home .ig-lightbox__close:focus-visible { outline: 2px solid var(--ig-gold); outline-offset: 2px; }
.ig-home .ig-lightbox__img {
  max-width: min(920px, 92vw);
  max-height: 78vh;
  border: 2px solid #fff;
  border-radius: 4px;
  object-fit: contain;
  cursor: default;
}

.ig-home button.discovery-item,
.ig-home button.gallery-item {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
}
.ig-home button.discovery-item {
  width: 100%;
  height: 350px;
  text-align: left;
}
.ig-home button.gallery-item {
  display: block;
  width: 100%;
}
.ig-home button.gallery-item:focus-visible,
.ig-home button.discovery-item:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.85);
  outline-offset: 3px;
  z-index: 2;
}

.ig-home .discovery-overlay__titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.ig-home .discovery-overlay .ig-discovery-h3 {
  display: block;
  margin: 0;
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: clamp(16px, 2.8vw, 22px);
  line-height: 1.2;
}
.ig-home .discovery-overlay__sub {
  display: block;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.95;
}

.ig-home footer { background: var(--ig-navy-2); color: #fff; text-align: center; padding: 30px; font-size: 14px; }
.ig-home footer a { color: #fff; text-decoration: underline; margin-left: 15px; opacity: 0.8; }

/* Villajoyosa experience intro (before gallery) */
.ig-home .ig-exp-hero {
  max-width: 1000px;
  margin: 0 auto 22px;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: none;
}
.ig-home .ig-exp-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ig-home .ig-exp-title {
  text-align: center;
  color: var(--ig-navy-2);
  margin: 0 0 14px;
  font-size: clamp(22px, 3.2vw, 34px);
}
.ig-home .ig-exp-body {
  max-width: 70ch;
  margin: 0 auto;
  text-align: center;
  color: rgba(10, 25, 47, 0.78);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
}
.ig-home .ig-exp-link {
  display: inline-block;
  margin-top: 18px;
  text-decoration: none;
  color: var(--ig-gold);
  border-bottom: 1px solid rgba(212, 175, 55, 0.55);
  padding-bottom: 3px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.ig-home .ig-exp-link:hover { color: var(--ig-gold-deep); border-color: rgba(184, 147, 43, 0.65); }

/* Gallery eyebrow (decent, appendix-like) — h2 for outline; typography stays subtle */
.ig-home h2.ig-gallery-eyebrow {
  margin: 0 0 18px;
  text-align: center;
  font-size: 11px;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.5;
  color: rgba(10, 25, 47, 0.55);
}

/* Boutique quality seal (score badge) */
.ig-home .ig-seal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 4px;
  color: rgba(212, 175, 55, 0.95);
  background: rgba(10, 25, 47, 0.35);
  vertical-align: middle;
}
.ig-home .ig-seal__ic {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}
.ig-home .ig-seal__ic svg { width: 18px; height: 18px; display: block; }
.ig-home .ig-seal__txt { display: inline-flex; flex-direction: column; line-height: 1.05; text-align: left; }
.ig-home .ig-seal__brand { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.ig-home .ig-seal__score { font-weight: 700; letter-spacing: 0.06em; font-size: 12px; }
.ig-home .ig-seal__label { font-style: italic; font-size: 11px; color: rgba(255,255,255,0.78); }
.ig-home .ig-foot-sep { margin: 0 10px; opacity: 0.45; }

@media (max-width: 640px) {
  .ig-home .ig-seal { margin-bottom: 10px; }
  .ig-home .ig-foot-sep { display: none; }
}

@media (max-width: 480px) {
  .ig-cta-ribbon {
    padding: 56px 16px 64px;
  }
  .ig-cta-ribbon__inner {
    padding: 40px 22px 44px;
  }
  .ig-cta-btn {
    width: 100%;
    padding: 18px 28px;
  }
  .ig-trust-pills li {
    font-size: 13px;
    padding: 8px 12px;
  }
}

/* ----- Mobile polish (<= 768px) ----- */
@media (max-width: 768px) {
  /* Section spacing */
  .section { padding: 60px 15px; }
  .ig-home .ig-guest { padding: 60px 15px; }
  .ig-home .map-section { padding: 40px 15px; }
  .ig-home .ig-location-map { height: 380px; min-height: 260px; }
  .ig-home .features { padding: 28px 15px; }
  .ig-cta-ribbon { padding: 64px 18px 76px; }

  /* Hero typography */
  .ig-home .hero h1 { font-size: clamp(32px, 8vw, 40px) !important; }
  .ig-home .hero #t-heroSub { font-size: 18px !important; }

  /* Header layout: keep one row */
  .header-container,
  .header-inner { padding: 12px 14px; gap: 10px; }
  .header-left,
  .header-right { gap: 8px; }
  .header-logo-icon { width: 28px; height: 28px; }
  .logo-text { font-size: 20px; letter-spacing: 2px; }

  .lang-btn { width: 35px; height: 35px; border-radius: 10px; font-size: 16px; }
}
