:root {
    --brand: #e63946;
    --navy: #1a1a2e;
    --navy-2: #2d2d4e;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12), 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-page {
    background: #f8fafc;
}

.search-page .border-ink-100 {
    border-color: #e5e7eb;
}

.search-page .border-ink-200 {
    border-color: #d1d5db;
}

.search-page .text-ink-500 {
    color: #6b7280;
}

.search-page .text-ink-600 {
    color: #4b5563;
}

.search-page .text-ink-700 {
    color: #374151;
}

.search-page .text-ink-900 {
    color: #111827;
}

.search-page .bg-ink-50 {
    background-color: #f9fafb;
}

.search-page .bg-ink-900 {
    background-color: #111827;
}

.search-page .border-brand-100 {
    border-color: #fecaca;
}

.search-page .border-brand-200 {
    border-color: #fca5a5;
}

.search-page .text-brand-600 {
    color: #dc2626;
}

.search-page .text-brand-700 {
    color: #b91c1c;
}

.search-page .bg-brand-50 {
    background-color: #fff1f2;
}

.search-page .bg-brand-500 {
    background-color: #ef4444;
}

.search-page .bg-brand-600 {
    background-color: #dc2626;
}

.search-page .hover\:bg-brand-50:hover {
    background-color: #fff1f2;
}

.search-page .hover\:bg-brand-600:hover {
    background-color: #dc2626;
}

.search-page .hover\:bg-ink-50:hover {
    background-color: #f9fafb;
}

.search-page .hover\:text-brand-600:hover {
    color: #dc2626;
}

.search-page .hover\:text-brand-700:hover {
    color: #b91c1c;
}

.search-page .view-toggle-btn {
    font-weight: 600;
    line-height: 1;
}

.search-page #search-results-container {
    min-height: 240px;
}

.search-page .search-content-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.search-page #search-sidebar {
    width: 18rem;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.search-page #search-results-pane {
    flex: 1 1 auto;
    min-width: 0;
}

.search-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}

.hero-pill {
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .28);
}

.hero-pill-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.8fr) 1px minmax(160px, .8fr) 1px minmax(160px, .8fr) auto;
    gap: .5rem;
    align-items: end;
}

.hero-pill-field {
    padding: .4rem .6rem;
}

.hero-pill-label {
    display: block;
    font-size: .72rem;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: .2rem;
}

.hero-pill-input,
.hero-pill-select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    height: 2.2rem;
    color: #111827;
}

.hero-pill-separator {
    width: 1px;
    height: 34px;
    background: #e5e7eb;
    align-self: center;
}

.hero-pill-submit {
    height: 48px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    padding: 0 1.3rem;
    transition: transform .15s ease, filter .15s ease;
}

.hero-pill-submit:hover {
    filter: brightness(.95);
    transform: translateY(-1px);
}

.hero-pill-input-wrap {
    position: relative;
}

.suggest-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    margin-top: .4rem;
    overflow: hidden;
}

.suggest-item {
    display: flex;
    gap: .6rem;
    align-items: center;
    padding: .65rem .8rem;
    font-size: .92rem;
    cursor: pointer;
}

.suggest-item:hover,
.suggest-item.active {
    background: #f8fafc;
}

.filter-section {
    border: 1px solid #eef2f7;
    border-radius: .8rem;
    padding: .7rem .8rem;
    background: #fff;
}

.filter-section>summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    color: #111827;
    position: relative;
    padding-right: 1.25rem;
}

.filter-section>summary::after {
    content: '▾';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: .8rem;
}

.filter-section[open]>summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.filter-section>summary::-webkit-details-marker {
    display: none;
}

.filter-radio-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    font-size: .92rem;
    color: #374151;
}

.filter-radio-row input[type='radio'] {
    accent-color: var(--brand);
}

.filter-badge {
    font-size: .75rem;
    padding: .15rem .4rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
}

.price-chip {
    display: block;
}

.price-chip input {
    display: none;
}

.price-chip span {
    display: block;
    text-align: center;
    padding: .45rem .2rem;
    border: 1px solid #d1d5db;
    border-radius: .7rem;
    font-size: .78rem;
    color: #374151;
}

.price-chip input:checked+span {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

.feature-check {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .88rem;
    color: #374151;
}

.feature-check input {
    accent-color: var(--brand);
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .95rem;
}

.toggle-row input {
    width: 42px;
    height: 22px;
    accent-color: #16a34a;
}

.search-card {
    box-shadow: var(--card-shadow);
    transition: box-shadow .2s ease;
}

.search-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.search-card-grid {
    transition: transform .2s ease, box-shadow .2s ease;
    min-height: 420px;
}

.search-card-grid:hover {
    transform: translateY(-4px);
}

.map-layout {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 1rem;
}

#map-panel {
    position: sticky;
    top: 94px;
    align-self: start;
    width: 100%;
    min-height: 72vh;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.leaflet-container {
    font-family: 'DM Sans', sans-serif;
}

.qf-popup {
    display: flex;
    gap: .7rem;
}

.qf-popup-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.qf-popup-body {
    min-width: 0;
}

.qf-popup-name {
    font-weight: 700;
    color: #111827;
    font-size: .95rem;
    line-height: 1.25;
}

.qf-popup-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .35rem;
}

.qf-popup-badge {
    font-size: .72rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    padding: .2rem .5rem;
}

.qf-popup-city {
    font-size: .76rem;
    color: #64748b;
}

.qf-popup-rating {
    margin-top: .35rem;
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    color: #f59e0b;
}

.qf-popup-rating span {
    color: #475569;
    font-weight: 600;
}

.qf-popup-btn {
    display: inline-flex;
    margin-top: .45rem;
    font-size: .78rem;
    font-weight: 700;
    color: #dc2626;
}

.search-page #search-layout.is-map-mode {
    display: flex;
    align-items: flex-start;
}

.search-page #search-layout.is-map-mode #search-results-wrap {
    display: none;
}

.search-page #search-layout.is-map-mode #map-panel {
    display: block !important;
    width: 100%;
    height: calc(100vh - 130px) !important;
}

.toggle-row-rich span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toggle-row-rich small {
    font-size: .74rem;
    color: #64748b;
    font-weight: 500;
}

.only-block .rich-check {
    align-items: flex-start;
    border: 1px solid #e2e8f0;
    border-radius: .7rem;
    padding: .55rem .6rem;
    background: #fff;
}

.only-block .rich-check span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.only-block .rich-check small {
    font-size: .72rem;
    color: #64748b;
}

.mobile-filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 70;
}

.mobile-filter-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .5);
}

.mobile-filter-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 1rem;
    max-height: 82vh;
    overflow: auto;
    box-shadow: 0 -12px 30px rgba(0, 0, 0, .18);
}

.skeleton-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    height: 180px;
}

.skeleton-card::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 1023px) {
    .search-page .search-content-layout {
        display: block;
    }

    .search-page #search-sidebar {
        width: 100%;
    }

    .hero-pill-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-pill-separator {
        display: none;
    }

    .hero-pill-field:first-child {
        grid-column: 1 / -1;
    }

    .hero-pill-submit {
        grid-column: 1 / -1;
        border-radius: .9rem;
    }

    .map-layout {
        grid-template-columns: 1fr;
    }

    #map-panel {
        position: relative;
        top: 0;
    }
}