/* ============================================================
   Halcyon Court – custom image sizing consistency
   ============================================================ */

/* Unit / room card images — grid and carousel thumbnails */
.hc-unit-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Larger card images (rooms.html hero cards) */
.hc-unit-img-lg {
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Agent / team portrait photos (circular) */
.hc-agent-circle {
    width: 160px;
    height: 160px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

/* Agent portrait — non-circular (full-width col) */
.hc-agent-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
    border-radius: 4px;
    display: block;
}

/* Nearby / facilities cards */
.hc-nearby-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Gallery / filterable grid images */
.hc-gallery-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Overview collage images */
.hc-collage-main {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 4px;
}
.hc-collage-secondary {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 4px;
}

/* YouTube tour thumbnail */
.hc-tour-thumb {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Amenity panel photos (home-v4 4-panel strip) */
.hc-amenity-panel-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Carousel unit images (owl/swiper carousel) */
.hc-carousel-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ============================================================
   Nav dropdown hover — brand red bg + white text
   style.css sets color:#fff on hover but the dropdown panel
   background is white (#mainmenu ul { background:#ffffff }),
   making text invisible. Sub-items use bare <a> (no .menu-item
   class) so coloring.css's red-bg rule doesn't fire for them.
   This rule covers both cases at the same specificity level,
   loading after style.css so it wins.
   ============================================================ */
#mainmenu li li a:hover,
#mainmenu ul li:hover > a {
    background: var(--primary-color);
    color: #ffffff;
}

/* ============================================================
   #B07E50 (warm bronze) on dark backgrounds:
   contrast vs #111 ≈ 5.6:1 — WCAG AA pass for all text sizes.
   No override needed; var(--primary-color) is readable on dark.
   ============================================================ */

/* ============================================================
   Scrolled nav background — desktop and mobile
   header.smaller is the class toggled by the scroll listener on
   all viewport widths. Overrides both header.smaller (--bg-dark-1)
   and header.header-mobile (--heading-font-color/black) in style.css,
   which share the same specificity but conflict at different lines.
   ============================================================ */
header.smaller {
  background: #35404e !important;
}

/* ============================================================
   Mobile nav — transparent at top, solid (#35404e) on scroll
   Mirrors desktop .smaller behavior. Breakpoint matches the JS
   enquire threshold (993px) where header.header-mobile is toggled.
   ============================================================ */
@media only screen and (max-width: 992px) {
  /* Always keep nav pinned to top regardless of scroll state. */
  header,
  header.header-mobile,
  header.header-bg,
  header.fixed {
    position: fixed !important;
    top: 0 !important;
  }

  /* Transparent only at the top of the page (not scrolled).
     When .smaller is added by the scroll listener the header.smaller
     rule above (#35404e) takes over — matching desktop's scrolled
     appearance exactly. */
  header:not(.smaller),
  header.header-mobile:not(.smaller),
  header.header-bg:not(.smaller),
  header.fixed:not(.smaller) {
    background: transparent !important;
  }

  /* "HALCYON" (bronze) + "COURT" (white) — stronger shadows so
     both colours read over any hero image brightness. */
  .hc-logo-halcyon {
    text-shadow: 0 1px 6px rgba(0,0,0,0.9), 0 2px 14px rgba(0,0,0,0.6) !important;
  }
  .hc-logo-court {
    text-shadow: 0 1px 6px rgba(0,0,0,0.9), 0 2px 14px rgba(0,0,0,0.6) !important;
  }

  /* Hamburger icon — drop-shadow for visibility on any background */
  #menu-btn {
    filter: drop-shadow(0 1px 5px rgba(0,0,0,0.95));
  }

  /* Mobile nav dropdown panel — needs its own dark background
     since the header bar itself is now transparent */
  #mainmenu {
    background: rgba(12, 12, 12, 0.95);
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 0 0 8px 0;
  }
}
