/* Orla Galé V9.4 — routing repair + two-photo Apartment section + mobile top navigation */

.mobile-quick-nav,
.mobile-language-menu { display: none; }

/* Home: two clearly distinct apartment photos, with the living room kept close to its native 4:3 framing. */
.home-apartment-visual-stack {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.home-apartment-visual-stack > .visual.home-apartment-main-card {
  min-height: 0 !important;
  aspect-ratio: 4 / 3;
  order: 0 !important;
}
.home-apartment-visual-stack > .visual.home-apartment-main-card img {
  object-position: center !important;
}
.home-apartment-pool-card {
  position: relative;
  height: 170px;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  background: #d9d2c6;
  box-shadow: var(--shadow);
}
.home-apartment-pool-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 82%;
}
.home-apartment-pool-card::after {
  content: "";
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(transparent, rgba(5,27,31,.34));
  pointer-events: none;
}
.home-apartment-pool-card figcaption {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 14px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.90);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* The detailed Apartment page returns to a clean single-photo hero. */
.seo-hero-detail-apartment .seo-hero-image {
  object-position: center 44% !important;
}

@media (max-width: 980px) {
  /* Keep the requested top band and replace Menu by Book Direct. */
  .mobile-menu,
  .seo-mobile-nav { display: none !important; }

  .header-actions > .language-switcher,
  .seo-header-actions > .language-switcher { display: none !important; }

  .header-actions > .button,
  .seo-header-actions > .button,
  .header-actions .header-book-direct,
  .seo-header-actions .header-book-direct {
    display: inline-flex !important;
    min-height: 40px;
    padding: 0 14px;
    font-size: 10px;
    letter-spacing: .035em;
    white-space: nowrap;
  }

  .mobile-language-menu {
    display: block;
    position: relative;
  }
  .mobile-language-menu summary {
    list-style: none;
    min-height: 40px;
    min-width: 42px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
  }
  .mobile-language-menu summary::-webkit-details-marker { display: none; }
  .mobile-language-menu > div {
    position: absolute;
    z-index: 40;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(42px, 1fr));
    gap: 6px;
    width: 132px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    background: rgba(7,31,35,.97);
    box-shadow: 0 20px 50px rgba(0,0,0,.28);
  }
  .mobile-language-menu a {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: rgba(255,255,255,.72);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
  }
  .mobile-language-menu a.active {
    background: rgba(255,255,255,.12);
    color: #fff;
  }

  .mobile-quick-nav {
    position: relative;
    z-index: 4;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.18);
    background: rgba(5,31,35,.76);
    box-shadow: 0 10px 24px rgba(0,0,0,.10);
    backdrop-filter: blur(14px);
  }
  .mobile-quick-nav-inner {
    width: 100%;
    display: flex;
    gap: 5px;
    padding: 8px 14px 9px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-quick-nav-inner::-webkit-scrollbar { display: none; }
  .mobile-quick-nav a {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: rgba(255,255,255,.94);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    text-decoration: none;
  }
  .mobile-quick-nav a.active {
    background: rgba(255,255,255,.96);
    color: var(--sea-deep);
  }

  body { padding-bottom: 0 !important; }
  .consent-banner { bottom: 14px !important; }

  .hero-content { padding-top: 48px !important; }
  .seo-hero-content { padding-top: 62px !important; }

  /* Photos are the first thing shown when the Apartment anchor is selected on mobile/tablet. */
  #apartment > .home-apartment-visual-stack { order: 0; }
  #apartment > .section-copy { order: 1; }
  .home-apartment-pool-card { height: 160px; }
}

@media (max-width: 760px) {
  .home-apartment-visual-stack { gap: 10px; }
  .home-apartment-visual-stack > .visual.home-apartment-main-card {
    border-radius: 20px;
  }
  .home-apartment-pool-card {
    height: 155px;
    border-radius: 20px;
  }
  .home-apartment-pool-card img { object-position: center 84%; }
  .home-apartment-pool-card figcaption {
    left: 12px;
    bottom: 11px;
    padding: 7px 10px;
    font-size: 9px;
  }

  .seo-hero-detail-apartment .seo-hero-image {
    object-position: 46% 44% !important;
  }
}

@media (max-width: 430px) {
  .header-actions,
  .seo-header-actions { gap: 7px !important; }
  .header-actions > .button,
  .seo-header-actions > .button { padding: 0 11px; font-size: 9px; }
  .mobile-quick-nav a { min-height: 40px; padding: 0 12px; font-size: 10px; }
  .home-apartment-pool-card { height: 145px; }
}

/* V9.5 — Apartment gallery framing hotfix.
   The gallery CTA now lands on a compact composition that fits cleanly in
   common laptop/desktop browser viewports instead of cutting the photo grid. */
@media (min-width: 981px) and (max-height: 1050px) {
  #gallery {
    scroll-margin-top: 18px !important;
  }
  #gallery.gallery-section {
    padding-top: clamp(32px, 4vh, 46px) !important;
    padding-bottom: clamp(54px, 6vh, 72px) !important;
  }
  #gallery .gallery-heading {
    gap: 64px !important;
    margin-bottom: 28px !important;
  }
  #gallery .gallery-heading h2 {
    font-size: clamp(46px, 4.3vw, 60px) !important;
    line-height: .98 !important;
  }
  #gallery .gallery-heading > p {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }
  #gallery .photo-grid {
    grid-template-rows: clamp(230px, 27vh, 250px) clamp(230px, 27vh, 250px) !important;
    gap: 16px !important;
  }
  #gallery .photo-tile-1 img {
    object-position: center 46% !important;
  }
}

@media (max-width: 760px) {
  #gallery {
    scroll-margin-top: 14px !important;
  }
  #gallery .gallery-heading {
    margin-bottom: 28px !important;
  }
}
