/* Hallo Bali v4 — approved visual refinement. Horizontal photography, generous spacing, legible text. */
:root{--v4-border:#dce4ee;--v4-ink:#223e5e;--v4-red:#f51e30;--v4-shadow:0 13px 30px rgba(34,62,94,.075)}
body{font-size:15px;line-height:1.65}
.main{padding-top:30px;max-width:1390px}
.page-title,.app-heading{margin-bottom:28px}
.page-title h1,.app-heading h1{letter-spacing:-.025em;line-height:1.15}
.page-title p,.app-heading p{font-size:14px;line-height:1.7}
.section-head{margin-top:30px;margin-bottom:18px}
.section-head h2{font-size:25px}
.entry-grid,.photo-strip,.catalog-grid,.route-grid,.premium-experience-grid{gap:20px}
.entry{border-radius:18px;padding:20px;gap:13px}
.entry h3{font-size:15px;line-height:1.4}
.entry p{font-size:13px;line-height:1.55}
/* The content imagery is horizontal, with an informative card underneath. */
.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.item-card{display:flex;flex-direction:column;overflow:hidden;border-radius:22px;box-shadow:var(--v4-shadow);border:1px solid var(--line)}
.item-art{width:100%;aspect-ratio:16/9;height:auto!important;min-height:0!important;display:block;overflow:hidden}
.item-art img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center;display:block}
.item-art .art-label{padding:6px 10px;font-size:10px;letter-spacing:.055em;border-radius:999px}
.item-body{padding:21px 22px 17px;gap:8px}
.item-body h3{font-size:19px;line-height:1.35;margin-bottom:6px}
.item-body p{font-size:13px;line-height:1.65;margin:6px 0 12px}
.item-body .match-note,.item-body .data-note{font-size:12px;line-height:1.6}
.item-body .price{font-size:16px}
.item-info{gap:10px;font-size:12px;line-height:1.6}
.item-info span{gap:6px}
.item-info .icon{width:15px;height:15px}
.item-body .plan-footer{padding-top:14px;gap:12px}
.v4-card-action{border-top:1px solid var(--line);margin:11px 0 0;padding-top:12px;display:flex;justify-content:flex-end}
.v4-card-action .btn{background:var(--light);color:var(--ink);min-height:36px;border-radius:999px}
.photo-strip{gap:18px}
.spot{min-width:0;overflow:hidden;border-radius:19px}
.spot-image{aspect-ratio:16/9;height:auto!important;min-height:0!important}
.spot-image img{width:100%;height:100%;object-fit:cover}
.spot-copy{padding:16px 18px}
.spot-copy h3{font-size:16px;line-height:1.4}
.spot-copy p{font-size:13px}
/* Day template cards: image on top, information below */
.dashboard-columns .stack:has(.plan-card){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
.plan-card{display:flex;flex-direction:column;padding:0;border-radius:20px;overflow:hidden;gap:0}
.plan-art{aspect-ratio:16/9;height:auto!important;min-height:0!important;border-radius:0!important;flex:none;width:100%;position:relative}
.plan-art img{width:100%;height:100%;object-fit:cover}
.plan-card>div:nth-child(2){padding:17px 20px 19px;display:flex;flex-direction:column;flex:1}
.plan-card h3{font-size:17px;line-height:1.4}
.plan-card p{font-size:13px;line-height:1.6}
.plan-card .plan-footer{margin-top:auto;padding-top:14px}
.plan-card .data-note{margin:0;padding:10px 20px 16px;font-size:11px}
.premium-experience-visual{aspect-ratio:16/9!important;height:auto!important}
.premium-experience-image,.premium-experience-visual img{height:100%;width:100%;object-fit:cover}
.premium-experience-copy{padding:15px 17px 18px}
.premium-experience-copy h3{font-size:17px}
.premium-experience-copy p{font-size:13px}
/* Header language selector; currency moves into floating widget. */
.topbar{gap:12px}
.topcontrols{gap:9px}
.v4-lang{display:flex;align-items:center;min-width:0}
.v4-lang select{appearance:none;-webkit-appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23223e5e' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center;background-size:15px;padding:9px 28px 9px 12px;border:1px solid var(--line);border-radius:12px;color:var(--ink);font-weight:650;font-size:12px;max-width:160px;min-height:38px}
.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}
/* Two discreet buttons and an expandable panel above mobile navigation. */
.v4-floats{position:fixed;bottom:27px;right:25px;z-index:85;display:flex;flex-direction:column;align-items:flex-end;gap:10px;max-width:calc(100vw - 36px)}
.v4-float-buttons{display:flex;gap:9px;align-items:center}
.v4-float-button{border:1px solid #ccd9e8;min-height:45px;border-radius:999px;background:#fff;color:#223e5e;padding:10px 13px;box-shadow:0 10px 30px rgba(15,39,68,.14);display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:800}
.v4-float-button .icon{width:17px;height:17px}
.v4-float-button:hover,.v4-float-button:focus-visible{border-color:#ef3046;transform:translateY(-1px)}
.v4-float-panel{width:min(300px,calc(100vw - 32px));background:#fff;border:1px solid #d8e4f0;border-radius:19px;padding:17px;box-shadow:0 16px 50px rgba(11,35,68,.20);color:#223e5e}
.v4-float-panel[hidden]{display:none!important}
.v4-float-row{display:grid;grid-template-columns:100px 1fr;align-items:center;gap:10px;margin-bottom:11px}
.v4-float-row label{font-size:12px;font-weight:750}
.v4-float-row select{padding:9px 10px;border-radius:10px;border:1px solid #d4e0ed;background:#fff;color:#223e5e;min-width:0;font-size:13px}
.v4-float-note{font-size:11px;line-height:1.55;color:#697e94;margin:4px 0 10px}
.v4-rate-refresh{font-size:12px;font-weight:750;padding:9px 12px;border-radius:10px;border:1px solid #d8e4f0;background:#eff5fb;color:#223e5e;width:100%;margin:2px 0 7px}
body:has(#modalRoot .modal-backdrop) .v4-floats{display:none}
/* Place-to-place route selector: informative in app; route opened in Maps on click */
.v4-detail-route,.v4-transport-intro{display:flex;justify-content:space-between;align-items:center;gap:18px;background:linear-gradient(135deg,#ecf4fc,#fff);border:1px solid #cfdfef;border-radius:17px;padding:17px;margin:20px 0}
.v4-detail-route p,.v4-transport-intro p{font-size:12px;line-height:1.6;color:#64778c;margin:5px 0}
.v4-transport-intro h2{font-size:20px;margin:5px 0}
.v4-route-summary{display:flex;align-items:center;justify-content:space-between;gap:13px;background:#eef4fb;padding:18px;border-radius:17px;margin-bottom:19px}
.v4-route-summary>div{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.v4-route-summary small{color:#72859b;text-transform:uppercase;font-weight:800;font-size:10px}
.v4-route-summary strong{font-size:15px;line-height:1.35;overflow-wrap:anywhere}
.v4-route-origin{display:grid;grid-template-columns:1fr auto;gap:11px;align-items:end;margin-bottom:15px}
.v4-route-origin>label{grid-column:1/-1;font-weight:750;font-size:13px}
.v4-route-origin .field{grid-column:1/-1}
.v4-route-help{font-size:12px;color:#6a7e93;line-height:1.7;margin:10px 0 17px}
.v4-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0}
.v4-mode{background:#fff;border:1px solid #dce5ef;border-radius:16px;display:grid;grid-template-columns:40px 1fr 18px;column-gap:11px;row-gap:5px;text-align:left;align-items:center;padding:15px;color:#203c5e}
.v4-mode .icon-bubble{grid-row:1/3;width:38px;height:38px}
.v4-mode strong{font-size:13px;line-height:1.35}
.v4-mode small{grid-column:2/3;color:#687d92;line-height:1.5}
.v4-mode>.icon:last-child{grid-column:3/4;grid-row:1/3}
.v4-mode:hover{border-color:#ff3950;background:#fff7f8}
.v4-operators{border-top:1px solid #dde6ef;padding-top:17px;margin-top:21px}
.v4-operators h3{font-size:18px;margin:0 0 12px}
.v4-provider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:12px}
.v4-provider{padding:14px;border:1px solid #e0e8f1;border-radius:13px;display:flex;flex-direction:column;gap:7px}
.v4-provider strong{font-size:13px}
.v4-provider small{font-size:11px;line-height:1.5;color:#6b7e94}
.v4-provider a{font-size:12px;font-weight:750;margin-top:auto}
.v4-route-note-extra{border-top:1px solid var(--line);padding-top:16px;margin-top:20px}
.v4-translated-phrase{background:#eff5fc;padding:18px;border-radius:15px;margin:12px 0}
.v4-translated-phrase p{font-size:20px;font-weight:750;color:#223e5e;margin:7px 0}
.v4-translated-phrase small{font-size:11px;color:#6b7d92}
/* Source UI consistently in light and dark appearance. */
html.dark{color-scheme:dark;--bg:#101c2b;--paper:#17273a;--ink:#e7f0fa;--text:#d8e3ee;--muted:#a3b5c9;--green:#dceafd;--light:#20364d;--line:#304860;--peach:#372b38;--danger:#402431;--shadow:0 14px 33px rgba(0,0,0,.2)}
html.dark body{background:#101c2b;color:#e7f0fa}
html.dark .sidebar,html.dark .topbar,html.dark .bottom-nav{background:#142437!important;border-color:#30455f}
html.dark .prototype-bar{background:#1b2d40;color:#c0ccda}
html.dark .card,html.dark .item-card,html.dark .spot,html.dark .plan-card,html.dark .entry,html.dark .stat,html.dark .time-block,html.dark .modal,html.dark .field input,html.dark .field textarea,html.dark .field select,html.dark input,html.dark textarea,html.dark select,html.dark .chip,html.dark .tag.outline,html.dark .notice.green,html.dark .notice,html.dark .v4-lang select{background:#17273a!important;color:#e5edf7!important;border-color:#304860!important}
html.dark .entry:hover,html.dark .chip:hover{background:#20354d!important}
html.dark .item-body p,html.dark .small.muted,html.dark .tiny.muted,html.dark .page-title p,html.dark .app-heading p,html.dark .match-note,html.dark .data-note{color:#afc0d2!important}
html.dark .v4-float-panel,html.dark .v4-float-button,html.dark .v4-float-row select{background:#17283c;color:#f4f7fb;border-color:#3b536e}
html.dark .v4-float-note{color:#b1c2d6}
html.dark .v4-rate-refresh{background:#203750;color:#f0f6ff;border-color:#3b536e}
html.dark .v4-route-summary,html.dark .v4-translated-phrase,html.dark .v4-detail-route,html.dark .v4-transport-intro{background:#203650!important;color:#e8f0f7;border-color:#3c5871}
html.dark .v4-route-summary strong,html.dark .v4-route-summary small,html.dark .v4-translated-phrase p,html.dark .v4-detail-route p,html.dark .v4-transport-intro p{color:#e7eef7}
html.dark .v4-mode,html.dark .v4-provider{background:#182b40;border-color:#3b526b;color:#eef4fa}
html.dark .v4-mode small,html.dark .v4-provider small{color:#b7c8dc}
html.dark .v4-mode:hover{background:#243a52}
html.dark .modal-head{background:#17273a}
html.dark .disclosure,html.dark .detail-labels>div,html.dark .v4-operators{background:#18293c;border-color:#3a536c;color:#e6eef7}
html.dark .phrase-card,html.dark .circle-join{background:#203d60}
html.dark .profile-strip,html.dark .owner-chip,html.dark .setting-row{background:#1a3046;border-color:#3b526b;color:#d6e7f8}
@media(max-width:1100px){.dashboard-columns .stack:has(.plan-card){grid-template-columns:1fr}.catalog-grid{gap:17px}}
@media(max-width:740px){.main{padding:23px 17px 130px}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.item-body{padding:16px}.item-body h3{font-size:16px}.item-body p{font-size:12px}.item-art{aspect-ratio:16/9!important;height:auto!important}.v4-floats{bottom:calc(81px + env(safe-area-inset-bottom));right:13px}.v4-float-button{min-height:42px;padding:9px 11px}.v4-lang select{max-width:126px;font-size:11px;padding:8px 22px 8px 8px}.plan-card .plan-art{aspect-ratio:16/9}.v4-detail-route,.v4-transport-intro{align-items:stretch;flex-direction:column}.v4-mode-grid,.v4-provider-grid{grid-template-columns:1fr}}
@media(max-width:540px){.catalog-grid{grid-template-columns:1fr}.item-art{aspect-ratio:16/9!important;height:auto!important;min-height:0!important}.photo-strip{grid-template-columns:1fr!important}.spot-image{aspect-ratio:16/9!important}.item-body{padding:19px}.item-body h3{font-size:18px}.item-body p{font-size:13px}.topcontrols{gap:4px}.v4-lang select{max-width:105px;min-height:34px}.v4-float-panel{max-height:calc(100vh - 190px);overflow:auto}.v4-route-origin{grid-template-columns:1fr}.v4-route-origin>label{grid-column:1}.v4-route-origin .field{grid-column:1}}
@media(prefers-reduced-motion:reduce){.v4-float-button,.item-card{transition:none}}
.bali-update-banner{position:fixed;z-index:96;left:50%;bottom:26px;transform:translateX(-50%);width:min(610px,calc(100vw - 28px));display:flex;align-items:center;gap:12px;padding:15px 16px;background:#fff;border:1px solid #d8e4ef;border-left:4px solid #f51e30;border-radius:16px;box-shadow:0 14px 40px rgba(11,35,64,.18);color:#223e5e}
.bali-update-banner span{display:grid;gap:4px;flex:1}.bali-update-banner strong{font-size:13px}.bali-update-banner small{font-size:11px;line-height:1.5;color:#697b8e}.bali-update-banner button{padding:10px 12px;border-radius:10px;border:1px solid #dae4ee;background:#fff;color:#223e5e;font-size:12px;font-weight:750}.bali-update-banner #baliUpdateNow{background:#223e5e;color:#fff;border-color:#223e5e}
html.dark .bali-update-banner{background:#182d43;color:#fff;border-color:#37516d}html.dark .bali-update-banner small{color:#bed0e5}
@media(max-width:740px){.bali-update-banner{bottom:calc(86px + env(safe-area-inset-bottom));flex-wrap:wrap}.bali-update-banner span{flex-basis:100%}}
/* Dark-mode contrast audit fixes (sidebar, active navigation, image fallbacks). */
html.dark .nav button{color:#c1d1e4!important}
html.dark .nav button.active,html.dark .bottom-nav button.active{background:#2a507b!important;color:#fff!important}
html.dark .nav button.active .icon,html.dark .bottom-nav button.active .icon{color:#fff!important}
html.dark .side-pack{background:#1b3048!important;border-color:#35506b!important;color:#e7f0fb!important}
html.dark .side-pack h3,html.dark .side-pack p,html.dark .side-label{color:#dae7f5!important}
html.dark .icon-surface,html.dark .item-art:not(:has(img)),html.dark .spot-image:not(:has(img)),html.dark .plan-art:not(:has(img)){background:#253e59!important;color:#ceddf0!important}
html.dark .item-art>.icon-bubble{background:#f1f5fa;color:#203f63}
html.dark .tag,html.dark .tag.outline{background:#2b4360!important;color:#e9f3ff!important;border-color:#3c5876!important}
html.dark .item-body .price,html.dark .stat .number,html.dark .premium-personal-panel h3{color:#f1f6ff!important}
html.dark .source-link,html.dark .spot-copy,html.dark .premium-experience{background:#17273a!important;color:#e7f0fa!important}
html.dark .entry .entry-icon,html.dark .icon-bubble:not(.red){background:#2c4560;color:#e9f2fb}
html.dark .v4-float-button:hover,html.dark .v4-float-button:focus{background:#2d4663;color:#fff}
.v4-converted{display:block;margin:4px 0 0;font-size:12px;font-weight:600;line-height:1.4;color:var(--muted)}
html.dark .v4-converted{color:#bad0e6}
/* Small-screen header remains one row; owner status already appears in Today. */
@media(max-width:480px){
 .topbar{gap:4px;padding:10px 12px!important;min-height:60px}
 .mobile-brand{min-width:0;flex:0 1 auto}
 .mobile-brand img{width:126px!important;max-width:35vw!important;height:auto!important;max-height:38px;object-fit:contain}
 .topcontrols{gap:4px;flex:0 0 auto}
 .topcontrols #modeButton{display:none}
 .v4-lang select{width:100px;max-width:100px;min-height:35px;padding:7px 20px 7px 8px}
 .topbar .icon-btn{width:32px;height:32px}
 .page-title h1,.app-heading h1{overflow-wrap:anywhere}
 .table-wrap{max-width:100%;overflow-x:auto}
}
