/* DarFindr account design system overrides.
   This final layer keeps shared dashboard UI consistent across host, guest and staff views. */

.df-app-dashboard-page {
    --df-ui-bg: #fffaf6;
    --df-ui-surface: rgba(255, 255, 255, .78);
    --df-ui-surface-strong: rgba(255, 255, 255, .94);
    --df-ui-soft: rgba(187, 132, 93, .085);
    --df-ui-border: rgba(45, 28, 15, .085);
    --df-ui-border-strong: rgba(45, 28, 15, .14);
    --df-ui-ink: #2D1C0F;
    --df-ui-muted: rgba(45, 28, 15, .58);
    --df-ui-accent: #BB845D;
    --df-ui-radius: 18px;
    --df-ui-radius-sm: 11px;
    --df-ui-shadow: 0 18px 55px rgba(45, 28, 15, .075);
    --df-ui-shadow-strong: 0 28px 90px rgba(45, 28, 15, .18);
}

.df-app-dashboard-page :where(button, a, input, select, textarea) {
    -webkit-tap-highlight-color: transparent;
}

html.df-ui-drawer-open,
body.df-ui-drawer-open {
    overflow: hidden;
}

.df-app-dashboard-page :where(input, select, textarea) {
    border-color: var(--df-ui-border);
    color: var(--df-ui-ink);
}

.df-app-dashboard-page :where(input, select, textarea):focus {
    border-color: rgba(187, 132, 93, .42);
    box-shadow: 0 0 0 4px rgba(187, 132, 93, .11);
    outline: none;
}

.df-app-dashboard-page .df-host-topbar {
    border-bottom: 1px solid var(--df-ui-border);
    background: rgba(255, 250, 246, .84);
    backdrop-filter: blur(18px);
}

.df-app-dashboard-page .df-host-topbar-main {
    gap: 10px;
}

.df-host-topbar .df-host-backend-link,
.df-support-switcher-shell,
.df-test-account-switcher,
.df-app-dashboard-page .df-account-language-switch,
.df-app-dashboard-page .df-host-notification,
.df-app-topbar-user,
.df-host-topbar-actions :where(a, button) {
    min-height: 36px;
    border: 1px solid var(--df-ui-border);
    border-radius: 999px;
    background: var(--df-ui-surface);
    box-shadow: 0 10px 28px rgba(45, 28, 15, .035);
}

.df-host-topbar-actions :where(a, button):hover,
.df-host-topbar .df-host-backend-link:hover,
.df-app-dashboard-page .df-account-language-switch:hover,
.df-app-dashboard-page .df-host-notification:hover {
    border-color: rgba(187, 132, 93, .24);
    background: var(--df-ui-surface-strong);
    color: var(--df-ui-ink);
    transform: translateY(-1px);
}

.df-app-menu a {
    grid-template-columns: 20px minmax(0, 1fr) auto;
}

.df-app-menu-badge {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border: 1px solid rgba(187, 132, 93, .24);
    border-radius: 999px;
    background: rgba(187, 132, 93, .12);
    color: var(--df-ui-ink);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.df-app-menu a.is-active .df-app-menu-badge {
    border-color: rgba(187, 132, 93, .34);
    background: rgba(187, 132, 93, .18);
}

.df-booking-page-toolbar,
.df-dashboard-page-toolbar,
.df-listing-page-toolbar {
    gap: 12px;
    margin-bottom: 16px;
}

.df-booking-page-toolbar h2,
.df-dashboard-page-toolbar h2,
.df-listing-page-toolbar h2 {
    color: var(--df-ui-ink);
    letter-spacing: 0;
}

.df-booking-filter-bar,
.df-dashboard-toolbar-search,
.df-listing-toolbar-tabs,
.df-staff-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.df-booking-filter-bar :where(a, button),
.df-listing-toolbar-tabs :where(a, button),
.df-staff-filter-bar :where(a, button),
.df-dashboard-toolbar-search :where(a, button),
.df-booking-list-controls button,
.df-host-verification-detail-actions a,
.df-calendar-quick-grid a,
.df-calendar-status-actions a,
.df-calendar-detail-actions :where(a, button) {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid var(--df-ui-border);
    border-radius: 999px;
    background: var(--df-ui-surface);
    color: var(--df-ui-ink);
    font-size: 12px;
    font-weight: 820;
    line-height: 1;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.df-booking-filter-bar :where(a, button):hover,
.df-listing-toolbar-tabs :where(a, button):hover,
.df-staff-filter-bar :where(a, button):hover,
.df-dashboard-toolbar-search :where(a, button):hover,
.df-booking-list-controls button:hover,
.df-host-verification-detail-actions a:hover,
.df-calendar-quick-grid a:hover,
.df-calendar-status-actions a:hover,
.df-calendar-detail-actions :where(a, button):hover {
    border-color: rgba(187, 132, 93, .25);
    background: var(--df-ui-surface-strong);
    box-shadow: 0 10px 30px rgba(45, 28, 15, .055);
    transform: translateY(-1px);
}

.df-booking-filter-bar .is-active,
.df-listing-toolbar-tabs .is-active,
.df-staff-filter-bar .is-active,
.df-dashboard-toolbar-search .is-active {
    border-color: rgba(187, 132, 93, .32);
    background: var(--df-ui-soft);
    color: var(--df-ui-ink);
}

.df-booking-list-controls :where(input, select),
.df-dashboard-toolbar-search :where(input, select),
.df-staff-filter-bar :where(input, select) {
    min-height: 38px;
    border: 1px solid var(--df-ui-border);
    border-radius: 999px;
    background: var(--df-ui-surface);
    color: var(--df-ui-ink);
    box-shadow: none;
}

.df-dashboard-booking,
.df-host-property-row,
.df-staff-list-row,
.df-host-verification-row,
.df-listing-approval-row {
    border-color: var(--df-ui-border);
    background: var(--df-ui-surface);
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.df-dashboard-booking:hover,
.df-host-property-row:hover,
.df-staff-list-row:hover,
.df-host-verification-row:hover,
.df-listing-approval-row:hover {
    border-color: rgba(187, 132, 93, .24);
    background: var(--df-ui-surface-strong);
    box-shadow: 0 16px 42px rgba(45, 28, 15, .06);
}

.df-booking-page-toolbar {
    min-width: 0;
}

.df-booking-page-toolbar h2 {
    white-space: nowrap;
}

.df-booking-page-toolbar .df-booking-filter-bar,
.df-booking-list-controls {
    min-width: 0;
}

.df-booking-page-toolbar .df-booking-filter-bar,
.df-listing-page-toolbar .df-booking-filter-bar,
.df-host-verification-metrics,
.df-staff-readiness-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.df-booking-page-toolbar .df-booking-filter-bar::-webkit-scrollbar,
.df-listing-page-toolbar .df-booking-filter-bar::-webkit-scrollbar,
.df-host-verification-metrics::-webkit-scrollbar,
.df-staff-readiness-filters::-webkit-scrollbar {
    display: none;
}

.df-booking-page-toolbar .df-booking-filter-bar a,
.df-listing-page-toolbar .df-booking-filter-bar a,
.df-host-verification-metrics a,
.df-staff-readiness-filters a {
    flex: 0 0 auto;
    white-space: nowrap;
}

.df-dashboard-booking.df-host-booking {
    grid-template-columns: 104px minmax(0, 1fr) minmax(176px, max-content);
    grid-template-areas: "media main side";
    grid-auto-flow: column;
    min-width: 0;
}

.df-dashboard-booking-media {
    grid-area: media;
    flex: 0 0 auto;
    width: 104px;
    height: 76px;
}

.df-dashboard-booking-main,
.df-dashboard-booking-side,
.df-dashboard-booking h3,
.df-dashboard-booking h3 a,
.df-dashboard-booking-meta {
    min-width: 0;
}

.df-dashboard-booking-main {
    grid-area: main;
}

.df-dashboard-booking h3 a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.df-dashboard-booking-meta > :where(span, a, strong) {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.df-dashboard-booking-side {
    grid-area: side;
    display: grid;
    align-content: center;
    min-width: max-content;
}

.df-host-booking-actions {
    flex-wrap: nowrap;
}

.df-host-booking-actions a,
.df-renter-danger-link {
    white-space: nowrap;
}

.df-rtl .df-booking-page-toolbar {
    direction: rtl;
}

.df-rtl .df-booking-list-controls {
    direction: rtl;
}

.df-rtl .df-booking-list-controls :where(input[type="search"], select) {
    text-align: right;
}

.df-rtl .df-dashboard-booking.df-host-booking {
    grid-template-columns: minmax(176px, max-content) minmax(0, 1fr) 104px;
    grid-template-areas: "side main media";
    direction: ltr;
}

.df-rtl .df-dashboard-booking-media {
    grid-area: media;
}

.df-rtl .df-dashboard-booking-main {
    grid-area: main;
    direction: rtl;
    text-align: right;
}

.df-rtl .df-dashboard-booking-side {
    grid-area: side;
    direction: rtl;
    justify-items: start;
    text-align: right;
}

.df-rtl .df-host-booking-actions {
    justify-content: flex-start;
}

.df-rtl .df-dashboard-booking-kicker,
.df-rtl .df-dashboard-booking-meta > :where(span, a, strong),
.df-rtl .df-dashboard-booking-side strong,
.df-rtl .df-booking-detail-summary span,
.df-rtl .df-booking-booker-card :where(a, small),
.df-rtl .df-booking-detail-main .df-renter-detail-panel dd,
.df-rtl .df-booking-detail-side .df-renter-detail-panel dd,
.df-rtl .df-calendar-detail :where(a[href^="tel:"], a[href^="mailto:"], dd, time),
.df-rtl .df-calendar-detail-meta,
.df-rtl .df-calendar-booking-id,
.df-rtl .df-calendar-time-label {
    unicode-bidi: plaintext;
}

.df-rtl :where(
    a[href^="tel:"],
    a[href^="mailto:"],
    .df-technical-value,
    .df-dashboard-booking-kicker,
    .df-dashboard-booking-side strong,
    .df-booking-pagination-count,
    .df-booking-pagination-pages,
    .df-calendar-booking-id
) {
    direction: ltr;
}

.df-technical-value {
    unicode-bidi: isolate;
}

.df-rtl .df-app-menu a {
    display: flex;
    direction: rtl;
}

.df-rtl .df-app-menu a svg {
    flex: 0 0 20px;
}

.df-rtl .df-app-menu a span {
    flex: 1 1 auto;
    direction: rtl;
    text-align: right;
}

.df-rtl .df-app-menu-badge {
    margin-inline-start: auto;
    direction: ltr;
}

.df-rtl .df-app-menu a.is-active::before {
    inset: 9px -5px 9px auto;
}

@media (max-width: 860px) {
    .df-dashboard-booking.df-host-booking,
    .df-rtl .df-dashboard-booking.df-host-booking {
        grid-template-columns: 84px minmax(0, 1fr);
        grid-template-areas:
            "media main"
            "side side";
        grid-auto-flow: row;
    }

    .df-dashboard-booking-media,
    .df-rtl .df-dashboard-booking-media {
        grid-area: media;
        width: 84px;
        height: 72px;
    }

    .df-dashboard-booking-main,
    .df-rtl .df-dashboard-booking-main {
        grid-area: main;
    }

    .df-dashboard-booking-side,
    .df-rtl .df-dashboard-booking-side {
        grid-area: side;
        justify-items: start;
        min-width: 0;
        width: 100%;
    }

    .df-host-booking-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

.df-staff-inspector-overlay,
body > .df-calendar-details,
.df-app-dashboard-page .df-calendar-details {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    align-items: stretch;
    justify-items: end;
    padding: 8px;
    overflow: hidden;
    background: rgba(17, 12, 8, .28);
    backdrop-filter: blur(7px);
}

body > .df-calendar-details:not(.is-open),
.df-app-dashboard-page .df-calendar-details:not(.is-open) {
    display: none !important;
    pointer-events: none;
}

body > .df-calendar-details.is-open,
.df-app-dashboard-page .df-calendar-details.is-open {
    display: grid !important;
    pointer-events: auto;
}

body > .df-calendar-details .df-calendar-detail:not(.is-active),
.df-app-dashboard-page .df-calendar-details .df-calendar-detail:not(.is-active) {
    display: none !important;
}

.df-staff-inspector-backdrop {
    position: fixed;
    inset: 0;
}

.df-staff-inspector-panel,
.df-ui-drawer-panel,
body > .df-calendar-details .df-calendar-detail.is-active,
.df-app-dashboard-page .df-calendar-details .df-calendar-detail.is-active {
    position: relative;
    z-index: 100001;
    box-sizing: border-box;
    width: min(900px, calc(100vw - 18px));
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
    align-self: stretch;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 24px;
    background: rgba(255, 252, 248, .97);
    box-shadow: var(--df-ui-shadow-strong);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.df-ui-drawer-panel {
    display: block;
    scrollbar-gutter: stable;
}

.df-ui-drawer-panel-wide {
    width: min(900px, calc(100vw - 18px));
}

.df-ui-drawer-head {
    position: relative;
    z-index: 1;
}

.df-ui-drawer-body {
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
}

.df-staff-inspector-panel > .df-ui-drawer-body {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.df-staff-inspector-panel > .df-ui-drawer-close + .df-ui-drawer-body {
    padding-top: 54px;
}

.df-calendar-detail > .df-ui-drawer-body {
    padding-bottom: 4px;
}

.df-listing-approval-detail.df-staff-inspector-panel,
.df-host-verification-detail.df-staff-inspector-panel,
.df-staff-add-team-card.df-staff-inspector-panel {
    width: min(620px, calc(100vw - 18px));
}

.df-staff-inspector-close,
.df-ui-drawer-close,
.df-calendar-detail-actions .df-calendar-detail-close,
.df-calendar-detail-actions > a:last-child {
    display: grid;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--df-ui-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: var(--df-ui-ink);
    box-shadow: 0 10px 28px rgba(45, 28, 15, .05);
    font-size: 20px;
    font-weight: 820;
    line-height: 1;
}

.df-ui-drawer-panel > .df-ui-drawer-close,
.df-staff-inspector-panel > .df-staff-inspector-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
}

.df-staff-inspector-close:hover,
.df-ui-drawer-close:hover,
.df-calendar-detail-actions .df-calendar-detail-close:hover,
.df-calendar-detail-actions > a:last-child:hover {
    border-color: rgba(187, 132, 93, .26);
    background: #fff;
    color: var(--df-ui-ink);
    transform: translateY(-1px);
}

.df-host-verification-profile img,
.df-calendar-booker-card img,
.df-booking-detail-guest img {
    flex: 0 0 auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.df-host-verification-profile {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.df-host-verification-profile > img,
.df-host-verification-profile > span {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 999px;
    background: rgba(45, 28, 15, .08);
    color: var(--df-ui-accent);
    font-size: 28px;
    font-weight: 850;
}

.df-host-verification-profile h3,
.df-listing-approval-detail h3,
.df-staff-inspector-head h3 {
    margin: 4px 0 0;
    color: var(--df-ui-ink);
    line-height: 1.05;
}

.df-host-verification-profile p,
.df-listing-approval-detail p,
.df-staff-inspector-head p {
    margin: 4px 0 0;
    color: var(--df-ui-muted);
}

.df-listing-approval-hero {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
}

.df-listing-approval-links,
.df-listing-approval-actions,
.df-host-verification-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.df-listing-approval-info,
.df-host-verification-info,
.df-calendar-booking-dl {
    overflow: hidden;
    border: 1px solid var(--df-ui-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, .54);
}

.df-listing-approval-info dt,
.df-host-verification-info dt,
.df-calendar-booking-dl dt {
    color: var(--df-ui-muted);
}

.df-account-page .df-account-card button {
    border: 0;
    background: linear-gradient(135deg, #2d1c0f, #875132);
    color: #fff;
    box-shadow: 0 14px 34px rgba(45, 28, 15, .18);
}

.df-account-page .df-account-card button:hover,
.df-account-page .df-account-card button:focus-visible {
    background: linear-gradient(135deg, #201208, #6f3f25);
    color: #fff;
}

@media (max-width: 760px) {
    .df-app-dashboard-page .df-host-topbar-main {
        flex-wrap: wrap;
    }

    .df-booking-page-toolbar,
    .df-dashboard-page-toolbar,
    .df-listing-page-toolbar {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .df-booking-list-controls,
    .df-booking-filter-bar,
    .df-dashboard-toolbar-search,
    .df-listing-toolbar-tabs,
    .df-staff-filter-bar,
    .df-host-verification-metrics,
    .df-staff-readiness-filters {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .df-booking-list-controls::-webkit-scrollbar,
    .df-booking-filter-bar::-webkit-scrollbar,
    .df-dashboard-toolbar-search::-webkit-scrollbar,
    .df-listing-toolbar-tabs::-webkit-scrollbar,
    .df-staff-filter-bar::-webkit-scrollbar,
    .df-host-verification-metrics::-webkit-scrollbar,
    .df-staff-readiness-filters::-webkit-scrollbar {
        display: none;
    }

    .df-staff-inspector-overlay,
    body > .df-calendar-details,
    .df-app-dashboard-page .df-calendar-details {
        padding: 6px;
    }

    .df-staff-inspector-panel,
    body > .df-calendar-details .df-calendar-detail.is-active,
    .df-app-dashboard-page .df-calendar-details .df-calendar-detail.is-active,
    .df-listing-approval-detail.df-staff-inspector-panel,
    .df-host-verification-detail.df-staff-inspector-panel,
    .df-staff-add-team-card.df-staff-inspector-panel {
        width: calc(100vw - 12px);
        height: calc(100vh - 12px);
        max-height: calc(100vh - 12px);
        border-radius: 20px;
    }
}
