/* ═══════════════════════════════════════════════════════
   Agulles de Montserrat — app.css
   Single stylesheet: base → layout → v3 overrides
   ═══════════════════════════════════════════════════════

   Fonts:
     Headings: laca (Adobe Typekit kit qxr5hzt)
     Body:     Montserrat (Google Fonts)
   Colors:
     Green    #54A06E   Heading  #1A1A1A   Text  #2A2A2A
     BG alt   #F4EFE6   Footer   #1E2019
   Container: 1140px
   ═══════════════════════════════════════════════════════ */

@import url("https://use.typekit.net/qxr5hzt.css");
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ─────────────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES
   ───────────────────────────────────────────────────── */
:root {
  --font-heading:      laca, sans-serif;
  --font-body:         Montserrat, -apple-system, sans-serif;

  --color-green:       #54A06E;
  --color-green-dark:  #478f5f;
  --color-green-light: #e8f5ed;
  --color-dark:        #1A1A1A;
  --color-heading:     #1A1A1A;
  --color-text:        #2A2A2A;
  --color-text-light:  #5C5C5C;
  --color-text-muted:  #999999;
  --color-nav:         #303030;
  --color-bg:          #FFFFFF;
  --color-bg-alt:      #F4EFE6;
  --color-footer-dark: #1E2019;
  --color-border:      #e0e0e0;
  --color-stone-mid:   #E8E0D2;

  --max-w:    1140px;
  --gutter:   20px;
  --header-h: 76px;
}

/* ─────────────────────────────────────────────────────
   2. RESET
   ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-green-dark); }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* ─────────────────────────────────────────────────────
   3. TYPOGRAPHY
   ───────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading) !important;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h1 { font-size: 48px; }
h2 { font-size: 40px; }
h3 { font-size: 20px; letter-spacing: -0.01em; }
h4 { font-size: 16px; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────────────────
   4. LAYOUT UTILITIES
   ───────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 88px 0; }
.section--alt { background: var(--color-bg-alt); }
.section--green { background: var(--color-green); color: #fff; }
.section--green h2, .section--green h3, .section--green p { color: #fff; }
.section--green a { color: #fff; }
.section--footer-dark { background: var(--color-footer-dark); color: #fff; padding: 70px 0; }
.section--footer-green { background: var(--color-green); color: #fff; padding: 20px 0; }
.section--features { background: var(--color-bg-alt); color: var(--color-text); padding: 80px 0; }
.section--features h2 { color: var(--color-heading); }
.text-center { text-align: center; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { margin-bottom: 8px; }
.section-title p { color: var(--color-text-light); font-size: 15px; }
.section-intro { color: var(--color-text-light); max-width: 600px; margin: 12px auto 36px; font-size: 15px; }
.text-muted { color: var(--color-text-light); }
.text-sm { font-size: .9rem; }
.label-sm {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--color-text-muted);
  font-family: var(--font-body) !important;
}

/* ─────────────────────────────────────────────────────
   5. BUTTONS
   ───────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 12px 28px;
  font-size: 15px; font-weight: 500; font-family: var(--font-body);
  border: 1px solid transparent; transition: all .2s; text-align: center;
}
.btn-green { background: var(--color-green); color: #fff; border-color: var(--color-green); }
.btn-green:hover { background: var(--color-green-dark); border-color: var(--color-green-dark); color: #fff; }
.btn-white { background: #fff; color: var(--color-green); border-color: #fff; }
.btn-white:hover { background: #f0f0f0; color: var(--color-green-dark); }
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; background: var(--color-green); color: #fff;
  font-size: 15px; font-weight: 600; transition: all .2s;
}
.btn-cta:hover { background: var(--color-green-dark); color: #fff; }
.btn-hero {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: var(--color-green); color: #fff;
  font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border: none; transition: background 0.2s, transform 0.15s;
}
.btn-hero::after { content: '→'; font-size: 16px; }
.btn-hero:hover { background: var(--color-green-dark); color: #fff; transform: translateX(3px); }
.btn-outline {
  display: inline-block; background: transparent; color: var(--color-green);
  border: 1.5px solid var(--color-green); padding: 11px 26px;
  font-weight: 500; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
  transition: all 0.2s ease;
}
.btn-outline:hover { background: var(--color-green); color: #fff; }
.btn-reservar {
  background: var(--color-green); color: #fff; border: none; border-radius: 6px;
  padding: 0 32px; height: 46px; font-size: 15px; font-weight: 700;
  font-family: var(--font-body); cursor: pointer; white-space: nowrap;
  transition: background .2s; flex-shrink: 0;
}
.btn-reservar:hover { background: var(--color-green-dark); }

/* ─────────────────────────────────────────────────────
   6. GREEN TOP BAR
   ───────────────────────────────────────────────────── */
.top-bar {
  background: var(--color-green); color: #fff;
  font-size: 12.5px; padding: 7px 0; letter-spacing: 0.01em;
  z-index: 101; position: relative;
}
.top-bar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.top-bar-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-bar a { color: #fff; display: flex; align-items: center; gap: 5px; }
.top-bar a:hover { opacity: .8; }
.top-bar svg { flex-shrink: 0; }
@media (max-width: 768px) { .top-bar { display: none; } }

/* ─────────────────────────────────────────────────────
   7. HEADER & NAV
   ───────────────────────────────────────────────────── */
body.has-top-bar .site-header { top: 37px; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0);
  backdrop-filter: blur(0px);
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--color-stone-mid);
  border-bottom-color: var(--color-stone-mid);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo img { height: 55px; width: auto; filter: brightness(0) invert(1); transition: filter 0.3s ease; }
.site-header.scrolled .site-logo img { filter: none; }

/* Nav links: white over hero, dark when scrolled */
.nav-main { display: flex; align-items: center; gap: 0; }
.nav-main > a,
.nav-main .nav-dropdown > a { color: rgba(255,255,255,0.92); transition: color 0.3s ease; }
.site-header.scrolled .nav-main > a,
.site-header.scrolled .nav-main .nav-dropdown > a { color: var(--color-nav); }
.nav-main > a:hover,
.nav-main .nav-dropdown > a:hover { color: #fff; }
.site-header.scrolled .nav-main > a:hover,
.site-header.scrolled .nav-main .nav-dropdown > a:hover { color: var(--color-green); }

.nav-main > a, .nav-main .nav-dropdown > a {
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 400;
  text-decoration: none;
}
.nav-main a.active { color: var(--color-green); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch a { padding: 4px 6px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.92); transition: color 0.3s ease; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.active { color: #fff; font-weight: 600; }
.site-header.scrolled .lang-switch a { color: var(--color-text-muted); }
.site-header.scrolled .lang-switch a.active { color: var(--color-green); }

/* Reservar CTA in nav (injected by JS) */
.btn-nav-reservar {
  display: inline-flex; align-items: center;
  padding: 8px 20px;
  background: var(--color-green); color: #fff !important;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  border: none; transition: background 0.2s ease, transform 0.15s ease;
  margin-left: 8px; flex-shrink: 0;
}
.btn-nav-reservar:hover { background: var(--color-green-dark) !important; color: #fff !important; transform: translateY(-1px); }
.site-header:not(.scrolled) .btn-nav-reservar { background: transparent; border: 1.5px solid rgba(255,255,255,0.7); }
.site-header:not(.scrolled) .btn-nav-reservar:hover { background: rgba(255,255,255,0.12) !important; }

/* Dropdown nav */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.dd-arrow { font-size: 10px; transition: transform .2s; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; min-width: 180px; padding: 8px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  border-top: 2px solid var(--color-green);
  border-radius: 0 0 4px 4px;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown:hover .dd-arrow { transform: rotate(180deg); }
.nav-dropdown-menu a {
  display: block; padding: 8px 20px; font-size: 14px;
  color: var(--color-nav) !important; white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--color-bg-alt); color: var(--color-green) !important; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.92);
  margin: 5px 0; transition: all .3s; border-radius: 1px;
}
.site-header.scrolled .nav-toggle span { background: var(--color-dark); }

/* Header solid on pages without hero slider */
body:not(:has(.hero-slider)) .site-header {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 1px 0 var(--color-stone-mid) !important;
  border-bottom-color: var(--color-stone-mid) !important;
}
body:not(:has(.hero-slider)) .site-header .site-logo img { filter: none !important; }
body:not(:has(.hero-slider)) .site-header .nav-main > a,
body:not(:has(.hero-slider)) .site-header .nav-main .nav-dropdown > a,
body:not(:has(.hero-slider)) .site-header .lang-switch a { color: var(--color-nav) !important; }
body:not(:has(.hero-slider)) .site-header .nav-main > a:hover,
body:not(:has(.hero-slider)) .site-header .nav-main .nav-dropdown > a:hover { color: var(--color-green) !important; }
body:not(:has(.hero-slider)) .site-header .lang-switch a.active { color: var(--color-green) !important; }
body:not(:has(.hero-slider)) .site-header .nav-toggle span { background: var(--color-dark) !important; }

@media (max-width: 768px) {
  .site-header { top: 0 !important; }
  body.has-top-bar .site-header { top: 0; }
  .nav-toggle { display: block; }
  .nav-main {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px var(--gutter);
    border-bottom: 1px solid var(--color-border); box-shadow: 0 4px 12px rgba(0,0,0,.06);
  }
  .nav-main.open { display: flex; }
  .nav-main > a, .nav-main .nav-dropdown > a {
    padding: 12px 0; width: 100%; border-bottom: 1px solid var(--color-bg-alt);
    color: var(--color-nav) !important;
  }
  .nav-dropdown-menu { position: static; box-shadow: none; padding: 0 0 0 16px; display: none; background: transparent; border-top: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .lang-switch a { color: var(--color-text-muted) !important; }
  .lang-switch a.active { color: var(--color-green) !important; }
  h1 { font-size: 32px; }
  h2 { font-size: 30px; }
}

/* ─────────────────────────────────────────────────────
   8. HERO SLIDER (homepage)
   ───────────────────────────────────────────────────── */
.hero-slider {
  position: relative; overflow: hidden;
  height: 90vh; min-height: 560px; max-height: none;
  margin-top: 0 !important;
}
.slider-track { display: flex; height: 100%; transition: transform .7s ease; }
.slider-slide {
  flex-shrink: 0; width: 100%; height: 100%;
  position: relative; display: flex; align-items: flex-end;
  justify-content: flex-start; padding-bottom: 100px;
}
.slider-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slider-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.04) 100%);
}
.slider-slide-content {
  position: relative; z-index: 2; color: #fff;
  padding: 0 60px; max-width: 640px; text-align: left; margin: 0;
}
.slider-slide-content h2 {
  font-size: 68px; color: #fff; margin-bottom: 16px;
  line-height: 1.0; font-weight: 700; letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.slider-slide-content p {
  font-size: 17px; font-weight: 400; color: rgba(255,255,255,.88);
  margin-bottom: 36px; max-width: 460px; line-height: 1.6;
}
.slider-prev, .slider-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; width: 44px; height: 44px; font-size: 18px; cursor: pointer;
  transition: background .2s; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.slider-prev { left: auto; right: 90px; }
.slider-next { right: 32px; }
.slider-prev:hover, .slider-next:hover { background: rgba(255,255,255,.2); }
.slider-dots {
  position: absolute; bottom: 28px; left: 60px;
  display: flex; gap: 8px; z-index: 10;
}
.slider-dot {
  width: 28px; height: 2px; border-radius: 2px;
  background: rgba(255,255,255,.4); cursor: pointer; border: none; transition: background .3s;
}
.slider-dot.active { background: #fff; width: 40px; }

@media (max-width: 768px) {
  .hero-slider { margin-top: 76px !important; }
  .slider-slide { padding-bottom: 72px; }
  .slider-slide-content { padding: 0 24px; }
  .slider-slide-content h2 { font-size: 38px; }
  .slider-dots { left: 24px; }
  .slider-prev { right: 72px; }
  .slider-next { right: 20px; }
}

/* ─────────────────────────────────────────────────────
   9. APARTMENT CARDS (homepage grid)
   ───────────────────────────────────────────────────── */
.apartments-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.apartments-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .apartments-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .apartments-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .apartments-grid--3 { grid-template-columns: 1fr; } }

.apt-card {
  background: #fff; overflow: hidden;
  box-shadow: 0 1px 0 var(--color-stone-mid), 0 4px 20px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  text-decoration: none; color: inherit; display: block;
}
.apt-card:hover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--color-stone-mid), 0 16px 40px rgba(0,0,0,0.12); }
.apt-card-img { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.apt-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.35s ease;
}
.apt-card:hover .apt-card-img::after { opacity: 1; }
.apt-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.apt-card:hover .apt-card-img img { transform: scale(1.03); }
.apt-card-tag {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px;
  background: rgba(255,255,255,.9); font-size: 12px; font-weight: 600; color: var(--color-green);
}
.apt-card-body { padding: 18px 20px 22px; border-top: 2px solid var(--color-green); }
.apt-card-body h3 { font-size: 19px; color: var(--color-heading); margin-bottom: 0; }
.apt-card-desc { font-size: 14px; color: var(--color-text-light); margin-bottom: 0; line-height: 1.6; margin-top: 4px; }
.apt-card-body::after {
  content: 'Veure apartament →'; display: block; margin-top: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-green); opacity: 0; transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.apt-card:hover .apt-card-body::after { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) { .apt-card-body::after { display: none; } }

/* ─────────────────────────────────────────────────────
   10. FEATURES SECTION (services grid)
   ───────────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }

.feature-box {
  background: #fff; padding: 32px 24px; text-align: center;
  box-shadow: 0 1px 0 var(--color-stone-mid), 0 2px 12px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border-radius: 2px; display: flex; flex-direction: column; align-items: center;
}
.feature-box:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--color-stone-mid), 0 12px 32px rgba(0,0,0,0.09); }
.feature-icon { margin-bottom: 20px; display: flex; align-items: center; justify-content: center; }
.feature-icon img {
  display: block; margin: 0 auto; width: 48px; height: 48px;
  filter: invert(51%) sepia(37%) saturate(500%) hue-rotate(100deg) brightness(90%);
}
.feature-box h3 { font-size: 17px; color: var(--color-heading); margin-bottom: 8px; text-align: center; }
.feature-box p { font-size: 14px; color: var(--color-text-light); margin: 0; text-align: center; }
.feature-link { color: inherit; display: flex; flex-direction: column; align-items: center; width: 100%; }
.feature-link:hover { opacity: .85; }

/* ─────────────────────────────────────────────────────
   11. GALLERY
   ───────────────────────────────────────────────────── */
/* Homepage gallery preview */
.gallery-carousel {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: auto auto;
  gap: 6px;
}
.gallery-carousel .gallery-slide:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.gallery-carousel .gallery-slide:nth-child(1) img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.gallery-carousel .gallery-slide { grid-column: span 2; overflow: hidden; }
.gallery-carousel .gallery-slide img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block;
  transition: transform 0.4s ease; cursor: zoom-in;
}
.gallery-carousel .gallery-slide:hover img { transform: scale(1.04); }

/* Full gallery page grid */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-grid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; cursor: zoom-in; }
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 768px) {
  .gallery-carousel { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; }
  .gallery-carousel .gallery-slide:nth-child(1) { grid-column: span 3; grid-row: span 1; }
  .gallery-carousel .gallery-slide:nth-child(1) img { aspect-ratio: 16/7; }
  .gallery-carousel .gallery-slide { grid-column: span 1; }
}
@media (max-width: 480px) { .gallery-carousel { grid-template-columns: repeat(2, 1fr); } }

/* ─────────────────────────────────────────────────────
   12. LIGHTBOX
   ───────────────────────────────────────────────────── */
.lb-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10,12,10,0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.lb-overlay.lb-open { opacity: 1; pointer-events: all; }
.lb-img-wrap { position: relative; max-width: 90vw; max-height: 88vh; display: flex; align-items: center; justify-content: center; }
.lb-img-wrap img { max-width: 90vw; max-height: 88vh; object-fit: contain; display: block; user-select: none; transition: opacity 0.2s ease; }
.lb-img-wrap img.lb-fading { opacity: 0; }
.lb-close {
  position: fixed; top: 20px; right: 24px; width: 40px; height: 40px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 10000;
}
.lb-close:hover { background: rgba(255,255,255,0.25); }
.lb-prev, .lb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 22px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 10000;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.22); }
.lb-counter {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.55); font-size: 13px; letter-spacing: 0.08em;
  font-family: var(--font-body);
}
@media (max-width: 768px) { .lb-prev { left: 8px; } .lb-next { right: 8px; } }

/* ─────────────────────────────────────────────────────
   13. REVIEWS
   ───────────────────────────────────────────────────── */
.reviews-section { background: var(--color-bg-alt); padding: 80px 0; }
.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px;
}
@media (min-width: 600px) and (max-width: 900px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card {
  background: #fff; padding: 28px 24px;
  box-shadow: 0 1px 0 var(--color-stone-mid), 0 2px 12px rgba(0,0,0,0.04);
  display: flex; flex-direction: column; gap: 12px;
}
.review-stars { color: #f5a623; font-size: 14px; letter-spacing: 2px; }
.review-text { font-size: 14px; color: var(--color-text-light); line-height: 1.75; font-style: italic; flex: 1; }
.review-author { font-size: 13px; font-weight: 600; color: var(--color-dark); }
.review-date, .review-source { font-size: 11px; color: var(--color-text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.reviews-cta { text-align: center; margin-top: 36px; }

/* ─────────────────────────────────────────────────────
   14. LOCATION / SURROUNDINGS
   ───────────────────────────────────────────────────── */
.location-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 8px;
}
@media (max-width: 768px) { .location-grid-3 { grid-template-columns: 1fr; } }

.location-card { position: relative; overflow: hidden; display: block; color: inherit; transition: transform .2s; }
.location-card:hover { transform: translateY(-4px); }
.location-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; margin-bottom: 0; display: block; transition: transform 0.5s ease; }
.location-card:hover img { transform: scale(1.05); }
.location-card h3 {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 20px 18px;
  background: linear-gradient(to top, rgba(10,15,10,0.72) 0%, transparent 100%);
  color: #fff; font-size: 22px; text-align: left; letter-spacing: -0.01em; margin-bottom: 0;
}
@media (max-width: 768px) { .location-card h3 { font-size: 18px; } }

.location-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.location-row--reverse { direction: rtl; }
.location-row--reverse > * { direction: ltr; }
@media (max-width: 768px) { .location-row { grid-template-columns: 1fr; gap: 24px; } .location-row--reverse { direction: ltr; } }

/* ─────────────────────────────────────────────────────
   15. HOMEPAGE BOOKING STRIP FORM
   ───────────────────────────────────────────────────── */
.booking-strip-form {
  display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  justify-content: center; background: #fff;
  border: 1px solid #d9d9d9; border-radius: 10px;
  padding: 24px 32px; max-width: 760px; margin: 0 auto;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.booking-strip-field {
  display: flex; flex-direction: column; gap: 6px; flex: 1 1 160px;
}
.booking-strip-field label {
  font-size: 13px; font-weight: 600; color: #666; text-align: left; letter-spacing: .01em;
}
.booking-strip-field input[type="date"],
.booking-strip-field select {
  border: 1px solid #ccc; border-radius: 6px; padding: 10px 14px;
  font-size: 15px; font-family: var(--font-body); color: var(--color-text);
  background: #fff; height: 46px; width: 100%;
}
.booking-strip-field input[type="date"]:focus,
.booking-strip-field select:focus { outline: 2px solid var(--color-green); border-color: var(--color-green); }
@media (max-width: 640px) {
  .booking-strip-form { flex-direction: column; padding: 20px 16px; }
  .booking-strip-field { flex: none; width: 100%; }
  .btn-reservar { width: 100%; }
}

/* ─────────────────────────────────────────────────────
   16. APARTMENT DETAIL PAGES
   ───────────────────────────────────────────────────── */
.apt-hero {
  height: 65vh; min-height: 420px; max-height: none;
  position: relative; overflow: hidden;
  margin-top: 113px !important; /* top-bar 37px + header 76px */
}
.apt-hero img { width: 100%; height: 100%; object-fit: cover; }
.apt-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 35%, rgba(15,20,15,0.55) 100%);
  display: flex; align-items: flex-end; padding-bottom: 40px;
}
.apt-hero-overlay h1 { color: #fff; font-size: 52px; letter-spacing: -0.03em; }

.apt-booking-bar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 16px 0;
}

.apt-info-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 40px 0; }
@media (max-width: 768px) { .apt-info-grid { grid-template-columns: 1fr; } }

.apt-main h2 { margin-bottom: 16px; }
.apt-main h3 {
  font-size: 22px; margin: 32px 0 16px;
  border-bottom: 2px solid var(--color-stone-mid);
  padding-bottom: 10px;
}
.apt-main p { color: var(--color-text-light); margin-bottom: 16px; }

.apt-features-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 32px; }
.apt-feature-row { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; font-size: 15px; }
.apt-check { color: var(--color-green); font-weight: 700; flex-shrink: 0; }

.apt-sidebar { position: sticky; top: 130px; }
.apt-sidebar-card {
  padding: 24px; background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-green);
  border-radius: 2px;
  margin-bottom: 16px;
}
.apt-sidebar-contact { background: var(--color-bg-alt); }
.apt-facts { margin-bottom: 20px; }
.apt-fact { display: flex; justify-content: space-between; font-size: .9rem; padding: 6px 0; border-bottom: 1px solid var(--color-border); }
.apt-fact-label { color: var(--color-text-light); }
.apt-cta {
  background: var(--color-green); color: #fff !important; display: block;
  text-align: center; padding: 14px; font-weight: 700; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase; transition: background 0.2s;
  width: 100%;
}
.apt-cta:hover { background: var(--color-green-dark) !important; color: #fff !important; }
.apt-best-price { font-size: .78rem; color: var(--color-text-muted); text-align: center; margin-top: 10px; }
.apt-contact-q { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.apt-contact-sub { font-size: .85rem; color: var(--color-text-light); margin-bottom: 12px; }
.apt-contact-link { display: block; font-size: .85rem; font-weight: 600; color: var(--color-green); margin-top: 4px; }
.apt-booking-strip { margin: 0 auto; max-width: 900px; min-height: 80px; }

/* Apartment photo gallery */
.apt-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-top: 8px; margin-bottom: 8px;
}
.apt-gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  transition: transform 0.35s ease;
}
.apt-gallery img:hover { transform: scale(1.03); }
@media (max-width: 768px) { .apt-gallery { grid-template-columns: repeat(2, 1fr); } }

/* "Other apartments" section on apartment pages */
.apartments-grid--3 .apt-card-body::after { content: 'Veure apartament →'; }

@media (max-width: 768px) {
  .apt-hero { margin-top: 76px !important; height: 42vh; }
  .apt-hero-overlay h1 { font-size: 34px; }
}

/* ─────────────────────────────────────────────────────
   17. CONTENT PAGES (surroundings, monastery, etc.)
   ───────────────────────────────────────────────────── */
.content-hero {
  margin-top: 113px; padding: 70px 0 50px;
  background: var(--color-bg-alt); text-align: center;
}
.content-hero h1 { margin-bottom: 12px; }
.content-hero p { color: var(--color-text-light); max-width: 560px; margin: 0 auto; font-size: 16px; }
.content-body { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter); }
.content-body p { margin-bottom: 20px; }
.content-body h2 { margin: 36px 0 14px; }
.content-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 28px 0; }
@media (max-width: 600px) { .content-card-grid { grid-template-columns: 1fr; } }
.content-card { background: #fff; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.content-card-img { aspect-ratio: 16/9; overflow: hidden; }
.content-card-img img { width: 100%; height: 100%; object-fit: cover; }
.content-card-body { padding: 18px; }
.content-card-body h3 { font-size: 18px; margin-bottom: 4px; }
.content-card-body p { font-size: 14px; color: var(--color-text-light); }
.content-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.content-img--wide { margin-top: 40px; max-height: 380px; aspect-ratio: auto; }
.booking-container { max-width: 900px; }

/* Barcelona transport page */
.transport-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.transport-option { background: var(--color-bg-alt); border-radius: 12px; padding: 28px 24px; }
.transport-icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; background: var(--color-green);
  border-radius: 50%; margin-bottom: 16px;
}
.transport-icon i { font-size: 22px; color: #fff; }
.transport-option h2 { font-size: 20px; margin-bottom: 10px; }
.transport-option .link-arrow { display: inline-block; margin-top: 8px; color: var(--color-green); font-weight: 600; }
.transport-option .link-arrow:hover { text-decoration: underline; }

/* Gift voucher page */
.gift-voucher { max-width: 700px; margin: 0 auto; text-align: center; }
.gift-icon { font-size: 5rem; margin-bottom: 24px; }
.gift-voucher h2 { margin-bottom: 16px; }
.gift-voucher p { margin-bottom: 24px; font-size: 1.05rem; }
.gift-voucher .btn-cta { font-size: 1rem; padding: 16px 40px; }

/* Guide download page */
.guia-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 900px; margin: 0 auto; }
.guia-card { background: var(--color-stone-light); border-radius: 12px; padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.guia-card-icon { font-size: 3.5rem; color: var(--color-green); }
.guia-card-title { font-size: 1.2rem; font-weight: 700; color: var(--color-text); }
.guia-card .btn-cta { font-size: 0.9rem; padding: 12px 28px; display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 700px) { .guia-grid { grid-template-columns: 1fr; max-width: 360px; } }

/* ─────────────────────────────────────────────────────
   18. LEGAL PAGES
   ───────────────────────────────────────────────────── */
.legal-content {
  max-width: 780px; margin: 0 auto; padding: 40px 0 60px; line-height: 1.8;
}
.legal-content h2 { font-size: 26px; margin: 48px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--color-stone-mid); }
.legal-content h3 { font-size: 18px; margin: 32px 0 10px; color: var(--color-text); }
.legal-content h4 { font-size: 16px; margin: 24px 0 8px; font-weight: 600; }
.legal-content p { color: var(--color-text-light); margin-bottom: 14px; font-size: 15px; }
.legal-content ul { margin: 12px 0 20px 24px; color: var(--color-text-light); font-size: 15px; }
.legal-content li { margin-bottom: 8px; line-height: 1.7; }
.legal-content a { color: var(--color-green); }
.legal-content a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────────────
   19. CONTACT SECTION
   ───────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { font-size: 24px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--color-stone-mid); }
.contact-info p { font-size: 15px; line-height: 1.8; margin-bottom: 6px; }
.contact-info a { color: var(--color-text); font-weight: 500; }
.contact-info a:hover { color: var(--color-green); }
.contact-social { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--color-stone-mid); }
.contact-social a {
  display: inline-flex; align-items: center; padding: 7px 18px;
  border: 1px solid var(--color-stone-mid); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text);
  transition: all 0.2s; margin-right: 8px;
}
.contact-social a:hover { background: var(--color-green); border-color: var(--color-green); color: #fff; }

/* ─────────────────────────────────────────────────────
   20. FOOTER
   ───────────────────────────────────────────────────── */
.site-footer { background: var(--color-footer-dark); color: rgba(255,255,255,.8); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-logo { height: 50px; margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; margin-top: 12px; max-width: 300px; color: rgba(255,255,255,.5); }
.footer-brand > p > a { color: rgba(255,255,255,.65); }
.footer-brand > p > a:hover { color: #fff; }
.footer-col h4 {
  font-family: var(--font-body) !important; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,.35); margin-bottom: 14px;
}
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: rgba(255,255,255,.6); }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { color: rgba(255,255,255,.7); }
.footer-social a:hover { color: #fff; }
.footer-contact a { color: rgba(255,255,255,.65); }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  background: rgba(255,255,255,0.05); border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 20px; margin: 0;
}
.footer-bottom-inner {
  font-size: 12.5px; color: rgba(255,255,255,.4);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.footer-bottom-inner a { color: rgba(255,255,255,.45); }
.footer-bottom-inner a:hover { color: rgba(255,255,255,.8); }

/* ─────────────────────────────────────────────────────
   21. SECTION HEADING WITH GREEN UNDERLINE
   ───────────────────────────────────────────────────── */
.section h2.text-center { display: block; text-align: center; }
.section h2.text-center::after {
  content: ''; display: block; width: 36px; height: 2px;
  background: var(--color-green); margin: 14px auto 0;
}

/* Instagram CTA strip */
section.section.section--alt:has(h2 a[href*="instagram"]) { padding: 72px 0; background: var(--color-green); }
section.section.section--alt:has(h2 a[href*="instagram"]) h2 { color: #fff; margin-bottom: 28px; }
section.section.section--alt:has(h2 a[href*="instagram"]) h2 a { color: #fff; }
section.section.section--alt:has(h2 a[href*="instagram"]) .btn-outline {
  background: transparent; border: 2px solid rgba(255,255,255,0.7);
  color: #fff; padding: 14px 36px; font-size: 15px; letter-spacing: 0.08em;
}
section.section.section--alt:has(h2 a[href*="instagram"]) .btn-outline:hover {
  background: rgba(255,255,255,0.18); border-color: #fff; color: #fff;
}

/* ─────────────────────────────────────────────────────
   22. ANIMATIONS & ACCESSIBILITY
   ───────────────────────────────────────────────────── */
.animate-in { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.animate-in.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: .1s; }
.stagger-2 { transition-delay: .2s; }
.stagger-3 { transition-delay: .3s; }
.stagger-4 { transition-delay: .4s; }
/* Fallback: reveal after 2s if IntersectionObserver never fires */
.animate-in { animation: reveal-fallback 0s 2s forwards; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .animate-in { opacity: 1 !important; transform: none !important; } }

a:focus-visible, button:focus-visible { outline: 2px solid var(--color-green); outline-offset: 3px; }
