/*
 * DT Search admin theme (October 2026 redesign).
 *
 * Loaded after admin.css. Holds the design tokens, fonts and the
 * shell/navigation/dashboard styles of the approved mockup. Page-level
 * components still live in admin.css and pick the palette up through
 * the variables below.
 */

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Unbounded";
    font-style: normal;
    font-display: swap;
    font-weight: 200 900;
    src: url("fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Unbounded";
    font-style: normal;
    font-display: swap;
    font-weight: 200 900;
    src: url("fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
    --bg: #f3f5f9;
    --panel: #ffffff;
    --panel-soft: #f7f8fb;
    --text: #101828;
    --text-soft: #344054;
    --muted: #5b6577;
    --line: #e3e8ef;
    --line-strong: #d5dce8;
    --nav: #0e1726;
    --nav-soft: #1b2638;
    --nav-text: #c9d2e3;
    --nav-muted: #8c99b0;
    --accent: #1d4ed8;
    --accent-hover: #1e40af;
    --accent-soft: #e8eeff;
    --accent-ink: #1d3fa8;
    --highlight: #e8890c;
    --highlight-soft: #fff3e0;
    --highlight-ink: #8a4b00;
    --success: #0f6b45;
    --success-soft: #e6f5ee;
    --danger: #a93636;
    --danger-soft: #fdeeee;
    --warning-soft: #fff6e8;
    --warning-ink: #7a4a06;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(16, 24, 40, .05);
    --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font-family: inherit;
}


/* Shell */

.shell {
    grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
    min-width: 0;
    padding: 24px 16px 18px;
    background: var(--nav);
    color: var(--nav-text);
}

.brand {
    padding: 0 8px 28px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
}

.brand strong {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.brand small {
    color: var(--nav-muted);
    font-size: 12px;
}

.nav {
    gap: 4px;
}

.nav-section {
    margin: 14px 12px 6px;
    color: var(--nav-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nav-item {
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    color: var(--nav-text);
    font-size: 14px;
    font-weight: 600;
}

.nav-item:hover {
    background: var(--nav-soft);
    color: #fff;
}

.nav-item.is-active {
    background: var(--nav-soft);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.nav-item.is-active .nav-icon {
    color: #9db7ff;
}

.nav-muted {
    margin-top: 0;
    color: var(--nav-muted);
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: var(--nav-muted);
}

.nav-icon svg {
    width: 18px;
    height: 18px;
}

.profile {
    margin-top: 8px;
    padding: 12px;
    border: 0;
    border-radius: var(--radius-md);
    background: #16213a;
}

.avatar {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    background: #2a3a5c;
    color: #fff;
}

.profile-copy strong {
    color: #fff;
    font-size: 14px;
}

.profile-copy small {
    color: var(--nav-muted);
    font-size: 12px;
}

.logout-button {
    min-height: 40px;
    margin-top: 6px;
    color: var(--nav-muted);
    font-weight: 600;
}

.main {
    padding: 28px clamp(18px, 3vw, 40px) 48px;
}


/* Page header */

.topbar {
    align-items: center;
    margin-bottom: 24px;
}

.topbar h1 {
    margin: 4px 0 0;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.eyebrow {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: .1em;
}

.private-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 0;
    background: var(--success-soft);
    color: var(--success);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.private-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}


/* Surfaces and controls */

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: none;
}

.panel h2 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.primary-button {
    min-height: 44px;
    border-radius: 12px;
    background: var(--accent);
    box-shadow: none;
    font-weight: 800;
}

.primary-button:hover {
    background: var(--accent-hover);
    filter: none;
}

.secondary-button {
    min-height: 44px;
    border-radius: 12px;
    font-weight: 700;
}

.form-control {
    min-height: 44px;
    border-color: var(--line-strong);
    border-radius: 12px;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .15);
}

.text-link {
    color: var(--accent);
    font-weight: 700;
}

.text-link:hover {
    color: var(--accent-hover);
}

.status-chip {
    border-radius: 999px;
    font-weight: 800;
}

.status-on {
    background: var(--success-soft);
    color: var(--success);
}

.status-off {
    background: #f1f4f9;
    color: var(--text-soft);
}

.status-warn {
    background: var(--warning-soft);
    color: var(--warning-ink);
}

th {
    color: var(--muted);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}


/* Dashboard */

.dash-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.dash-hero p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.dash-hero .primary-button {
    gap: 10px;
    padding: 0 20px;
    text-decoration: none;
}

.stats-grid {
    gap: 14px;
}

.stat-card {
    border-radius: 18px;
}

.stat-label {
    color: var(--muted);
    font-weight: 700;
}

.stat-value {
    font-size: 30px;
    font-weight: 800;
}

.stat-caption {
    color: var(--muted);
}

.provider-kind {
    color: var(--text-soft);
}

.recent-list {
    display: flex;
    flex-direction: column;
}

.recent-item {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 12px 4px;
    border-top: 1px solid #eef1f6;
}

.recent-item:first-child {
    border-top: 0;
}

.recent-item strong {
    display: block;
}

.recent-item small {
    color: var(--muted);
}

.recent-empty {
    padding: 28px 12px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-md);
    color: var(--muted);
    text-align: center;
}

.recent-empty strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}


/* Phones and narrow windows */

@media (max-width: 800px) {
    .shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar {
        padding: 14px 12px 10px;
    }

    .brand {
        padding: 0 4px 12px;
    }

    .nav {
        flex-direction: row;
        gap: 4px;
        overflow-x: auto;
        margin: 0 -12px;
        padding: 0 12px 4px;
        scrollbar-width: none;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav-section {
        display: none;
    }

    .nav-item {
        flex: none;
        white-space: nowrap;
    }

    .main {
        padding: 20px 16px 40px;
    }

    .topbar h1 {
        font-size: 22px;
    }

    .recent-item {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}


/* Dashboard: recent applications */

.dash-recent {
    margin-top: 20px;
}

a.recent-item {
    color: inherit;
    border-radius: var(--radius-sm);
}

a.recent-item:hover {
    background: var(--panel-soft);
}


/* Wide tables scroll inside their panel instead of widening the page */

.table-wrap {
    overflow-x: auto;
}

.status-chip {
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .content-grid,
    .operator-edit-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .topbar {
        align-items: flex-start;
    }

    .stats-grid,
    .readonly-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* Shared helpers */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.chip:hover {
    border-color: var(--accent);
}

.chip.is-on {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-weight: 800;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f4f9;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
}

.link-button {
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.link-button:hover {
    color: var(--accent-hover);
}


/* Search: type tabs */

.search-tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 16px;
    padding: 4px;
    border-radius: var(--radius-md);
    background: #e7ebf2;
}

.search-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.search-tab svg {
    width: 18px;
    height: 18px;
}

.search-tab:hover {
    color: var(--text);
}

.search-tab.is-active {
    background: #fff;
    color: var(--text);
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}


/* Search: form bar */

.search-panel {
    padding: 18px;
    box-shadow: var(--shadow);
}

.search-bar-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.bar-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 66px;
    padding: 10px 14px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.bar-field:focus-within {
    background: #f7f9ff;
    box-shadow: inset 0 -2px 0 var(--accent);
}

.bar-field.has-error {
    background: var(--danger-soft);
}

.bar-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.bar-field .form-control {
    min-height: 30px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    box-shadow: none;
}

.bar-field .form-control:focus {
    box-shadow: none;
}

.bar-field .field-error {
    font-size: 12px;
}

.search-bar-submit {
    min-height: 66px;
    border-radius: 0;
    font-size: 16px;
    gap: 10px;
}

.search-bar-note {
    margin: 10px 2px 0;
    color: var(--muted);
    font-size: 12px;
}


/* Search: results */

.results-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
}

.results-filters {
    flex: 1 1 250px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-head h2 {
    margin: 0;
    font-size: 16px;
}

.filter-reset {
    min-height: 32px;
    border: 0;
    background: none;
    color: var(--accent);
    font-weight: 700;
    cursor: pointer;
}

.filter-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.filter-title {
    margin-bottom: 2px;
    padding: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    font-size: 14px;
    cursor: pointer;
}

.check-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.check-row span {
    flex: 1;
}

.check-row small {
    color: var(--muted);
}

.results-main {
    flex: 999 1 560px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.results-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.results-toolbar h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.results-toolbar .results-meta {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.sort-group {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.sort-button {
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.sort-button.is-on {
    background: var(--text);
    color: #fff;
}

.hotel-groups {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hotel-group {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
}

.hotel-group[hidden] {
    display: none;
}

.hg-body {
    display: flex;
    flex-wrap: wrap;
}

.hg-info {
    flex: 999 1 340px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
}

.hg-stars {
    color: var(--highlight);
    font-size: 14px;
    letter-spacing: 2px;
}

.hg-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.hg-place {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.hg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hg-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin: 4px 0 0;
    padding-top: 10px;
    border-top: 1px solid #eef1f6;
}

.hg-facts div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hg-facts dt {
    color: var(--muted);
    font-size: 12px;
}

.hg-facts dd {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.hg-price {
    flex: 1 0 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 18px 20px;
    border-left: 1px solid #eef1f6;
    background: var(--panel-soft);
}

.hg-price-from {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.hg-price strong {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.hg-price small {
    color: var(--muted);
    font-size: 12px;
}

.hg-price form {
    margin-top: 6px;
}

.hg-choose {
    width: 100%;
}

.hg-variants {
    border-top: 1px solid #eef1f6;
}

.hg-variants summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    color: var(--accent);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.hg-variants summary::-webkit-details-marker {
    display: none;
}

.hg-variants summary::after {
    content: "▾";
    margin-left: 8px;
    transition: transform .15s ease;
}

.hg-variants[open] summary::after {
    transform: rotate(180deg);
}

.hg-variants .table-wrap {
    padding: 0 20px 14px;
}

.variants-table {
    min-width: 720px;
    font-size: 14px;
}

.variants-table th,
.variants-table td {
    padding: 10px 8px;
}

.variants-table .num {
    text-align: right;
}

.variants-table .strong {
    font-weight: 800;
}

.variants-table .muted-cell {
    color: var(--muted);
}

.variants-table tr[hidden] {
    display: none;
}

@media (max-width: 800px) {
    .search-tabs {
        display: flex;
    }

    .search-tab {
        flex: 1;
        justify-content: center;
        padding: 0 10px;
    }

    .hg-price {
        border-left: 0;
        border-top: 1px solid #eef1f6;
    }
}


@media (min-width: 1360px) {
    .search-bar-fields {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr)
            minmax(150px, 1.25fr)
            minmax(150px, 1.25fr)
            minmax(0, .6fr)
            minmax(0, .6fr)
            minmax(0, .65fr)
            minmax(0, .9fr)
            minmax(140px, 1fr);
    }
}


/* Filters collapse into a toggle on phones */

.filters-toggle > summary {
    display: none;
}

.filters-toggle > .filters-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 800px) {
    .filters-toggle > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        font-weight: 800;
        cursor: pointer;
        list-style: none;
    }

    .filters-toggle > summary::-webkit-details-marker {
        display: none;
    }

    .filters-toggle > summary::after {
        content: "▾";
        color: var(--accent);
    }

    .filters-toggle[open] > summary {
        margin-bottom: 12px;
    }

    .filters-toggle[open] > summary::after {
        content: "▴";
    }

    .results-filters {
        padding: 8px 16px;
    }
}


/* Search tabs: provider count on the right */

.search-tabs {
    align-items: center;
}

.search-tabs-meta {
    padding: 0 12px 0 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}


/* Hotel search: form */

.hotel-search-form .field > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hotel-destination-block {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel-soft);
}

.hotel-destination-title {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 800;
}

.search-fields.hotel-search-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
}

.search-form-panel {
    padding: 20px;
    box-shadow: var(--shadow);
}

.search-submit-row .search-button {
    min-height: 48px;
    padding: 0 22px;
    gap: 10px;
}


/* Hotel search: results */

.hotel-results-head h2 {
    font-size: 20px;
    font-weight: 800;
}

.hotel-results {
    gap: 14px;
}

.hotel-card.hotel-card-compact {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: none;
}

.hotel-card-compact .hotel-photo-placeholder {
    background: #e9eef6;
    color: var(--muted);
}

.hotel-compact-type {
    border-radius: 999px;
    background: #f1f4f9;
    color: var(--text-soft);
}

.hotel-compact-name {
    font-weight: 800;
}

.hotel-compact-name .hotel-stars {
    color: var(--highlight);
}

.hotel-compact-facilities span {
    border-radius: 999px;
    background: #f1f4f9;
    color: var(--text-soft);
    font-weight: 700;
}

.hotel-card .hotel-compact-price {
    grid-template-columns: auto auto 1fr;
    grid-template-rows: auto auto;
    align-items: baseline;
    column-gap: 6px;
    min-width: 190px;
    min-height: 64px;
    padding: 12px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: none;
    text-align: left;
}

.hotel-card .hotel-compact-price::before,
.hotel-card .hotel-compact-price::after {
    display: none;
}

.hotel-card .hotel-compact-price:hover,
.hotel-card .hotel-compact-price[aria-expanded="true"] {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.hotel-card .hotel-compact-price small {
    grid-column: 1;
    grid-row: 1;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.hotel-card .hotel-compact-price strong {
    grid-column: 2;
    grid-row: 1;
    color: var(--text);
    font-size: 24px;
    font-weight: 800;
}

.hotel-card .hotel-compact-price span {
    grid-column: 3;
    grid-row: 1;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.hotel-card .hotel-compact-price i {
    grid-column: 1 / 4;
    grid-row: 2;
    width: auto;
    height: auto;
    margin: 4px 0 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    border: 0;
    color: var(--accent);
    font-size: 0;
    justify-content: flex-start;
    transform: none;
}

.hotel-card .hotel-compact-price[aria-expanded="true"] i {
    transform: none;
}

.hotel-card .hotel-compact-content {
    grid-template-columns: minmax(0, 1fr) auto;
}

.hotel-card .hotel-compact-price i::after {
    content: "Показать тарифы ▾";
    font-size: 13px;
    font-weight: 700;
    font-style: normal;
}

.hotel-card .hotel-compact-price[aria-expanded="true"] i::after {
    content: "Скрыть тарифы ▴";
}

.hotel-offers-panel {
    border-top: 1px solid #eef1f6;
    background: #fff;
}

.hotel-card .hotel-offer-price {
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}

.hotel-card .hotel-offer-price:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.hotel-card .hotel-offer-price strong {
    color: var(--text);
    font-weight: 800;
}

.hotel-offer-room-name {
    color: var(--accent);
    font-weight: 800;
}

@media (max-width: 1000px) {
    .search-fields.hotel-search-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .search-tabs {
        flex-wrap: wrap;
    }

    .search-tabs-meta {
        flex-basis: 100%;
        padding: 6px 8px 2px;
    }
}

@media (max-width: 700px) {
    .hotel-card .hotel-compact-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .hotel-card .hotel-compact-price {
        min-width: 0;
        width: 100%;
        min-height: 56px;
        padding: 10px 12px;
    }

    .hotel-card .hotel-compact-price strong {
        font-size: 20px;
    }
}


/* Checkbox fields in settings forms */

.field input[type="checkbox"] {
    justify-self: start;
    width: 20px;
    height: 20px;
    margin: 2px 0;
    accent-color: var(--accent);
}


/* H6: hotel search streamed provider by provider */

.hotel-provider-panel {
    margin: 14px 0;
    padding: 16px 18px;
}

.hotel-provider-progress {
    position: relative;
    height: 26px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f6f8fb;
    overflow: hidden;
}

.hotel-provider-progress-bar {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
}

.hotel-provider-progress span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink, #0f172a);
}

.hotel-provider-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hotel-provider-all,
.hotel-provider-column-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
}

.hotel-provider-list {
    display: grid;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
}

.hotel-provider-list li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.hotel-provider-list label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.hotel-provider-list.is-muted {
    color: var(--muted);
}

.hotel-provider-price {
    color: var(--accent);
    white-space: nowrap;
}

.hotel-provider-note {
    font-size: 12px;
    text-align: right;
}

.hotel-provider-list li.is-searching .hotel-provider-note::before {
    content: "◌ ";
}

/* The cards and buttons set their own display: [hidden] must still win. */
.hotel-results .hotel-card[hidden],
.hotel-results .hotel-offer-room-group[hidden],
.hotel-more-button[hidden],
.empty-search[hidden] {
    display: none !important;
}

.hotel-provider-list li.is-error .hotel-provider-note {
    color: #b42318;
}

.hotel-more-row {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin: 18px 0 8px;
}

.hotel-more-note {
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 900px) {

    .hotel-provider-columns {
        grid-template-columns: 1fr;
    }
}


/* Tour search: hotel photo from a supplier's dictionary */

.hg-photo {
    flex: 0 0 220px;
    min-height: 160px;
    background: #e9eef6;
}

.hg-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hg-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 700px) {

    .hg-photo {
        flex-basis: 100%;
        height: 180px;
    }
}

/* «Интеграции»: banks and services as tiles */

.integration-section {
    margin-top: 30px;
}

.integration-section h3 {
    margin: 0 0 4px;
}

.integration-section p {
    margin: 0;
}

.integration-url {
    overflow-wrap: anywhere;
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.integration-tile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.integration-tile:not(.integration-soon):hover {
    border-color: var(--line-strong);
    box-shadow: 0 14px 34px rgba(16, 24, 40, .08);
}

.integration-tile p {
    margin: 0;
    line-height: 1.5;
}

.integration-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* The logo never shrinks, the name wraps under itself. */
.integration-logo {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 17px;
    font-weight: 800;
}

.integration-name {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.integration-name b {
    font-size: 16px;
    line-height: 1.25;
}

.integration-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.integration-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line-strong);
}

.integration-status.is-on {
    color: var(--success);
}

.integration-status.is-on::before {
    background: var(--success);
    box-shadow: 0 0 0 3px var(--success-soft);
}

.integration-status.is-warn {
    color: var(--warning-ink);
}

.integration-status.is-warn::before {
    background: var(--highlight);
}

.integration-status.is-error {
    color: var(--danger);
}

.integration-status.is-error::before {
    background: var(--danger);
}

.integration-meta {
    color: var(--muted);
    font-size: 12px;
}

/* «Направления поиска отелей»: one wide card under the providers. */
.integration-wide {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding: 20px;
}

.integration-wide .integration-name {
    flex: 1;
}

.integration-wide form {
    margin: 0;
}

.integration-wide .secondary-button {
    width: auto;
    padding-inline: 18px;
    white-space: nowrap;
}

.integration-section:target h3 {
    color: var(--accent);
}

.integration-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-on {
    background: var(--accent-soft);
    color: var(--accent);
}

/* The button at the tile's bottom, whatever the text above. */
.integration-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    text-decoration: none;
}

.integration-tile > .integration-tags {
    margin-bottom: 4px;
}

.integration-soon {
    background: var(--panel-soft);
    box-shadow: none;
}

.integration-soon .integration-logo {
    background: var(--panel);
}

.integration-note {
    font-size: 12px;
}

.payment-row {
    flex-wrap: wrap;
    gap: 10px;
}

.payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.payment-actions form {
    margin: 0;
}

.payment-actions button {
    width: auto;
}

.integration-logo-tochka {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

.integration-logo-plait {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}

.integration-logo-alfa {
    background: #ef3124;
    border-color: #ef3124;
    color: #fff;
}

/* Suppliers: one of six colours by the supplier's code. */
.integration-logo-c1 { background: #2563eb; border-color: #2563eb; color: #fff; }
.integration-logo-c2 { background: #0891b2; border-color: #0891b2; color: #fff; }
.integration-logo-c3 { background: #059669; border-color: #059669; color: #fff; }
.integration-logo-c4 { background: #d97706; border-color: #d97706; color: #fff; }
.integration-logo-c5 { background: #db2777; border-color: #db2777; color: #fff; }
.integration-logo-c6 { background: #7c3aed; border-color: #7c3aed; color: #fff; }

.integration-logo-crm {
    background: #0f172a;
    border-color: #0f172a;
    color: #22d3ee;
}

.integration-logo-cruise {
    background: #0ea5ff;
    border-color: #0ea5ff;
    color: #fff;
}

.integration-logo-donflot {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: #fff;
}

.integration-logo-vodohod {
    background: #0e7490;
    border-color: #0e7490;
    color: #fff;
}

.integration-logo-iway {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

.integration-logo-notify {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.integration-logo-backup {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}

/* The tourist's link to the application and its payment. */
.pay-link {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.pay-link input {
    flex: 1 1 320px;
    min-width: 0;
}

.pay-link .primary-button,
.pay-link .secondary-button {
    flex: 0 0 auto;
    width: auto;
}


/* The booking at the supplier: status, comment, the tourist told. */

.booking-form {
    display: grid;
    gap: 12px;
    max-width: 560px;
}

.booking-form label {
    display: grid;
    gap: 6px;
}

.booking-form label > span {
    color: var(--muted);
    font-size: 13px;
}

.booking-form .checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.booking-form .checkbox-row[hidden] {
    display: none;
}

.booking-form .checkbox-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.booking-form .checkbox-row span {
    color: var(--text);
}

.booking-form button {
    width: auto;
}

.booking-manager {
    margin-bottom: 16px;
}

.booking-manager-row {
    display: flex;
    gap: 8px;
}

.booking-manager-row select {
    flex: 1;
    min-width: 0;
}


/* The applications: search and filters. */

.application-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 12px;
    align-items: end;
    margin-bottom: 18px;
}

.application-filters label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.application-filters label > span {
    color: var(--muted);
    font-size: 13px;
}

.application-filters-q {
    grid-column: span 2;
}

.application-filters-actions {
    display: flex;
    gap: 8px;
    grid-column: 1 / -1;
}

.application-filters-actions button,
.application-filters-actions a {
    width: auto;
}

.application-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 900px) {
    .application-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .application-filters {
        gap: 8px 10px;
    }

    .application-filters label > span {
        font-size: 12px;
    }
}

@media (max-width: 720px) {
    .integration-wide .integration-top {
        flex-wrap: wrap;
    }

    .integration-wide form,
    .integration-wide .secondary-button {
        width: 100%;
    }
}

/* «Уведомления»: the test letter and the mail check. */
.mail-test {
    display: grid;
    gap: 10px;
}

.mail-test .secondary-button {
    justify-self: start;
    width: auto;
}

.mail-check {
    margin-top: 18px;
}

.mail-check h3 {
    margin: 0 0 8px;
}

.mail-check ul {
    display: grid;
    gap: 8px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.mail-check li {
    display: grid;
    gap: 3px;
    padding: 10px 12px 10px 34px;
    border-radius: 12px;
    background: var(--panel-soft);
    position: relative;
    line-height: 1.45;
}

.mail-check li::before {
    position: absolute;
    left: 12px;
    top: 10px;
    font-weight: 800;
}

.mail-check li.is-ok::before {
    content: "✓";
    color: var(--success);
}

.mail-check li.is-bad {
    background: var(--danger-soft);
}

.mail-check li.is-bad::before {
    content: "!";
    color: var(--danger);
}

.mail-check li.is-note {
    background: var(--warning-soft);
}

.mail-check li.is-note::before {
    content: "i";
    color: var(--warning-ink);
}

.mail-check li span {
    color: var(--text-soft);
    font-size: 13px;
}

/* «Проверить поставщиков» next to «Туроператоры», and its result on a
   tile. */
.integration-section-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.integration-check {
    display: grid;
    gap: 4px;
    justify-items: end;
    max-width: 360px;
    margin: 0;
}

.integration-check .secondary-button {
    width: auto;
    padding-inline: 18px;
}

.integration-check small {
    text-align: right;
    font-size: 12px;
}

.integration-check-result {
    padding: 6px 10px;
    border-radius: 10px;
    background: var(--success-soft);
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
}

.integration-check-result.is-error {
    background: var(--danger-soft);
    color: var(--danger);
}

.integration-check-result.is-note {
    background: var(--warning-soft);
    color: var(--warning-ink);
}

@media (max-width: 720px) {
    .integration-check {
        justify-items: start;
    }

    .integration-check small {
        text-align: left;
    }
}
