.template-resort {
    --resort-navy: #08284c;
    --resort-ocean: #176d8c;
    --resort-teal: #2c8c8c;
    --resort-sand: #f5f0e8;
    --resort-cream: #fbfaf7;
    --resort-line: #dce5e8;
    color: #16334b;
    background: #fff;
}

.template-resort *, .template-resort *::before, .template-resort *::after { box-sizing: border-box; }
.template-resort img { display: block; max-width: 100%; }
.template-resort a { color: inherit; }
.template-resort main { overflow: hidden; }
.template-resort .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; }

.resort-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: minmax(230px, 1fr) auto minmax(210px, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 78px;
    padding: 10px max(28px, calc((100% - 1440px) / 2));
    border-bottom: 1px solid rgba(8, 40, 76, .09);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 30px rgba(8, 40, 76, .06);
    backdrop-filter: blur(14px);
}

.resort-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--resort-navy); }
.resort-brand > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; background: var(--resort-navy); font: 700 28px/1 Georgia, serif; }
.resort-brand img { width: 70px; height: 50px; object-fit: contain; }
.resort-brand strong { font: 600 clamp(17px, 1.25vw, 22px)/1.05 Georgia, "Times New Roman", serif; letter-spacing: .02em; }
.resort-brand small { display: block; margin-top: 5px; font: 600 8px/1 var(--font-family); letter-spacing: .22em; }
.resort-nav > nav { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 1.55vw, 28px); }
.resort-nav > nav a { position: relative; padding: 27px 0 24px; color: #273d50; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.resort-nav > nav a::after { position: absolute; right: 0; bottom: 12px; left: 0; height: 2px; background: var(--resort-ocean); content: ""; transform: scaleX(0); transition: transform .2s ease; }
.resort-nav > nav a:hover::after, .resort-nav > nav a:focus-visible::after { transform: scaleX(1); }
.resort-nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 15px; }
.resort-phone { color: var(--resort-navy); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.resort-book-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 8px; color: #fff !important; background: var(--resort-navy); font-weight: 600; text-decoration: none; box-shadow: 0 8px 20px rgba(8, 40, 76, .18); }
.resort-nav > details { display: none; position: relative; }

.resort-hero { position: relative; min-height: min(690px, calc(100vh - 78px)); display: grid; align-items: center; isolation: isolate; }
.resort-hero-media, .resort-hero-media img, .resort-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.resort-hero-media img { object-fit: cover; object-position: center 58%; }
.resort-hero-shade { z-index: 1; background: linear-gradient(90deg, rgba(250, 248, 242, .94) 0%, rgba(250, 248, 242, .72) 34%, rgba(250, 248, 242, .08) 67%); }
.resort-hero-copy { position: relative; z-index: 2; width: min(610px, 90%); margin-left: max(28px, calc((100% - 1240px) / 2)); padding: 78px 0 145px; }
.resort-hero-copy > p { margin: 0 0 13px; color: var(--resort-ocean); font-weight: 600; letter-spacing: .04em; }
.resort-hero-copy h1 { max-width: 590px; margin: 0; color: var(--resort-navy); font: 500 clamp(46px, 5.3vw, 82px)/1.13 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.resort-hero-copy > div:not(.resort-hero-actions) { max-width: 540px; margin-top: 25px; color: #304a5d; font-size: 18px; line-height: 1.8; }
.resort-hero-actions { display: flex; gap: 14px; margin-top: 34px; }
.template-resort .site-button { min-height: 49px; border-radius: 7px; color: #fff !important; background: var(--resort-navy); }
.template-resort .site-button-secondary { color: var(--resort-navy) !important; border-color: rgba(8, 40, 76, .35); background: rgba(255, 255, 255, .72); }

.resort-booking { position: relative; z-index: 4; width: min(1180px, calc(100% - 48px)); margin: -76px auto 0; scroll-margin-top: 100px; }
.resort-booking form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; gap: 0; padding: 19px; border: 1px solid rgba(8, 40, 76, .08); border-radius: 13px; background: #fff; box-shadow: 0 18px 44px rgba(20, 47, 70, .15); }
.resort-booking label { display: grid; gap: 6px; min-width: 0; padding: 0 20px; border-right: 1px solid var(--resort-line); }
.resort-booking label span { color: #71818e; font-size: 12px; }
.resort-booking input, .resort-booking select { width: 100%; min-width: 0; height: 36px; padding: 0; border: 0; outline: 0; color: #18344c; background: transparent; font: 500 14px var(--font-family); }
.resort-booking button { min-height: 52px; padding: 0 26px; border: 0; border-radius: 7px; color: #fff; background: var(--resort-navy); font: 600 14px var(--font-family); cursor: pointer; }

.resort-highlight-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; width: min(1360px, calc(100% - 48px)); margin: 30px auto 0; overflow: hidden; border-radius: 12px; background: var(--resort-line); }
.resort-highlight-strip div { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 8px; min-height: 84px; padding: 13px; background: var(--resort-cream); }
.resort-highlight-strip span { color: var(--resort-ocean); font-size: 24px; text-align: center; }
.resort-highlight-strip strong { font-size: 12px; line-height: 1.45; }

.resort-section { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 92px 0; scroll-margin-top: 92px; }
.resort-section-heading { max-width: 730px; margin: 0 auto 42px; text-align: center; }
.resort-section-heading > span, .resort-about-copy > span, .resort-newsletter span { color: var(--resort-ocean); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.resort-section-heading h2, .resort-about h2, .resort-newsletter h2 { margin: 9px 0 10px; color: var(--resort-navy); font: 500 clamp(34px, 3.5vw, 50px)/1.16 Georgia, "Times New Roman", serif; }
.resort-section-heading p { margin: 0; color: #607384; line-height: 1.75; }

.resort-room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.resort-room-card { overflow: hidden; border: 1px solid rgba(8, 40, 76, .1); border-radius: 14px; background: #fff; box-shadow: 0 13px 34px rgba(8, 40, 76, .08); transition: transform .24s ease, box-shadow .24s ease; }
.resort-room-card:hover { transform: translateY(-5px); box-shadow: 0 19px 42px rgba(8, 40, 76, .13); }
.resort-room-image { position: relative; display: block; height: 265px; overflow: hidden; }
.resort-room-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.resort-room-card:hover .resort-room-image img { transform: scale(1.035); }
.resort-room-image span { position: absolute; top: 15px; left: 15px; padding: 7px 11px; border-radius: 99px; color: #fff; background: rgba(6, 27, 50, .78); font-size: 11px; font-weight: 600; }
.resort-room-copy { padding: 22px; }
.resort-room-copy h3 { margin: 0 0 8px; color: var(--resort-navy); font: 600 23px/1.25 Georgia, "Times New Roman", serif; }
.resort-room-copy h3 a { text-decoration: none; }
.resort-room-copy p { min-height: 52px; margin: 0; color: #607384; font-size: 14px; line-height: 1.65; }
.resort-room-meta { margin: 17px 0; padding: 12px 0; border-block: 1px solid var(--resort-line); color: #496478; font-size: 12px; }
.resort-room-bottom { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.resort-room-bottom strong { color: var(--resort-navy); font-size: 18px; }
.resort-room-bottom small { display: block; margin-bottom: 2px; color: #7b8b97; font-size: 10px; font-weight: 500; }
.resort-room-bottom a, .resort-about-copy > a, .resort-promotions article a { padding: 9px 13px; border-radius: 6px; color: #fff; background: var(--resort-navy); font-size: 12px; font-weight: 600; text-decoration: none; }
.resort-view-all { display: table; margin: 32px auto 0; color: var(--resort-navy); font-weight: 600; text-underline-offset: 5px; }

.resort-facilities, .resort-promotions, .resort-reviews { position: relative; }
.resort-facilities::before, .resort-promotions::before, .resort-reviews::before { position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; background: var(--resort-cream); content: ""; transform: translateX(-50%); }
.resort-facility-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.resort-facility-grid article { min-height: 155px; padding: 23px 17px; border: 1px solid #e2e7e8; border-radius: 11px; background: #fff; text-align: center; }
.resort-facility-grid article > span { display: block; color: var(--resort-ocean); font-size: 27px; }
.resort-facility-grid h3 { margin: 11px 0 5px; color: var(--resort-navy); font-size: 14px; }
.resort-facility-grid p { margin: 0; color: #71808c; font-size: 11px; line-height: 1.55; }
.resort-facility-images { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.resort-facility-images img { width: 100%; height: 270px; object-fit: cover; border-radius: 13px; }

.resort-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.resort-service-grid article { overflow: hidden; border: 1px solid rgba(8, 40, 76, .1); border-radius: 13px; background: #fff; box-shadow: 0 10px 28px rgba(8, 40, 76, .06); }
.resort-service-grid article > img { width: 100%; height: 245px; object-fit: cover; }
.resort-service-grid article > div { padding: 22px; }
.resort-service-grid h3 { margin: 0 0 8px; color: var(--resort-navy); font: 600 22px/1.2 Georgia, "Times New Roman", serif; }
.resort-service-grid p { margin: 0; color: #647887; font-size: 14px; line-height: 1.65; }
.resort-promotions article > div > span { color: var(--resort-teal); font-size: 11px; font-weight: 700; }
.resort-promotions article a { display: inline-block; margin-top: 17px; }

.resort-about { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); align-items: center; gap: 72px; }
.resort-about-images { position: relative; min-height: 540px; }
.resort-about-images > img:first-child { width: 88%; height: 500px; object-fit: cover; border-radius: 16px; }
.resort-about-images > img:last-child { position: absolute; right: 0; bottom: 0; width: 47%; height: 235px; object-fit: cover; border: 10px solid #fff; border-radius: 18px; box-shadow: 0 20px 38px rgba(8, 40, 76, .14); }
.resort-about-copy p { color: #5e7383; line-height: 1.85; }
.resort-about-copy ul { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 25px 0 30px; padding: 0; list-style: none; }
.resort-about-copy li { position: relative; padding-left: 25px; color: #334f63; font-size: 14px; }
.resort-about-copy li::before { position: absolute; left: 0; color: var(--resort-teal); content: "✓"; font-weight: 700; }
.resort-about-copy > a { display: inline-block; padding: 12px 17px; }

.resort-gallery { width: min(1440px, calc(100% - 48px)); }
.resort-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 12px; }
.resort-gallery-grid button { position: relative; overflow: hidden; padding: 0; border: 0; border-radius: 10px; background: #dfe9ed; cursor: zoom-in; }
.resort-gallery-grid button:nth-child(1), .resort-gallery-grid button:nth-child(8) { grid-column: span 2; grid-row: span 2; }
.resort-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.resort-gallery-grid button:hover img { transform: scale(1.04); }
.resort-gallery-grid button span { position: absolute; right: 12px; bottom: 12px; left: 12px; padding: 8px; border-radius: 6px; color: #fff; background: rgba(5, 28, 52, .66); font: 500 12px var(--font-family); opacity: 0; transition: opacity .2s ease; }
.resort-gallery-grid button:hover span, .resort-gallery-grid button:focus-visible span { opacity: 1; }

.resort-nearby .resort-service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.resort-nearby .resort-service-grid article > img { height: 205px; }

.resort-review-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 1fr); gap: 20px; overflow-x: auto; padding: 3px 3px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.resort-review-grid blockquote { min-width: 0; margin: 0; padding: 29px; border: 1px solid #e1e8eb; border-radius: 13px; background: #fff; scroll-snap-align: start; }
.resort-review-grid blockquote > div { color: #eda92c; letter-spacing: .12em; }
.resort-review-grid blockquote > p { min-height: 75px; color: #425b6d; line-height: 1.75; }
.resort-review-grid footer { display: flex; align-items: center; gap: 11px; }
.resort-review-grid footer > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: var(--resort-ocean); font-weight: 700; }
.resort-review-grid footer strong { color: var(--resort-navy); font-size: 13px; }
.resort-review-grid footer small { display: block; margin-top: 3px; color: #87949d; font-weight: 400; }

.template-resort .map-section, .template-resort .contact-section { scroll-margin-top: 90px; }
.template-resort .map-section { max-width: none; margin-top: 0; }
.template-resort .contact-section { width: min(1240px, calc(100% - 48px)); margin: 0 auto; border-radius: 18px; }
.template-resort .contact-section h2 { color: var(--resort-navy); font-family: Georgia, "Times New Roman", serif; }
.template-resort .contact-form-card { border-radius: 13px; }
.template-resort .contact-form-card .site-button { border: 0; }

.resort-newsletter { display: grid; grid-template-columns: 1fr minmax(380px, .75fr); align-items: center; gap: 54px; width: min(1240px, calc(100% - 48px)); margin: 82px auto; padding: 40px 46px; border-radius: 16px; color: #fff; background: linear-gradient(115deg, var(--resort-navy), #0d456a); }
.resort-newsletter span { color: #92d6d2; }
.resort-newsletter h2 { margin-bottom: 5px; color: #fff; font-size: 34px; }
.resort-newsletter p { margin: 0; color: rgba(255, 255, 255, .72); }
.resort-newsletter form { display: grid; grid-template-columns: 1fr auto; padding: 5px; border-radius: 8px; background: #fff; }
.resort-newsletter input { min-width: 0; height: 46px; padding: 0 15px; border: 0; outline: 0; font: 14px var(--font-family); }
.resort-newsletter button { padding: 0 19px; border: 0; border-radius: 6px; color: #fff; background: var(--resort-teal); font: 600 13px var(--font-family); cursor: pointer; }

.template-resort .site-footer { background: #061f3b; }
.template-resort .site-footer h2, .template-resort .site-footer h3 { font-family: Georgia, "Times New Roman", serif; }
.resort-toast { position: fixed; z-index: 120; right: 24px; bottom: 24px; max-width: min(420px, calc(100% - 48px)); padding: 15px 18px; border-radius: 9px; color: #fff; background: #0b385c; box-shadow: 0 14px 35px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transform: translateY(18px); transition: opacity .2s ease, transform .2s ease; }
.resort-toast.is-visible { opacity: 1; transform: translateY(0); }

.template-resort.site-subpage main { padding-top: 40px; }
.template-resort.site-subpage .product-detail, .template-resort.site-subpage .collection-archive { width: min(1240px, calc(100% - 48px)); }
.template-resort.site-subpage .product-main-image, .template-resort.site-subpage .product-card { border-radius: 13px; }
.template-resort.site-subpage .product-detail-copy h1, .template-resort.site-subpage .collection-archive h1 { color: var(--resort-navy); font-family: Georgia, "Times New Roman", serif; }

@media (max-width: 1240px) {
    .resort-nav { grid-template-columns: 1fr auto; }
    .resort-nav > nav { display: none; }
    .resort-nav-actions { justify-self: end; }
    .resort-nav > details { display: block; justify-self: end; }
    .resort-nav > details summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--resort-line); border-radius: 7px; color: var(--resort-navy); cursor: pointer; list-style: none; }
    .resort-nav > details nav { position: absolute; top: calc(100% + 12px); right: 0; display: grid; width: min(330px, calc(100vw - 32px)); padding: 12px; border: 1px solid var(--resort-line); border-radius: 10px; background: #fff; box-shadow: 0 18px 35px rgba(8, 40, 76, .18); }
    .resort-nav > details nav a { padding: 11px 13px; border-radius: 6px; text-decoration: none; }
    .resort-nav > details nav a:hover { background: var(--resort-sand); }
    .resort-facility-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .resort-highlight-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .resort-hero { min-height: 650px; }
    .resort-hero-copy { padding-bottom: 170px; }
    .resort-booking form { grid-template-columns: 1fr 1fr; gap: 14px; }
    .resort-booking label { padding: 0 11px 10px; border-right: 0; border-bottom: 1px solid var(--resort-line); }
    .resort-booking button { grid-column: 1 / -1; }
    .resort-room-grid, .resort-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .resort-facility-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .resort-about { gap: 38px; }
    .resort-about-images { min-height: 450px; }
    .resort-about-images > img:first-child { height: 410px; }
    .resort-nearby .resort-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .resort-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .resort-gallery-grid button:nth-child(8) { grid-column: span 1; grid-row: span 1; }
    .resort-newsletter { grid-template-columns: 1fr; gap: 25px; }
}

@media (max-width: 760px) {
    .resort-nav { min-height: 68px; padding: 8px 18px; gap: 10px; }
    .resort-brand strong { font-size: 16px; }
    .resort-brand small, .resort-phone { display: none; }
    .resort-nav-actions { margin-left: auto; }
    .resort-book-button { min-height: 41px; padding: 0 13px; font-size: 12px; }
    .resort-hero { min-height: 620px; }
    .resort-hero-shade { background: linear-gradient(90deg, rgba(250, 248, 242, .92), rgba(250, 248, 242, .45)); }
    .resort-hero-copy { width: calc(100% - 48px); margin-left: 24px; padding: 80px 0 190px; }
    .resort-hero-copy h1 { font-size: clamp(40px, 12vw, 58px); }
    .resort-hero-copy > div:not(.resort-hero-actions) { font-size: 16px; }
    .resort-booking { width: calc(100% - 32px); margin-top: -115px; }
    .resort-highlight-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100% - 32px); }
    .resort-section { width: calc(100% - 32px); padding: 70px 0; }
    .resort-room-grid, .resort-service-grid, .resort-nearby .resort-service-grid { grid-template-columns: 1fr; }
    .resort-room-image { height: 245px; }
    .resort-facility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .resort-facility-images { grid-template-columns: 1fr; }
    .resort-facility-images img { height: 230px; }
    .resort-about { grid-template-columns: 1fr; }
    .resort-about-images { min-height: 430px; }
    .resort-about-images > img:first-child { height: 390px; }
    .resort-about-copy ul { grid-template-columns: 1fr; }
    .resort-gallery { width: calc(100% - 24px); }
    .resort-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 8px; }
    .resort-gallery-grid button:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .resort-gallery-grid button span { opacity: 1; }
    .template-resort .contact-section { width: calc(100% - 32px); }
    .resort-newsletter { width: calc(100% - 32px); margin: 65px auto; padding: 30px 24px; }
}

@media (max-width: 480px) {
    .resort-brand > span { width: 38px; height: 38px; font-size: 22px; }
    .resort-brand strong { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .resort-nav > details summary { width: 40px; height: 40px; }
    .resort-hero-actions { flex-direction: column; align-items: stretch; }
    .resort-hero-actions a { justify-content: center; }
    .resort-booking form { grid-template-columns: 1fr; padding: 15px; }
    .resort-booking button { grid-column: auto; }
    .resort-highlight-strip { grid-template-columns: 1fr 1fr; }
    .resort-highlight-strip div { grid-template-columns: 28px 1fr; padding: 10px; }
    .resort-section-heading h2, .resort-about h2 { font-size: 34px; }
    .resort-facility-grid article { min-height: 145px; padding: 20px 12px; }
    .resort-room-bottom { align-items: center; }
    .resort-gallery-grid { grid-auto-rows: 145px; }
    .resort-about-images { min-height: 350px; }
    .resort-about-images > img:first-child { height: 315px; }
    .resort-about-images > img:last-child { height: 155px; border-width: 6px; }
    .resort-newsletter form { grid-template-columns: 1fr; }
    .resort-newsletter button { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .template-resort *, .template-resort *::before, .template-resort *::after { scroll-behavior: auto !important; transition: none !important; }
}
