/* Shared theme for the public site and management workspace. */
.theme-toggle{position:fixed;bottom:20px;right:20px;z-index:60;display:flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid var(--line);border-radius:30px;background:var(--bg);color:var(--ink);box-shadow:0 3px 18px #0002;font-size:12px;font-weight:600}.theme-toggle svg{width:18px;height:18px}.theme-sun{display:none}html[data-theme=dark] .theme-moon{display:none}html[data-theme=dark] .theme-sun{display:block}
html[data-theme=dark]{color-scheme:dark;--ink:#f1f1f3;--muted:#b4b4bf;--line:#36363e;--bg:#16161b;--soft:#222229;--surface:#222229;--raised:#2d2d35;--pink:#ff4d80;--pink-dark:#ff729a}
html[data-theme=dark] body{color:var(--ink);background:var(--bg)}
html[data-theme=dark] :is(.site-header,.admin-sidebar,.admin-topbar,.panel,.booking-card,.auth-form,.trip-card,.admin-property-card,.stat,.admin-main .empty,.filter-panel,.filter-modal,.search-dropdown,.search-popover,.calendar-footer,.guest-footer,.story-card blockquote,.story-card blockquote:after){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.site-footer,.admin-body,.account-tabs,.reassurance){background:var(--bg);border-color:var(--line)}
html[data-theme=dark] :is(input,select,textarea){background:var(--bg);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] input:disabled{background:var(--raised);color:#9494a1}
html[data-theme=dark] :is(.muted,.fine,.section-heading p,.search-intro>p,.card-meta,.stay-card>p,.card-price>span,.lead,.booking-note,.map-privacy,.price-fields label,.filter-section p,.filter-modal-footer small,.calendar-weekdays,.date-selection-summary,.suggested-label,.destination-option small,.guest-counter-row small,.guest-help,.story-location,.destination-tile small,.admin-property-card p,.workspace-label,.sidebar-bottom,.table-empty,.results-pagination p){color:var(--muted)}
html[data-theme=dark] :is(.btn.outline,.account-pill,.carousel-controls button,.filter-counter button,.counter-controls button,.round-close,.dropdown-mobile-header button,.map-fit,.map-panel-heading button,.date-tolerance button,.duration-options button,.flex-months button,.calendar-navigation button){background:var(--raised);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.btn,.search-submit){color:#fff;background:#e60949}
html[data-theme=dark] .btn.outline{background:transparent;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .search-bar{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .experience-search.search-open{background:var(--bg);border-color:var(--line)}
html[data-theme=dark] .experience-search :is(.search-zone,.zone-who>button:first-child,.destination-option,.calendar-day-cell button,.clear-dates,.filter-clear){color:var(--ink)}
html[data-theme=dark] .experience-search :is(input,.zone-value){background:transparent;color:var(--muted)}
html[data-theme=dark] .experience-search .search-zone.is-active{background:var(--raised);color:var(--ink)}
html[data-theme=dark] .experience-search .search-zone:not(.is-active):hover{background:var(--raised)}
html[data-theme=dark] .experience-search .destination-option{border-color:var(--line)}
html[data-theme=dark] .experience-search .destination-option:hover,html[data-theme=dark] .experience-search .destination-option[aria-selected=true]{background:var(--raised)}
html[data-theme=dark] .experience-search .search-zone:after{background:var(--line)}
html[data-theme=dark] .home-hero :is(h1,.intro-kicker,.search-intro>p){color:#fff}
html[data-theme=dark] .home-hero .experience-search.glass-enabled.search-open{background:transparent;border-color:#ffffff35}
html[data-theme=dark] .home-hero .experience-search.glass-enabled.search-open .search-zone:not(.is-active):not(.is-complete){background:transparent}
html[data-theme=dark] .home-hero .experience-search.glass-enabled.search-open :is(.search-zone.is-complete,.search-zone.is-active,.search-zone:not(.is-active):is(:hover,:focus-within)){background:var(--raised);color:var(--ink)}
html[data-theme=dark] .home-hero .experience-search.glass-enabled.search-open :is(.search-zone.is-complete,.search-zone.is-active,.search-zone:not(.is-active):is(:hover,:focus-within))>:is(label,input,span,button:first-child){color:var(--ink)}
html[data-theme=dark] .home-hero .experience-search.glass-enabled.search-open :is(.search-zone.is-complete,.search-zone.is-active,.search-zone:hover) .zone-value{color:var(--muted)}
html[data-theme=dark] .calendar-day-cell.in-range{background:#393942}
html[data-theme=dark] .calendar-day-cell button:is(.selected-day,.preview-end){background:var(--ink);color:var(--bg);border-color:var(--ink)}
html[data-theme=dark] .calendar-day-cell button:disabled{color:#666672}
html[data-theme=dark] .calendar-day-cell button:hover:not(:disabled){border-color:var(--ink)}
html[data-theme=dark] :is(.amenity-chips span,.filter-modal-header,.filter-modal-footer,.filter-section,.host-summary,.category-row,.account-tabs,.destination-tile,.guest-stories,.guest-counter-row,.calendar-footer,.date-inputs,.guest-select,.faq,.trip-card,th,td){border-color:var(--line)}
html[data-theme=dark] .amenity-chips input:checked+span{background:#472636;border-color:var(--pink)}
html[data-theme=dark] :is(.price-sliders input,.price-sliders input:focus){background:transparent}
html[data-theme=dark] .price-sliders input::-webkit-slider-thumb{background:var(--ink);border-color:#777}
html[data-theme=dark] .price-histogram span.outside{background:#484852}
html[data-theme=dark] .filter-clear{color:var(--ink)}
html[data-theme=dark] .story-avatar,html[data-theme=dark] .avatar{background:#442c36;color:#ff8ead}
html[data-theme=dark] .destination-tile:hover{background:var(--surface)}
html[data-theme=dark] :is(th,.table-wrap thead,.calendar-table th){background:var(--raised);color:var(--muted)}
html[data-theme=dark] :is(td,.info-list dd,.admin-sidebar nav a,.sidebar-bottom a,.text-button,.toolbar label){color:var(--ink)}
html[data-theme=dark] tr:hover td,html[data-theme=dark] .admin-sidebar nav a:hover{background:var(--raised)}
html[data-theme=dark] .admin-sidebar nav a.active{background:#442635;color:var(--pink)}
html[data-theme=dark] :is(.status,.guest-badge,.type-mini){color:#25252b}
html[data-theme=dark] .status.pending{background:#473e22;color:#f7da85}html[data-theme=dark] :is(.status.confirmed,.status.completed){background:#203e32;color:#99e0bc}html[data-theme=dark] .status.cancelled{background:#482a33;color:#ffb3c4}
html[data-theme=dark] :is(.error,.notice,.flash){background:#362731;color:#f4dbe5;border-color:#704259}
html[data-theme=dark] :is(.conversation blockquote,.quote-breakdown,.booking-total){border-color:var(--line);color:var(--ink)}
html[data-theme=dark] .map-content{border-color:var(--line)}
html[data-theme=dark] #discovery-map{background:#24262c}
html[data-theme=dark] .leaflet-tile-pane{filter:invert(.9) hue-rotate(180deg) saturate(.65)}
html[data-theme=dark] :is(.leaflet-popup-content-wrapper,.leaflet-popup-tip,.area-price-label,.leaflet-bar a,.leaflet-control-attribution,.map-tile-error){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .leaflet-container .leaflet-control-attribution a{color:var(--pink)}
html[data-theme=dark] .area-popup small{color:var(--muted)}
html[data-theme=dark] .discovery-map-panel .leaflet-container .area-popup a>span{color:var(--ink)}
html[data-theme=dark] .area-price-icon:is(:hover,.is-active) .area-price-label{background:#e60949;color:white}
html[data-theme=dark] .results-pagination a[aria-current=page]{background:#e60949;color:white}
@media(max-width:600px){.theme-toggle{right:12px;bottom:12px;width:40px;height:40px;padding:10px;justify-content:center}.theme-toggle span{display:none}}
html[data-theme=dark] :is(.filter-button,.empty,.rate-chip,dialog,.skip){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.category,.prose,.review p,.price-row,.auth-switch,.conversation p,.content-page.narrow>p,.faq p,.chart-col small,.chart-col span,.chart-note,.activity-item small,.info-list dt,.message-meta small,.settings-grid p,.legend,.demo-label,.stat>small,.type-mini){color:var(--muted)}
html[data-theme=dark] .category.active{color:var(--pink)}
html[data-theme=dark] .footer-top>div>a:not(.brand){color:var(--muted)}
html[data-theme=dark] .price-row.total{color:var(--ink)}
html[data-theme=dark] blockquote{background:var(--raised)}
html[data-theme=dark] .story-card blockquote{background:var(--surface)}
html[data-theme=dark] .account-pill svg:last-child{background:var(--raised)}
html[data-theme=dark] .status{background:var(--raised);color:var(--ink)}
html[data-theme=dark] .calendar-table .booked{background:#572d40;color:#ffbfd2}
html[data-theme=dark] .calendar-table .blocked{background:#3c3c49;color:#c6c6d4}
html[data-theme=dark] .quote-error{color:#ff9db8}
/* Appearance switch belongs in the navigation, after the currency. */
.theme-toggle{position:static;inset:auto;z-index:auto;width:36px;height:36px;flex-shrink:0;padding:8px;justify-content:center;border-color:transparent;box-shadow:none;background:transparent;color:var(--ink)}.theme-toggle:hover{background:var(--soft)}.theme-toggle svg{width:20px;height:20px}
@media(max-width:600px){.theme-toggle{position:static;inset:auto;width:34px;height:34px;padding:7px}.header-right .currency{display:inline;font-size:11px}}

html[data-theme=dark] .flash{background:#20332b;color:#c0ead2;border-color:#365341}html[data-theme=dark] .flash:before{background:#304c3d;color:#ace2c1}
html[data-theme=dark] .error{background:#38232d;color:#ffc2d3;border-color:#603448}html[data-theme=dark] .error:before{background:#582c3c;color:#ffabc5}
html[data-theme=dark] .notice{background:#252b38;color:#d0d8ed;border-color:#3a4359}html[data-theme=dark] .notice:before{background:#35415a;color:#c7d5f5}

/* Match the review bubble pointer to its surface in dark mode. */
html[data-theme="dark"] .story-card blockquote::after{background:var(--surface);border-right-color:var(--line);border-bottom-color:var(--line)}
/* Explicit selected-day contrast overrides the search-zone text rule. */
html[data-theme=dark] .experience-search .calendar-day-cell button:is(.selected-day,.preview-end),html[data-theme=dark] .stay-calendar-dialog .calendar-day-cell button:is(.selected-day,.preview-end){background:#f1f1f3;color:#16161b;border-color:#f1f1f3}
html[data-theme=dark] .stay-calendar-dialog .calendar-day-cell.in-range{background:#393942}
html[data-theme=dark] .stay-calendar-dialog .calendar-day-cell button:disabled{color:#777781}
html[data-theme=dark] .calendar-table td.pending-hold{background:#493b25;color:#f4cf89}html[data-theme=dark] .calendar-table td.blocked{background:#3c3c49;color:#c6c6d4}html[data-theme=dark] .calendar-table td:first-child,html[data-theme=dark] .calendar-table th:first-child{background:var(--bg)}

/* Dashboard dark palette, matched to the Codex project; public theme is unchanged. */
html[data-theme-scope=dashboard][data-theme=dark]{--ink:#f4f4f5;--muted:#a1a1aa;--line:#2c2c30;--bg:#16181d;--soft:#202023;--surface:#151517;--raised:#202023;--paper:#111113;--pink:#635bdf;--pink-dark:#5148c4}
html[data-theme-scope=dashboard][data-theme=dark] .admin-body{background:#16181d;color:var(--ink)}
html[data-theme-scope=dashboard][data-theme=dark] :is(.admin-sidebar,.admin-topbar,.panel,.stat,dialog,.visitor-metrics article,.admin-property-card,.team-list-panel,.select-menu){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme-scope=dashboard][data-theme=dark] :is(input:not([type=checkbox]):not([type=hidden]),select,textarea){background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-theme-scope=dashboard][data-theme=dark] :is(.btn:not(.outline),.appearance-switch input:checked+.appearance-switch-track){background:#635bdf;border-color:#635bdf;color:#fff}
html[data-theme-scope=dashboard][data-theme=dark] .btn:not(.outline):hover{background:#5148c4}
html[data-theme-scope=dashboard][data-theme=dark] .admin-sidebar nav a{color:var(--muted)}
html[data-theme-scope=dashboard][data-theme=dark] .admin-sidebar nav a.active{background:#635bdf;color:#fff}
html[data-theme-scope=dashboard][data-theme=dark] :is(.admin-sidebar nav a:hover,.action-icon,.inbox-row.is-selected,.inbox-row:hover,.appearance-switch-row,.dashboard-toggle,.theme-brand-preview,.order-document-card,.support-bubble,.support-chat-messages,.photo-drop,.team-avatar,.online-visitors-trigger){background:var(--soft);color:var(--ink);border-color:var(--line)}
html[data-theme-scope=dashboard][data-theme=dark] :is(.eyebrow,.text-link,.team-role){color:#b5afff}
html[data-theme-scope=dashboard][data-theme=dark] :is(.brand,.brand-dot){color:#e60949}
html[data-theme-scope=dashboard][data-theme=dark] :is(thead,th){background:var(--soft);color:var(--muted);border-color:var(--line)}
html[data-theme-scope=dashboard][data-theme=dark] :is(td,.order-document-title h4,.support-bubble p,.inbox-row-content,.inbox-row-content strong){color:var(--ink);border-color:var(--line)}
html[data-theme-scope=dashboard][data-theme=dark] :is(.btn.outline,.round-close){background:transparent;color:var(--ink);border-color:var(--line)}
html[data-theme-scope=dashboard][data-theme=dark] .appearance-switch-track{background:#52677f}
html[data-theme-scope=dashboard][data-theme=dark] .support-bubble.is-mine{background:#635bdf20;border-color:#635bdf55}
