:root {
  --saints-green: #294b41;
  --saints-cream: #f5f1e8;
  --saints-gold: #cfaa63;
}

html { scroll-behavior: smooth; }
body { font-size: 16px; }
#header { background-color: #1c2e29; background-image: linear-gradient(rgba(10, 25, 22, .58), rgba(15, 15, 20, .72)), url("../../images/saints/saints-ocean-hero.jpg"); background-position: center; background-size: cover; }
body.homepage #header::after { display: none; }
#header .inner { max-width: 900px; }
#header h1 { white-space: nowrap; }
#header h1 a { font-family: "Italiana", Georgia, serif; font-size: clamp(1.8rem, 6vw, 5.2rem); font-weight: 400; letter-spacing: .01em; }
#header .inner header > p { letter-spacing: .2em; text-transform: uppercase; font-size: .9rem; }
#header .inner .hero-line { margin-top: 1.4rem; letter-spacing: .03em; text-transform: none; font-size: 1.15rem; }
#header .island-label { color: var(--saints-gold); font-size: .72rem; margin-bottom: 1rem; }
#header .button { background: var(--saints-gold); }
#nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 10001; background: rgba(28, 32, 29, .93); box-shadow: 0 1px 0 rgba(255,255,255,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#banner, #main, #apartments, #amenities, #location, #contact { scroll-margin-top: 4.5rem; }
#banner strong, .wrapper h2 strong { color: #df7366; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10002; transform: translateY(-200%); background: #fff; color: #111; padding: .6rem 1rem; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--saints-gold); outline-offset: 4px; }

.saints-main-image img { height: min(66vh, 46rem); object-fit: cover; object-position: center 52%; }
.apartment-summary { list-style: none; display: flex; justify-content: center; gap: 0; margin: 2.5rem auto 0; padding: 0; }
.apartment-summary li { min-width: 10rem; padding: 0 2rem; border-left: 1px solid #ddd; text-align: center; }
.apartment-summary li:first-child { border-left: 0; }
.apartment-summary strong, .apartment-summary span { display: block; }
.apartment-summary strong { color: #483949; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.apartment-summary span { color: #8b7f8c; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 5rem; height: 5rem; margin-bottom: 1.7rem; border-radius: 50%; background: #df7366; color: white; font-size: 1.5rem; }
.amenities-row { margin-top: 3rem; }
.amenities-row article { display: flex; flex-direction: column; align-items: center; text-align: center; }
.amenities-row article header, .amenities-row article h3, .amenities-row p { width: 100%; text-align: center; }
.extras-panel { margin-top: 4rem; padding: 3rem; background: var(--saints-green); color: #fff; text-align: center; }
.extras-panel header { max-width: 48rem; margin: 0 auto 2.5rem; }
.extras-panel h3 { margin: .35rem 0 .75rem; color: #fff; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.extras-panel header p { margin: 0; color: rgba(255,255,255,.82); }
.extras-panel .extras-label { color: var(--saints-gold); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.extras-rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 60rem; margin: 0 auto 2.5rem; padding: 0; list-style: none; background: rgba(255,255,255,.18); }
.extras-rates li { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: 1.6rem 1rem; background: #335e51; }
.extras-rates .icon { margin-bottom: .25rem; color: var(--saints-gold); font-size: 2.35rem; line-height: 1; }
.extras-rates strong { color: #fff; font-size: 1.05rem; }
.extras-rates span:last-child { color: rgba(255,255,255,.85); }
.extras-rates b { color: #fff; font-size: 1.35rem; }
.extras-panel .button { background: var(--saints-gold); }
.photo-section { padding-top: 5rem; }
.saints-gallery { position: relative; margin-top: 2.8rem; }
.gallery-track { display: grid; grid-template-columns: 37rem repeat(5, 18rem); grid-template-rows: repeat(2, 12rem); grid-auto-flow: column; grid-auto-columns: 18rem; gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.saints-gallery figure { margin: 0; overflow: hidden; scroll-snap-align: start; }
.saints-gallery figure:first-child { grid-column: 1; grid-row: 1 / 3; }
.gallery-button { display: block; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; cursor: zoom-in; overflow: hidden; }
.saints-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.saints-gallery figure:hover img { transform: scale(1.025); }
.gallery-grid-nav, .lightbox-close, .lightbox-previous, .lightbox-next { display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; line-height: 1; text-align: center; }
.gallery-grid-nav .icon, .lightbox-close .icon, .lightbox-previous .icon, .lightbox-next .icon { display: block; width: auto; height: auto; line-height: 1; }
.gallery-grid-nav { position: absolute; top: 50%; z-index: 2; width: 3rem; height: 3rem; transform: translateY(-50%); background: var(--saints-green); color: #fff; box-shadow: 0 .4rem 1.2rem rgba(0,0,0,.2); }
.gallery-grid-previous { left: -4.25rem; }
.gallery-grid-next { right: -4.25rem; }
.gallery-swipe-hint { display: none; }
.gallery-lightbox { position: fixed; inset: 0; box-sizing: border-box; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 4rem; border: 0; background: transparent; overflow: hidden; }
.gallery-lightbox[open] { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 3rem; grid-template-rows: minmax(0, 1fr) auto; column-gap: 2rem; place-items: center; }
.gallery-lightbox::backdrop { background: rgba(12, 15, 14, .9); }
.gallery-lightbox img { display: block; grid-column: 2; grid-row: 1; max-width: 100%; max-height: calc(100vh - 9rem); margin: auto; object-fit: contain; box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, .45); }
.gallery-lightbox p { grid-column: 1 / 4; grid-row: 2; margin: .8rem 3rem 0; color: #fff; text-align: center; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; background: rgba(20,20,20,.7); color: #fff; font-size: 1rem; }
.lightbox-previous, .lightbox-next { position: static; z-index: 1; width: 3rem; height: 3rem; background: rgba(20,20,20,.72); color: #fff; font-size: 1rem; }
.lightbox-previous { grid-column: 1; grid-row: 1; }
.lightbox-next { grid-column: 3; grid-row: 1; }
.location-panel { max-width: 1200px; }
.location-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: center; }
.map-frame { position: relative; height: 32rem; overflow: hidden; background: #e5e5e5; }
.map-frame iframe { display: block; width: 100%; height: calc(32rem + 2.4rem); border: 0; }
.map-attribution { position: absolute; right: .4rem; bottom: .35rem; z-index: 1; padding: .18rem .35rem; background: rgba(255,255,255,.9); color: #333; font-size: .68rem; line-height: 1.2; }
.location-copy { text-align: left; }
.location-copy header { text-align: left; }
.location-panel address { margin: 2rem 0; font-style: normal; font-size: 1.1rem; }
#footer a { color: #fff; }
#footer h3 { color: #fff; }
#footer .row > section { text-align: center; }
.contact-heading { margin-bottom: 2.5rem; text-align: center; }
.contact-heading p { margin: 0 0 .45rem; color: var(--saints-gold); font-size: .78rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
#footer .contact-heading h2 { margin: 0; color: #fff; font-family: Georgia, serif; font-size: 2.25rem; font-weight: 400; }
.footer-contact-row { align-items: stretch; }
.footer-contact-row .contact-card { display: flex; align-items: stretch; }
#footer .contact-action { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; min-height: 18rem; padding: 2.5rem 1rem; border: 1px solid rgba(255,255,255,.2); background: #31584c; color: #fff; text-decoration: none; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
#footer .contact-card:nth-child(2) .contact-action { background: #3d4c48; }
#footer .contact-action:hover { transform: translateY(-4px); border-color: var(--saints-gold); background: #3b695b; }
.contact-action header { height: 6rem; margin: 0 0 1rem; display: flex; align-items: center; }
.contact-action .circled { background: var(--saints-gold); color: #242025; }
.contact-action h3 { margin: 0 0 .65rem; font-size: 1.45rem; }
.contact-action p { margin: 0; color: #fff; font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }
#navPanel::before { background: none; }

@media screen and (max-width: 736px) {
  #header .inner .hero-line { font-size: 1rem; }
  #header .island-label { font-size: .66rem; }
  #header h1 a { font-size: clamp(1.65rem, 7.5vw, 2.7rem); }
  .saints-main-image img { height: 22rem; }
  .gallery-track { grid-template-columns: 72vw repeat(5, 72vw); grid-template-rows: repeat(2, 9rem); grid-auto-columns: 72vw; gap: .75rem; }
  .saints-gallery figure:first-child { grid-column: 1; grid-row: 1 / 3; }
  .gallery-grid-nav { top: auto; bottom: -3.75rem; transform: none; }
  .gallery-grid-previous { left: 0; }
  .gallery-grid-next { right: 0; }
  .gallery-swipe-hint { position: absolute; bottom: -3.15rem; left: 50%; display: flex; align-items: center; gap: .45rem; margin: 0; transform: translateX(-50%); color: var(--saints-green); font-size: .8rem; font-weight: 600; white-space: nowrap; }
  .photo-section { padding-bottom: 8rem; }
  .gallery-lightbox { padding: 4rem .75rem 2rem; }
  .gallery-lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto auto; gap: .75rem; }
  .gallery-lightbox img { grid-column: 1 / 3; grid-row: 1; max-height: calc(100vh - 12rem); }
  .gallery-lightbox p { grid-column: 1 / 3; grid-row: 3; margin-top: 0; }
  .lightbox-previous, .lightbox-next { width: 2.75rem; height: 2.75rem; }
  .lightbox-previous { grid-column: 1; grid-row: 2; justify-self: end; }
  .lightbox-next { grid-column: 2; grid-row: 2; justify-self: start; }
  .location-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .map-frame { min-height: 24rem; height: 24rem; }
  .map-frame iframe { min-height: calc(24rem + 2.4rem); height: calc(24rem + 2.4rem); }
  .location-copy, .location-copy header { text-align: center; }
  .extras-panel { margin-top: 3rem; padding: 2.2rem 1.25rem; }
  .extras-rates { grid-template-columns: 1fr; }
  #footer .contact-heading h2 { font-size: 1.8rem; }
  #footer .contact-action { min-height: 14rem; }
  #navButton { z-index: 10005; background: rgba(28, 32, 29, .96); box-shadow: 0 1px 0 rgba(255,255,255,.12); }
  #navPanel { z-index: 10006; }
  .saints-main-image { position: relative; z-index: 0; }
  .apartment-summary li { min-width: 0; padding: 0 1rem; flex: 1; }
  .apartment-summary strong { font-size: 1.6rem; }
  .apartment-summary span { font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
