/* Castellabate PRO 2.0.2 — Visual Institutional Upgrade
   Goal: immediate perceived value, institutional polish, and orientation-safe branding. */
:root{
  --pro-gold:#e0be6c;
  --pro-gold-soft:#f4dda0;
  --pro-navy:#041827;
  --pro-navy-2:#08263d;
  --pro-line:rgba(236,211,145,.18);
  --pro-glass:rgba(4,22,37,.94);
  --pro-shadow:0 24px 70px rgba(0,0,0,.34),0 2px 8px rgba(0,0,0,.18);
}
html,body,#app{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
#map{filter:saturate(.82) contrast(.94) brightness(.98)}
.map-shade{background:
  radial-gradient(circle at 50% 37%,transparent 0 32%,rgba(3,18,31,.06) 60%,rgba(3,18,31,.16) 100%),
  linear-gradient(180deg,rgba(2,14,24,.42),rgba(2,14,24,.07) 23%,rgba(2,14,24,.03) 58%,rgba(2,14,24,.40));}

/* ---------- Orientation-safe official brand ---------- */
.topbar{
  left:14px;right:14px;top:max(14px,env(safe-area-inset-top));
  gap:10px;align-items:center;
}
.brand{
  display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;
  gap:11px;min-width:0;max-width:min(520px,calc(100vw - 174px));
  padding:6px 16px 6px 6px;border-radius:999px;
  background:linear-gradient(135deg,rgba(4,24,40,.975),rgba(7,34,55,.94));
  border:1px solid rgba(234,207,133,.24);
  box-shadow:0 18px 50px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter:blur(22px) saturate(1.12);
  -webkit-backdrop-filter:blur(22px) saturate(1.12);
  overflow:visible;
}
.brand-seal{
  width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;
  flex:none!important;aspect-ratio:1/1!important;border-radius:50%!important;
  display:block!important;position:relative!important;overflow:hidden!important;
  padding:0!important;margin:0!important;transform:none!important;
  background:radial-gradient(circle at 36% 25%,#f6e4b0 0%,#d4a64b 62%,#9d6c20 100%)!important;
  border:1px solid rgba(255,240,190,.72)!important;
  box-shadow:inset 0 0 0 2px rgba(7,29,48,.18),0 7px 18px rgba(0,0,0,.30)!important;
  contain:layout paint;
}
.brand-seal:before,.brand-seal:after{content:none!important;display:none!important}
.brand-crest{
  position:absolute!important;inset:4px!important;width:46px!important;height:46px!important;
  min-width:46px!important;min-height:46px!important;max-width:46px!important;max-height:46px!important;
  display:block!important;object-fit:contain!important;object-position:center!important;
  aspect-ratio:1/1!important;transform:none!important;scale:1!important;
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.18));
}
.brand-copy{min-width:0;overflow:hidden}
.brand strong{
  font-size:20px;line-height:.95;letter-spacing:.105em;
  color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.28);
}
.brand small{font-size:7.5px;letter-spacing:.16em;color:#c7d2da;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-actions{gap:8px;flex:none}
.circle-btn{
  width:48px;height:48px;border-color:rgba(234,207,133,.16);
  background:linear-gradient(180deg,rgba(5,26,43,.98),rgba(4,20,34,.96));
  box-shadow:0 14px 34px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.05);
  transition:transform .18s ease,background .18s ease,border-color .18s ease;
}
.circle-btn:active{transform:scale(.96)}

.lang-mini{
  top:calc(max(14px,env(safe-area-inset-top)) + 62px);right:14px;
  padding:5px;gap:2px;border-color:rgba(234,207,133,.16);
  background:linear-gradient(180deg,rgba(5,26,43,.95),rgba(4,21,36,.93));
  box-shadow:0 14px 34px rgba(0,0,0,.20);
}
.lang-mini button{min-width:37px;padding:8px 9px;font-size:9px;color:#bfcbd4;transition:.18s}
.lang-mini button.active{box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 7px 18px rgba(189,143,51,.22)}

/* ---------- Main experience panel ---------- */
.sheet{
  left:14px;right:14px;bottom:calc(92px + env(safe-area-inset-bottom));
  max-height:min(68vh,720px);border-radius:31px;
  background:
    radial-gradient(circle at 88% -4%,rgba(224,190,108,.095),transparent 29%),
    linear-gradient(180deg,rgba(7,30,50,.988),rgba(4,20,35,.992));
  border:1px solid rgba(236,211,145,.18);
  box-shadow:0 30px 90px rgba(0,0,0,.40),0 2px 10px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter:blur(26px) saturate(1.12);
  -webkit-backdrop-filter:blur(26px) saturate(1.12);
}
.sheet-handle{width:54px;height:4px;margin-top:12px;background:linear-gradient(90deg,rgba(255,255,255,.13),rgba(240,215,147,.55),rgba(255,255,255,.13))}
.sheet-head{padding:11px 18px 15px;align-items:center;border-bottom-color:rgba(236,211,145,.10)}
.sheet-head .eyebrow{font-size:7.5px;letter-spacing:.21em;color:#e9ca78;font-weight:800}
.sheet-head h2{font-size:30px;letter-spacing:-.012em;margin-top:5px}
.sheet-head button{
  min-height:42px;padding:0 14px;border-color:rgba(236,211,145,.16);
  background:rgba(255,255,255,.055);font-size:8.5px;letter-spacing:.03em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.sheet-body{max-height:calc(min(68vh,720px) - 88px);padding:14px 15px 18px;scrollbar-width:thin;scrollbar-color:rgba(224,190,108,.36) transparent}
.sheet-body::-webkit-scrollbar{width:4px}.sheet-body::-webkit-scrollbar-thumb{background:rgba(224,190,108,.32);border-radius:10px}

/* ---------- Hero: immediate impact ---------- */
.film-feature{
  min-height:205px;margin:0 0 14px;border-radius:27px;
  border:1px solid rgba(241,214,143,.31);
  box-shadow:0 22px 52px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.05);
  transform:translateZ(0);
}
.film-feature img{filter:saturate(.90) contrast(1.05);transform:scale(1.015)}
.film-feature:after{background:
  linear-gradient(90deg,rgba(2,15,26,.95) 0%,rgba(2,15,26,.80) 43%,rgba(2,15,26,.28) 78%,rgba(2,15,26,.10) 100%),
  linear-gradient(180deg,rgba(0,0,0,.02) 20%,rgba(2,14,24,.83) 100%)}
.film-feature-copy{min-height:205px;padding:22px 88px 22px 21px}
.film-feature-kicker{font-size:8px;letter-spacing:.21em;color:#f0d78f}
.film-feature h3{font-size:33px;line-height:.96;max-width:360px;margin:8px 0 8px;letter-spacing:-.015em}
.film-feature p{font-size:10px;line-height:1.52;max-width:360px;color:#dbe5eb}
.film-play{
  right:20px;width:62px;height:62px;font-size:21px;
  border:1px solid rgba(255,241,193,.70);
  background:linear-gradient(145deg,#edcb70,#c99530);
  box-shadow:0 16px 36px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.44);
}

.music-feature{
  min-height:94px;margin:0 0 14px;padding:14px 16px;border-radius:22px;
  border-color:rgba(238,210,136,.24);
  background:radial-gradient(circle at 88% 10%,rgba(224,190,108,.10),transparent 34%),linear-gradient(135deg,rgba(9,42,67,.99),rgba(5,25,43,.99));
  box-shadow:0 16px 36px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.035);
}
.music-feature-icon{flex-basis:60px;width:60px;height:60px;border-color:rgba(239,210,137,.48);box-shadow:inset 0 0 0 5px rgba(4,25,42,.52),0 9px 22px rgba(0,0,0,.20)}
.music-feature-copy small{font-size:7.5px;letter-spacing:.19em}.music-feature-copy strong{font-size:24px}.music-feature-copy span{font-size:9px}

.souvenir-card{
  margin-bottom:14px;padding:19px 18px;border-radius:24px;
  background:radial-gradient(circle at 91% 7%,rgba(224,190,108,.31),transparent 31%),linear-gradient(140deg,#0b3251,#061b2f 72%);
  border-color:rgba(236,209,134,.31);
  box-shadow:0 18px 42px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.04);
}
.souvenir-card:before{right:17px;top:16px;width:41px;height:41px;font-size:18px;border:1px solid rgba(255,242,196,.62);box-shadow:0 10px 26px rgba(0,0,0,.22)}
.souvenir-card small{font-size:7.5px;letter-spacing:.20em}.souvenir-card h3{font-size:29px;margin-top:9px}.souvenir-card p{font-size:10px;line-height:1.55;max-width:88%}.souvenir-code{margin-top:12px;padding:7px 10px;font-size:7.5px;border:1px solid rgba(255,255,255,.06)}

.premium-grid{gap:11px;margin-bottom:14px}
.premium-action{
  min-height:90px;padding:15px;border-radius:21px;
  border-color:rgba(255,255,255,.105);
  background:linear-gradient(145deg,rgba(255,255,255,.066),rgba(255,255,255,.034));
  box-shadow:0 14px 32px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.035);
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.premium-action:active{transform:scale(.985);border-color:rgba(235,207,132,.24);background:rgba(224,190,108,.08)}
.premium-action small{font-size:7.5px;letter-spacing:.18em}.premium-action strong{font-size:21px}.premium-action span{font-size:8.5px;line-height:1.45}
.premium-action.wide{min-height:74px;padding-top:13px;padding-bottom:13px;border-color:rgba(236,211,145,.14)}

.shop-inline,.install-inline{
  min-height:64px;margin-bottom:13px;padding:13px 15px;border-radius:19px;
  box-shadow:0 14px 30px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.035);
}
.shop-inline strong,.install-inline strong{font-size:19px}.shop-inline-arrow,.install-inline-icon{width:38px;height:38px}

.hero-card{min-height:220px;border-radius:25px;margin-top:2px;margin-bottom:14px;border:1px solid rgba(255,255,255,.08);box-shadow:0 18px 40px rgba(0,0,0,.20)}
.hero-card:after{background:linear-gradient(180deg,rgba(2,14,24,.04),rgba(2,14,24,.93))}
.hero-copy{left:18px;right:18px;bottom:17px}.hero-copy .tag{font-size:7.5px;letter-spacing:.19em}.hero-copy h3{font-size:33px;margin:7px 0}.hero-copy p{font-size:10px;line-height:1.52;max-width:460px}

/* ---------- Places / practical content ---------- */
.cards{gap:10px}
.place-card{
  grid-template-columns:82px minmax(0,1fr) auto;gap:12px;padding:9px;border-radius:20px;
  background:linear-gradient(145deg,rgba(255,255,255,.052),rgba(255,255,255,.032));
  border-color:rgba(255,255,255,.085);
  box-shadow:0 10px 24px rgba(0,0,0,.10),inset 0 1px 0 rgba(255,255,255,.025);
}
.place-thumb{width:82px;height:70px;border-radius:15px}.place-card b{font-size:19px}.place-card p{font-size:8.7px}.place-card .area{font-size:7.5px}.place-card .dist{font-size:8px;color:#edce7a}
.section-note{border-radius:17px;padding:11px 13px;background:rgba(224,190,108,.07);border-color:rgba(224,190,108,.13)}

/* ---------- Bottom dock: native-app feel ---------- */
.quick-dock{
  bottom:calc(14px + env(safe-area-inset-bottom));gap:4px;padding:6px 7px;border-radius:26px;
  border-color:rgba(236,211,145,.15);
  background:linear-gradient(180deg,rgba(5,26,43,.985),rgba(3,19,32,.975));
  box-shadow:0 22px 52px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter:blur(24px) saturate(1.1);-webkit-backdrop-filter:blur(24px) saturate(1.1);
}
.dock-btn{min-width:64px;padding:9px 8px;border-radius:19px;transition:.18s}.dock-btn i{font-size:19px;color:#c4d0d8}.dock-btn span{font-size:7.8px;letter-spacing:.065em;margin-top:5px}.dock-btn.active{background:radial-gradient(circle at 50% 20%,rgba(241,215,143,.24),transparent 60%),linear-gradient(145deg,rgba(224,190,108,.20),rgba(224,190,108,.07));box-shadow:inset 0 0 0 1px rgba(236,211,145,.10)}.dock-btn.active i,.dock-btn.active span{color:#f0d78f}

/* ---------- Intro refinement ---------- */
.intro-crest{width:78px!important;height:78px!important;max-height:78px!important;aspect-ratio:1/1!important;object-fit:contain!important}
.intro-copy{padding-bottom:calc(30px + env(safe-area-inset-bottom))}
.intro-kicker{font-weight:800;color:#f1d890}.intro p{max-width:560px}
#enterBtn{box-shadow:0 16px 40px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.45)!important}

/* ---------- Portrait: two-level header without ever compressing the crest ---------- */
@media (orientation:portrait) and (max-width:699px){
  .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
  .brand{grid-template-columns:54px minmax(0,1fr);max-width:none;width:auto;min-width:0}
  .brand-seal{width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important}
  .brand-crest{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important}
  .brand strong{font-size:clamp(16px,4.7vw,20px);letter-spacing:.085em}
  .brand small{font-size:clamp(6.4px,1.8vw,7.5px);letter-spacing:.11em}
  .top-actions{gap:6px}.circle-btn{width:46px;height:46px}
  .lang-mini{left:auto;right:14px;max-width:calc(100vw - 28px)}
  .sheet{top:auto;max-height:min(68vh,720px)}
}

@media (orientation:portrait) and (max-width:430px){
  .topbar{left:10px;right:10px;gap:7px}
  .brand{grid-template-columns:50px minmax(0,1fr);gap:8px;padding:5px 11px 5px 5px}
  .brand-seal{width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important}
  .brand-crest{inset:4px!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important}
  .brand strong{font-size:16.5px}.brand small{font-size:6.3px;margin-top:4px}
  .circle-btn{width:43px;height:43px;font-size:17px}
  .lang-mini{right:10px;top:calc(max(14px,env(safe-area-inset-top)) + 57px);padding:4px}
  .lang-mini button{min-width:34px;padding:7px 7px;font-size:8px}
  .sheet{left:10px;right:10px;border-radius:27px;bottom:calc(88px + env(safe-area-inset-bottom))}
  .sheet-head{padding-left:15px;padding-right:15px}.sheet-head h2{font-size:27px}
  .sheet-body{padding:12px}
  .film-feature{min-height:190px;border-radius:24px}.film-feature-copy{min-height:190px;padding:19px 74px 18px 17px}.film-feature h3{font-size:29px}.film-feature p{font-size:9.3px}.film-play{right:15px;width:54px;height:54px}
  .music-feature{min-height:88px;padding:13px}.music-feature-icon{flex-basis:54px;width:54px;height:54px}.music-feature-copy strong{font-size:22px}
  .souvenir-card{padding:17px 15px}.souvenir-card h3{font-size:26px}.souvenir-card p{max-width:84%;font-size:9.2px}
  .premium-action{min-height:84px;padding:13px}.premium-action strong{font-size:19px}
  .place-card{grid-template-columns:74px minmax(0,1fr) auto;gap:10px}.place-thumb{width:74px;height:66px}.place-card b{font-size:17.5px}
  .quick-dock{max-width:calc(100vw - 14px)}.dock-btn{min-width:58px;padding-left:6px;padding-right:6px}
}

/* ---------- Landscape: keep a refined compact presentation ---------- */
@media (orientation:landscape) and (max-height:600px){
  .topbar{top:max(10px,env(safe-area-inset-top));left:18px;right:18px}
  .brand{grid-template-columns:54px minmax(0,1fr);max-width:440px}
  .brand-seal{width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important}
  .brand-crest{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important}
  .lang-mini{top:calc(max(10px,env(safe-area-inset-top)) + 61px);right:18px}
  .sheet{left:18px;right:18px;bottom:88px;max-height:69vh;border-radius:29px}
  .sheet-body{max-height:calc(69vh - 85px)}
  .quick-dock{bottom:12px}
}

@media (min-width:900px){
  .sheet{left:22px;right:auto;width:min(470px,42vw);bottom:100px;max-height:72vh}
  .sheet-body{max-height:calc(72vh - 88px)}
  .film-feature h3{font-size:36px}.brand{max-width:470px}
}

@media (prefers-reduced-motion:reduce){.film-feature,.premium-action,.circle-btn,.dock-btn{transition:none!important}}
