/* The theme is opt-in. No rule applies to the immersive atlas. */
.pata-theme-tools{display:flex;align-items:center;gap:8px;margin-left:auto}
.pata-account .pata-theme-toggle,.pata-theme-toggle{display:inline-grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #cfe1e7;border-radius:50%;background:#edf3f5;color:#183542;cursor:pointer;touch-action:manipulation}
.pata-theme-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.pata-theme-toggle:focus-visible{outline:3px solid #427f93;outline-offset:3px}
@media(hover:hover){.pata-theme-toggle:hover{background:#d4e7ed}}
html[data-theme=dark]{color-scheme:dark;background:#101e26;--coast-white:#101e26;--coast-ink:#edf4f6;--coast-gulf:#8cc9da;--coast-sky:#315d6e;--coast-line:#354c58;--coast-mist:#1d323e;--coast-warm:#302d29;--coast-sand:#7a654e;--coast-guanaco:#e6b68c;--coast-muted:#b5c7d0;--theme-panel:#172a35;--theme-input:#122530;--theme-hover:#294653;--theme-action:#24677d}
html[data-theme=dark] body{--text-primary:#edf4f6;--text-secondary:#b5c7d0;--paper:#101e26;--ink:#edf4f6;--muted:#b5c7d0;--line:#354c58;--white:#172a35;--surface:#1d323e;--surface-soft:#1d323e;--border:#354c58;--action:#8cc9da;--ui-surface:#1d323e;--ui-border:#354c58;--ui-muted:#b5c7d0;--pj-forest:#8cc9da;--pj-terra:#e6b68c;--pj-paper:#101e26;--pj-line:#354c58;--pj-sage:#1d323e;--pj-muted:#b5c7d0;background:var(--paper);color:var(--ink)}
html[data-theme=dark] :is(.provider-workspace,.client-workspace){--provider-blue:#8cc9da;--provider-soft:#1d323e;--provider-line:#354c58;--provider-muted:#b5c7d0;color:var(--ink)}
html[data-theme=dark] :is(.card,.workspace-panel,.proposal-booking,.public-profile,.access-panel,.payment-card,.consultation-card,.client-favorite,.publication-preview-card,.demo-sidebar-note,.guide-grid>li,.article-list article,dialog,.pata-account-panel,.pata-choice-panel,.browse-search-popover){background:var(--theme-panel)!important;color:var(--ink);border-color:var(--line)!important}
html[data-theme=dark] :is(.header,.market-nav,.category-nav,.browse-filter,.browse-search-fields,.browse-search-highlight){background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.workspace-sidebar,.account-stats a,.provider-payment,.provider-day-detail,.provider-calendar-settings,.provider-upgrade-panel,.consultation-response,.demo-invite,.demo-preview-summary,.demo-steps li,.demo-note,.legal-status,.consumer-receipt,.product-order .notice,.notice,.access-message.neutral,.access-message.success,.publication-preview-placeholder,.publication-photo-add,.how){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(input:not([type=checkbox],[type=radio],[type=range],[type=submit],[type=button],[type=hidden],[type=color]),select,textarea,.pata-choice>.pata-choice-trigger,.browse-toolbar select,.browse-filter-toggle,.browse-date-steps button,.browse-range-values input,.access-google-button){background:var(--theme-input)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#9aafb9;opacity:1}
html[data-theme=dark] :is(input,select,textarea){accent-color:#8cc9da}
html[data-theme=dark] .browse-search-fields :is(input,select){background:transparent!important}
html[data-theme=dark] :is(h1,h2,h3,h4,.product-order,.client-favorite-copy h3 a,.publication-preview-price){color:var(--ink)}
html[data-theme=dark] :is(.product-order dt,.product-order-footer,.provider-payment p,.provider-slot>p,.provider-capacity span,.provider-calendar-legend,.provider-calendar-settings p,.publication-welcome li p,.publication-photo-add small,.publication-photo-upload small,.client-welcome>p,.client-section-heading p,.client-empty p,.client-favorite-copy>p,.client-favorite-copy small,.client-booking p,.consultation-person,.consultation-meta,.consultation-card .policy-consultation,.consultation-card-actions>span,.pata-reservation-state,.provider-overview a){color:var(--muted)}
html[data-theme=dark] :is(.provider-tabs [aria-selected=true],.provider-slot-actions a,.provider-slot-actions button,.provider-agenda-refresh,.client-shortcuts a,.client-section-heading>a,.client-empty a,.client-favorite .proposal-save,.consultation-message strong,.consultation-response strong){color:var(--coast-gulf)}
html[data-theme=dark] :is(.pata-account .pata-theme-toggle,.header .pata-account .pata-notification-link,.header .pata-account-avatar,.header .pata-account-options,.pata-account-trigger,.pata-reservation-tools button,.pata-reservation-tools a.pata-calendar-link,.provider-month-nav>button,.provider-day,.provider-pill,.provider-small-button,.client-pill,.client-shortcuts span,.provider-slot-state,.client-state,.publication-preview-cover>span,.save,.card-tag:not([data-listing-type]),.card-image .proposal-save,.card-image .proposal-like){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.pata-account-register,.market-atlas-link,body .button.dark,.market-page .card-reserve,.browse-search-submit,.browse-calendar-grid button[aria-pressed=true],.provider-pill-primary,.client-pill-primary,.provider-day.is-selected){background:var(--theme-action);color:#fff;border-color:var(--theme-action)}
html[data-theme=dark] .market-page .card-price strong{color:#8cc9da}
html[data-theme=dark] :is(.card-price,.proposal-body>section,.listing-row,.pata-reservation,.consultation-card,.legal-header,.legal-footer,.product-order-header,footer,.pata-menu-logout,.booking-actions,.provider-tabs,.provider-slot,.provider-proposal){border-color:var(--line)}
html[data-theme=dark] .header .pata-notification-badge{border-color:var(--paper);background:#8cc9da;color:#101e26}
html[data-theme=dark] :is(.pata-choice-panel.pata-unified-menu>button:is(:hover,:focus-visible,[aria-selected=true]),.pata-choice-panel button:is(:hover,:focus-visible,[aria-pressed=true]),.pata-account-panel a:hover,.pata-menu-logout:hover,.workspace-sidebar a:is(:hover,[aria-current=page]),.provider-tabs [role=tab]:hover,.provider-day:hover,.provider-pill:hover,.provider-small-button:hover,.client-pill:hover,.access-kind a:not([aria-current]):hover,.access-google-button:hover,.pata-theme-toggle:hover){background:var(--theme-hover);color:var(--ink)}
html[data-theme=dark] :is(.notice.orange,.access-message:not(.neutral):not(.success),.payment-badge,.client-state.is-pending,.status.pending,.demo-state.pending,.demo-feedback){background:#3d321e;color:#f1d49b;border-color:#8b713b}
html[data-theme=dark] :is(.client-state.is-confirmed,.pata-reservation-state.confirmed,.demo-state.approved){background:#203c33;color:#a4dec5}
html[data-theme=dark] :is(.publication-error,.product-order-error,.client-error,.provider-slot-error,.admin-action-error,.provider-inline-confirm [role=alert],.provider-calendar-settings [role=alert],.provider-upgrade-panel [role=alert],.consultation-cancel,.status.rejected,.status.disabled,.demo-state.rejected){color:#ffb7a8!important}
html[data-theme=dark] :is(.publication-error,.status.rejected,.status.disabled,.demo-state.rejected){background:#422b2b}
html[data-theme=dark] :is(.provider-moderation-note,.provider-moderation-note p,.provider-calendar-revoke,.provider-payment-disconnect,.provider-proposal-actions button){color:#e7b4a9}
html[data-theme=dark] :is(.demo-state,.status.draft,.status.archived,.client-state.is-inactive,.provider-slot-state.is-closed,.provider-slot-state.is-complete){background:var(--surface);color:var(--muted)}
html[data-theme=dark] .free-card-credit{background:var(--theme-panel);border-color:var(--line)}
html[data-theme=dark] dialog::backdrop{background:#050d14c9}
html[data-theme=dark] :focus-visible{outline-color:#8cc9da}
html[data-theme=dark] ::selection{background:#315d6e;color:#fff}
/* Keep branded third-party payment buttons in their original colors. */
html[data-theme=dark] .payment-connect-yellow{background:#ffe600!important;color:#20333b!important;border-color:#ffe600!important}
html[data-theme=dark] .pata-account .pata-reservations-trigger{background:#c25216!important;color:#fff!important;border-color:#c25216!important}
html[data-theme=dark] .card-placeholder{background:#294653;color:#b5c7d0}
html[data-theme=dark] :is(.proposal-rating,.proposal-rating small,.browse-search-popover .text-button){color:#8cc9da}
html[data-theme=dark] .proposal-rating svg{stroke:#8cc9da}
html[data-theme=dark] :is(.rating-options,.skip){background:var(--theme-panel);color:var(--ink)}
html[data-theme=dark] .pata-theme-toggle{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .access-kind a[aria-current]{background:var(--theme-action);border-color:var(--theme-action);color:#fff}
html[data-theme=dark] :is(.city-request summary,.comments-more,.opinion-login,.opinions-retry,.card-full-price){color:#8cc9da}
html[data-theme=dark] :is(.city-request>p,.city-request>small,.city-admin-heading p,.city-admin-row p,.city-admin-row small,.city-admin-empty,.city-admin-heading h2 span,.content-report small){color:var(--muted)}
html[data-theme=dark] :is(#admin-city-requests,.notification-item.is-unread,.notification-symbol,.notification-empty>span,.consultation-target,.departure-state,.availability-hint,.provider-edit-link,.provider-form-feedback,.engagement-notice,.premium-community){background:var(--surface);color:var(--ink)}
html[data-theme=dark] :is(.provider-hero,.provider-comment,.booking-stepper button,.provider-crop-close,.provider-crop-zoom button,.payment-admin code){background:var(--theme-panel);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.availability-error,.provider-form-feedback.is-error){background:#422b2b;color:#ffb7a8}
html[data-theme=dark] :is(.notification-new,.departure-state.closed,.comment-feedback){background:#3d321e;color:#f1d49b}
html[data-theme=dark] .reservation-day.full{background:#422b2b;color:#ffb7a8}
html[data-theme=dark] .rating-options button.is-filled{color:#8cc9da}
/* Read notifications also need a dark surface beneath the theme's light ink. */
html[data-theme=dark] .notification-item{background:var(--theme-input);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .notification-item.is-unread{background:var(--surface);border-color:var(--coast-sky)}
html[data-theme=dark] :is(.notifications-toolbar,.notification-empty){border-color:var(--line)}
html[data-theme=dark] .notification-item:focus-within{outline-color:var(--coast-gulf)}
/* Give the extra control its own header row on narrow phones. */
@media(max-width:600px){
 .header:has(> .market-header-start){grid-template-columns:minmax(0,1fr);gap:12px}
 .header:has(> .market-header-start)>.market-header-start{grid-column:1;grid-row:1;flex-wrap:nowrap;justify-content:space-between}
 .header:has(> .market-header-start)>.pata-account{grid-column:1;grid-row:2;justify-self:end;max-width:100%;min-width:0;flex-wrap:wrap;justify-content:flex-end}
 .header:has(> .market-header-start)>.market-nav{grid-column:1;grid-row:3;min-width:0}
}
/* Light action buttons and badges need dark ink even on a dark page. */
html[data-theme=dark] :is(.row-actions button:not(.dark),.banner-actions .button:not(.dark),.category-tiles button,.premium-controls button){background:#fff;color:#17323e;border-color:#b8ccd4}
html[data-theme=dark] .category-tiles button>span{color:#18556a}
html[data-theme=dark] .status:not(.rejected,.disabled,.pending,.draft,.archived){color:#17323e}
/* Light controls keep dark ink, including SVG icons and two-line labels. */
html[data-theme=dark] :is(.proposal-save,.pata-choice-trigger,.pata-choice>.pata-choice-trigger,.access-password button,.privacy-preference-button,.pata-observability-choice,.map-region-button,.map-city-buttons button){background:#f7f9fa!important;color:#17323e!important;border-color:#b8ccd4!important}
html[data-theme=dark] .pata-choice-trigger span{color:#42606d!important}
html[data-theme=dark] .proposal-save svg{stroke:currentColor}
html[data-theme=dark] .pata-choice-panel button{background:transparent;color:inherit}
html[data-theme=dark] .pata-choice-panel button:is(:hover,:focus-visible,[aria-selected=true],[aria-pressed=true]){background:var(--theme-hover);color:var(--ink)}
html[data-theme=dark] .reservation-calendar{background:var(--theme-panel);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .schedule-weekdays span{background:#f7f9fa;color:#17323e}
html[data-theme=dark] :is(.reservation-day.available:hover,.reservation-day[aria-pressed=true],.schedule-weekdays input:checked+span){background:var(--theme-action);color:#fff}

.workspace-publications > summary{padding:12px 10px;border-radius:6px;font-size:13px;cursor:pointer}
.workspace-publications > a{display:block;margin-inline-start:10px}
.workspace-publications > summary:hover,.workspace-publications[open] > summary{background:#dbe9ee;color:var(--ink)}
html[data-theme=dark] .workspace-publications > summary:hover,
html[data-theme=dark] .workspace-publications[open] > summary{background:var(--theme-hover);color:var(--ink)}
@media(max-width:760px){.workspace-publications > summary{padding:9px;font-size:11px}}

:is(#product-card-form,#product-order-card){color-scheme:light;--ink:#172a35;color:#172a35}
html[data-theme=dark] :is(#product-card-form,#product-order-card) :is(h1,h2,h3,h4){color:#172a35}
html[data-theme=dark] :is(#product-card-form,#product-order-card)
  :is(input:not([type=checkbox],[type=radio],[type=hidden],[type=submit]),select,textarea){
  background:#fff!important;color:#172a35!important;border-color:#778892!important;accent-color:#24677d
}
html[data-theme=dark] :is(#product-card-form,#product-order-card) :is(input,textarea)::placeholder{color:#586b75}

html[data-theme=dark] .publication-preview-cover>span{background:var(--theme-panel);color:var(--ink)}

html[data-theme=dark] :is(.banner-search,.premium-spot,#browse-options,.experience-map-marker.is-empty){
  background:var(--theme-panel);color:var(--ink);border-color:var(--line)
}
html[data-theme=dark] .banner-search :is(.search-field,.city-field){border-color:var(--line)}

html[data-theme=dark] .pata-unified-menu>button[aria-selected=true]::after{color:var(--coast-gulf)}

.card-tag[data-listing-type=product]{--listing-tag-background:#f5d7c8}
.card-tag[data-listing-type=service]{--listing-tag-background:#cfe7ef}
.card-tag[data-listing-type=experience]{--listing-tag-background:#e5dbf3}
.card-tag[data-listing-type]{
  background:var(--listing-tag-background);color:#172a35
}
