:root{--ink:#243d38;--green:#244a40;--cream:#f6f4ed;--line:#d9dfd7;--muted:#626f68}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:95px}body{margin:0;background:var(--cream);color:var(--ink);font-family:"Microsoft YaHei","PingFang SC",sans-serif;font-size:16px;line-height:1.85}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #b46a30;outline-offset:5px}.skip{position:fixed;top:-100px;z-index:10;background:white;padding:10px}.skip:focus{top:0}header{height:94px;padding:0 5%;display:flex;align-items:center;justify-content:space-between;background:var(--cream)}.brand b{display:block;font-family:serif;font-size:23px;letter-spacing:2px}.brand small{display:block;font-size:12px;letter-spacing:2px}nav{display:flex;gap:36px;font-size:15px}.nav-cta{border:1px solid var(--green);border-radius:30px;padding:9px 24px;font-size:14px}.hero{position:relative;min-height:730px;height:calc(100svh - 94px);max-height:960px;color:white;display:flex;align-items:center}.hero-photo,.hero-shade{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero-shade{background:linear-gradient(90deg,rgba(8,30,26,.69),rgba(8,30,26,.12)),linear-gradient(0deg,rgba(8,30,26,.3),transparent 35%)}.hero-content{position:relative;z-index:1;padding:45px 7%;max-width:900px}.eyebrow{font-size:13px;letter-spacing:2.5px;font-weight:bold;margin:0 0 21px}.hero h1{font-family:"Songti SC","SimSun",serif;font-size:clamp(38px,4.3vw,68px);font-weight:500;line-height:1.4;letter-spacing:3px;margin:0 0 25px}.hero-desc{font-size:17px;line-height:1.9;color:#f3f4f0}.hero-tags{display:flex;gap:20px;font-size:14px;margin:26px 0}.hero-tags span{border-bottom:1px solid #ffffff70;padding-bottom:5px}.button{display:inline-block;padding:13px 27px;border-radius:30px;font-weight:600;font-size:15px;line-height:1.6}.light{background:var(--cream);color:var(--ink)}.dark{background:var(--green);color:white}.outline{border:1px solid var(--green)}.hero-bottom{position:absolute;bottom:24px;left:7%;right:7%;display:flex;justify-content:space-between;font-size:12px;letter-spacing:1px;opacity:.8}.section{max-width:1360px;margin:auto;padding:100px 6%;scroll-margin-top:20px}h2{font-family:"Songti SC","SimSun",serif;font-weight:500;line-height:1.55;font-size:clamp(30px,3vw,45px);letter-spacing:1px;margin:0 0 27px}h3{font-size:21px;line-height:1.5;margin:16px 0}p{margin:0 0 20px}.intro{display:grid;grid-template-columns:1fr 1.2fr;gap:80px}.lead{font-size:19px}.facts{display:flex;gap:40px;border-top:1px solid var(--line);padding-top:25px;margin-top:32px}.facts b{display:block;font-size:24px;font-family:serif}.facts span{font-size:14px;color:var(--muted)}.source-note{font-size:13px;color:var(--muted);line-height:1.8;margin-top:22px}.gallery-section{padding-top:30px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:25px}.muted{font-size:13px;color:var(--muted);padding-bottom:28px}.filters{display:flex;gap:10px;flex-wrap:wrap;margin:5px 0 30px}.filters button{border:1px solid var(--line);background:none;border-radius:25px;padding:8px 21px;font-size:14px;color:var(--ink)}.filters button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:27px 22px}.photo{border:0;padding:0;text-align:left;background:transparent;color:var(--ink)}.photo img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:4px;display:block}.photo span{display:block;font-size:14px;padding:10px 0}.feature{display:grid;grid-template-columns:1fr 1fr;background:#e8ece3}.feature>img{width:100%;height:100%;min-height:550px;object-fit:cover}.feature>div{padding:70px 12%}.amenities{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:14px}.amenities li{border-bottom:1px solid #ccd4c8;padding:8px 0}.area-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:36px;margin-top:25px}.area-grid article{border-top:1px solid var(--line);padding-top:26px}.number{font-size:13px;color:var(--muted);letter-spacing:1px}.area-grid p{font-size:15px}.text-link{font-size:14px;border-bottom:1px solid var(--ink);padding-bottom:3px}.stay{background:#e8ece3;max-width:none;padding-left:max(6%,calc((100vw - 1197px)/2));padding-right:max(6%,calc((100vw - 1197px)/2));display:grid;grid-template-columns:1fr 1fr;gap:80px}.faq details{border-top:1px solid #c4cec3;padding:21px 0}.faq details:last-child{border-bottom:1px solid #c4cec3}.faq summary{cursor:pointer;font-size:17px}.faq p{font-size:14px;margin:18px 0 0;color:#4f6055}footer{background:#203c34;color:#edf0e8;padding:45px 6%;display:flex;justify-content:space-between;gap:25px;font-size:13px}footer b{font-size:21px;font-family:serif}footer p{margin:8px 0}.mobile-bar{display:none}dialog{border:0;background:#132820;color:white;padding:48px 25px 20px;width:min(1000px,95vw);max-height:95svh}dialog::backdrop{background:#000b}dialog>img{display:block;max-height:72svh;max-width:100%;margin:auto;object-fit:contain}.close{position:absolute;top:3px;right:12px;background:transparent;color:white;border:0;font-size:30px;width:44px;height:44px}.viewer-controls{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:18px}.viewer-controls p{font-size:14px;margin:0;text-align:center}.viewer-controls button{background:transparent;color:white;border:1px solid #a6b9ad;border-radius:24px;padding:8px 16px;font-size:14px;white-space:nowrap}button:hover,.button:hover{filter:brightness(.95)}@media(max-width:760px){header{height:78px;padding:0 5%}nav{display:none}.brand b{font-size:18px}.brand small{font-size:10px;letter-spacing:1px}.nav-cta{font-size:13px;padding:7px 16px}.hero{min-height:680px;height:calc(100svh - 78px)}.hero-photo{object-position:55% center}.hero-shade{background:linear-gradient(0deg,#102e29c9,rgba(10,25,20,.2))}.hero-content{padding:60px 6% 100px;align-self:end}.hero h1{font-size:36px;letter-spacing:1px}.hero-desc{font-size:15px}.hero-tags{font-size:13px;gap:18px}.hero-bottom{font-size:10px;bottom:22px;left:6%;right:6%}.section{padding:65px 6%}.intro,.stay{grid-template-columns:1fr;gap:25px}.intro h2 br{display:none}.lead{font-size:17px}.facts{gap:30px}.section-heading{display:block}.muted{display:block;padding-bottom:15px}.gallery{grid-template-columns:repeat(2,1fr);gap:18px 12px}.photo span{font-size:13px}.filters{gap:7px}.filters button{padding:7px 14px;font-size:13px}.feature{grid-template-columns:1fr}.feature>img{min-height:0;aspect-ratio:4/3}.feature>div{padding:45px 6%}.area-grid{grid-template-columns:1fr;gap:32px}.stay{padding:60px 6%}.stay h2 br{display:none}footer{display:block;padding-bottom:110px}.mobile-bar{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:3;background:#f6f4edf5;border-top:1px solid var(--line);padding:10px 15px calc(10px + env(safe-area-inset-bottom));gap:10px}.mobile-bar a{flex:1;text-align:center;border:1px solid var(--green);border-radius:25px;font-size:14px;padding:8px}.mobile-bar a:last-child{background:var(--green);color:white}.viewer-controls{gap:7px}.viewer-controls button{padding:7px 10px;font-size:12px}dialog{padding:48px 10px 18px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.language{font-size:14px;border-bottom:1px solid currentColor;white-space:nowrap}html[lang=en] .hero h1{font-family:Georgia,serif;letter-spacing:0;line-height:1.15}html[lang=en] h2{font-family:Georgia,serif;letter-spacing:0;line-height:1.25}html[lang=en] .brand b{letter-spacing:0;font-size:21px}@media(max-width:760px){html[lang=en] .brand b{font-size:15px}html[lang=en] .brand small{font-size:9px}html[lang=en] .nav-cta{display:none}html[lang=en] .hero h1{font-size:43px}html[lang=en] .hero-tags{gap:10px;font-size:12px}html[lang=en] .hero-desc{font-size:15px}}
@media(max-width:760px){html[lang=zh-CN] .hero h1{font-size:32px;letter-spacing:0}}

.gallery-explainer{color:var(--muted);font-size:14px;max-width:850px}.group-card{background:#fff9;padding-bottom:18px;border:1px solid var(--line);border-radius:5px;overflow:hidden}.group-card .photo{display:block;width:100%}.group-card .photo img{border-radius:0}.group-card h3{font-size:19px;margin:17px 18px 8px}.bed-detail{font-size:14px;color:var(--muted);margin:0 18px 15px}.group-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 18px}.group-controls button{font-size:13px;padding:6px 10px;border:1px solid var(--line);border-radius:20px;background:transparent;color:var(--ink)}.group-controls span{font-size:13px;color:var(--muted)}@media(max-width:760px){.gallery{grid-template-columns:1fr}.group-card h3{font-size:20px}.group-controls button{padding:8px 16px;font-size:14px}.group-card .photo img{aspect-ratio:3/2}}

.bathroom-layout{margin-top:30px;border-top:1px solid var(--line);padding-top:10px}.bathroom-layout h3{font-family:serif;font-size:24px}.bathroom-layout p{font-size:15px}.bathroom-layout ul{padding-left:20px;font-size:15px;line-height:2}

/* Preserve the sea on the left of the terrace photograph on narrow screens. */
.hero-photo{object-position:left center}
@media(max-width:760px){.hero-photo{object-position:left center}}
.hero{justify-content:flex-end}
.hero-content{margin-left:auto;width:56%;max-width:800px;padding:45px 5%;text-align:left}
.hero-shade{background:linear-gradient(270deg,rgba(8,30,26,.76),rgba(8,30,26,.4) 44%,rgba(8,30,26,.04) 75%),linear-gradient(0deg,rgba(8,30,26,.22),transparent 30%)}
@media(max-width:760px){.hero-content{width:100%;max-width:none;padding:60px 6% 100px;text-align:right}.hero-tags{justify-content:flex-end}.hero-shade{background:linear-gradient(0deg,rgba(8,30,26,.86),rgba(8,30,26,.48) 32%,transparent 63%)}}

.hero-tags{flex-wrap:wrap;row-gap:10px}

.hero-gallery{margin-top:26px}.hero-gallery-label{font-size:15px;font-weight:600;margin:0 0 12px;color:#fff}.hero-gallery-links{display:flex;flex-wrap:wrap;gap:9px;font-size:14px}.hero-gallery-links a{display:inline-block;padding:8px 16px;border:1px solid #ffffff85;border-radius:24px;background:rgba(16,39,33,.32);color:#fff;line-height:1.5;transition:background .15s}.hero-gallery-links a:hover{background:rgba(16,39,33,.65)}.hero-gallery-links a:focus-visible{outline:3px solid #fff;outline-offset:3px}@media(max-width:760px){.hero-gallery-links{display:flex;justify-content:flex-end;gap:8px}.hero-gallery-links a{font-size:13px;padding:8px 13px}}

/* Desktop first screen follows the browser viewport rather than a fixed poster height. */
@media(min-width:761px){
 :root{--desktop-header-height:clamp(64px,9svh,84px)}
 header{height:var(--desktop-header-height);gap:20px;padding-inline:4%}
 header nav{gap:clamp(16px,2.4vw,36px)}
 .brand{flex-shrink:0}.language,.nav-cta{flex-shrink:0}
 .hero{height:calc(100svh - var(--desktop-header-height));min-height:0;max-height:none;align-items:center}
 .hero-photo{object-position:left center}
 .hero-content{width:60%;max-width:850px;margin-left:auto;padding:clamp(20px,3.5svh,44px) clamp(30px,4vw,80px) clamp(50px,7svh,76px);min-width:0}
 .hero .eyebrow{font-size:clamp(11px,1vw,13px);letter-spacing:2px;margin-bottom:clamp(10px,1.8svh,20px)}
 .hero h1,html[lang=en] .hero h1{font-size:clamp(34px,min(4.2vw,5.8svh),64px);line-height:1.25;margin-bottom:clamp(12px,2.2svh,25px)}
 .hero-desc,html[lang=en] .hero-desc{font-size:clamp(13px,1.15vw,17px);line-height:1.75;margin-bottom:0}
 .hero-gallery{margin-top:clamp(14px,2.5svh,26px)}
 .hero-gallery-label{font-size:14px;margin-bottom:10px;line-height:1.5}
 .hero-gallery-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-width:570px}
 .hero-gallery-links a{display:flex;justify-content:center;align-items:center;text-align:center;min-height:38px;padding:8px 7px;font-size:clamp(12px,.95vw,14px);white-space:nowrap}
 .hero-bottom{bottom:18px;left:4%;right:4%;gap:20px;font-size:11px}
}
@media(min-width:761px) and (max-width:1100px){
 header{gap:14px}.brand b,html[lang=en] .brand b{font-size:19px;letter-spacing:0}.brand small{font-size:10px;letter-spacing:1.4px}
 header nav{gap:18px;font-size:13px}.language{font-size:13px}.nav-cta{font-size:13px;padding:7px 16px}
 .hero-content{width:62%;padding-inline:32px}
 .hero-gallery-links a{font-size:12px;padding-inline:5px}
}
@media(min-width:761px) and (max-height:650px){
 .hero-content{padding-top:18px;padding-bottom:48px}
 .hero .eyebrow{font-size:11px;margin-bottom:10px}
 .hero h1,html[lang=en] .hero h1{font-size:clamp(28px,5.7svh,36px);line-height:1.2;margin-bottom:14px}
 .hero-desc,html[lang=en] .hero-desc{font-size:13px;line-height:1.6}
 .hero-gallery{margin-top:16px}.hero-gallery-label{font-size:13px;margin-bottom:8px}
 .hero-gallery-links{gap:7px}.hero-gallery-links a{min-height:32px;padding-block:6px;font-size:12px}
 .hero-bottom{bottom:12px;font-size:10px}
}
@media(min-width:761px) and (max-height:450px){
 .hero{height:auto;min-height:calc(100svh - var(--desktop-header-height))}
}

.hero-map-links{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:18px;font-size:13px;line-height:1.6}
.hero-map-links span{color:#f3f4f0cc;font-size:12px}.hero-map-links a{color:white;border-bottom:1px solid #ffffff90;padding:3px 0}.hero-map-links a:hover{border-bottom-color:#fff}
.area-map-links{display:flex;flex-wrap:wrap;gap:12px}.area-map-links .button{padding:11px 22px}
@media(max-width:760px){.hero-map-links{display:flex;justify-content:flex-end;margin-top:14px;gap:8px 14px}}
@media(min-width:761px) and (max-height:650px){.hero-map-links{margin-top:9px;font-size:12px;gap:8px 14px}.hero-map-links a{padding-block:2px}}

/* One clear set of main navigation buttons replaces duplicate hero links. */
header{position:sticky;top:0;z-index:10;box-shadow:0 1px 0 rgba(36,74,64,.12)}
header>.primary-nav{display:flex;align-items:center;gap:10px}
header>.primary-nav>a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 17px;border:1px solid #b4c3b8;border-radius:24px;background:#e8ece3;color:var(--green);font-size:15px;font-weight:600;line-height:1.4;white-space:nowrap}
header>.primary-nav>a[href="#photos"]{background:var(--green);color:#fff;border-color:var(--green)}
header>.primary-nav>a:hover{background:#dce4da}header>.primary-nav>a[href="#photos"]:hover{background:#193f35}
@media(min-width:761px) and (max-width:1100px){header>.primary-nav{gap:7px}header>.primary-nav>a{font-size:13px;padding:8px 11px}}
@media(max-width:760px){
 header{height:auto;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px 14px;padding:12px 5%}
 header>.brand{grid-column:1;grid-row:1}header>.language{grid-column:2;grid-row:1;justify-self:end}
 header>.nav-cta{grid-column:3;grid-row:1;padding:6px 12px;font-size:12px}
 header>.primary-nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 header>.primary-nav>a{font-size:13px;padding:8px 6px;min-height:38px}
 html{scroll-padding-top:140px}.hero{height:calc(100svh - 118px)}
}

/* Equal visual weight, a little more space, and a tactile button edge. */
header>.primary-nav{gap:16px}
header>.primary-nav>a,header>.primary-nav>a[href="#photos"]{background:#e8ece3;color:var(--green);border:1px solid #afc0b4;box-shadow:0 2px 3px rgba(36,74,64,.09);transition:background .15s,box-shadow .15s,transform .15s}
header>.primary-nav>a:hover,header>.primary-nav>a[href="#photos"]:hover{background:#dce5d9;box-shadow:0 3px 5px rgba(36,74,64,.13);transform:translateY(-1px)}
header>.primary-nav>a:active{transform:translateY(1px);box-shadow:0 1px 2px rgba(36,74,64,.1)}
@media(min-width:761px) and (max-width:1100px){header>.primary-nav{gap:13px}}
@media(max-width:760px){header>.primary-nav{gap:12px}}
@media(prefers-reduced-motion:reduce){header>.primary-nav>a{transition:none}header>.primary-nav>a:hover{transform:none}}

/* Separate map actions from the introduction and make them easy to spot. */
.hero-map-links{margin-top:34px;gap:12px 14px;align-items:center}
.hero-map-links>span{display:block;flex-basis:100%;font-size:13px;font-weight:600;color:#fff;letter-spacing:.5px}
.hero-map-links>a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 22px;border:1px solid #f6f4ed;border-radius:24px;background:#f6f4ed;color:var(--green);font-size:14px;font-weight:600;line-height:1.5;box-shadow:0 2px 6px #10272125}
.hero-map-links>a:hover{background:#e4eadf;border-color:#e4eadf}
.hero-map-links>a:focus-visible{outline:3px solid #fff;outline-offset:4px}
@media(min-width:761px) and (max-height:650px){.hero-map-links{margin-top:26px;gap:9px 13px}.hero-map-links>a{min-height:38px;padding:8px 19px;font-size:13px}}
@media(max-width:760px){.hero-map-links{margin-top:28px;gap:10px 12px}.hero-map-links>a{padding:9px 19px}.hero-map-links>span{text-align:right}}

.sintra-overview{margin-top:48px;padding:30px 34px;background:#e8ece3;border-radius:8px}
.sintra-overview h3{font-family:serif;font-size:28px;margin:0 0 18px}.sintra-overview .eyebrow{margin-bottom:10px}.sintra-overview>p:not(.eyebrow){max-width:1000px}
.destination-links{display:flex;flex-wrap:wrap;gap:14px 26px}.palace-heading{margin-top:48px}.palace-heading .eyebrow{margin-bottom:10px}.palace-heading h3{font-family:serif;font-size:28px;margin:0}.palace-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.area-grid .place-local-name{font-size:13px;color:var(--muted);margin-top:-9px;margin-bottom:16px}
@media(max-width:760px){.sintra-overview{padding:24px;margin-top:32px}.sintra-overview h3,.palace-heading h3{font-size:24px}.palace-heading{margin-top:34px}.palace-grid{grid-template-columns:1fr}}

/* Real attraction photography, with visible source and licence credits. */
.palace-grid>article{min-width:0}.destination-photo{margin:0 0 25px}.destination-photo>a{display:block;border-radius:7px;overflow:hidden;background:#e8ece3}.destination-photo img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}.destination-photo figcaption{margin-top:8px;min-height:36px;font-size:10px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}.destination-photo figcaption a{text-underline-offset:3px}.destination-photo>a:focus-visible{outline:3px solid var(--green);outline-offset:4px}
@media(max-width:760px){.destination-photo{margin-bottom:20px}.destination-photo figcaption{min-height:0}}

.palace-grid .palace-story-title{font-size:16px;font-weight:700;line-height:1.7;color:var(--green);margin:20px 0 12px}.palace-grid .palace-recognition{padding:14px 16px;background:#e8ece3;border-left:3px solid #78998b;border-radius:0 5px 5px 0;font-size:13px;line-height:1.8}.story-reference{display:block;margin-top:6px;font-size:11px;text-underline-offset:3px}

/* Fill the visible screen using the actual navigation height, including mobile browser chrome. */
:root{--site-header-height:var(--desktop-header-height,84px);--mobile-actions-height:0px}
html{scroll-padding-top:calc(var(--site-header-height) + 16px)}
.hero{height:auto;min-height:calc(100svh - var(--site-header-height));max-height:none}
@supports(height:100dvh){.hero{min-height:calc(100dvh - var(--site-header-height))}}
.hero-photo{object-fit:cover;width:100%;height:100%}
@media(max-width:760px){
 :root{--site-header-height:128px;--mobile-actions-height:68px}
 .hero{align-items:center}
 .hero-content{align-self:center;padding:24px 6% calc(var(--mobile-actions-height) + 60px);width:100%;min-width:0}
 .hero .eyebrow{font-size:11px;letter-spacing:1.4px;margin-bottom:16px}
 .hero h1,html[lang=zh-CN] .hero h1,html[lang=en] .hero h1{font-size:clamp(28px,7.5vw,39px);line-height:1.3;margin-bottom:18px}
 .hero-desc,html[lang=en] .hero-desc{font-size:14px;line-height:1.8;margin-bottom:0}
 .hero-map-links{margin-top:24px}
 .hero-bottom{bottom:calc(var(--mobile-actions-height) + 16px);font-size:9px;gap:12px}
}
@media(max-width:760px) and (max-height:650px){
 .hero-content{padding-top:20px;padding-bottom:calc(var(--mobile-actions-height) + 48px)}
 .hero .eyebrow{margin-bottom:10px;font-size:10px}
 .hero h1,html[lang=zh-CN] .hero h1,html[lang=en] .hero h1{font-size:28px;margin-bottom:12px}
 .hero-desc,html[lang=en] .hero-desc{font-size:13px;line-height:1.65}
 .hero-map-links{margin-top:18px;gap:8px 10px}.hero-map-links>a{padding:8px 17px;min-height:38px}
}

.language-switch{display:flex;align-items:center;gap:10px;flex-shrink:0;font-size:12px;white-space:nowrap}.language-switch>a{padding:5px 0;border-bottom:1px solid transparent}.language-switch>a[aria-current=page]{font-weight:700;border-bottom-color:currentColor}.language-switch>a:hover{border-bottom-color:currentColor}html[lang=pt-PT] .hero h1{font-family:Georgia,serif;letter-spacing:0;line-height:1.2}html[lang=pt-PT] h2{font-family:Georgia,serif;letter-spacing:0}html[lang=pt-PT] .brand b{font-size:21px;letter-spacing:0}@media(min-width:761px) and (max-width:1100px){header{gap:10px}header>.primary-nav{gap:9px}.language-switch{gap:8px;font-size:11px}html[lang=pt-PT] .brand b{font-size:18px}html[lang=pt-PT] .primary-nav>a{padding-inline:10px}}@media(max-width:760px){header{grid-template-columns:minmax(0,1fr) auto;gap:10px}.language-switch{grid-column:2;grid-row:1;gap:9px;font-size:11px}header>.nav-cta{display:none}html[lang=pt-PT] .brand b{font-size:15px}html[lang=pt-PT] .brand small{font-size:9px}html[lang=pt-PT] .primary-nav>a{font-size:12px}}

/* Beach maps and the owner's restaurant recommendation belong to Praia Grande. */
.coast-guide-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:36px}.beach-guide>.area-map-links,.azenhas-guide>.area-map-links{margin-top:24px}.beach-restaurant{margin-top:30px;padding:25px 28px;background:#e8ece3;border-radius:8px}.beach-restaurant .eyebrow{font-size:11px;margin-bottom:10px;letter-spacing:1.5px}.beach-restaurant h4{font-size:23px;line-height:1.5;margin:0 0 16px;font-family:serif}.beach-restaurant .source-note{font-size:12px;margin:20px 0 0}.beach-restaurant .destination-links{gap:14px 24px}@media(max-width:760px){.coast-guide-grid{grid-template-columns:1fr;gap:32px}.beach-restaurant{padding:22px}.beach-restaurant h4{font-size:22px}}

@media(min-width:761px){.coast-guide-grid>.beach-guide{grid-row:auto}.coast-guide-grid{align-items:start}}

.roca-quote{margin:24px 0;padding:18px 22px;border-left:3px solid #78998b;background:#e8ece3;border-radius:0 6px 6px 0}.roca-quote p{font-family:Georgia,serif;font-size:19px;font-style:italic;line-height:1.65;margin:0 0 10px}.roca-quote .quote-translation{font-family:inherit;font-size:19px;font-style:normal;font-weight:600}.roca-quote cite{display:block;font-size:12px;font-style:normal;color:var(--muted)}

/* Give palace panoramas enough width to retain the complete skyline. */
.destination-photo img{aspect-ratio:16/10;object-position:center center}

.restaurant-photo{margin:18px 0 22px}.restaurant-photo>a{display:block;border-radius:6px;overflow:hidden;background:#d9dfd7}.restaurant-photo img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}.restaurant-photo-fundo img{object-position:center 70%}.restaurant-photo figcaption{font-size:10px;line-height:1.6;margin-top:7px;color:var(--muted)}.restaurant-photo figcaption a{text-decoration:underline;text-underline-offset:3px}.restaurant-photo>a:focus-visible{outline:3px solid var(--green);outline-offset:4px}


.restaurant-photo-fundo img{aspect-ratio:16/9;object-position:center center}

/* Three coastal stories: restaurants at either side, Cabo da Roca in the centre. */
.coast-guide-grid>article{min-width:0}
.coast-guide-grid>article>figure{margin:0 0 25px}
.coast-guide-grid>article>figure img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:center}
.coast-guide-grid>article>figure figcaption{min-height:36px;margin-top:8px;font-size:10px;line-height:1.6}
.coast-guide-grid .beach-restaurant{padding:24px 0 0;margin-top:28px;background:transparent;border-radius:0;border-top:1px solid var(--line)}
.coast-guide-grid .beach-restaurant h4{font-size:22px;overflow-wrap:anywhere}
.coast-guide-grid .area-map-links{gap:10px;flex-wrap:wrap}
.coast-guide-grid .area-map-links .button{font-size:13px;padding:10px 17px}
.coast-guide-grid .roca-quote{margin:28px 0;padding:20px 22px}
.coast-guide-grid .roca-quote p{font-size:20px}
@media(max-width:760px){.coast-guide-grid{grid-template-columns:1fr;gap:40px}.coast-guide-grid>article>figure figcaption{min-height:0}}

.heritage-source{font-size:13px!important;line-height:1.6!important;margin:12px 0 24px!important}.heritage-source a{color:inherit;text-underline-offset:4px}

/* Highlight the stay information as the main navigation action. */
header>.nav-cta{background:var(--green);color:#fff;border:1px solid var(--green);font-weight:700;font-size:16px;line-height:1.5;min-height:44px;padding:10px 24px;box-shadow:0 4px 12px rgba(36,74,64,.18);white-space:nowrap;transition:background .15s,box-shadow .15s}header>.nav-cta:hover{background:#183a31;box-shadow:0 5px 15px rgba(36,74,64,.25)}.mobile-bar a:last-child{font-weight:700;box-shadow:0 3px 9px rgba(36,74,64,.18)}@media(max-width:1100px){header>.nav-cta{font-size:14px;padding:9px 18px}}

/* Preserve page scrolling and pinch zoom alongside horizontal photo swipes. */
.group-card .photo, #large { touch-action: pan-y pinch-zoom; }

/* Keep mobile introductions legible even over white clouds and bright sea. */
@media(max-width:760px){
 .hero-shade{background:linear-gradient(180deg,rgba(8,30,26,.64),rgba(8,30,26,.68) 55%,rgba(8,30,26,.82))}
 .hero-content{text-align:left;padding-top:32px}
 .hero .eyebrow{color:#fff;font-size:12px;line-height:1.7;letter-spacing:1px}
 .hero h1,html[lang=zh-CN] .hero h1,html[lang=en] .hero h1,html[lang=pt-PT] .hero h1{font-size:clamp(30px,8vw,38px);line-height:1.3;text-shadow:0 2px 8px rgba(0,0,0,.25)}
 .hero-desc,html[lang=en] .hero-desc,html[lang=pt-PT] .hero-desc{font-size:16px;line-height:1.85;font-weight:500;color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.3)}
 .hero-map-links{justify-content:flex-start}.hero-map-links>span{text-align:left}
 .hero-bottom{opacity:1;color:#fff;font-size:10px;line-height:1.7}
}

/* Desktop photographs use the full viewport, retaining their original proportions. */
@media(min-width:761px){
 #viewer{position:fixed;inset:0;margin:0;padding:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;overflow:hidden;background:#0b1512}
 #viewer>img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;margin:0}
 #viewer>.close{z-index:2;top:12px;right:16px;border-radius:50%;background:rgba(11,21,18,.8);box-shadow:0 1px 6px #0005}
 #viewer>.viewer-controls{position:absolute;z-index:1;left:24px;right:24px;bottom:16px;margin:0;padding:10px 14px;border-radius:8px;background:rgba(11,21,18,.82)}
}

/* Desktop lightbox controls sit in slim side margins, clear of the photograph. */
@media(min-width:761px){
 #viewer>img{width:calc(100% - 128px);margin-inline:64px}
 #viewer>.viewer-controls{display:contents;background:none;padding:0;border-radius:0}
 #viewer .viewer-controls>button{position:absolute;top:50%;transform:translateY(-50%);width:56px;min-height:48px;padding:0;border:0;border-radius:0;background:none;font-size:13px;line-height:1.4;z-index:2}
 #viewer #prev{left:4px}#viewer #next{right:4px}
 #viewer #caption{position:absolute;right:12px;top:calc(50% + 56px);bottom:24px;width:40px;margin:0;writing-mode:vertical-rl;text-orientation:mixed;text-align:left;font-size:12px;line-height:1.6;overflow-wrap:anywhere;overflow:auto;z-index:1}
 #viewer>.close{background:none;box-shadow:none}
}

@media(min-width:761px){
 html:has(#viewer[open]){overflow:hidden}
 #viewer>img{width:100%;margin:0}
 #viewer .viewer-controls>button{width:76px;font-size:15px;font-weight:600;text-shadow:0 1px 3px #000,0 0 6px #000}
 #viewer #prev{left:calc(var(--photo-left,0px) + 18px)}
 #viewer #next{right:calc(var(--photo-right,0px) + 18px)}
 #viewer #caption{right:calc(var(--photo-right,0px) + 24px);font-size:14px;width:44px;text-shadow:0 1px 3px #000,0 0 6px #000}
}

/* Reserve green gutters so every desktop control stays outside the photograph. */
@media(min-width:761px){
 #viewer>img{width:calc(100% - 168px);margin-inline:84px}
 #viewer .viewer-controls>button{width:64px;font-size:14px;text-shadow:none}
 #viewer #prev{left:calc(var(--photo-left,84px) - 74px)}
 #viewer #next{right:calc(var(--photo-right,84px) - 74px)}
 #viewer #caption{right:calc(var(--photo-right,84px) - 74px);width:64px;font-size:14px;line-height:1.4;writing-mode:vertical-lr;text-shadow:none}
}

/* A single, balanced booking invitation leads guests to Airbnb for all details. */
#stay{display:block;text-align:center;padding-block:72px}
#stay>div{max-width:800px;margin-inline:auto}
#stay h2{margin-bottom:20px}
#stay>div>p:not(.eyebrow){max-width:640px;margin:0 auto 26px;font-size:17px;line-height:1.8}
#stay .button{min-height:48px;padding:13px 30px}
@media(max-width:760px){#stay{padding-block:52px}#stay>div>p:not(.eyebrow){font-size:16px}#stay h2{font-size:30px;line-height:1.5}}

.viewer-zoom,.viewer-zoom-hint{display:none}
@media(max-width:760px){
 #photos{padding-inline:0;padding-top:24px}
 #photos .section-heading h2{display:none}
 #photos .section-heading .eyebrow{margin-bottom:12px}
 #photos>.filters{margin-top:0;margin-bottom:16px}
 #photos>.section-heading,#photos>.filters,#photos>.source-note{margin-inline:6%}
 #photos>.gallery{gap:24px;grid-template-columns:1fr}
 #photos .group-card{border-inline:0;border-radius:0}
 html:has(#viewer[open]){overflow:hidden}
 #viewer{position:fixed;inset:0;width:100%;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:none}
 #viewer::-webkit-scrollbar{display:none}
 #viewer>#large{display:block;width:var(--mobile-photo-width,200vw);height:auto;max-width:none;max-height:none;margin:var(--mobile-photo-top,56px) 0 96px;touch-action:pan-x pan-y pinch-zoom}
 #viewer[data-mobile-zoom='1']>#large{margin-inline:auto;touch-action:pan-y pinch-zoom}
 #viewer>.close{position:fixed;z-index:24;top:calc(10px + env(safe-area-inset-top,0px));right:12px;width:44px;height:44px;border-radius:50%;background:#132820dc}
 #viewer>.viewer-zoom{display:block;position:fixed;z-index:24;top:calc(12px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);max-width:calc(100vw - 128px);padding:9px 15px;border:1px solid #a6b9ad;border-radius:24px;background:#132820ed;color:#fff;font-size:13px;line-height:1.5;min-height:40px}
 #viewer>.viewer-zoom-hint{display:block;position:fixed;z-index:23;top:calc(59px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);white-space:nowrap;color:#fff;font-size:12px;line-height:1.5;text-shadow:0 1px 3px #000}
 #viewer[data-mobile-zoom='1']>.viewer-zoom-hint{display:none}
 #viewer>.viewer-controls{position:fixed;z-index:23;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom,0px));margin:0;padding:9px 8px;border-radius:8px;background:#132820ed;gap:8px}
 #viewer .viewer-controls>p{flex:1;min-width:0;font-size:12px;line-height:1.4}
 #viewer .viewer-controls>button{flex-shrink:0;min-height:40px}
}

/* Keep both booking platforms equally accessible. */
#stay .booking-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:14px}
@media(max-width:760px){#stay .booking-actions{flex-direction:column;align-items:center;gap:12px}#stay .booking-actions .button{width:100%;max-width:320px;text-align:center}}

/* Scale mobile headings with the available screen width, including narrow cover screens. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media(max-width:760px){
 .intro h2,.feature h2,#area h2,#stay h2{font-size:clamp(20px,6vw,28px);line-height:1.5;letter-spacing:0;margin-bottom:20px;text-wrap:balance;overflow-wrap:break-word}
 .sintra-overview h3,.palace-heading h3{font-size:clamp(20px,5.6vw,26px);line-height:1.5;letter-spacing:0;text-wrap:balance;overflow-wrap:break-word}
 .sintra-overview{padding:clamp(16px,5vw,24px)}
 .feature>div,.section>div{min-width:0}
}

/* Keep the Chinese welcome in two lines and gallery phrases intact on phones. */
@media(max-width:760px){
 html[lang=zh-CN] .hero #hero-title{font-size:clamp(18px,6.8vw,30px);line-height:1.35;letter-spacing:0;margin-bottom:18px}
 html[lang=zh-CN] .hero-title-line{white-space:nowrap}
 #photos .group-card h3{font-size:clamp(16px,4.5vw,20px);line-height:1.5}
 #photos .gallery-title-phrase{white-space:nowrap}
}

/* Mobile: let the photograph breathe; the introduction follows on cream. */
@media(max-width:760px){
 .hero{display:block;height:auto;min-height:0;max-height:none;background:#f6f4ed;color:#203e37}
 .hero .hero-photo{position:relative;inset:auto;display:block;width:100%;height:auto;max-height:none;object-fit:contain}
 .hero .hero-shade{display:none}
 .hero .hero-content{position:relative;inset:auto;align-self:auto;width:100%;max-width:none;margin:0;padding:28px 6% 36px;text-align:left;color:#203e37}
 .hero .eyebrow,.hero .hero-desc,.hero .hero-map-links>span{color:#203e37;text-shadow:none}
 .hero h1,html[lang=zh-CN] .hero h1,html[lang=en] .hero h1,html[lang=pt-PT] .hero h1{color:#203e37;text-shadow:none}
 .hero .hero-bottom{display:none}
 .hero .hero-map-links{justify-content:flex-start}
 .hero .hero-map-links a{border:1px solid #a9bdb0}
}

.villa-brand-group{flex-shrink:0;min-width:0}.emgi-home-link{display:inline-block;font-size:12px;line-height:1.5;font-weight:600;border-bottom:1px solid #9bafa2;color:var(--green);margin-top:3px}.emgi-home-link:hover{border-color:var(--green)}@media(max-width:1000px){header>.villa-brand-group{grid-column:1;grid-row:1}.emgi-home-link{font-size:11px}}

.villa-brand-group{display:grid;grid-template-columns:auto auto;align-items:start;column-gap:10px}.villa-brand-group .brand{grid-column:1}.villa-brand-group .emgi-home-link{grid-column:2;align-self:start;margin-top:3px;padding:3px 10px;border:1px solid #b4c3b8;border-radius:15px;background:#e8ece3;white-space:nowrap;font-size:12px;line-height:1.5}@media(max-width:760px){.villa-brand-group{column-gap:7px}.villa-brand-group .emgi-home-link{font-size:11px;padding:2px 8px}}

/* Keep the name and Home together; give language choices their own row on cover screens. */
@media(max-width:760px){
 header{grid-template-columns:minmax(0,1fr);gap:9px;padding:12px 5%}
 header>.villa-brand-group{grid-column:1;grid-row:1;display:flex;align-items:flex-start;gap:10px;min-width:0;max-width:100%}
 header .villa-brand-group .brand{flex:0 1 auto;min-width:0}
 header .villa-brand-group .brand b{font-size:clamp(16px,4.8vw,20px);letter-spacing:0;white-space:nowrap;line-height:1.5}
 header .villa-brand-group .brand small{font-size:clamp(8px,2.7vw,10px);letter-spacing:1px;white-space:nowrap}
 header .villa-brand-group .emgi-home-link{flex:0 0 auto;margin-top:2px;font-size:11px;padding:3px 10px}
 header>.language-switch{grid-column:1;grid-row:2;justify-self:end;display:flex;gap:14px;min-width:0}
 header>.primary-nav{grid-column:1;grid-row:3;gap:8px;min-width:0}
 header>.primary-nav>a{font-size:clamp(11px,3.3vw,13px);padding-inline:4px;min-width:0}
 header>.nav-cta{display:none}
}

/* Home remains a compact label even when a tablet grid track grows. */
.villa-brand-group{grid-template-columns:max-content max-content;justify-content:start;justify-self:start;width:max-content;max-width:100%}
.villa-brand-group .emgi-home-link{justify-self:start;width:max-content;min-width:0;max-width:max-content;flex:0 0 auto}

@media(min-width:761px) and (max-width:1100px){
 header{display:grid;grid-template-columns:minmax(0,1fr) auto;height:auto;gap:10px 18px;padding-block:10px}
 header>.villa-brand-group{grid-column:1;grid-row:1}
 header>.language-switch{grid-column:2;grid-row:1;justify-self:end}
 header>.primary-nav{grid-column:1;grid-row:2;justify-content:flex-start}
 header>.nav-cta{grid-column:2;grid-row:2;justify-self:end}
}
