:root{
  --gold:#d4a248;
  --gold-dark:#b77c22;
  --navy:#1f2d3d;
  --navy-2:#30465c;
  --steel:#4b6478;
  --line:#e5e7eb;
  --paper:#f8fafc;
  --muted:#6b7280;
  --white:#fff;
  --green:#15803d;
  --red:#b42318;
  --shadow:0 8px 28px rgba(31,45,61,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--paper)}
body{
  margin:0;
  background:var(--paper);
  color:#17212b;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
.page-shell{width:min(1420px,calc(100% - 48px));margin-inline:auto}
button,input,select{font:inherit}
.site-header{z-index:1040;background:rgba(255,255,255,.98);border-bottom:1px solid #e8ebef}
.site-header .navbar{min-height:72px;padding:.45rem 0}
.site-brand{
  display:flex;align-items:center;gap:.65rem;text-decoration:none;color:var(--navy);min-width:220px
}
.brand-emblem{
  width:48px;height:48px;display:grid;place-items:center;border-radius:50%;
  background:linear-gradient(145deg,#efc56b,#c78e31);color:var(--navy);font-size:1.45rem;
  position:relative;box-shadow:inset 0 0 0 5px rgba(255,255,255,.34)
}
.brand-emblem:after{
  content:"";position:absolute;left:-7px;right:-7px;bottom:3px;height:6px;border-radius:50%;
  border-bottom:3px solid var(--navy);transform:rotate(-4deg)
}
.brand-type{display:flex;flex-direction:column;line-height:1}
.brand-type strong{font-size:1.34rem;letter-spacing:.08em;font-weight:850;color:var(--navy)}
.brand-type small{margin-top:.32rem;font-size:.57rem;letter-spacing:.31em;font-weight:800;color:#475569}
.brand-pin{color:var(--gold-dark)}
.site-menu{gap:.6rem}
.site-menu .nav-link{
  position:relative;padding:.65rem .65rem!important;color:#273444!important;font-size:.83rem;font-weight:700
}
.site-menu .nav-link:after{
  content:"";position:absolute;left:.65rem;right:.65rem;bottom:.15rem;height:2px;background:transparent
}
.site-menu .nav-link.active:after,.site-menu .nav-link:hover:after{background:var(--gold)}
.nav-actions{display:flex;align-items:center;gap:.65rem}
.currency-btn{
  display:inline-flex;align-items:center;gap:.4rem;background:#fff;border:0;border-right:1px solid #e5e7eb;
  padding:.45rem .8rem;color:#475569;font-size:.78rem;font-weight:700
}
.nav-email{max-width:175px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:.75rem}
.btn{border-radius:7px;font-weight:750;box-shadow:none!important}
.btn-gold{
  --bs-btn-bg:linear-gradient(180deg,#dba94d,#c98a27);
  background:linear-gradient(180deg,#dba94d,#c98a27);
  border:1px solid #c28628;color:#fff;
}
.btn-gold:hover,.btn-gold:focus{background:#bd7d1f;border-color:#aa6e18;color:#fff}
.btn-outline-dark{--bs-btn-color:#253244;--bs-btn-border-color:#cbd2da;--bs-btn-hover-bg:#f4f6f8;--bs-btn-hover-color:#1f2d3d;--bs-btn-hover-border-color:#adb7c2}

.hero-section{
  position:relative;min-height:470px;isolation:isolate;
  background:url('/static/img/hero-resort.webp') center 49%/cover no-repeat;
}
.hero-shade{
  position:absolute;inset:0;z-index:-1;
  background:linear-gradient(90deg,rgba(15,29,44,.76) 0%,rgba(15,29,44,.48) 35%,rgba(15,29,44,.10) 69%,rgba(15,29,44,.02) 100%)
}
.hero-inner{min-height:470px;display:flex;flex-direction:column;justify-content:center;padding-top:18px;padding-bottom:54px}
.hero-copy{max-width:660px;color:#fff;margin-left:4.7%;text-shadow:0 2px 14px rgba(0,0,0,.2)}
.hero-kicker{font-size:.72rem;font-weight:850;letter-spacing:.14em;color:#f1c872;margin-bottom:.7rem}
.hero-copy h1{font-size:clamp(3rem,4.7vw,5.35rem);line-height:.92;margin:0 0 1rem;font-weight:800;letter-spacing:-.035em}
.hero-copy p{max-width:580px;margin:0;font-size:1.22rem;line-height:1.35;font-weight:600}
.hero-search-card{
  position:absolute;left:50%;bottom:31px;transform:translateX(-50%);
  width:min(1180px,calc(100% - 80px));min-height:68px;display:grid;
  grid-template-columns:1.45fr 1fr 1fr .82fr .9fr;align-items:stretch;
  background:#fff;border:1px solid rgba(255,255,255,.72);border-radius:10px;padding:7px;
  box-shadow:0 10px 26px rgba(10,25,40,.24)
}
.search-field{
  display:flex;align-items:center;gap:.75rem;padding:5px 16px;border-right:1px solid #e5e7eb;min-width:0
}
.search-field>i{font-size:1.24rem;color:#0f263b}
.destination-field>i{font-size:1.55rem;color:var(--gold-dark)}
.search-field span{display:flex;flex-direction:column;min-width:0;flex:1}
.search-field small{font-size:.69rem;color:#334155;font-weight:750;margin-bottom:1px}
.search-field input,.search-field select{
  width:100%;min-width:0;border:0;outline:0;background:transparent;color:#6b7280;font-size:.76rem;padding:0
}
.search-field input[type=date]{color:#6b7280}
.search-field select{appearance:none}
.hero-search-btn{
  align-self:stretch;border:0;border-radius:7px;background:linear-gradient(180deg,#dca84a,#c98b27);color:#fff;font-size:.95rem;font-weight:800
}
.hero-search-btn:hover{background:#bb7a1e;color:#fff}

.feature-strip{background:#fff;border-bottom:1px solid #e8ecf0}
.feature-grid{min-height:92px;display:grid;grid-template-columns:repeat(5,1fr);align-items:center}
.feature-item{display:flex;align-items:center;justify-content:center;gap:.8rem;padding:0 1rem}
.feature-icon{
  width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#f9f5ec;color:var(--gold-dark);font-size:1.4rem
}
.feature-item strong,.feature-item small{display:block}
.feature-item strong{font-size:.77rem;color:#263341}
.feature-item small{font-size:.65rem;color:#89909a;margin-top:2px}

.destination-section{padding-top:28px;padding-bottom:24px}
.section-title-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:13px}
.section-title-row h2{margin:0;font-size:1.14rem;font-weight:820;color:#1c2937}
.section-title-row p{margin:.18rem 0 0;font-size:.78rem;color:#64748b}
.text-link{border:0;background:transparent;color:#40526a;font-size:.72rem;font-weight:750}
.destination-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.destination-card{
  position:relative;height:132px;overflow:hidden;border:0;border-radius:7px;background:var(--bg) center/cover no-repeat;
  text-align:left;box-shadow:inset 0 -72px 60px -25px rgba(5,16,27,.92);transition:transform .16s ease,box-shadow .16s ease
}
.destination-card:after{
  content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,rgba(4,15,27,.82) 100%)
}
.destination-card:hover{transform:translateY(-2px);box-shadow:inset 0 -78px 60px -25px rgba(5,16,27,.92),0 8px 16px rgba(31,45,61,.15)}
.destination-card span{position:absolute;z-index:2;left:12px;bottom:10px;color:#fff}
.destination-card strong,.destination-card small{display:block}
.destination-card strong{font-size:.9rem}
.destination-card small{font-size:.7rem;margin-top:1px}

.user-dashboard{padding-top:18px;padding-bottom:55px}
.trips-heading{padding-top:12px}
.stat-card{
  position:relative;height:100%;min-height:118px;background:#fff;border:1px solid #e4e8ed;border-radius:9px;padding:17px 18px;box-shadow:0 3px 14px rgba(31,45,61,.04)
}
.stat-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--gold);border-radius:9px 0 0 9px}
.stat-card .label{font-size:.67rem;color:#6b7280;font-weight:750;text-transform:uppercase;letter-spacing:.05em}
.stat-card .value{margin-top:.35rem;font-size:1.75rem;font-weight:850;color:#1f2d3d}
.stat-foot{margin-top:.18rem;font-size:.66rem;color:#94a3b8}

.watch-card{
  border:1px solid #e3e8ed!important;border-radius:9px;background:#fff;box-shadow:0 4px 18px rgba(31,45,61,.055);overflow:hidden
}
.watch-card:before{content:"";display:block;height:3px;background:var(--gold)}
.watch-card .card-body{padding:1.15rem}
.watch-card h2{font-size:1.08rem;font-weight:800;color:#1f2d3d}
.price{font-size:1.62rem;font-weight:850;color:#1f2d3d}
.smallcaps{font-size:.64rem;text-transform:uppercase;letter-spacing:.07em;font-weight:800;color:#7c8794}
.pill{display:inline-block;border-radius:999px;padding:.28rem .57rem;font-size:.65rem;font-weight:800}
.pill-low{background:#dcfce7;color:#166534}.pill-mid{background:#fef3c7;color:#92400e}.pill-high{background:#fee2e2;color:#991b1b}
.alternative{border-top:1px solid #edf0f3;padding-top:.65rem;margin-top:.65rem}
.badge.text-bg-dark{background:#213448!important}
.badge.text-bg-light{background:#f8fafc!important;color:#475569!important;border-color:#dbe1e7!important;font-weight:650}

.modal-content{border:0;border-radius:12px;box-shadow:0 24px 70px rgba(23,33,43,.22)}
.modal-header,.modal-footer{border-color:#edf0f3}
.modal-title{font-weight:800;color:#1f2d3d}
.modal-eyebrow{font-size:.62rem;font-weight:850;letter-spacing:.13em;color:var(--gold-dark);margin-bottom:2px}
.auth-dialog{max-width:440px}
.nav-pills{padding:4px;background:#f1f4f7;border-radius:8px}
.nav-pills .nav-link{border-radius:6px;color:#596676;font-size:.8rem;font-weight:750}
.nav-pills .nav-link.active{background:#fff;color:#1f2d3d;box-shadow:0 1px 4px rgba(31,45,61,.12)}
.form-label{font-size:.75rem;font-weight:700;color:#344152}
.form-control,.form-select{
  min-height:44px;border:1px solid #d7dde4;border-radius:7px;background:#fff;color:#263341;box-shadow:none!important
}
.form-control:focus,.form-select:focus{border-color:#d4a248;box-shadow:0 0 0 3px rgba(212,162,72,.12)!important}
.text-secondary{color:#7b8794!important}
#historyModal canvas{max-height:520px}

@media(max-width:1199.98px){
  .page-shell{width:min(100% - 32px,1180px)}
  .hero-search-card{width:calc(100% - 64px)}
  .feature-grid{grid-template-columns:repeat(5,1fr)}
}
@media(max-width:991.98px){
  .site-header .navbar{min-height:64px}
  .site-brand{min-width:auto}
  .navbar-collapse{padding:.7rem 0 .35rem}
  .site-menu{gap:0}
  .nav-actions{padding:.6rem 0 .2rem;flex-wrap:wrap}
  .currency-btn{border-right:0;padding-left:0}
  .hero-section{min-height:520px}
  .hero-inner{min-height:520px;justify-content:flex-start;padding-top:58px;padding-bottom:215px}
  .hero-copy{margin-left:0;max-width:520px}
  .hero-copy h1{font-size:3.25rem}
  .hero-search-card{bottom:25px;grid-template-columns:1fr 1fr;width:calc(100% - 48px)}
  .destination-field{grid-column:1/-1}
  .guests-field{border-right:0}
  .hero-search-btn{min-height:54px}
  .feature-grid{grid-template-columns:repeat(4,1fr)}
  .feature-item{flex-direction:column;text-align:center;gap:.4rem;padding:.8rem .25rem}
  .destination-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:767.98px){
  .page-shell{width:calc(100% - 24px)}
  .brand-emblem{width:39px;height:39px;font-size:1.15rem}
  .brand-type strong{font-size:1.08rem}.brand-type small{font-size:.48rem}
  .hero-section{min-height:560px;background-position:64% center}
  .hero-shade{background:linear-gradient(180deg,rgba(18,38,58,.53) 0%,rgba(18,38,58,.42) 46%,rgba(18,38,58,.66) 100%)}
  .hero-inner{min-height:560px;padding-top:38px;padding-bottom:292px}
  .hero-copy{max-width:370px}
  .hero-kicker{font-size:.62rem}
  .hero-copy h1{font-size:2.45rem;line-height:.96}
  .hero-copy p{font-size:.88rem;max-width:310px}
  .hero-search-card{
    width:calc(100% - 28px);bottom:20px;display:flex;flex-direction:column;padding:8px;border-radius:9px
  }
  .search-field{min-height:47px;border-right:0;border-bottom:1px solid #e5e7eb;padding:4px 10px}
  .search-field>i{font-size:1rem}.destination-field>i{font-size:1.25rem}
  .search-field small{display:none}
  .search-field input,.search-field select{font-size:.75rem}
  .hero-search-btn{min-height:45px;margin-top:7px}
  .feature-strip{overflow-x:auto}
  .feature-grid{min-width:570px;min-height:90px;grid-template-columns:repeat(4,1fr)}
  .feature-icon{width:36px;height:36px;font-size:1.12rem}
  .feature-item strong{font-size:.67rem}.feature-item small{font-size:.59rem}
  .destination-section{padding-top:20px}
  .destination-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:5px}
  .destination-card{flex:0 0 44%;height:112px;scroll-snap-align:start}
  .section-title-row h2{font-size:1.02rem}
  .trips-heading{align-items:flex-start;flex-direction:column}
  .trips-heading .btn{width:100%}
  .stat-card{min-height:104px;padding:14px}
  .stat-card .value{font-size:1.45rem}
  .watch-card .card-body{padding:1rem}
  .price{font-size:1.4rem}
}
@media(max-width:420px){
  .page-shell{width:calc(100% - 20px)}
  .site-header .navbar{padding:.3rem 0}
  .brand-type strong{font-size:1rem}
  .hero-section{min-height:545px}
  .hero-inner{min-height:545px}
  .destination-card{flex-basis:52%}
  .nav-actions{gap:.45rem}
}


/* Complete Hotels LedgerFlow brand system */
.brand-logo{display:block;width:188px;height:auto}
.site-header{box-shadow:0 2px 14px rgba(31,45,61,.035)}
.btn-gold{background:linear-gradient(180deg,#dfaf55,#c88927);border-color:#c48625}
.btn-outline-danger{--bs-btn-color:#a53a33;--bs-btn-border-color:#dfb7b4;--bs-btn-hover-bg:#a53a33;--bs-btn-hover-border-color:#a53a33}
.watch-card{transition:transform .16s ease,box-shadow .16s ease}
.watch-card:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(31,45,61,.09)}
.watch-card .badge.text-bg-dark{background:#1f2d3d!important}
.site-footer{margin-top:34px;background:#fff;border-top:1px solid #e4e9ee}
.footer-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:44px;align-items:center;padding-top:34px;padding-bottom:28px}
.footer-brand img{width:190px;max-width:100%}
.footer-tagline{margin-top:10px;color:#7c8794;font-size:.61rem;font-weight:850;letter-spacing:.22em}
.footer-brand p{max-width:420px;margin:.65rem 0 0;color:#7b8794;font-size:.76rem;line-height:1.5}
.footer-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem 1.25rem}
.footer-nav a{color:#40526a;text-decoration:none;font-size:.77rem;font-weight:750}
.footer-nav a:hover{color:#b87920}
.footer-note{display:flex;align-items:flex-start;gap:.75rem;color:#35475a;font-size:.78rem}
.footer-note i{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#f8f2e7;color:#b87920;font-size:1.2rem}
.footer-note small{color:#8793a0}
.footer-bottom{display:flex;justify-content:space-between;gap:1rem;padding-top:15px;padding-bottom:18px;border-top:1px solid #edf0f3;color:#8a95a2;font-size:.67rem}
.auth-dialog{max-width:900px}
.auth-modal-content{overflow:hidden;border:0}
.auth-brand-panel{position:relative;min-height:500px;background:url('/static/img/hero-resort.webp') center/cover no-repeat;color:#fff}
.auth-brand-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(18,39,58,.35),rgba(18,39,58,.88))}
.auth-brand-content{position:relative;z-index:1;height:100%;min-height:500px;display:flex;flex-direction:column;justify-content:space-between;padding:28px}
.auth-brand-logo{width:205px;max-width:100%}
.auth-brand-kicker{margin-bottom:.65rem;color:#efc56b;font-size:.62rem;font-weight:850;letter-spacing:.13em}
.auth-brand-copy h2{max-width:310px;margin:0 0 .75rem;font-size:1.7rem;line-height:1.05;font-weight:820}
.auth-brand-copy p{max-width:330px;margin:0;color:rgba(255,255,255,.82);font-size:.82rem;line-height:1.5}
.auth-form-panel{padding:34px}
.auth-helper{font-size:.66rem;color:#94a3b8}
.auth-trust-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:20px;padding-top:17px;border-top:1px solid #edf0f3}
.auth-trust-row span{display:flex;align-items:center;justify-content:center;gap:.35rem;color:#667586;font-size:.65rem;text-align:center}
.auth-trust-row i{color:#b87920}
@media(max-width:991.98px){
  .brand-logo{width:172px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:28px}
  .footer-note{grid-column:1/-1}
  .auth-brand-panel{min-height:180px}
  .auth-brand-content{min-height:180px;padding:20px;justify-content:flex-end}
  .auth-brand-logo{position:absolute;top:20px;left:20px;width:175px}
  .auth-brand-copy h2{font-size:1.35rem;max-width:520px}
  .auth-brand-copy p{display:none}
}
@media(max-width:767.98px){
  .brand-logo{width:150px}
  .footer-grid{grid-template-columns:1fr;gap:20px;padding-top:26px;padding-bottom:22px}
  .footer-note{grid-column:auto}
  .footer-bottom{flex-direction:column;gap:.25rem}
  .auth-brand-panel{min-height:145px}
  .auth-brand-content{min-height:145px;padding:16px}
  .auth-brand-logo{top:15px;left:16px;width:150px}
  .auth-brand-copy h2{font-size:1.15rem;margin-bottom:0}
  .auth-brand-kicker{font-size:.55rem}
  .auth-form-panel{padding:24px 20px}
  .auth-trust-row{grid-template-columns:1fr;gap:6px}
}


/* Watch toolkit */
.watch-tools{padding:16px;background:#fff;border:1px solid #e4e9ee;border-radius:10px;box-shadow:0 4px 18px rgba(31,45,61,.045)}
.watch-tools-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:13px}
.watch-tools-head h3{margin:.18rem 0 0;color:#1f2d3d;font-size:1rem;font-weight:820}
.tool-message{min-height:18px;color:#64748b;font-size:.72rem;text-align:right}
.tool-message.success{color:#166534}.tool-message.danger{color:#b42318}.tool-message.warning{color:#92400e}
.watch-tools-grid{display:grid;grid-template-columns:minmax(210px,1.45fr) minmax(145px,.8fr) minmax(165px,.9fr) auto auto auto auto;gap:8px;align-items:center}
.tool-search{height:42px;display:flex;align-items:center;gap:.55rem;padding:0 .78rem;border:1px solid #d7dde4;border-radius:7px;background:#fff;color:#64748b}
.tool-search:focus-within{border-color:#d4a248;box-shadow:0 0 0 3px rgba(212,162,72,.1)}
.tool-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#263341;font-size:.78rem}
.tool-select{min-height:42px;font-size:.76rem}
.tool-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;margin-left:2px;border-radius:999px;background:#eef2f5;color:#40526a;font-size:.66rem}
.compare-check{display:flex;align-items:center;gap:.35rem;color:#718096;font-size:.68rem;font-weight:700}
.compare-check input{margin-top:0}
.watch-card.paused{opacity:.78}
.watch-card.paused:before{background:#94a3b8}
.watch-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px;padding-top:12px;border-top:1px solid #edf0f3}
.watch-actions .btn{font-size:.7rem}
.watch-menu .dropdown-item{font-size:.76rem}
.watch-meta-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:11px}
.watch-meta{padding:8px 9px;border:1px solid #edf0f3;border-radius:7px;background:#fafbfd}
.watch-meta span,.watch-meta strong{display:block}
.watch-meta span{color:#8a95a2;font-size:.59rem;text-transform:uppercase;letter-spacing:.05em;font-weight:800}
.watch-meta strong{margin-top:2px;color:#40526a;font-size:.69rem;font-weight:750}
.history-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.history-chip{padding:10px 12px;border:1px solid #e5eaf0;border-radius:8px;background:#fafbfd}
.history-chip span,.history-chip strong{display:block}.history-chip span{color:#7b8794;font-size:.62rem;text-transform:uppercase;font-weight:800;letter-spacing:.04em}.history-chip strong{margin-top:3px;color:#1f2d3d;font-size:.9rem}
.compare-table{min-width:760px}
.compare-table th{color:#6d7b8a;font-size:.65rem;text-transform:uppercase;letter-spacing:.05em}
.compare-hotel{min-width:190px}
.compare-best{color:#166534;font-weight:850}
.compare-empty{padding:38px;text-align:center;color:#7b8794}
@media(max-width:1199.98px){
  .watch-tools-grid{grid-template-columns:1.3fr 1fr 1fr repeat(2,auto)}
  .watch-tools-grid .dropdown,.watch-tools-grid #clearToolsBtn{grid-row:2}
}
@media(max-width:767.98px){
  .watch-tools-head{align-items:flex-start;flex-direction:column}
  .tool-message{text-align:left}
  .watch-tools-grid{grid-template-columns:1fr 1fr}
  .tool-search{grid-column:1/-1}
  .watch-tools-grid .dropdown,.watch-tools-grid #clearToolsBtn{grid-row:auto}
  .watch-tools-grid .btn,.watch-tools-grid .dropdown{width:100%}
  .watch-meta-grid{grid-template-columns:1fr 1fr}
  .history-summary{grid-template-columns:1fr 1fr}
}
@media(max-width:420px){
  .watch-tools-grid{grid-template-columns:1fr}
  .tool-search{grid-column:auto}
  .watch-meta-grid{grid-template-columns:1fr}
  .history-summary{grid-template-columns:1fr}
}
/* Responsive hardening — preserves the existing visual design */
html,body{max-width:100%;overflow-x:clip}
img,picture,video,svg,canvas{max-width:100%}
.page-shell,.row,.row>*{min-width:0}
.navbar-toggler{min-width:44px;min-height:44px}
.navbar-collapse{min-width:0}
.modal-dialog{max-width:calc(100vw - 1rem);margin-left:auto;margin-right:auto}
.modal-content,.modal-body{min-width:0;max-width:100%}
.modal-header>*,.modal-footer>*{min-width:0}
.form-control,.form-select{max-width:100%}
.table-responsive{max-width:100%;-webkit-overflow-scrolling:touch}
.destination-grid,.feature-strip{-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
.watch-tools,.watch-card,.history-summary{min-width:0}
.watch-card,.watch-meta,.history-chip,.alternative{overflow-wrap:anywhere}

@media(max-width:991.98px){
  .navbar-collapse{max-height:calc(100dvh - 64px);overflow-y:auto;overscroll-behavior:contain}
  .auth-modal-content{max-height:calc(100dvh - 1rem);overflow-y:auto;overscroll-behavior:contain}
  .modal-dialog-centered{min-height:calc(100dvh - 1rem)}
  #accountModal .modal-dialog{margin:.5rem auto}
  #accountModal .modal-content{max-height:calc(100dvh - 1rem)}
  #accountModal .modal-body{overflow-y:auto;overscroll-behavior:contain}
}

@media(max-width:575.98px){
  .modal-dialog{width:auto;margin:.5rem}
  .modal-header,.modal-body,.modal-footer{padding-left:1rem;padding-right:1rem}
  .modal-footer{flex-wrap:wrap;gap:.5rem}
  .modal-footer>.btn{min-height:44px}
  .btn-sm{min-height:40px}
  .form-control,.form-select{font-size:16px}
  .section-title-row{align-items:flex-start}
  #historyModal canvas{max-height:min(52dvh,420px)}
}

@media(max-width:420px){
  #watchModal .col-6{width:100%}
  .destination-card{min-width:150px}
}

@media(max-width:991.98px) and (max-height:620px) and (orientation:landscape){
  .hero-section,.hero-inner{min-height:620px}
  .hero-inner{padding-top:28px;padding-bottom:260px}
  .hero-copy h1{font-size:clamp(2.1rem,6vw,3rem)}
  .hero-copy p{font-size:.9rem}
  .auth-dialog{margin-top:.35rem;margin-bottom:.35rem}
  .auth-modal-content{max-height:calc(100dvh - .7rem)}
}

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

/* Chart.js analytics expansion */
.analytics-deck{min-width:0}
.analytics-card{padding:16px 17px;background:#fff;border:1px solid #e3e8ed;border-radius:9px;box-shadow:0 4px 18px rgba(31,45,61,.05);min-width:0}
.analytics-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.analytics-card-head span{display:block;color:#9a6a20;font-size:.59rem;font-weight:850;letter-spacing:.09em}
.analytics-card-head h3{margin:3px 0 0;color:#1f2d3d;font-size:.91rem;font-weight:800}
.analytics-canvas{position:relative;height:230px;min-width:0}
.analytics-canvas-lg{height:260px}
.analytics-canvas canvas{max-width:100%;max-height:100%}
@media(max-width:767.98px){.analytics-card{padding:14px}.analytics-canvas,.analytics-canvas-lg{height:220px}}
@media(max-width:420px){.analytics-canvas,.analytics-canvas-lg{height:205px}}
