/* ══════════════════════════════════════════════════════════
   RESET & ROOT
══════════════════════════════════════════════════════════ */
:root {
    --gold: #C9A96E;
    --gold-lt: #E2CFA0;
    --gold-dm: rgba(201, 169, 110, .13);
    --gold-bd: rgba(201, 169, 110, .38);
    --amber: #f59e0b;
    --amber-dk: #d97706;
    --panel-bg: rgba(8, 8, 12, .96);
    --purple: #a78bfa;
    --white-9: rgba(255, 255, 255, .92);
    --white-5: rgba(255, 255, 255, .5);
    --white-3: rgba(255, 255, 255, .3);
    --ease: cubic-bezier(.4, 0, .2, 1);
    --t: .22s;
    --fd: 'Cormorant Garamond', Georgia, serif;
    --fu: 'DM Sans', sans-serif;
}

/* ══════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════ */
.header-hero {
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center 30%;
    /* REMOVED overflow: hidden — it was clipping dropdowns */
}

    /* Cinematic overlay layers */
    .header-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 100% 70% at 50% 100%, rgba(0, 0, 0, .9) 0%, transparent 55%), linear-gradient(160deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .65) 100%);
        z-index: 1;
    }

    /* Gold shimmer top line */
    .header-hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-lt) 50%, var(--gold) 70%, transparent);
        opacity: .7;
        z-index: 6;
        animation: shimmer 4s ease-in-out infinite;
    }

/* Grain texture overlay */
.hero-grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

/* ── HERO INNER ── */
.tlp-hero-inner {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(100px, 14vw, 140px) clamp(24px, 4vw, 48px) clamp(60px, 8vw, 100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* REMOVED overflow: hidden — it clips dropdowns */
}

/* ── BADGE ── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-dm);
    border: 1px solid var(--gold-bd);
    border-radius: 100px;
    padding: 6px 18px;
    margin-bottom: 28px;
    font-family: var(--fu);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-lt);
    opacity: 0;
    animation: fadeUp .9s .1s var(--ease) forwards;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse 2s ease-in-out infinite;
}

/* ── HEADING ── */
.main_title {
    font-family: var(--fd);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -.5px;
    color: #fff;
    text-shadow: 0 4px 32px rgba(0, 0, 0, .5);
    margin-bottom: 18px;
    opacity: 0;
    animation: fadeUp .95s .22s var(--ease) forwards;
}

    .main_title em {
        font-style: italic;
        color: var(--gold-lt);
    }

.title_sub {
    font-family: var(--fu);
    font-size: clamp(13px, 1.5vw, 16px);
    font-weight: 300;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .55);
    max-width: 480px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp .9s .35s var(--ease) forwards;
}

/* ══════════════════════════════════════════════════════════
   FILTER CARD
══════════════════════════════════════════════════════════ */
.tlp-filter-card {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 16px;
    padding: 10px 6px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .15), 0 4px 20px rgba(0, 0, 0, .08);
    opacity: 0;
    animation: fadeUp 1s .48s var(--ease) forwards;
    margin-top: 30px;
    /* KEY FIX: must NOT clip its children dropdowns */
    overflow: visible;
}

.tlp-filter-row-1 {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    background-color: black;
    padding: 8px 16px;
    /* background: linear-gradient(135deg, var(--gold) 0%, #dbb97e 50%, var(--amber-dk) 100%); */
    border-radius: 16px;
    /* KEY FIX: allow dropdowns to overflow this row */
    overflow: visible;
    /* Raise stacking context so dropdowns sit above hero overlays */
    position: relative;
    z-index: 10;
}

.row-1-left {
    flex: 0 0 calc(65% - 5px);
    display: flex;
    gap: 10px;
    /* KEY FIX: must be position relative + visible overflow for its dropdown */
    position: relative;
    overflow: visible;
}

.row-1-right {
    flex: 0 0 calc(35% - 5px);
    display: flex;
    gap: 8px;
    align-items: center;
    /* KEY FIX: visible overflow so panels are not clipped */
    overflow: visible;
    position: relative;
}

.tlp-filter-row-2 {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 10px;
}

    .tlp-filter-row-2 h2 {
        font-family: var(--fd);
        font-size: 28px;
        font-weight: 400;
        color: #fff;
        margin-bottom: 8px;
    }

/* Price Range Panel Styles */
.price-inputs {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.price-field {
    flex: 1;
}

    .price-field label {
        display: block;
        font-size: 11px;
        color: rgba(255, 255, 255, .5);
        margin-bottom: 4px;
        text-transform: uppercase;
    }

    .price-field input {
        width: 100%;
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .15);
        border-radius: 8px;
        padding: 8px 12px;
        color: #fff;
        font-family: var(--fu);
        font-size: 13px;
    }

.price-error {
    color: #ff4d4f;
    font-size: 11px;
    margin-top: 4px;
    display: none;
}


/* ── KEYWORD ROW ── */
.tlp-kw-row {
    margin-bottom: 14px;
}

.tlp-kw-wrap {
    position: relative;
    /* KEY FIX: overflow visible so dropdown is not clipped */
    overflow: visible;
    flex: 2;
}

.tlp-kw-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--purple);
    pointer-events: none;
    z-index: 1;
}

.tlp-kw-input {
    width: 100%;
    height: 36px;
    padding-left: 40px;
    background: rgba(255, 255, 255, .06);
    border: 1.5px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    font-family: var(--fu);
    font-size: 12px;
    color: #eee;
    outline: none;
    transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

    .tlp-kw-input::placeholder {
        color: #fff;
        font-size: 10px;
    }

    .tlp-kw-input:hover {
        border-color: rgba(255, 255, 255, .2);
    }

    .tlp-kw-input:focus {
        border-color: var(--gold-bd);
        box-shadow: 0 0 0 3px rgba(201, 169, 110, .12);
    }

.kw-count-inline {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: rgba(255, 255, 255, .3);
    pointer-events: none;
    font-family: var(--fu);
    background: rgba(201, 169, 110, .1);
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid rgba(201, 169, 110, .2);
}

/* ── KEYWORD / LOCATION DROPDOWN ── */
.tlp-loc-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--panel-bg);
    border: 1px solid var(--gold-bd);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .7);
    z-index: 999999;
    max-height: 260px;
    /* Scroll only inside the dropdown — no bleed to page or sides */
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Thin gold scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 169, 110, .35) transparent;
    display: none;
    padding: 6px 0;
}

    .tlp-loc-dropdown::-webkit-scrollbar {
        width: 4px;
    }

    .tlp-loc-dropdown::-webkit-scrollbar-track {
        background: transparent;
    }

    .tlp-loc-dropdown::-webkit-scrollbar-thumb {
        background: rgba(201, 169, 110, .35);
        border-radius: 4px;
    }

        .tlp-loc-dropdown::-webkit-scrollbar-thumb:hover {
            background: rgba(201, 169, 110, .6);
        }

    .tlp-loc-dropdown.open {
        display: block;
        animation: fadeUp .18s var(--ease) both;
    }

.tlp-loc-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 18px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    transition: background .15s;
}

    .tlp-loc-item:last-child {
        border-bottom: none;
    }

    .tlp-loc-item:hover {
        background: rgba(201, 169, 110, .1);
    }

.proj-name {
    font-family: var(--fu);
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
}

.proj-meta {
    font-family: var(--fu);
    font-size: 11.5px;
    font-weight: 300;
    color: rgba(201, 169, 110, .65);
    flex-shrink: 0;
}

.proj-meta-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.proj-meta-sep {
    color: rgba(201, 169, 110, .3);
    font-size: 10px;
}

.tlp-type-badge {
    font-family: var(--fu);
    font-size: 8.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(201, 169, 110, .15);
    color: var(--gold-lt);
    border: 1px solid var(--gold-bd);
    white-space: nowrap;
    margin-left: auto;
}

/* ── 3-COL GRID ROW ── */
.tlp-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

/* ── GRID FIELD ── */
.tlp-grid-field {
    position: relative;
    height: 36px;
    background: rgba(255, 255, 255, .06);
    border: 1.5px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    /* KEY FIX: overflow visible so panels are never clipped */
    overflow: visible;
    transition: border-color var(--t) var(--ease);
    cursor: pointer;
}

    .tlp-grid-field:hover {
        border-color: rgba(255, 255, 255, .2);
    }

.tlp-field--type {
    flex: 1;
}

.tlp-grid-field:focus-within,
.tlp-grid-field:has(.tlp-panel.open) {
    border-color: var(--gold-bd);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, .12);
    /* KEY FIX: bring the active field to the top of the stacking order */
    z-index: 999998;
}

.tlp-grid-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--purple);
    pointer-events: none;
}

.tlp-grid-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .3);
    pointer-events: none;
    transition: transform var(--t) var(--ease);
}

.tlp-grid-trigger[aria-expanded="true"] ~ .tlp-grid-chevron {
    transform: translateY(-50%) rotate(180deg);
}

.tlp-grid-input {
    flex: 1;
    height: 100%;
    padding-left: 36px;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--fu);
    font-size: 12px;
    color: rgba(255, 255, 255, .85);
    cursor: pointer;
}

    .tlp-grid-input::placeholder {
        color: rgba(255, 255, 255, .28);
    }

.tlp-grid-trigger {
    flex: 1;
    height: 100%;
    padding-left: 36px;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--fu);
    font-size: 12px;
    color: rgba(255, 255, 255, .85);
    text-align: left;
    cursor: pointer;
}

/* ── PANELS (Type / Beds / Price) ── */
.tlp-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--panel-bg);
    border: 1px solid var(--gold-bd);
    border-radius: 18px;
    padding: 20px;
    /* KEY FIX: highest z-index so it floats above everything */
    z-index: 999999;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .75);
    /* KEY FIX: panels must not be clipped by their own children */
    overflow: visible;
}

/* Price panel needs more width */
.tlp-field--price .tlp-panel {
    min-width: 260px;
    /* Align to right edge so it doesn't go off-screen */
    left: auto;
    right: 0;
}

.tlp-panel.open {
    display: block;
    animation: fadeUp .2s var(--ease) both;
}

.tlp-panel-title {
    font-family: var(--fu);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 14px;
}

.tlp-panel-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.tlp-btn-reset,
.tlp-btn-apply {
    font-family: var(--fu);
    font-size: 12px;
    font-weight: 500;
    padding: 9px 22px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    transition: all var(--t) var(--ease);
}

.tlp-btn-reset {
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .5);
}

    .tlp-btn-reset:hover {
        background: rgba(255, 255, 255, .12);
        color: #fff;
    }

.tlp-btn-apply {
    background: var(--gold);
    color: #0a0a0f;
    font-weight: 600;
}

    .tlp-btn-apply:hover {
        background: var(--gold-lt);
    }

/* Location list items inside panel */
.tlp-type-list {
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 169, 110, .3) transparent;
}

.tlp-type-option {
    cursor: pointer;
    transition: background .15s;
}

    .tlp-type-option:hover {
        background: rgba(201, 169, 110, .1);
        border-radius: 10px;
    }

    .tlp-type-option.selected {
        background: rgba(201, 169, 110, .12);
        border-radius: 10px;
    }

        .tlp-type-option.selected .tlp-loc-name {
            color: var(--gold);
        }

.tlp-loc-name {
    font-family: var(--fu);
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .85);
}

/* ── BEDROOM CHIPS ── */
.tlp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}

.tlp-chip {
    font-family: var(--fu);
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    padding: 7px 16px;
    cursor: pointer;
    transition: all var(--t) var(--ease);
}

    .tlp-chip:hover {
        background: var(--gold-dm);
        border-color: var(--gold-bd);
        color: var(--gold-lt);
    }

    .tlp-chip.active {
        background: var(--gold-dm);
        border-color: var(--gold);
        color: var(--gold);
    }

/* ── SEARCH BUTTON ── */
.tlp-search-btn-row {
    margin-bottom: 16px;
}

.tlp-search-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 36px;
    background: linear-gradient(135deg, var(--gold) 0%, #dbb97e 50%, var(--amber-dk) 100%);
    border: none;
    border-radius: 12px;
    font-family: var(--fu);
    font-size: 13px;
    font-weight: 600;
    color: #0a0a0f;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(201, 169, 110, .4);
    transition: all var(--t) var(--ease);
    letter-spacing: .03em;
}

    .tlp-search-btn:hover {
        background: linear-gradient(135deg, var(--gold-lt) 0%, var(--gold) 100%);
        box-shadow: 0 14px 44px rgba(201, 169, 110, .55);
        transform: translateY(-1px);
    }

    .tlp-search-btn:active {
        transform: translateY(0);
    }

/* ── AI STRIP ── */
.tlp-ai-prompt {
    text-align: center;
}

.tlp-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #181010e6;
    border: none;
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 100px;
    transition: background var(--t) var(--ease);
}

    .tlp-ai-btn:hover {
        background: #181010e6;
    }

.tlp-ai-sparkle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--gold) 0%, #fde68a 100%);
    border-radius: 50%;
    color: #0a0a0f;
    flex-shrink: 0;
    animation: shimmer 3s ease-in-out infinite;
}

.tlp-ai-label {
    font-family: var(--fu);
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, .45);
    letter-spacing: .02em;
}

    .tlp-ai-label strong {
        color: var(--gold);
        font-weight: 600;
    }

/* ══════════════════════════════════════════════════════════
   AI CHAT MODAL
══════════════════════════════════════════════════════════ */
.tlp-chat-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(8px);
    z-index: 9999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .tlp-chat-overlay.open {
        display: flex;
        animation: fadeIn .22s ease both;
    }

.tlp-chat-modal {
    width: 100%;
    max-width: 480px;
    height: min(520px, 76vh);
    background: linear-gradient(160deg, #0c0a06 0%, #080608 100%);
    border: 1px solid var(--gold-bd);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 48px 120px rgba(0, 0, 0, .9), 0 0 0 1px rgba(201, 169, 110, .08);
    animation: fadeUp .3s .05s var(--ease) both;
}

.tlp-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: linear-gradient(90deg, rgba(201, 169, 110, .1) 0%, transparent 100%);
    border-bottom: 1px solid rgba(201, 169, 110, .14);
    flex-shrink: 0;
}

.tlp-chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tlp-chat-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--gold) 0%, #f0d898 100%);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0f;
    flex-shrink: 0;
}

.tlp-chat-title {
    font-family: var(--fu);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.tlp-chat-status {
    font-family: var(--fu);
    font-size: 11px;
    color: rgba(255, 255, 255, .4);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
}

.tlp-chat-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #4caf7d;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.tlp-chat-close {
    background: rgba(255, 255, 255, .06);
    border: none;
    color: rgba(255, 255, 255, .45);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--t), color var(--t);
}

    .tlp-chat-close:hover {
        background: rgba(255, 255, 255, .12);
        color: #fff;
    }

.tlp-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 169, 110, .2) transparent;
}

.tlp-chat-msg {
    display: flex;
}

.tlp-chat-msg--ai {
    justify-content: flex-start;
}

.tlp-chat-msg--user {
    justify-content: flex-end;
}

.tlp-chat-bubble {
    max-width: 82%;
    padding: 12px 16px;
    border-radius: 16px;
    font-family: var(--fu);
    font-size: 13.5px;
    line-height: 1.65;
}

.tlp-chat-msg--ai .tlp-chat-bubble {
    background: rgba(201, 169, 110, .09);
    border: 1px solid rgba(201, 169, 110, .17);
    color: rgba(255, 255, 255, .82);
    border-bottom-left-radius: 4px;
}

.tlp-chat-msg--user .tlp-chat-bubble {
    background: linear-gradient(135deg, var(--gold) 0%, #e8c97a 100%);
    color: #0a0a0f;
    font-weight: 500;
    border-bottom-right-radius: 4px;
}

.tlp-chat-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    background: rgba(201, 169, 110, .07);
    border: 1px solid rgba(201, 169, 110, .14);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    max-width: 70px;
}

    .tlp-chat-typing span {
        display: block;
        width: 6px;
        height: 6px;
        background: var(--gold);
        border-radius: 50%;
        animation: bounce 1.2s ease-in-out infinite;
    }

        .tlp-chat-typing span:nth-child(2) {
            animation-delay: .2s;
        }

        .tlp-chat-typing span:nth-child(3) {
            animation-delay: .4s;
        }

.tlp-chat-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid rgba(201, 169, 110, .12);
    background: rgba(0, 0, 0, .3);
    flex-shrink: 0;
}

.tlp-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 11px 16px;
    font-family: var(--fu);
    font-size: 13.5px;
    color: #eee;
    outline: none;
    transition: border-color var(--t);
}

    .tlp-chat-input:focus {
        border-color: rgba(201, 169, 110, .45);
    }

    .tlp-chat-input::placeholder {
        color: rgba(255, 255, 255, .28);
    }

.tlp-chat-send {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--gold) 0%, #e8c97a 100%);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0f;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s;
}

    .tlp-chat-send:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 24px rgba(201, 169, 110, .45);
    }

/* ══════════════════════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes shimmer {

    0%, 100% {
        opacity: .5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes pulse {

    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .6;
        transform: scale(.85);
    }
}

@keyframes bounce {

    0%, 80%, 100% {
        transform: translateY(0);
        opacity: .5;
    }

    40% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* ── Filter Card ── */
    .tlp-filter-card {
        padding: 10px 8px;
        border-radius: 16px;
        margin-top: 20px;
        overflow: visible;
    }

    /* ── Row 1: stack vertically, becomes the positioning root for all panels ── */
    .tlp-filter-row-1 {
        flex-direction: column;
        gap: 8px;
        padding: 10px 10px;
        margin-bottom: 0;
        overflow: visible;
        position: relative; /* panels position against this */
    }

    /* Sub-rows: full width, NO position:relative so panels
       escape up to .tlp-filter-row-1 as their reference     */
    .row-1-left,
    .row-1-right {
        flex: 0 0 100%;
        width: 100%;
        gap: 8px;
        overflow: visible;
        position: static; /* do NOT be a positioning ancestor */
    }

    .row-1-left {
        display: flex;
        flex-direction: row;
    }

    .tlp-kw-wrap {
        flex: 2;
        overflow: visible;
        position: static; /* same — let dropdown escape to row-1 */
    }

    .tlp-field--type {
        flex: 1 !important;
        overflow: visible;
    }

    .row-1-right {
        display: flex;
        flex-direction: row;
        align-items: center;
        overflow: visible;
    }

    .tlp-field--beds,
    .tlp-field--price {
        flex: 1 !important;
        overflow: visible;
    }

    /* Fields themselves must NOT be positioning parents on mobile
       so every panel escapes all the way up to .tlp-filter-row-1  */
    .tlp-grid-field {
        position: static !important;
    }

    /* Search button stays compact */
    .tlp-search-btn {
        font-size: 14px;
        flex: 0 0 auto;
        width: 36px !important;
        padding: 0 !important;
    }

    /* ── ALL Panels: positioned against .tlp-filter-row-1 ──
       left:0 right:0 now means the full width of the black row bar,
       which is always 100% of the card / screen width.             */
    .tlp-panel,
    .tlp-field--type .tlp-panel,
    .tlp-field--beds .tlp-panel,
    .tlp-field--price .tlp-panel {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        width: auto !important;
        min-width: unset !important;
        max-width: 100% !important;
        transform: none !important;
        /* Place below row-1-right (2nd row ~ 36px + 8px gap + 10px pad = ~54px from bottom of row-1) */
        top: 100% !important;
        margin-top: 6px;
    }

    /* ── Keyword dropdown: also escapes to row-1 ── */
    .tlp-loc-dropdown {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        width: auto !important;
        max-width: 100% !important;
        max-height: 240px !important;
        border-radius: 14px !important;
        top: calc(36px + 8px + 36px + 16px) !important; /* below both rows */
    }

    /* ── Hide all filter icons on mobile ── */
    .tlp-kw-icon,
    .tlp-grid-icon,
    .tlp-grid-chevron {
        display: none !important;
    }

    /* Remove left padding that was reserved for the icon */
    .tlp-kw-input {
        padding-left: 12px !important;
    }

    .tlp-grid-trigger {
        padding-left: 12px !important;
    }


    /* Grid (legacy) */
    .tlp-grid-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
