/* Rentora SaaS Public Stylesheet */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--gray-900);
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: block;
}
.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-badge {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    text-decoration: none;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    background: #f8fafc;
    border: 1px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}
.nav-chip i { font-size: 14px; color: #64748b; }
.nav-chip:hover { background: #eef2ff; color: #1d4ed8; }
.nav-chip:hover i { color: #1d4ed8; }
.nav-chip.is-current {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}
.nav-chip.is-current i { color: #fff; }
.nav-chip.is-admin {
    background: #fdf2f8;
    color: #9d174d;
}
.nav-chip.is-admin i { color: #9d174d; }
.nav-cta {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .01em;
}
.nav-cta:hover { background: #1d4ed8; color: #fff; }
.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}
.nav-link:hover {
    color: var(--primary);
}
.nav-btn-outline {
    border: 1px solid var(--gray-300);
    padding: 6px 12px;
    border-radius: 8px;
}
.nav-btn-admin {
    background: #fdf2f8;
    color: #be185d;
    border: 1px solid #fbcfe8;
    padding: 6px 12px;
    border-radius: 8px;
}
.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 10px 0 12px;
    background: #f1f5f9;
    border-radius: 999px;
}
.user-name {
    font-size: 13px;
    font-weight: 700;
}

.logout-link {
    color: var(--gray-500);
    text-decoration: none;
}

.logout-link:hover {
    color: var(--danger);
}

/* Filter Bar */
.filter-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 0;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 140px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
}

.filter-input {
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: #ffffff;
}

.filter-input:focus {
    border-color: var(--primary);
}

html:has(body.is-marketplace),
body.is-marketplace {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    min-height: 0;
}
body.is-marketplace {
    display: flex;
    flex-direction: column;
}
body.is-marketplace .header {
    flex: 0 0 auto;
    position: relative;
    z-index: 2000;
}
body.is-marketplace .footer { display: none; }
body.is-marketplace .main-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Marketplace Body */
.marketplace-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}
.marketplace-body {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.properties-column {
    width: 400px;
    max-width: 40vw;
    flex-shrink: 0;
    overflow-y: auto;
    padding: 0 0 20px;
    background: #f1f5f9;
    border-left: 1px solid var(--gray-200);
    z-index: 2;
    box-shadow: -12px 0 32px rgba(15, 23, 42, 0.08);
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 transparent;
}
.properties-column::-webkit-scrollbar {
    width: 10px;
}
.properties-column::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}
.properties-column::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
    border: 3px solid #f1f5f9;
}
.properties-column::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.avail-dock {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #0f172a;
    color: #fff;
    padding: 14px 14px 12px;
}
.avail-dock-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.avail-dock-head span {
    font-size: 14px;
    font-weight: 800;
}
.avail-dock .sort-select,
.avail-dock .sort-select:hover,
.avail-dock .sort-select:focus,
.avail-dock .sort-select:active {
    height: 32px;
    min-width: 118px;
    padding: 0 28px 0 10px;
    border: 0;
    border-radius: 999px;
    background-color: #1e293b;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><path d='M4.2 6.2 8 10l3.8-3.8' stroke='%23e2e8f0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-position: right 8px center;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    color-scheme: dark;
    box-shadow: none;
}
.avail-dock .sort-select:hover { background-color: #0f172a; }
.avail-dock .sort-select:focus { box-shadow: 0 0 0 3px rgba(148,163,184,.35); }
.avail-count {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
}
.properties-grid { padding: 12px; }
.avail-row {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(15,23,42,.05);
}

.map-column {
    flex: 1;
    position: relative;
    min-width: 0;
    min-height: 0;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 520px;
}
body.is-marketplace .map-container {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: auto;
    z-index: 1;
    isolation: isolate;
}
body.is-marketplace .leaflet-control-container,
body.is-marketplace .leaflet-top,
body.is-marketplace .leaflet-bottom {
    z-index: 400;
}
body.is-marketplace .leaflet-control-zoom { display: none !important; }
body.is-marketplace .leaflet-control-zoom {
    margin-bottom: 56px;
}

.map-hud {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.map-zoom {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(15,23,42,.16);
    background: #fff;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.map-zoom button {
    width: 40px;
    height: 40px;
    border: 0;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.map-zoom button svg {
    display: block;
    width: 16px;
    height: 16px;
}
.map-zoom button + button { border-left: 1px solid #e2e8f0; }
.map-zoom button:hover { background: #f8fafc; }
/* Кнопка «моё местоположение»: подсвечивается, пока идёт определение */
.map-zoom button#map-geolocate { color: #1d4ed8; }
.map-zoom button#map-geolocate:hover { background: #eff6ff; }
.map-zoom button#map-geolocate.is-busy { color: #64748b; cursor: progress; }
.map-zoom button#map-geolocate.is-busy svg { animation: geoPulse 1.1s ease-in-out infinite; }
@keyframes geoPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.86); }
}
/* Предложение определить местоположение (там, где жест обязателен) */
.geo-prompt {
    position: absolute;
    left: 16px;
    bottom: 68px;
    z-index: 520;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(460px, calc(100% - 32px));
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
}
.geo-prompt-icon {
    width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #eff6ff; color: #1d4ed8; font-size: 17px;
}
.geo-prompt-copy { flex: 1; min-width: 0; }
.geo-prompt-copy strong { display: block; font-size: 13.5px; font-weight: 800; color: #0f172a; }
.geo-prompt-copy small { display: block; margin-top: 3px; font-size: 11.5px; color: #64748b; line-height: 1.45; }
.geo-prompt-close {
    border: 0; background: transparent; color: #94a3b8; font-size: 20px; line-height: 1;
    cursor: pointer; padding: 0 2px; flex-shrink: 0;
}
.geo-prompt-close:hover { color: #475569; }
.map-legend {
    position: static;
    bottom: auto;
    left: auto;
    z-index: 1;
    height: 40px;
    background: #fff;
    border-radius: 999px;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(15,23,42,.16);
    display: flex;
    gap: 14px;
    align-items: center;
    border: 1px solid #e2e8f0;
    color: #334155;
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend em { font-style: normal; font-weight: 700; }
.map-made {
    min-height: 40px;
    height: auto;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0033a0 0%, #00afca 55%, #f7ca18 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(15,23,42,.16);
    line-height: 1.15;
}
.map-made strong { font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.map-made span { font-size: 10px; opacity: .92; font-weight: 600; }

.leaflet-control-attribution {
    display: none !important;
}

.properties-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.properties-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.property-card-row {
    flex-direction: row;
    text-decoration: none;
    color: inherit;
    height: 108px;
    min-height: 108px;
    align-items: stretch;
    overflow: hidden;
}
.property-card-row:hover { transform: none; }
.property-card-row .property-image-wrap {
    width: 128px;
    height: 108px !important;
    min-height: 108px;
    flex-shrink: 0;
    overflow: hidden;
    background: #e2e8f0;
}
.property-card-row .property-image {
    width: 128px;
    height: 108px;
    object-fit: cover;
    object-position: center;
    display: block;
}
.property-card-row .property-rating { display: none; }
.property-card-row .property-info {
    padding: 8px 10px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}
.property-card-row .property-title {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    -webkit-line-clamp: unset;
}
.property-card-row .property-address,
.property-card-row .building-chip { display: none; }
.property-card-row .property-footer {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}
.property-card-row .price-value { font-size: 13px; }
.property-card-row .property-meta { font-size: 11px; }

.page-title {
    font-size: 16px;
    font-weight: 700;
}

.page-subtitle {
    font-size: 14px;
    color: var(--gray-500);
}

.sort-select {
    width: auto;
    min-width: 132px;
    height: 34px;
    padding: 0 32px 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background-position: right 10px center;
    background-size: 14px;
}

.property-card {
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.property-card.property-card-row {
    flex-direction: row;
}

.property-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.property-image-wrap {
    position: relative;
    height: 200px;
    background: var(--gray-200);
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.property-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #b45309;
}

.property-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.property-meta {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 6px;
}

.property-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.property-title a {
    text-decoration: none;
    color: var(--gray-900);
}

.property-title a:hover {
    color: var(--primary);
}

.property-address {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 14px;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.price-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.price-period {
    font-size: 12px;
    color: var(--gray-500);
}

/* Map Custom Pin */
.price-pin {
    background: #ffffff;
    color: var(--gray-900);
    font-weight: 700;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 20px;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: none;
}
.leaflet-div-icon.custom-map-pin {
    background: transparent !important;
    border: 0 !important;
    width: auto !important;
    height: auto !important;
}
.price-pin font,
.price-pin font font,
.cluster-pin font {
    background: none !important;
    box-shadow: none !important;
    font: inherit !important;
    color: inherit !important;
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

.price-pin:hover {
    transform: scale(1.1);
    background: var(--primary);
    color: #ffffff;
}

.price-pin .pin-icon {
    color: var(--primary);
}

.price-pin:hover .pin-icon {
    color: #ffffff;
}

/* ── Платное продвижение: золотой пин ────────────────────────────────
   Владелец оплатил показ выше в выдаче, поэтому объект выделяется на
   карте. Цвет намеренно отличается от обычного синего и от тёмного
   кластера, чтобы гость видел разницу с первого взгляда. */
.price-pin.is-promoted-pin {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f59e0b;
    color: #78350f;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .18), 0 6px 16px rgba(180, 83, 9, .28);
}
.price-pin.is-promoted-pin .pin-icon { color: #b45309; }
.price-pin.is-promoted-pin .pin-promo-icon {
    color: #0f766e;
    font-size: 11px;
    margin-right: -1px;
}
.price-pin.is-promoted-pin.cluster-pin {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: #f59e0b;
    color: #fef3c7;
}
.price-pin.is-promoted-pin.cluster-pin .pin-icon { color: #fbbf24; }
.price-pin.is-promoted-pin.cluster-pin .pin-promo-icon { color: #fbbf24; }
.price-pin.is-promoted-pin:hover {
    background: #f59e0b;
    color: #ffffff;
}
.price-pin.is-promoted-pin:hover .pin-icon,
.price-pin.is-promoted-pin:hover .pin-promo-icon { color: #ffffff; }

/* Метка «Продвигается» в карточке выдачи */
.promo-badge-card {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fffbeb, #fde68a);
    border: 1px solid #f59e0b;
    color: #78350f;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: 0 2px 8px rgba(180, 83, 9, .22);
    cursor: help;
}
/* Если на карточке есть ещё и бейдж доступности — сдвигаем его ниже */
.property-image-wrap:has(.promo-badge-card) .avail-badge { top: 40px; }
.property-card-row.is-promoted {
    border-color: #fcd34d;
    box-shadow: 0 2px 14px rgba(245, 158, 11, .16);
}
.property-card-row.is-promoted:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 24px rgba(245, 158, 11, .24);
}

/* Метка «топ» в списке квартир внутри пина */
.map-unit-tag.is-promo {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* Продвигаемый объект за пределами текущего окна карты */
.promo-far-note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
}
.promo-far-note i { font-size: 11px; }

/* Легенда карты: золотой пин */
.legend-dot.promo {
    background: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, .25);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-success {
    background: var(--success);
    color: #ffffff;
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}

.btn-neutral {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-primary { background: #dbeafe; color: #1d4ed8; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-neutral { background: #f1f5f9; color: #475569; }

/* Property Details Page */
.property-detail-page {
    padding: 30px 20px;
}

.property-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.property-headline {
    font-size: 28px;
    font-weight: 800;
}

.property-subline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    height: 440px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
}

.gallery-main img, .gallery-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.detail-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.spec-bar {
    display: flex;
    gap: 24px;
    padding: 20px;
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    margin-bottom: 24px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spec-item i {
    font-size: 24px;
    color: var(--primary);
}

.spec-title {
    font-weight: 700;
    font-size: 15px;
}

.spec-desc {
    font-size: 12px;
    color: var(--gray-500);
}

.highlight-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.highlight-icon {
    font-size: 28px;
    color: var(--primary);
}

.highlight-body h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.highlight-body p {
    font-size: 14px;
    color: var(--gray-700);
}

.detail-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #0f172a;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}
.trust-chip {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1;
}
.trust-chip.is-fast {
    background: #eff6ff;
    color: #1d4ed8;
}

.quote-avail-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff1f2;
    color: #9f1239;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}
.quote-avail-note.is-hold {
    background: #fff7ed;
    color: #9a3412;
}
.booking-widget .btn-primary.is-blocked,
#app-dock-book.is-blocked {
    opacity: .55;
    pointer-events: none;
}
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.amenities-grouped { display: flex; flex-direction: column; gap: 18px; }
.amenity-group-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    color: #64748b;
    text-transform: uppercase;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

.amenity-icon {
    color: var(--primary);
    font-size: 18px;
    width: 22px;
    flex-shrink: 0;
    text-align: center;
    line-height: 1;
}

/* Sticky Booking Widget */
.booking-widget {
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 90px;
}

.widget-price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.widget-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.widget-price-sub {
    font-size: 14px;
    color: var(--gray-500);
}
.widget-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 6px 8px;
    border-radius: 999px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    line-height: 1;
}
.widget-rating i { color: #f59e0b; font-size: 13px; }
.widget-rating b { font-size: 14px; color: #0f172a; }
.widget-rating em {
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    color: #78716c;
    padding-left: 6px;
    border-left: 1px solid #fde68a;
}

.widget-date-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.widget-date-col {
    flex: 1;
}

.widget-date-col label, .widget-guest-input label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 4px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
}

select,
select.form-control,
select.filter-input,
.sort-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color-scheme: light;
    cursor: pointer;
    width: 100%;
    height: 44px;
    padding: 0 40px 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><path d='M4.2 6.2 8 10l3.8-3.8' stroke='%2364748b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
select::-ms-expand { display: none; }
select:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}
select:focus,
select.form-control:focus,
.sort-select:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}
select:disabled {
    opacity: .55;
    cursor: not-allowed;
    background-color: #f1f5f9;
}

.quote-breakdown {
    margin: 16px 0;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 8px;
}

.quote-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
}

.quote-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--gray-200);
}

.widget-footnote {
    font-size: 12px;
    color: var(--gray-500);
    text-align: center;
    margin-top: 12px;
}

/* Digital Keycard & Guest Portal */
.guest-portal-page {
    padding: 36px 20px 56px;
}
.portal-header {
    text-align: center;
    margin-bottom: 28px;
}
.portal-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-top: 10px;
}
.portal-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
    align-items: start;
}
.keycard-box {
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(56,189,248,.28), transparent 46%),
        linear-gradient(160deg, #0b1220 0%, #111827 42%, #1e3a8a 100%);
    color: #ffffff;
    border-radius: 28px;
    padding: 22px 22px 20px;
    box-shadow: 0 28px 50px -18px rgba(15, 23, 42, .55);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    align-self: start;
    height: auto;
}
.keycard-box::after {
    content: "";
    position: absolute;
    right: -40px; top: -50px;
    width: 160px; height: 160px;
    border: 18px solid rgba(255,255,255,.06);
    border-radius: 50%;
    pointer-events: none;
}
.keycard-chip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.keycard-chip {
    width: 42px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fde68a, #f59e0b 40%, #b45309);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.keycard-nfc {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #93c5fd;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.keycard-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}
.keycard-brand {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #cbd5e1;
}
.keycard-lock-status {
    font-size: 12px;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 6px;
}
.online-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, .18);
}
.keycard-body {
    text-align: center;
    margin-bottom: 22px;
}
.keycard-label {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 12px;
    font-weight: 800;
}
.keycard-pin {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 4px;
    max-width: 100%;
}
.keycard-pin span {
    width: 44px;
    height: 58px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0;
    color: #e0f2fe;
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
}
.keycard-pin.is-long span {
    width: 36px;
    height: 48px;
    font-size: 22px;
    border-radius: 10px;
    gap: 0;
}
.keycard-pin.is-xlong span {
    width: 30px;
    height: 42px;
    font-size: 18px;
    border-radius: 8px;
}
.keycard-instructions {
    font-size: 13px;
    color: #cbd5e1;
    margin-top: 14px;
    line-height: 1.45;
}
.btn-unlock {
    background: #fff;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    border-radius: 14px;
    min-height: 52px;
}
.btn-unlock:disabled,
.btn-unlock[disabled] {
    background: #334155;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 1;
    pointer-events: none;
}
.unlock-steps {
    margin: 0 0 12px;
    padding: 12px 12px 12px 28px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}
.unlock-steps li + li { margin-top: 6px; }
.unlock-hint { margin-top: 10px !important; font-size: 12px; opacity: .85; }
.keycard-box.is-closed {
    background: linear-gradient(160deg, #1e293b, #0f172a 55%, #334155);
}
.keycard-box.is-wait {
    background: linear-gradient(160deg, #1e293b, #0f172a 50%, #3f3f1a);
}
.keycard-lock-status.is-off { color: #94a3b8; }
.keycard-lock-status.is-off .online-dot {
    background: #64748b;
    box-shadow: none;
}
.keycard-locked-note {
    margin: 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 14px 12px;
}

.info-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .35);
    display: flex;
    flex-direction: column;
}
.info-card-hero {
    position: relative;
    min-height: 168px;
    background: #0f172a;
}
.info-card-hero img {
    width: 100%;
    height: 168px;
    object-fit: cover;
    display: block;
    filter: brightness(.72);
}
.info-card-hero-copy {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 18px 18px 16px;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(15,23,42,.88));
}
.info-card-hero-copy span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #93c5fd;
}
.info-card-hero-copy h3 {
    margin: 4px 0 6px;
    font-size: 18px;
    line-height: 1.25;
    color: #fff;
}
.info-card-hero-copy p {
    margin: 0;
    font-size: 13px;
    color: #cbd5e1;
}
.info-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #e2e8f0;
}
.info-facts div {
    background: #fff;
    padding: 14px 16px;
}
.info-facts div:last-child { grid-column: 1 / -1; }
.info-facts span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}
.info-facts strong { font-size: 14px; color: #0f172a; }
.info-wifi {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 14px 16px 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: #0f172a;
    color: #fff;
}
.info-wifi .wifi-icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: #1d4ed8;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.info-wifi span { display: block; font-size: 11px; color: #94a3b8; }
.info-wifi strong { display: block; }
.info-wifi em { font-style: normal; font-size: 12px; color: #93c5fd; }
.wifi-copy { flex: 1; min-width: 0; }
.wifi-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.wifi-hint { margin: 8px 0 0; font-size: 11px; color: #94a3b8; line-height: 1.35; }
.wifi-connect { display: none; }
@media (max-width: 900px), (pointer: coarse) {
    .wifi-connect { display: inline-flex; }
}
.wifi-qr-panel {
    margin: 10px 16px 0;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.wifi-qr-svg svg { width: 168px; height: 168px; }
.wifi-qr-panel p { margin: 10px 0 0; font-size: 13px; color: #0f172a; }
.route-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.route-link {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 4px 8px; border-radius: 999px;
    background: #eff6ff; color: #1d4ed8; font-size: 11px; font-weight: 700;
    text-decoration: none; border: 1px solid #bfdbfe; white-space: nowrap; min-width: 0;
}
.info-card-hero .route-link { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.2); }
.portal-header .route-links { justify-content: center; }
.review-stars { display: flex; gap: 4px; margin: 8px 0; }
.review-stars .star {
    background: none; border: 0; font-size: 22px; color: #cbd5e1; cursor: pointer; line-height: 1; padding: 0;
}
.review-stars .star.is-on { color: #f59e0b; }
.stay-review { margin: 0; padding: 16px 18px 28px; border-top: 1px solid #e2e8f0; }
.stay-review p { font-size: 13px; color: #64748b; margin: 4px 0 8px; }
.trip-card .stay-review { margin: 10px 0 0; padding: 10px 0 18px; }
.host-pay-reqs { list-style: none; padding: 0; margin: 0 0 14px; font-size: 13px; }
.host-pay-reqs li { padding: 6px 0; border-bottom: 1px solid #e2e8f0; }
.host-pay-reqs li:last-child { border-bottom: 0; }
.host-pay-reqs .host-pay-empty {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: #475569;
    font-weight: 500;
    line-height: 1.45;
}
.host-pay-reqs .host-pay-empty i { flex-shrink: 0; color: #64748b; margin-top: 2px; }
.info-foot {
    margin-top: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.info-foot > i { font-size: 22px; line-height: 1; }
.info-foot > div { min-width: 0; }
.info-foot > .btn { justify-self: end; white-space: nowrap; }
.info-foot p { margin: 4px 0 0; font-size: 12px; color: #64748b; line-height: 1.4; }
.info-foot.is-done { background: #f0fdf4; color: #166534; }
.info-foot.is-wait { background: #fffbeb; color: #92400e; }
.info-foot.is-done p, .info-foot.is-wait p { color: inherit; opacity: .85; }
.info-card > .info-foot:last-child { padding-bottom: 20px; }
.info-foot:has(> i):not(:has(> .btn)) { grid-template-columns: auto 1fr; }
.info-foot:has(> .btn):not(:has(> i)) { grid-template-columns: 1fr auto; }
.keycard-validity {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.checkout-box {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.val-label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}

.val-time {
    font-size: 13px;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    overflow-y: auto;
    padding: 20px 16px;
    box-sizing: border-box;
}

.modal-dialog {
    background: #ffffff;
    border-radius: var(--radius);
    width: 100%;
    max-width: 560px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
    margin: auto;
    position: relative;
    overflow: hidden;
}

.modal-dialog.modal-lg {
    max-width: 780px;
}

.modal-dialog.modal-xl {
    max-width: 1000px;
}

.modal-dialog > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    margin: 0;
}

.ui-dialog-body { padding: 28px 24px 24px; }
.ui-dialog-mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: #eff6ff;
    color: #2563eb;
}
.ui-dialog-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -.02em;
}
.ui-dialog-text {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0 0 20px;
}
.ui-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.ui-dialog-actions .btn { flex: 1; }
.modal-dialog.is-pin {
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
}
.modal-dialog.is-pin .ui-dialog-mark {
    background: #0f172a;
    color: #38bdf8;
}
.pin-alert-code {
    margin: 4px 0 12px;
    padding: 16px 14px 14px;
    background: #0f172a;
    border-radius: 16px;
    color: #fff;
}
.pin-alert-code span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #94a3b8;
}
.pin-alert-code strong {
    display: block;
    font-size: 32px;
    letter-spacing: .28em;
    font-weight: 800;
    margin: 8px 0 12px;
    font-variant-numeric: tabular-nums;
}
.pin-alert-until {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 18px;
}
.pin-alert-until strong { color: #0f172a; }

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: #ffffff;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-400);
    line-height: 1;
    padding: 0;
    transition: color 0.15s;
}

.modal-close:hover {
    color: var(--gray-800);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
    background: var(--gray-50);
}

/* Step Wizard */
.step-wizard {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.wizard-step {
    flex: 1;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    padding: 6px;
    border-radius: 6px;
    background: var(--gray-100);
    color: var(--gray-500);
}

.wizard-step.active {
    background: var(--primary-light);
    color: var(--primary);
}

.book-sheet {
    max-width: 560px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
}
.book-sheet-head {
    background: #0f172a;
    padding: 20px 22px 16px;
    border-bottom: 0;
    color: #fff;
}
.book-sheet-head .modal-close { color: #fff; opacity: .7; }
.book-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #94a3b8;
}
.book-sheet .modal-title { font-size: 22px; font-weight: 800; color: #fff; }
.book-steps {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
}
.book-steps .wizard-step {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    background: #f1f5f9;
    color: #64748b;
}
.book-steps .wizard-step span {
    width: 22px; height: 22px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #e2e8f0; color: #475569; font-size: 11px;
}
.book-steps .wizard-step.active { background: #ecfdf5; color: #065f46; }
.book-steps .wizard-step.active span { background: #10b981; color: #fff; }
.book-sheet .booking-summary-card {
    background: linear-gradient(160deg, #0f172a, #1e293b);
    color: #e2e8f0;
    border: 0;
    border-radius: 18px;
    padding: 16px 18px;
}
.book-stay-kicker { margin: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; font-weight: 700; }
.book-sheet .booking-summary-card h4 { color: #fff; margin: 4px 0 6px; font-size: 18px; }
.book-stay-addr { margin: 0 0 14px; font-size: 13px; color: #94a3b8; }
.book-stay-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 12px;
}
.book-stay-meta span { display: block; font-size: 11px; color: #94a3b8; margin-bottom: 2px; }
.book-stay-meta strong { font-size: 14px; color: #fff; }
.book-sheet .booking-summary-card .text-primary { color: #6ee7b7 !important; font-size: 18px; }
.book-guest-chip {
    display: flex; gap: 12px; align-items: center;
    margin-top: 16px; padding: 12px 14px;
    border-radius: 14px; background: #f0fdf4; border: 1px solid #bbf7d0;
}
.book-guest-chip i { font-size: 22px; color: #16a34a; }
.book-guest-chip span { display: block; font-size: 12px; color: #64748b; }
.book-sheet .auth-tabs { border-radius: 14px; background: #f1f5f9; }
.book-sheet .auth-tab-btn { border-radius: 10px; padding: 10px 12px; }
.book-sheet .modal-footer {
    background: #fff;
    border-top: 0;
    padding: 8px 0 0;
}
.book-sheet .modal-body { padding: 16px 22px 22px; }

.booking-summary-card {
    background: var(--gray-50);
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.divider {
    border: 0;
    border-top: 1px solid var(--gray-200);
    margin: 10px 0;
}

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

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pay-sheet { display: flex; flex-direction: column; gap: 14px; }
.pay-sheet.on-key { padding: 14px; }
.pay-hold {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fdba74;
}
.pay-hold p { margin: 4px 0 0; font-size: 12px; color: #9a3412; line-height: 1.4; }
/* Пометка «онлайн-оплата выключена платформой» внутри блока оплаты */
.pay-offline-note {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin: 8px 0 0 !important;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid #fdba74;
    font-size: 11.5px !important;
    font-weight: 600;
    color: #9a3412 !important;
}
.pay-offline-note i { flex-shrink: 0; margin-top: 1px; font-size: 12px; }

/* Состояние push-подписки: подсказка + кнопка переподписки */
.push-state {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
.push-state > i { font-size: 17px; line-height: 1.3; flex-shrink: 0; color: #64748b; }
.push-state-copy { flex: 1; min-width: 0; }
.push-state-copy strong { display: block; font-size: 13.5px; font-weight: 800; color: #0f172a; }
.push-state-copy span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.5; color: #64748b; }
.push-state-action { flex-shrink: 0; }
.push-state.is-warning { background: #fffbeb; border-color: #fde68a; }
.push-state.is-warning > i { color: #b45309; }
.push-state.is-warning .push-state-copy strong { color: #92400e; }
.push-state.is-warning .push-state-copy span { color: #a16207; }
.push-state.is-danger { background: #fef2f2; border-color: #fecaca; }
.push-state.is-danger > i { color: #b91c1c; }
.push-state.is-danger .push-state-copy strong { color: #991b1b; }
.push-state.is-danger .push-state-copy span { color: #b91c1c; }
.push-state.is-success { background: #ecfdf5; border-color: #a7f3d0; }
.push-state.is-success > i { color: #047857; }
@media (max-width: 640px) {
    .push-state { flex-wrap: wrap; }
    .push-state-action { flex-basis: 100%; }
    .push-state-action .btn { width: 100%; }
}
.pay-hold-clock, .hold-clock {
    font-size: 28px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
    color: #c2410c;
    min-width: 4.4em;
    text-align: center;
}
.keycard-box .hold-clock {
    color: #fdba74;
    margin: 8px 0 4px;
}
.pay-sum {
    background: #0f172a;
    color: #fff;
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.pay-sum span { font-size: 13px; color: #94a3b8; }
.pay-sum strong { font-size: 26px; font-weight: 800; }
.pay-ways-label { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.pay-ways { display: grid; gap: 8px; }
.pay-way {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    background: #fff;
}
.pay-way input { display: none; }
.pay-way b { display: block; font-size: 14px; }
.pay-way small { display: block; color: #64748b; font-size: 12px; }
.pay-way.is-on { border-color: #0f172a; background: #f8fafc; box-shadow: 0 0 0 3px rgba(15,23,42,.06); }
.pay-way-mark {
    width: 42px; height: 42px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 900; color: #fff; flex-shrink: 0;
}
.pay-way-mark.kaspi { background: #e31e24; }
.pay-way-mark.card { background: #1d4ed8; font-size: 18px; }
.pay-secure { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pay-secure li { font-size: 13px; color: #334155; display: flex; gap: 8px; align-items: center; }
.pay-secure i { color: #16a34a; }

.success-access-card {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.pin-code-box {
    margin: 20px 0;
    padding: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}

.pin-code-label {
    font-size: 12px;
    color: #166534;
    font-weight: 600;
}

.pin-code-display {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #15803d;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
}

.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.alert-warning { background: #fefce8; border: 1px solid #fef08a; color: #854d0e; }

/* Auth Page */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    flex: 1;
}

.auth-card {
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 36px;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.auth-head {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}

.auth-head h2 {
    font-size: 22px;
    font-weight: 800;
}

.auth-head p {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
}

.auth-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--gray-200);
}
.auth-footer p { margin: 0; }
.auth-switch-line {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--gray-600);
}
.auth-switch {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    min-height: 0;
    display: inline;
    border-radius: 0;
}
.auth-switch:hover { background: none; color: #1d4ed8; text-decoration: underline; border-color: transparent; }

.demo-logins-box {
    margin-top: 18px;
    padding: 16px 16px 12px;
    background: #0f172a;
    border-radius: 16px;
    font-size: 12px;
    text-align: left;
    color: #cbd5e1;
}
.demo-logins-box strong {
    display: block;
    color: #fff;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.demo-logins-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.demo-logins-box li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 8px 10px;
}
.demo-logins-box code {
    background: transparent;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
}
.demo-logins-box em {
    font-style: normal;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
}

.demo-access {
    margin-top: 18px;
    text-align: left;
}
.demo-access-head { margin-bottom: 10px; }
.demo-access-kicker {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 4px;
}
.demo-access-head strong {
    display: block;
    font-size: 15px;
    color: #0f172a;
    letter-spacing: -.02em;
}
.demo-access-head p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}
.demo-access-list {
    display: grid;
    gap: 8px;
}
.demo-access-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 12px 12px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.demo-access-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.demo-access-card.is-picked {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.demo-access-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    color: #fff;
}
.demo-access-icon.is-admin { background: #0f172a; }
.demo-access-icon.is-owner { background: #2563eb; }
.demo-access-icon.is-guest { background: #059669; }
.demo-access-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.demo-access-meta strong {
    font-size: 14px;
    color: #0f172a;
    letter-spacing: -.02em;
}
.demo-access-meta em {
    font-style: normal;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.demo-access-go {
    color: #94a3b8;
    font-size: 14px;
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: #0f172a;
    border-top: 0;
    padding: 28px 0 22px;
    margin-top: auto;
    color: #cbd5e1;
}
.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 28px;
    align-items: start;
    font-size: 13px;
}
.footer-title { color: #fff; margin-bottom: 6px; }
.footer-desc { color: #94a3b8; line-height: 1.5; }
.footer-legal {
    display: grid;
    gap: 4px;
    color: #e2e8f0;
    font-weight: 600;
}
.footer-legal small { color: #94a3b8; font-weight: 500; }
.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.made-kz {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0033a0 0%, #00afca 55%, #f7ca18 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 51, 160, .25);
}
.made-kz strong {
    font-size: 14px;
    letter-spacing: .01em;
    font-weight: 800;
}
.made-kz span { font-size: 11px; opacity: .92; font-weight: 600; }
@media (max-width: 900px) {
    .footer-content { grid-template-columns: 1fr; }
    .footer-meta { align-items: flex-start; }
    .made-kz { align-items: flex-start; }
    .portal-grid { grid-template-columns: 1fr; }
    .keycard-pin span { width: 36px; height: 48px; font-size: 22px; }
    .keycard-pin.is-long span { width: 30px; height: 42px; font-size: 18px; }
    .keycard-pin.is-xlong span { width: 26px; height: 38px; font-size: 16px; }
}

/* Property Detail Enhancements */
.property-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.property-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.bc-mobile { display: none; }
.bc-desktop { display: inline; }

.breadcrumb-sep {
    color: var(--gray-300);
}

.breadcrumb-current {
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.rating-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.subline-dot {
    color: var(--gray-300);
}

.badge-lg {
    padding: 6px 14px;
    font-size: 13px;
}

.host-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 28px;
}

.host-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.host-name {
    font-size: 16px;
    font-weight: 700;
}

.host-meta {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
}
.host-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.rule-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.rule-icon {
    font-size: 20px;
    color: var(--primary);
    margin-top: 2px;
}

.rule-card strong {
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}

.rule-card p {
    font-size: 12px;
    color: var(--gray-600);
}

.detail-mini-map {
    width: 100%;
    height: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.widget-security-perks {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--gray-200);
    padding-top: 14px;
}

.perk-item {
    font-size: 12px;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.auth-tab-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: var(--gray-600);
    transition: all 0.2s;
}

.auth-tab-btn.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.payment-protection-notice {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 12px;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================
   Rentora UI: Modern Toast Notifications
   ========================================================== */
.rentora-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.rentora-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 320px;
    max-width: 440px;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.3s, transform 0.3s;
}

.rentora-toast.fade-out {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
}

.rentora-toast-success { border-left: 4px solid var(--success); }
.rentora-toast-error   { border-left: 4px solid var(--danger); }
.rentora-toast-warning { border-left: 4px solid var(--warning); }
.rentora-toast-info    { border-left: 4px solid var(--primary); }

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--gray-400);
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.toast-close:hover {
    color: var(--gray-800);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.custom-confirm-backdrop {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 10000;
}

/* ==========================================================
   Rentora UI: Pagination Component
   ========================================================== */
.rentora-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 0;
    margin-top: 12px;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.15s ease;
}

.pagination-btn:hover:not(.disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--gray-50);
}

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--gray-100);
}

.pagination-ellipsis {
    padding: 0 4px;
    color: var(--gray-400);
    font-weight: 700;
}

.pagination-info {
    font-size: 12px;
    color: var(--gray-500);
    margin-left: 12px;
}

/* ==========================================================
   Rentora UI: Amenities Selector Grid
   ========================================================== */
.amenities-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    margin-top: 8px;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.amenity-picker {
    margin-top: 8px;
    max-height: 420px;
    overflow-y: auto;
    padding: 10px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
}
.amenity-picker .amenity-search { margin-bottom: 10px; }
.amenity-cat { margin-bottom: 14px; }
.amenity-cat h4 {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
}
.prop-city-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.prop-city-chip {
    border: 1px solid #e2e8f0; background: #fff; border-radius: 999px;
    padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer; color: #334155;
}
.prop-city-chip.is-on { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.prop-city-head h3 { margin: 8px 0 0; font-size: 16px; }
.host-page.is-cabinet-tax { padding: 0; max-width: none; }

.amenity-checkbox-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 10px;
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    user-select: none;
    transition: all 0.15s ease;
}

.amenity-checkbox-card:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.amenity-checkbox-card > i {
    color: var(--primary);
    font-size: 16px;
    width: 18px;
    margin-right: 8px;
    flex-shrink: 0;
    text-align: center;
}
.amenity-checkbox-card input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--primary);
    margin: 0 4px 0 0;
    flex-shrink: 0;
}

.amenity-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.amenity-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-700);
}

/* ==========================================================
   Rentora UI: Finance & Reporting Dashboard
   ========================================================== */
.finance-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.finance-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.finance-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.finance-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.finance-card-icon.income  { background: #dcfce7; color: #16a34a; }
.finance-card-icon.fee     { background: #fee2e2; color: #dc2626; }
.finance-card-icon.profit  { background: #dbeafe; color: #2563eb; }
.finance-card-icon.metric  { background: #fef3c7; color: #d97706; }

.finance-metric-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
}

.finance-metric-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.finance-metric-sub {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 6px;
}

/* Marketplace hero + city chips */
.market-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #0ea5e9 140%);
    color: #fff;
    padding: 16px 0 14px;
}
.hero-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    max-width: 720px;
}
.hero-lead { display: none; }
.market-hero-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.hero-kicker {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 11px;
    font-weight: 700;
    opacity: .8;
    margin-bottom: 6px;
}
.hero-chips, .city-chip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.city-chip {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}
.city-chip.active, .city-chip:hover {
    background: #fff;
    color: #1e3a8a;
}
.filter-city-group { min-width: 220px; flex: 1.4; }
.building-chip {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #1d4ed8;
    background: #eff6ff;
    border-radius: 8px;
    padding: 4px 8px;
    margin-bottom: 10px;
}
.price-pin.cluster-pin {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
    font-size: 12px;
}
.price-pin.cluster-pin .pin-icon { color: #fbbf24; }
.map-column { position: relative; }
.legend-dot {
    width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px;
}
.legend-dot.cluster { background: #0f172a; }
.legend-dot.unit { background: #2563eb; }
.map-popup-building { min-width: 260px; }
.map-popup-sub { font-size: 12px; color: var(--gray-500); margin: 4px 0 10px; }
.map-units-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: min(38vh, 280px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 2px 8px 10px 0;
    margin: 0 -2px 0 0;
    scroll-padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 transparent;
}
.map-units-list::-webkit-scrollbar { width: 6px; }
.map-units-list::-webkit-scrollbar-track { background: transparent; }
.map-units-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
}
.map-units-list::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.leaflet-popup-content-wrapper {
    overflow: hidden;
    border-radius: 16px;
}
.leaflet-popup-content {
    overflow: hidden;
    margin: 12px 10px 12px 14px;
}
.hold-resume-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 16px;
    padding: 14px 16px;
    margin: 0 0 16px;
}
.hold-resume-banner[hidden] { display: none; }
.hold-resume-banner p { margin: 4px 0 0; font-size: 13px; color: #92400e; }
.map-unit-row {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 8px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 6px;
    border-radius: 8px;
    background: var(--gray-50);
}
.map-unit-row img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.map-unit-meta { font-size: 11px; color: var(--gray-500); }
.map-unit-price { font-weight: 800; font-size: 13px; color: var(--primary); }

/* Property mosaic gallery */
.gallery-mosaic {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 8px;
    height: 460px;
    margin-bottom: 28px;
    border-radius: 18px;
    overflow: hidden;
}
.gallery-side-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.gallery-tile {
    border: 0;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
}
.gallery-tile img, .gallery-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.gallery-tile:hover img { transform: scale(1.04); }
.gallery-more, .gallery-open-all {
    position: absolute;
    background: rgba(15,23,42,.82);
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
}
.gallery-more {
    inset: auto 10px 10px auto;
    padding: 6px 10px;
    font-size: 12px;
}
.gallery-open-all {
    right: 16px;
    bottom: 16px;
    padding: 10px 14px;
    cursor: pointer;
}
.lightbox {
    position: fixed; inset: 0; background: rgba(2,6,23,.92);
    z-index: 4000; display: flex; align-items: center; justify-content: center;
}
.lightbox img#lightbox-img { max-width: 86vw; max-height: 74vh; border-radius: 12px; }
.lightbox-close {
    position: absolute; top: 16px; right: 20px; font-size: 36px;
    background: none; border: 0; color: #fff; cursor: pointer;
}
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,.15); color: #fff; cursor: pointer;
}
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-thumbs {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; max-width: 90vw; overflow: auto;
}
.lb-thumb { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.lb-thumb.active { border-color: #fff; }
.lb-thumb img { width: 64px; height: 44px; object-fit: cover; display: block; }
.sibling-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.sibling-head .section-title { margin: 0; }
.sibling-lead { margin: 6px 0 0; font-size: 13px; color: var(--gray-500); }
.sibling-count {
    min-width: 36px; height: 36px; border-radius: 12px;
    background: #0f172a; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800;
}
.sibling-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 12px;
}
.sibling-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, box-shadow .15s;
}
.sibling-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
    border-color: #cbd5e1;
}
.sibling-photo { position: relative; height: 118px; background: #e2e8f0; }
.sibling-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sibling-rooms {
    position: absolute; left: 8px; bottom: 8px;
    background: rgba(15,23,42,.86); color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 3px 8px; border-radius: 999px;
}
.sibling-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.sibling-body strong { font-size: 13px; }
.sibling-price { font-weight: 800; color: var(--primary); font-size: 15px; }
.sibling-price small { font-weight: 600; font-size: 11px; color: var(--gray-500); }
.quote-row.text-amber { color: #b45309; }

/* Guest bookings page */
.bookings-page { padding: 24px 20px 48px; max-width: 1180px; margin: 0 auto; }
.bookings-shell { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }
.bookings-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 12px; }
.bookings-profile {
    background: #0f172a; color: #fff; border-radius: 22px; padding: 20px;
    display: flex; gap: 12px; align-items: center;
}
.bookings-profile h1 { font-size: 20px; line-height: 1.2; }
.bookings-contact { font-size: 13px; color: #94a3b8; }
.bookings-kyc {
    display: flex; gap: 10px; align-items: center;
    background: #fff; border: 1px solid var(--gray-200); border-radius: 16px; padding: 12px 14px;
}
.bookings-kyc i { font-size: 20px; color: #64748b; }
.bookings-kyc span { display: block; font-size: 12px; color: var(--gray-500); }
.bookings-kyc.is-ok i { color: #16a34a; }
.bookings-mini-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.bookings-mini-stats div {
    background: #fff; border: 1px solid var(--gray-200); border-radius: 14px; padding: 10px;
    text-align: center;
}
.bookings-mini-stats b { display: block; font-size: 20px; }
.bookings-mini-stats span { font-size: 11px; color: var(--gray-500); font-weight: 600; }
.bookings-block-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; gap: 10px; }
.bookings-block-head h2 { font-size: 18px; }
.bookings-block-head span { font-size: 12px; color: var(--gray-500); }
.stay-pass {
    display: grid; grid-template-columns: 110px 1fr auto auto; gap: 16px; align-items: center;
    background: linear-gradient(135deg, #111827, #1e3a8a); color: #fff;
    border-radius: 20px; padding: 16px 18px; margin-bottom: 12px;
}
.stay-pass-dates { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.stay-pass-dates em { display: block; font-style: normal; font-size: 22px; line-height: 1; }
.stay-pass-body h3 { font-size: 16px; margin: 4px 0; }
.stay-pass-body p { font-size: 13px; color: #cbd5e1; }
.stay-pass-pin { background: #fff; color: #0f172a; border-radius: 14px; padding: 8px 12px; text-align: center; }
.stay-pass-pin span { font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.stay-pass-pin strong { display: block; font-size: 22px; letter-spacing: .14em; }
.trip-list { display: flex; flex-direction: column; gap: 12px; }
.trip-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    grid-template-rows: auto auto;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    overflow: hidden;
    min-height: 128px;
}
.trip-photo {
    grid-row: 1 / 3;
    width: 160px;
    min-width: 160px;
    min-height: 128px;
    overflow: hidden;
    background: #e2e8f0;
}
.trip-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.trip-copy {
    padding: 14px 16px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.trip-copy h3 { font-size: 16px; margin: 6px 0 4px; line-height: 1.3; }
.trip-copy p { font-size: 13px; color: var(--gray-500); margin: 0; }
.trip-copy small { color: var(--gray-400); font-size: 11px; font-weight: 700; margin-top: 6px; }
.trip-range {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}
.trip-range i { font-size: 11px; color: #94a3b8; }
.trip-status {
    display: inline-flex; width: max-content; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
}
.tone-live { background: #dcfce7; color: #15803d; }
.tone-ok { background: #dbeafe; color: #1d4ed8; }
.tone-off { background: #f1f5f9; color: #64748b; }
.tone-wait { background: #fef3c7; color: #b45309; }
.trip-cta {
    grid-column: 2;
    padding: 0 16px 14px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}
.trip-hint { font-size: 12px; color: #b45309; font-weight: 700; }
.gb-pin {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    background: #0f172a;
    color: #fff;
    padding: 6px 10px;
    border-radius: 10px;
}
.trip-card.is-past { opacity: .86; }
.trip-card.is-past { grid-template-columns: 160px minmax(0, 1fr); }
.trip-card.is-past { opacity: .78; }
.guest-tab em {
    font-style: normal; background: #e2e8f0; border-radius: 999px; padding: 1px 7px; margin-left: 4px; font-size: 11px;
}
.guest-tab.active em { background: rgba(255,255,255,.2); color: #fff; }

/* Guest cabinet leftovers */
.guest-cabinet { padding: 28px 20px 48px; }
.guest-avatar {
    width: 56px; height: 56px; border-radius: 16px;
    background: #fff; color: #1d4ed8; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 20px; flex-shrink: 0;
}
.guest-avatar font { font: inherit !important; background: none !important; color: inherit !important; }
.guest-tabs { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; }
.guest-tab {
    border: 1px solid var(--gray-200); background: #fff; border-radius: 999px;
    padding: 8px 14px; font-weight: 700; cursor: pointer;
}
.guest-tab.active { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 14px; padding: 16px; }
.profile-card dl { display: grid; grid-template-columns: 90px 1fr; gap: 8px; margin-top: 10px; }
.profile-card dt { color: var(--gray-500); font-size: 13px; }

.properties-empty-wrap {
    display: block;
    padding: 32px 18px 40px;
}
.empty-search {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: 32px 20px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: none;
    margin: 12px 0 0;
}
.empty-search-art {
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    border-radius: 28px;
    background: linear-gradient(145deg, #eff6ff, #dbeafe);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    position: relative;
}
.empty-orb {
    position: absolute;
    inset: -8px;
    border-radius: 32px;
    border: 1px dashed #93c5fd;
    opacity: .7;
}
.empty-search h3 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
    color: var(--gray-900);
}
.empty-search p {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 20px;
}
.empty-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.empty-search-hint {
    margin-top: 18px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 999px;
}

@media (max-width: 960px) {
    .marketplace-body { flex-direction: column; height: auto; }
    body.is-marketplace .marketplace-body { height: 100%; overflow: hidden; }
    .map-column { min-height: 0; flex: 0 0 46%; }
    body.is-marketplace .map-container { position: absolute; }
    .properties-column { width: 100%; max-width: 100%; height: auto; min-height: 0; flex: 1; box-shadow: none; border-left: 0; border-top: 1px solid var(--gray-200); }
    .gallery-mosaic { grid-template-columns: 1fr; height: auto; }
    .gallery-hero { height: 240px; }
    .gallery-side-mosaic { grid-template-columns: 1fr 1fr; height: 200px; }
    .guest-booking-card, .profile-grid, .bookings-shell { grid-template-columns: 1fr; }
    .bookings-side { position: static; }
    .stay-pass { grid-template-columns: 1fr; }
    .trip-card { grid-template-columns: 1fr; }
    .trip-photo, .trip-card.is-past .trip-photo { width: 100%; min-width: 0; height: 160px; grid-row: auto; }
    .trip-cta { grid-column: auto; padding: 0 16px 16px; }
    .stay-pass { padding: 16px; }
    .guest-search-dock { position: relative; top: 0; left: 0; right: 0; border-radius: 0; box-shadow: none; padding: 8px; }
    .search-pills { border-radius: 16px; flex-wrap: wrap; }
    .search-pill { border-right: 0; min-width: 46%; }
    .search-go { width: 100%; height: 44px; margin: 6px 0 0; }
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    transition: border-color .15s, background .15s;
}
input[type="checkbox"]:hover { border-color: #64748b; }
input[type="checkbox"]:checked {
    background: #0f172a;
    border-color: #0f172a;
}
input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
}
.amenity-checkbox-card:has(input:checked) {
    border-color: #0f172a;
    background: #f1f5f9;
    color: #0f172a;
}
.weekday-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}
.weekday-chip input { display: none; }
.weekday-chip:has(input:checked) {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}
.guest-search-dock {
    position: absolute;
    top: 14px;
    left: 16px;
    right: 16px;
    z-index: 600;
}
.map-search-fab { display: none; }
.guest-search-panel { display: block; }
.search-pills {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(15,23,42,.16);
    padding: 6px 6px 6px 8px;
    gap: 0;
    overflow: visible;
}
.search-pill {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
    padding: 6px 14px;
    border-right: 1px solid #e2e8f0;
    cursor: pointer;
    position: relative;
    overflow: visible;
}
.search-pill-city { flex: 1.4; }
.search-pill-sm { flex: 0.7; min-width: 88px; }
.search-pill span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
}
.search-pill .filter-input {
    border: 0;
    padding: 2px 0 0;
    background-color: transparent;
    background-image: none;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    width: 100%;
    min-width: 0;
    border-radius: 0;
    box-shadow: none;
    height: 22px;
    line-height: 22px;
}
.search-pill select.filter-input {
    width: 100%;
    height: 22px;
    padding: 0 20px 0 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><path d='M4.2 6.2 8 10l3.8-3.8' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 14px 14px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 800;
}
.search-pill select.filter-input:hover,
.search-pill select.filter-input:focus {
    background-color: transparent;
    border: 0;
    outline: none;
    box-shadow: none;
}
.search-go {
    border: 0;
    background: #0f172a;
    color: #fff;
    border-radius: 999px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    margin-left: 6px;
    flex-shrink: 0;
}
.search-go:hover { background: #1e293b; }
.guest-search-dock .hero-chips { margin-top: 10px; }
.guest-search-dock .city-chip {
    background: rgba(255,255,255,.9);
    border-color: #e2e8f0;
    color: #0f172a;
    box-shadow: 0 6px 16px rgba(15,23,42,.08);
}
.guest-search-dock .city-chip.active,
.guest-search-dock .city-chip:hover {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}
.route-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 14px;
}
.route-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    min-width: 0;
}
.route-link:hover { border-color: #0f172a; }
.section-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 4px;
}
.section-head h3 { font-size: 16px; font-weight: 800; margin: 0; color: #0f172a; }

.host-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 64px;
    width: 100%;
}
.host-hero { max-width: 720px; margin-bottom: 22px; }
.host-hero h1 { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.host-hero p { color: #64748b; margin-top: 8px; font-size: 15px; }
.host-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: start;
}
.host-board {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px;
}
.host-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.host-step {
    border: 0;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    cursor: pointer;
}
.host-step.is-active { background: #0f172a; color: #fff; }
.host-pane { display: none; }
.host-pane.is-active { display: block; }
.host-pane h2 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.host-lead { color: #64748b; font-size: 14px; margin-bottom: 16px; }
.host-cards { display: grid; gap: 10px; }
.host-choice {
    text-align: left;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
}
.host-choice strong { display: block; font-size: 15px; margin-bottom: 4px; }
.host-choice span { font-size: 13px; color: #64748b; }
.host-choice.is-on, .host-choice:hover { border-color: #0f172a; background: #f8fafc; }
.host-choice.is-on { box-shadow: inset 0 0 0 1px #0f172a; }
.host-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.host-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.host-note { margin-top: 16px; font-size: 12px; color: #64748b; line-height: 1.5; }
.host-calc {
    position: sticky;
    top: 80px;
    background: #0f172a;
    color: #fff;
    border-radius: 20px;
    padding: 18px 16px;
    min-width: 0;
}
.host-calc h3 { font-size: 16px; margin-bottom: 4px; }
.host-calc p { font-size: 12px; color: #94a3b8; margin-bottom: 14px; }
.host-calc .form-group label { color: #cbd5e1; }
.host-calc .form-control, .host-calc select.form-control {
    background-color: #1e293b;
    border-color: #334155;
    color: #fff;
    box-shadow: none;
}
.host-calc select.form-control {
    color-scheme: dark;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><path d='M4.2 6.2 8 10l3.8-3.8' stroke='%23cbd5e1' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.host-calc select.form-control:hover { background-color: #334155; }
.host-calc select.form-control:focus { box-shadow: 0 0 0 3px rgba(148,163,184,.28); }
.host-range-val { display: flex; justify-content: space-between; font-size: 12px; color: #94a3b8; margin-top: 4px; }
.host-calc input[type=range] { width: 100%; }
.range-field {
    display: flex;
    align-items: center;
    height: 28px;
}
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb 0, #2563eb var(--fill, 65%), #e2e8f0 var(--fill, 65%), #e2e8f0 100%);
    outline: none;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .28);
    cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .28);
    cursor: pointer;
}
input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: transparent;
}
.range-field-dark input[type="range"] {
    background: linear-gradient(90deg, #38bdf8 0, #38bdf8 var(--fill, 65%), #334155 var(--fill, 65%), #334155 100%);
}
.range-field-dark input[type="range"]::-webkit-slider-thumb {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .22);
}
.range-field-dark input[type="range"]::-moz-range-thumb {
    border-color: #38bdf8;
}
.calc-stack { display: grid; gap: 0; margin-top: 14px; background: #111827; border-radius: 14px; overflow: hidden; }
.calc-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    font-size: 13px;
    color: #cbd5e1;
    border-bottom: 1px solid #1e293b;
}
.calc-row small { display: block; color: #64748b; font-size: 11px; margin-top: 2px; }
.calc-row b { color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 7.2em; text-align: right; display: inline-block; }
.calc-row.is-mid { background: #0b1220; }
.calc-row.is-net { font-size: 15px; color: #fff; border-bottom: 0; background: #022c22; }
.calc-row.is-net b { color: #6ee7b7; }
.calc-legend { font-size: 11px; color: #94a3b8; line-height: 1.45; margin: 0 0 12px; }
.calc-hint { margin-top: 12px; font-size: 12px; color: #fde68a; line-height: 1.4; }
.calc-compare { margin-top: 12px; display: grid; gap: 6px; }
.cmp { display: flex; justify-content: space-between; font-size: 12px; color: #94a3b8; }
.cmp.is-current { color: #fff; font-weight: 700; }

.rsel { position: relative; width: 100%; }
.rsel-native {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    left: 0; top: 0;
}
.rsel-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}
.rsel-btn::after {
    content: "";
    width: 10px; height: 10px; flex-shrink: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M4.2 6.2 8 10l3.8-3.8' stroke='%2364748b' stroke-width='1.7' stroke-linecap='round'/></svg>") center / contain no-repeat;
}
.rsel.is-open .rsel-btn { border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37,99,235,.14); }
.rsel-menu {
    display: none;
    position: absolute;
    left: 0; right: 0; top: calc(100% + 6px);
    z-index: 4000;
    max-height: 280px;
    overflow: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15,23,42,.16);
    padding: 6px;
}
.rsel.is-open .rsel-menu { display: block; }
.rsel-searchable .rsel-btn { display: none; }
.rsel-type {
    width: 100%;
    display: block;
    height: 44px;
    padding: 0 28px 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M4.2 6.2 8 10l3.8-3.8' stroke='%2364748b' stroke-width='1.7' stroke-linecap='round'/></svg>") right 12px center / 10px no-repeat;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    outline: none;
}
.rsel-searchable.is-open .rsel-type {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.14);
}
.rsel-inline.rsel-searchable .rsel-type {
    height: 22px;
    padding: 0 18px 0 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
    background-position: right 0 center;
    font-size: 13px;
    font-weight: 800;
}
.rsel-inline.rsel-searchable.is-open .rsel-type { box-shadow: none; }
.rsel-type::-webkit-search-decoration,
.rsel-type::-webkit-search-cancel-button { appearance: none; }
.rsel-empty {
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
}
.rsel-group {
    display: block;
    margin: 6px 0 2px;
    padding: 8px 10px 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
}
.rsel-group:first-child,
.rsel-empty + .rsel-group,
.rsel-opt + .rsel-group {
    /* keep separator; first group also needs air */
}
.rsel-menu > .rsel-group:first-of-type {
    margin-top: 0;
    border-top: 0;
    padding-top: 4px;
}
.rsel-group[hidden],
.rsel-opt[hidden],
.rsel-empty[hidden] { display: none !important; }
.avail-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.2;
    background: #0f172a;
    color: #fff;
}
.avail-badge.is-hold { background: #b45309; }
.avail-badge.is-busy { background: #be123c; }
.property-image-wrap { position: relative; }
.avail-row.is-unavailable { opacity: .88; }
.avail-row.is-unavailable .property-image { filter: grayscale(.15); }
.map-unit-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    background: #fee2e2;
    color: #be123c;
}
.map-unit-tag.is-hold { background: #ffedd5; color: #c2410c; }
.map-unit-row.is-unavailable { opacity: .75; }
.properties-pagination {
    padding: 8px 12px 16px;
}
.properties-pagination .rentora-pagination {
    justify-content: center;
    flex-wrap: wrap;
}
.rsel-opt {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
}
.rsel-opt:hover { background: #f1f5f9; }
.rsel-opt.is-on { background: #0f172a; color: #fff; }
.rsel-inline { width: auto; }
.rsel-inline .rsel-btn {
    height: 22px;
    padding: 0 16px 0 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    font-size: 13px;
    font-weight: 800;
    border-radius: 0;
}
.rsel-inline .rsel-btn::after { width: 12px; height: 12px; }
.rsel-inline.is-open .rsel-btn { box-shadow: none; }
.rsel-inline .rsel-menu { min-width: 220px; left: -8px; right: auto; }
.rsel-dark .rsel-btn {
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: #1e293b;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 0 12px 0 10px;
}
.rsel-dark .rsel-btn::after {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M4.2 6.2 8 10l3.8-3.8' stroke='%23e2e8f0' stroke-width='1.7' stroke-linecap='round'/></svg>");
}
.rsel-dark.is-open .rsel-btn { background: #0f172a; box-shadow: none; color: #fff; }
.rsel-dark .rsel-menu { background: #0f172a; border-color: #334155; }
.rsel-dark .rsel-opt { color: #e2e8f0; }
.rsel-dark .rsel-opt:hover { background: #1e293b; }
.rsel-dark .rsel-opt.is-on { background: #fff; color: #0f172a; }
.host-calc .rsel-dark .rsel-btn { height: 44px; border-radius: 12px; background: #1e293b; font-size: 14px; }
.search-pill .rsel { min-width: 0; }
.sort-selector { position: relative; }
.sort-selector .rsel { width: auto; min-width: 160px; }
.lang-switch { flex-shrink: 0; }
.goog-te-banner-frame.skiptranslate,
.VIpgJd-ZVi9oc-ORHb,
.VIpgJd-ZVi9oc-l4eHx,
.goog-logo-link { display: none !important; }
html.translated-ltr body, html.translated-rtl body, body { top: 0 !important; }

.lang-switch { position: relative; }
.lang-current {
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    color: #0f172a;
}
.lang-menu {
    position: absolute;
    right: 0; top: calc(100% + 8px);
    z-index: 5000;
    min-width: 160px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 32px rgba(15,23,42,.14);
    padding: 6px;
    display: none;
}
.lang-switch.is-open .lang-menu { display: block; }
.lang-menu button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: #0f172a;
}
.lang-menu button:hover, .lang-menu button.is-on { background: #0f172a; color: #fff; }
#google_translate_element { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.goog-te-banner-frame, .goog-te-balloon-frame, #goog-gt-tt, .goog-tooltip, .goog-te-gadget-icon { display: none !important; }
body { top: 0 !important; }
.skiptranslate iframe { visibility: hidden !important; height: 0 !important; }
font font { background: transparent !important; box-shadow: none !important; }
@media (max-width: 1100px) {
    .host-layout { grid-template-columns: 1fr; width: 100%; }
    .host-calc { position: static; order: -1; width: 100%; max-width: 100%; }
    .host-board { width: 100%; max-width: 100%; }
    .nav-chip span { display: none; }
    .nav-chip { padding: 0 10px; }
}

body.is-error {
    min-height: 100vh;
}
body.is-error .main-content {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 40px;
}
.error-shell {
    width: min(560px, 100%);
    margin: 0 auto;
}
.error-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 36px 32px 28px;
    text-align: center;
    box-shadow: 0 22px 50px -28px rgba(15, 23, 42, .4);
}
.error-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: block;
    margin: 0 auto 16px;
}
.error-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #94a3b8;
}
.error-card h1 {
    margin: 0 0 10px;
    font-size: 28px;
    letter-spacing: -.03em;
    color: #0f172a;
}
.error-lead {
    margin: 0 auto 18px;
    max-width: 42ch;
    font-size: 15px;
    line-height: 1.5;
    color: #64748b;
}
.error-detail {
    display: inline-block;
    margin: 0 auto 18px;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
}
.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.error-card.is-403 .error-kicker { color: #b45309; }
.error-card.is-500 .error-kicker { color: #b91c1c; }
.error-card.is-419 .error-kicker { color: #1d4ed8; }


/* QR-оплата через эквайринг BCC */
.bcc-qr-box {
    margin-top: 14px; padding: 16px; border-radius: 14px; border: 1px dashed #cbd5e1;
    background: #f8fafc; text-align: center;
}
.bcc-qr-title { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #0f172a; }
.bcc-qr-box img {
    display: block; margin: 0 auto 10px; width: 220px; height: 220px; object-fit: contain;
    background: #fff; border-radius: 12px; border: 1px solid #e2e8f0;
}
