/* site-wide additions on top of the design */
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0}
img{max-width:100%}
.pa-mobile{display:none}
@media (max-width: 900px){
  .pa-desktop{display:none}
  .pa-mobile{display:block}
  .pa-mobile [data-dc-root] > div:first-child, .pa-mobile > div:first-child{width:100% !important}
}

/* ---------- phones & small tablets: inner pages ---------- */
.pa-menu-btn,.pa-menu{display:none}
@media (max-width: 900px){
  .pa-site header{padding:14px 20px !important;gap:12px !important}
  .pa-site header nav,.pa-site header button[aria-label^="Language"],.pa-site header > div > button:not(.pa-menu-btn){display:none !important}
  .pa-site header > div{gap:8px !important}
  .pa-site header > div > a{min-height:46px !important;font-size:13px !important;padding:0 16px !important}
  .pa-site header > div > a > span{display:none !important}
  .pa-menu-btn{display:flex;align-items:center;justify-content:center;width:46px;height:46px;flex:none;border:0;border-radius:10px;background:#f2f6f6;color:#00555f;cursor:pointer}
  .pa-menu{position:fixed;inset:0;z-index:60;background:#ffffff;flex-direction:column;padding:22px 20px 32px;box-sizing:border-box;overflow:auto}
  .pa-menu.open{display:flex}
  .pa-menu-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}
  .pa-menu nav{display:flex;flex-direction:column}
  .pa-menu nav a{display:block !important;padding:16px 0 !important;border-bottom:1px solid #e3eaea;font-family:'Cormorant Garamond',Georgia,serif !important;font-size:30px !important;color:#003f47 !important;text-decoration:none;background:none !important;border-radius:0 !important}
  .pa-menu .pa-menu-book{margin-top:28px;display:flex;justify-content:center;align-items:center;min-height:54px;border-radius:10px;background:#00555f;color:#fff;font-weight:600;text-decoration:none}

  .pa-site [style*="max-width: 1320px"],.pa-site [style*="max(40px"]{padding-left:20px !important;padding-right:20px !important}
  .pa-site section[style*="min-height"]{display:block !important;min-height:0 !important}
  .pa-site section[style*="min-height"] > img[style*="position: absolute"]{position:relative !important;display:block;width:100% !important;height:300px !important;border-radius:0 !important}
  .pa-site [style*="gap: 80px"]{gap:40px !important}
  .pa-site [style*="gap: 64px"],.pa-site [style*="gap: 72px"]{gap:32px !important}
  .pa-site [style*="repeat(3, minmax(0, 1fr))"],.pa-site [style*="repeat(4, minmax(0, 1fr))"]{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .pa-site [style*="minmax(340px"],.pa-site [style*="minmax(300px"]{grid-template-columns:1fr !important}
  .pa-site [style*="padding: 120px"],.pa-site [style*="padding: 110px"],.pa-site [style*="padding: 100px"]{padding-top:64px !important;padding-bottom:64px !important}
}

/* ---------- date picker on the home page: arrival, departure, guests ---------- */
.pa-dp-wrap { display: none; position: absolute; inset: 0 0 auto 0; z-index: 100; font-family: Manrope, Arial, sans-serif; color: #003f47; }
.pa-dp-wrap.open { display: block; }
.pa-dp-bg { position: fixed; inset: 0; background: transparent; }
.pa-dp { position: absolute; width: 330px; box-sizing: border-box; padding: 18px 18px 16px; border-radius: 6px; background: #fff; box-shadow: 0 20px 50px rgba(0, 40, 46, 0.18); }
.pa-dp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pa-dp-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; }
.pa-dp-x { width: 40px; height: 40px; border: 0; background: transparent; color: #003f47; font-size: 24px; cursor: pointer; }
.pa-dp-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pa-dp-nav strong { font-weight: 600; font-size: 15px; }
.pa-dp-nav button { width: 40px; height: 40px; border: 0; border-radius: 4px; background: transparent; color: #00555f; font-size: 22px; cursor: pointer; }
.pa-dp-nav button:disabled { opacity: 0.3; cursor: default; }
.pa-dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.pa-dp-wd { text-align: center; font-size: 11px; font-weight: 600; color: #6d8689; padding: 4px 0; }
.pa-dp-day { height: 40px; border: 0; border-radius: 4px; background: transparent; color: #003f47; font: inherit; font-size: 14px; cursor: pointer; }
.pa-dp-day:hover:not(:disabled) { background: #eef4f4; }
.pa-dp-day:disabled { color: #c2cdce; cursor: default; }
.pa-dp-day.booked { color: #a3b1b2; text-decoration: line-through; text-decoration-color: #7c8f90; text-decoration-thickness: 1.5px; }
.pa-dp-day.mid { background: #e3eeef; border-radius: 0; }
.pa-dp-day.sel { background: #00555f; color: #fff; text-decoration: none; }
.pa-dp-note { margin: 10px 2px 0; font-size: 13px; line-height: 1.5; color: #5f7a7d; }
.pa-dp-guests { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 17px; }
.pa-dp-guests button { width: 46px; height: 46px; border: 1px solid #c9d6d7; border-radius: 4px; background: #fff; color: #00555f; font-size: 20px; cursor: pointer; }
.pa-dp-guests button:disabled { opacity: 0.35; cursor: default; }
.pa-dp-done { width: 100%; min-height: 48px; margin-top: 14px; border: 0; border-radius: 3px; background: #00555f; color: #fff; font: inherit; font-weight: 500; cursor: pointer; }
.pa-dp-wrap.sheet { position: fixed; inset: 0; }
.pa-dp-wrap.sheet .pa-dp-bg { background: rgba(0, 40, 46, 0.4); }
.pa-dp-wrap.sheet .pa-dp { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; border-radius: 14px 14px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
.pa-dp-wrap.sheet .pa-dp-day { height: 46px; }

/* booking steps fit on a phone */
@media (max-width: 899px) {
  ol[aria-label="Booking steps"] li { font-size: 14px !important; gap: 8px !important; white-space: nowrap; }
  ol[aria-label="Booking steps"] li > span:first-child { width: 14px !important; margin: 0 8px !important; }
  ol[aria-label="Booking steps"] li:first-child > span:first-child { display: none; }
  ol[aria-label="Booking steps"] li > span:nth-child(2) { width: 30px !important; height: 30px !important; }
}

/* Info & prices hero (photo with card) on a phone */
@media (max-width: 899px) {
  .pa-site .pa-hero-d { padding: 0 !important; }
  .pa-site .pa-hero-d-photo { height: auto !important; border-radius: 0 !important; overflow: visible !important; }
  .pa-site .pa-hero-d-photo > img { position: relative !important; display: block; height: 300px !important; }
  .pa-site .pa-hero-d-card { position: relative !important; left: auto !important; bottom: auto !important; width: auto !important; margin: -40px 16px 0; padding: 28px 22px !important; }
  .pa-site .pa-hero-d > div:last-child { padding: 24px 20px 8px !important; }
  .pa-site .pa-facts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .pa-site .pa-facts > div { border-left: 0 !important; border-top: 1px solid #e3eaea; padding: 16px 4px !important; }
}

/* booking page on a phone: the summary sits under the calendar, full width */
@media (max-width: 899px) {
  .pa-site aside[aria-label="Your stay"] { padding-left: 0 !important; border-left: 0 !important; padding-top: 28px !important; border-top: 1px solid #d5dfdf !important; }
}

/* gallery chapters on a phone */
@media (max-width: 899px) {
  .pa-site .pa-chapter { grid-template-columns: 1fr !important; gap: 22px !important; padding-top: 40px !important; padding-bottom: 40px !important; }
  .pa-site .pa-chapter .pa-photos { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .pa-site .pa-chapter .pa-photos figcaption { font-size: 16px !important; }
}

/* calendar block and booking page on a phone (home page too): summary under the calendar, full width */
@media (max-width: 899px) {
  aside[aria-label="Your stay"] { padding-left: 0 !important; border-left: 0 !important; padding-top: 28px !important; border-top: 1px solid #d5dfdf !important; }
}

/* phone menu on the home page: over the whole screen, above the sticky header */
.pa-mobile [role="dialog"][aria-label="Menu"] { position: fixed !important; inset: 0 !important; height: auto !important; z-index: 60 !important; overflow-y: auto; }

/* footer: the AL number on its own line on a phone */
@media (max-width: 899px) {
  .pa-sep { display: none; }
  .pa-al { display: block; margin-top: 4px; }
}

/* language menu */
.pa-langmenu { position: absolute; z-index: 90; width: 200px; padding: 8px; box-sizing: border-box; border-radius: 6px; background: #fff; box-shadow: 0 18px 44px rgba(0, 40, 46, 0.18); display: flex; flex-direction: column; font-family: Manrope, Arial, sans-serif; }
.pa-langmenu a { display: block; padding: 11px 14px; border-radius: 4px; color: #003f47; text-decoration: none; font-size: 15px; }
.pa-langmenu a:hover { background: #f2f6f6; }
.pa-langmenu a[aria-current] { font-weight: 600; color: #00555f; }
.pa-menu-langs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; }
.pa-menu-langs a { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 4px; background: #f2f6f6; color: #003f47; text-decoration: none; font-size: 14px; font-weight: 600; }
.pa-menu-langs a[aria-current] { background: #00555f; color: #fff; }

@media (min-width:901px){ .pa-site .pa-phone { grid-column: span 2; } }

/* footer, Nov 2026: soft band with a wave on top (Algarvista touch) */
.pa-foot{position:relative;z-index:3;background:#f2f6f6;margin-top:60px}
.pa-foot-wave{position:absolute;left:0;right:0;top:-38px;width:100%;height:40px;display:block;fill:#f2f6f6;pointer-events:none}
.pa-foot-d{margin:4px 0 0;max-width:30ch;font-size:14px;line-height:1.6;color:#4f6d70}
.pa-foot-av{display:inline-flex;align-items:center;gap:10px;margin-top:6px;font-size:13px;color:#5f7a7d!important;text-decoration:none}
.pa-foot-av img{height:22px;width:auto}
.pa-foot [style*="border-top: 1px solid #e3eaea"]{border-top-color:#d6e2e2!important}

/* header, Nov 2026: white bar, menu items close to the logo, logo in a circle that drops below the bar (idea from the old site) */
@media (min-width: 901px){
  .pa-site header.pa-hdr{position:sticky!important;top:0!important;z-index:40!important;height:104px;padding:0!important;background:#fff!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;display:block!important}
  .pa-site header.pa-hdr>a:first-child{position:absolute;left:50%;top:0;transform:translateX(-50%);width:180px;height:180px;border-radius:50%;background:#fff;display:flex!important;align-items:center!important;justify-content:center!important;padding-top:0;box-sizing:border-box;z-index:2}
  .pa-site header.pa-hdr>a:first-child>span{font-size:38px!important}
  .pa-site header.pa-hdr nav{position:absolute;left:50%;top:0;transform:translateX(-50%);width:calc(100% - 2*max(220px, 18vw));height:104px;display:grid!important;grid-template-columns:minmax(0,1fr) 250px minmax(0,1fr);align-items:center;gap:0!important;padding-top:30px;box-sizing:border-box}
  .pa-site header.pa-hdr .pa-nl,.pa-site header.pa-hdr .pa-nr{display:flex;align-items:center;gap:clamp(26px,3vw,48px)}
  .pa-site header.pa-hdr .pa-nl{grid-column:1;justify-self:end}
  .pa-site header.pa-hdr .pa-nr{grid-column:3;justify-self:start}
  .pa-site header.pa-hdr nav a{min-height:44px!important;padding:0!important;font-size:12px!important;font-weight:500!important;letter-spacing:.16em;text-transform:uppercase;color:#003f47!important;white-space:nowrap;text-decoration:none!important}
  .pa-site header.pa-hdr nav a:hover{color:#00555f!important}
  .pa-site header.pa-hdr nav a[aria-current]{color:#00555f!important;font-weight:600!important;text-decoration:underline!important;text-underline-offset:8px}
  .pa-site header.pa-hdr>div{position:absolute;right:40px;top:0;height:104px;padding-top:30px;box-sizing:border-box;display:flex!important;align-items:center;gap:6px!important;z-index:3}
  .pa-site header.pa-hdr>div>a{min-height:42px!important;padding:0 18px!important;font-size:13px!important}
}
@media (min-width: 901px) and (max-width: 1300px){
  .pa-site header.pa-hdr>div{display:none!important}
  .pa-site header.pa-hdr nav{width:calc(100% - 60px)}
}
@media (min-width: 901px) and (max-width: 1100px){
  .pa-site header.pa-hdr nav{width:calc(100% - 60px);grid-template-columns:minmax(0,1fr) 236px minmax(0,1fr)}
  .pa-site header.pa-hdr nav a{font-size:11px!important;letter-spacing:.12em}
}

.pa-menu nav .pa-nl,.pa-menu nav .pa-nr{display:contents}

/* room under the logo circle on the inner pages */
@media (min-width: 901px){ .pa-site header.pa-hdr + section.pa-reveal{padding-top:130px!important} }

/* required fields and select boxes (Nov 2026) */
.pa-req{color:#a33a2a;font-weight:600}
.pa-site select.pa-select{-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23003f47' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 14px center!important;background-size:12px 8px!important;text-overflow:ellipsis}
.pa-site select.pa-select[data-f="dial"]{background-position:right 11px center!important}

/* page call to action and footer in one soft band (no white strip, no wave between) */
.pa-site section[style*="background: #f2f6f6"] + footer.pa-foot{margin-top:0}
.pa-site section[style*="background: #f2f6f6"] + footer.pa-foot .pa-foot-wave{display:none}
.pa-site section[style*="background: #f2f6f6"] + footer.pa-foot > div{border-top:1px solid #dde7e7}

/* Contact: text, photo of the building on the cliff, map */
@media (max-width: 1100px){
  .pa-site .pa-loc{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  .pa-site .pa-loc>div:first-child{grid-column:1 / -1}
}
@media (max-width: 700px){
  .pa-site .pa-loc{grid-template-columns:minmax(0,1fr)!important;padding-left:20px!important;padding-right:20px!important}
  .pa-site .pa-loc .pa-loc-photo{height:440px!important}
  .pa-site .pa-loc .pa-loc-map{height:360px!important}
}

/* cookie choice (25 Nov 2026) */
.pa-cookie{position:fixed;z-index:60;left:20px;bottom:20px;max-width:380px;box-sizing:border-box;padding:22px 22px 20px;background:#fff;color:#003f47;border:1px solid #d5dfdf;border-radius:14px;box-shadow:0 14px 40px rgba(0,63,71,.16);font-family:Manrope,Arial,sans-serif;font-size:14px;line-height:1.6}
.pa-cookie p{margin:0 0 14px;color:#4f6d70}
.pa-cookie p.pa-cookie-t{margin:0 0 6px;font-family:'Cormorant Garamond',Georgia,serif;font-size:24px;line-height:1.1;color:#003f47}
.pa-cookie-b{display:flex;flex-wrap:wrap;gap:10px}
.pa-cookie-b button{min-height:44px;padding:0 20px;border-radius:3px;font:600 14px Manrope,Arial,sans-serif;cursor:pointer;border:1px solid #00555f}
.pa-cookie-b button[data-c="all"]{background:#00555f;color:#fff}
.pa-cookie-b button[data-c="no"]{background:#fff;color:#00555f}
.pa-cookie-link{background:none;border:0;padding:0;margin:0 16px 0 0;font:inherit;color:inherit;text-decoration:underline;cursor:pointer}
@media (max-width:600px){.pa-cookie{left:12px;right:12px;bottom:12px;max-width:none;padding-bottom:calc(20px + env(safe-area-inset-bottom))}.pa-cookie-b button{flex:1 1 0}}
