:root {
    --primary-blue: #0087eb;
    --dark-bg: #001e33;
    --bg: #f6f8fb;
    --card: #ffffff;
    --text: #0b1a2a;
    --muted: rgba(11, 26, 42, 0.65);
    --border: rgba(0,0,0,0.10);
    --shadow: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-strong: 0 16px 45px rgba(0,0,0,0.14);
    --ring: rgba(0, 135, 235, 0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body { background: var(--bg); color: var(--text); }
button { font: inherit; }
a { color: inherit; }

/* Hide global header only on details page (modal auth still works). */
.detail-no-header .glass-nav { display: none !important; }

/* Header */
.main-header {
    background: rgba(0, 30, 51, 0.92);
    color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
}

.logo { font-size: 24px; font-weight: 900; letter-spacing: -0.2px; text-decoration: none; }
.icon-btn { background: transparent; border: none; cursor: pointer; color: inherit; }

.search-box {
    background: var(--card);
    flex: 1;
    display: flex;
    align-items: center;
    border-radius: 14px;
    /* overflow: hidden; */
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 10px 25px rgba(0,0,0,0.10);
    min-width: 260px;
    position: relative;
    overflow: visible;
}

.search-type {
    padding: 10px 12px;
    border-right: 1px solid rgba(0,0,0,0.06);
    font-size: 14px;
    cursor: pointer;
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 900;
}

.tags-container { flex: 1; display: flex; align-items: center; padding: 0 10px; min-width: 0; }
.tags-container input { width: 100%; border: none; outline: none; font-size: 14px; padding: 10px 8px; }

.search-suggestions {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    overflow: hidden;
    z-index: 60;
    max-height: 320px;
    overflow-y: auto;
}

.search-suggestions .suggestion-item {
    width: 100%;
    text-align: left;
    border: none;
    background: #fff;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.search-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestions .suggestion-item:hover,
.search-suggestions .suggestion-item:focus {
    background: rgba(0,0,0,0.04);
    outline: none;
}

.search-suggestions .suggestion-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: rgba(0,0,0,0.88);
}

.search-suggestions mark {
    background: rgba(0, 135, 235, 0.14);
    color: inherit;
    padding: 0 2px;
    border-radius: 6px;
}

.search-suggestions .suggestion-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.search-suggestions .suggestion-type {
    font-size: 12px;
    color: rgba(0,0,0,0.55);
    font-weight: 800;
}

.search-modal-input { position: relative; }
.search-modal-input .search-suggestions {
    left: 0;
    right: 0;
    top: calc(100% + 8px);
}

.mic-icon, .search-btn { width: 44px; height: 44px; display: grid; place-items: center; color: var(--primary-blue); }
.mic-icon:hover, .search-btn:hover { background: rgba(0, 135, 235, 0.08); }

.header-right { display: flex; align-items: center; gap: 12px; }
.btn-post {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.75);
    color: white;
    padding: 8px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 900;
}
.btn-post span { color: #4caf50; margin-left: 6px; font-weight: 1000; }
.user-profile { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.menu-icon { width: 40px; height: 40px; border-radius: 12px; }
.menu-icon:hover { background: rgba(255,255,255,0.10); }

/* Page */
.detail-page { width: min(1180px, 100%); margin: 0 auto; padding: 16px 20px 70px; }
.top-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: rgba(11, 26, 42, 0.65);
    font-size: 12px;
    background: rgba(255,255,255,0.58);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 10px 12px;
    backdrop-filter: blur(8px);
}
.crumbs { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.crumbs a { text-decoration: none; color: rgba(11, 26, 42, 0.70); font-weight: 900; }
.crumbs a:hover { color: var(--primary-blue); }
.crumbs span { font-weight: 800; color: rgba(11,26,42,0.58); }
.top-meta { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-weight: 800; }
.dot { width: 4px; height: 4px; border-radius: 99px; background: rgba(11,26,42,0.35); display: inline-block; }

.hero {
    margin-top: 12px;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.96) 100%);
    border: 1px solid rgba(0,0,0,0.09);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.10);
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(330px, 1fr) minmax(420px, auto);
    align-items: center;
    gap: 16px;
}
.hero-left { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; min-width: 0; }
.hero-price { padding-right: 18px; border-right: 1px solid rgba(0,0,0,0.10); }
.price-main { font-size: 34px; font-weight: 1000; letter-spacing: -0.5px; line-height: 1.08; color: #001e33; }
.price-sub { color: rgba(11,26,42,0.58); font-weight: 900; margin-top: 4px; font-size: 12px; }
.hero-title { min-width: 0; display: grid; gap: 5px; }
.title-main { font-size: 17px; font-weight: 1000; color: #001e33; }
.title-sub { font-size: 12px; color: rgba(11,26,42,0.66); line-height: 1.35; max-width: 280px; }

.hero-right {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    gap: 10px;
    align-items: center;
    justify-content: end;
}
.contact-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(246, 248, 251, 0.9);
    color: rgba(11,26,42,0.70);
    font-weight: 900;
    font-size: 12px;
    min-height: 40px;
    max-width: 360px;
}
.contact-note .note-link { margin-left: 6px; color: var(--primary-blue); text-decoration: none; font-weight: 1000; }
.contact-note .note-link:hover { text-decoration: underline; }
.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 1000;
    cursor: pointer;
    min-height: 40px;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(0,135,235,0.22);
}
.btn-primary span { font-size: 10px; background: rgba(255,255,255,0.22); padding: 2px 6px; border-radius: 999px; margin-left: 6px; }
.btn-primary:hover { filter: brightness(0.96); }
.btn-secondary {
    background: white;
    color: var(--primary-blue);
    border: 1px solid rgba(0, 135, 235, 0.55);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 1000;
    cursor: pointer;
    min-height: 40px;
    white-space: nowrap;
}
.btn-secondary:hover { background: rgba(0, 135, 235, 0.06); }
.btn-secondary.active { background: rgba(255, 77, 77, 0.08); border-color: rgba(255,77,77,0.42); color: #ff4d4d; }
.btn-secondary.copied { background: rgba(46,204,113,0.12); border-color: rgba(46,204,113,0.36); color: #0a7a42; }
.btn-secondary i { margin-right: 6px; }

.rera-bar { margin-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; }
.rera-pill { font-size: 11px; font-weight: 1000; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.08); background: white; }
.rera-pill.ok { background: rgba(46,204,113,0.10); border-color: rgba(46,204,113,0.20); color: rgba(0, 30, 51, 0.92); }
.rera-pill.warn { background: rgba(255, 220, 180, 0.55); border-color: rgba(255, 170, 80, 0.35); color: rgba(0, 30, 51, 0.92); }
.rera-link { color: rgba(11,26,42,0.65); font-size: 12px; text-decoration: none; }
.rera-link:hover { color: var(--primary-blue); }

.detail-tabs { margin-top: 10px; border-bottom: 1px solid rgba(0,0,0,0.08); display: flex; gap: 8px; }
.detail-tabs .tab {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px 12px;
    font-weight: 1000;
    color: rgba(11,26,42,0.70);
    position: relative;
}
.detail-tabs .tab.active { color: var(--primary-blue); }
.detail-tabs .tab.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; background: var(--primary-blue); border-radius: 999px; }

.tab-panel { display: none; padding-top: 18px; }
.tab-panel.active { display: block; }

/* Overview */
.overview-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 18px; align-items: start; }
.media-card, .facts-card, .owner-card, .enquiry-card { background: white; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }

.carousel { position: relative; height: 390px; background: #e9eef6; }
.carousel-track { height: 100%; }
.carousel-img { display: none; width: 100%; height: 100%; object-fit: cover; }
.carousel-img.active { display: block; }
.car-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(0,0,0,0.28);
    color: white;
    cursor: pointer;
    display: grid;
    place-items: center;
    backdrop-filter: blur(6px);
}
.car-btn.prev { left: 12px; }
.car-btn.next { right: 12px; }
.car-btn:hover { background: rgba(0,0,0,0.34); }
.car-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,0.40); color: white; font-weight: 900; font-size: 11px; padding: 6px 10px; border-radius: 999px; }

.facts-card { padding: 14px 14px 16px; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact { padding: 12px; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; background: rgba(246, 248, 251, 0.9); }
.fact .k { color: rgba(11,26,42,0.55); font-weight: 900; font-size: 12px; display: inline-flex; align-items: center; gap: 8px; }
.fact .v { margin-top: 6px; font-weight: 1000; font-size: 13px; color: rgba(0, 30, 51, 0.92); line-height: 1.3; }
.fact .sub { font-weight: 800; color: rgba(11,26,42,0.65); font-size: 12px; }
.fact .link { color: var(--primary-blue); font-weight: 1000; }

.highlights { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.08); }
.hl-title { font-weight: 1000; margin-bottom: 10px; }
.hl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hl { background: rgba(0, 200, 160, 0.15); border: 1px solid rgba(0, 200, 160, 0.22); padding: 8px 10px; border-radius: 999px; font-weight: 900; font-size: 12px; color: rgba(0, 30, 51, 0.90); }

/* About / Features section (below cards) */
.about-panel {
    margin-top: 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 18px 18px 16px;
}

.meta-triplet {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-bottom: 6px;
}

.meta-item {
    padding-right: 12px;
    border-right: 1px solid rgba(0,0,0,0.10);
}

.meta-item:last-child { border-right: none; padding-right: 0; }

.mm-k { color: rgba(11,26,42,0.55); font-weight: 900; font-size: 12px; }
.mm-v { margin-top: 6px; color: rgba(0, 30, 51, 0.92); font-size: 13px; }
.mm-sub { margin-left: 6px; color: rgba(11,26,42,0.55); font-weight: 800; font-size: 11px; }

/* About + Features */
.about-divider { height: 1px; background: rgba(0,0,0,0.10); margin: 16px 0; }

.about h3,
.features h3,
.detail-facts h3 {
    font-size: 16px;
    font-weight: 1000;
    color: rgba(11,26,42,0.72);
    margin-bottom: 10px;
}

.detail-fact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.detail-fact {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(246, 248, 251, 0.72);
    border-radius: 14px;
    padding: 12px;
}

.detail-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    background: rgba(0, 135, 235, 0.09);
    color: rgba(0, 30, 51, 0.72);
}

.detail-icon i { font-size: 13px; }

.detail-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.detail-label {
    color: rgba(11,26,42,0.55);
    font-weight: 900;
    font-size: 11px;
}

.detail-copy b {
    color: rgba(0, 30, 51, 0.94);
    font-size: 13px;
    line-height: 1.3;
    word-break: break-word;
}

.about-address {
    color: rgba(11,26,42,0.70);
    font-size: 13px;
    margin-bottom: 10px;
}

.about-text {
    color: rgba(11,26,42,0.65);
    font-size: 13px;
    line-height: 1.55;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(140px, 1fr));
    gap: 12px 18px;
    padding: 6px 0 2px;
}

.feature {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(11,26,42,0.70);
    font-weight: 900;
    font-size: 13px;
    min-width: 0;
}

.fi {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(0, 135, 235, 0.10);
    border: 1px solid rgba(0,0,0,0.06);
    display: grid;
    place-items: center;
    flex: 0 0 28px;
}

.fi i { color: rgba(0, 30, 51, 0.72); font-size: 13px; }
.feature span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.report-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.10);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.report-note { color: rgba(11,26,42,0.60); font-size: 13px; font-weight: 800; }

.btn-report {
    background: rgba(0, 30, 51, 0.60);
    color: white;
    border: none;
    border-radius: 0;
    padding: 10px 14px;
    font-weight: 1000;
    cursor: pointer;
}

.btn-report:hover { filter: brightness(0.95); }
.btn-report i { margin-right: 8px; }

/* Owner */
.owner-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.owner-card { padding: 16px; }
.owner-head, .enq-head { font-weight: 1000; color: rgba(11,26,42,0.70); margin-bottom: 14px; font-size: 18px; }
.owner-row { display: flex; gap: 12px; align-items: center; }
.owner-avatar { width: 72px; height: 72px; border-radius: 16px; background: rgba(0, 135, 235, 0.10); border: 1px solid rgba(0,0,0,0.08); display: grid; place-items: center; color: rgba(0, 30, 51, 0.85); font-size: 22px; }
.owner-name { font-weight: 1000; }
.owner-role { color: rgba(11,26,42,0.65); font-size: 13px; margin-top: 2px; }
.btn-call { margin-top: 14px; width: 100%; background: rgba(0, 200, 160, 0.18); border: 1px solid rgba(0, 200, 160, 0.24); color: rgba(0, 30, 51, 0.92); border-radius: 12px; padding: 12px 12px; font-weight: 1000; cursor: pointer; }
.btn-call:hover { background: rgba(0, 200, 160, 0.24); }
.btn-call i { margin-right: 8px; }
.btn-message {
    margin-top: 14px;
    width: 100%;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 12px;
    font-weight: 1000;
    cursor: pointer;
}
.btn-message:hover { filter: brightness(0.96); }
.btn-message i { margin-right: 8px; }
.contact-row { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 12px;
    padding: 12px 12px;
    font-weight: 1000;
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(246, 248, 251, 0.9);
    color: rgba(0, 30, 51, 0.92);
}
.btn-contact:hover { background: rgba(246, 248, 251, 1); }
.btn-contact.wa { border-color: rgba(37, 211, 102, 0.35); background: rgba(37, 211, 102, 0.10); }
.btn-contact.wa:hover { background: rgba(37, 211, 102, 0.14); }
.owner-email i { margin-right: 8px; color: rgba(11,26,42,0.65); }
.locked-note .note-link { margin-left: 8px; color: var(--primary-blue); text-decoration: none; font-weight: 1000; }
.locked-note .note-link:hover { text-decoration: underline; }
.owner-stats { margin-top: 12px; display: grid; gap: 10px; color: rgba(11,26,42,0.72); font-size: 13px; }
.owner-stats span { color: rgba(11,26,42,0.60); font-weight: 800; }

.enquiry-card { padding: 16px; }
.enq-type { display: flex; align-items: center; gap: 12px; color: rgba(11,26,42,0.70); font-weight: 800; font-size: 13px; }
.enq-type label { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.enq-form { margin-top: 12px; display: grid; gap: 10px; }
.field { width: 100%; border: 1px solid rgba(0,0,0,0.12); border-radius: 12px; padding: 12px 12px; outline: none; background: white; }
.field:focus { box-shadow: 0 0 0 6px var(--ring); border-color: rgba(0, 135, 235, 0.45); }
.row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.agree { font-size: 12px; color: rgba(11,26,42,0.65); display: flex; gap: 10px; align-items: flex-start; }
.agree a { color: var(--primary-blue); text-decoration: none; font-weight: 900; }
.btn-submit { margin-top: 4px; width: 220px; background: var(--primary-blue); color: white; border: none; border-radius: 12px; padding: 12px 14px; font-weight: 1000; cursor: pointer; }
.btn-submit:hover { filter: brightness(0.96); }

/* Recommendations: Search Result Card */
.section-title { font-size: 22px; letter-spacing: -0.2px; margin-bottom: 12px; }
.result-list { display: grid; gap: 16px; }
.result-card { display: grid; grid-template-columns: 360px minmax(0, 1fr); background: white; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }

.result-media { position: relative; background: #e9eef6; min-height: 250px; }
.card-carousel { height: 100%; }
.card-img { display: none; width: 100%; height: 100%; object-fit: cover; }
.card-img.active { display: block; }
.badge { position: absolute; left: 12px; top: 12px; font-size: 11px; font-weight: 1000; padding: 6px 10px; border-radius: 999px; color: white; letter-spacing: 0.2px; }
.badge.featured { background: rgba(0, 30, 51, 0.92); }
.badge.new { background: rgba(255, 77, 77, 0.92); }
.wish { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.55); background: rgba(0,0,0,0.25); color: white; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.wish.active { background: rgba(255,77,77,0.28); border-color: rgba(255,255,255,0.65); }
.mini-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.55); background: rgba(0,0,0,0.22); color: white; display: grid; place-items: center; cursor: pointer; }
.mini-nav.prev { left: 10px; }
.mini-nav.next { right: 10px; }
.mini-nav:hover { background: rgba(0,0,0,0.30); }

.result-body { padding: 14px 16px 16px; display: grid; gap: 10px; }
.result-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.proj-name { font-weight: 1000; font-size: 16px; letter-spacing: -0.2px; }
.loc { margin-top: 4px; color: rgba(11,26,42,0.65); font-weight: 800; font-size: 12px; display: inline-flex; align-items: center; gap: 8px; }
.price { font-weight: 1000; font-size: 18px; color: rgba(0, 30, 51, 0.95); }
.price span { font-size: 12px; color: rgba(11,26,42,0.60); font-weight: 900; }

.specs { display: flex; flex-wrap: wrap; gap: 12px; color: rgba(11,26,42,0.70); font-weight: 800; font-size: 12px; }
.specs span { display: inline-flex; align-items: center; gap: 8px; }
.desc { color: rgba(11,26,42,0.70); font-size: 13px; line-height: 1.45; }
.builder { color: rgba(11,26,42,0.75); font-size: 13px; }
.b-k { color: rgba(11,26,42,0.60); font-weight: 900; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.cta { border-radius: 12px; padding: 10px 12px; font-weight: 1000; border: 1px solid rgba(0,0,0,0.12); background: white; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.cta.primary { background: var(--primary-blue); border-color: transparent; color: white; }
.cta.primary:hover { filter: brightness(0.96); }
.cta.outline { border-color: rgba(0, 135, 235, 0.55); color: var(--primary-blue); }
.cta.outline:hover { background: rgba(0, 135, 235, 0.06); }
.cta.ghost { background: rgba(0,0,0,0.03); }
.cta.ghost:hover { background: rgba(0,0,0,0.06); }
.cta.link { border-color: transparent; padding-left: 0; padding-right: 0; color: rgba(0, 30, 51, 0.92); }
.cta.link:hover { color: var(--primary-blue); }

.spacer-lg { height: 18px; }

/* Small project-card rows (People also viewed / Similar Projects) */
.mini-row-shell {
    position: relative;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 16px 16px 14px;
    overflow: hidden;
}

.mini-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 16px;
    overflow-x: auto;
    padding: 4px 58px 10px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.mini-row::-webkit-scrollbar { display: none; }

.mini-card {
    scroll-snap-align: start;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    display: grid;
}

.mini-media {
    position: relative;
    height: 132px;
    background: #e9eef6;
}

.mini-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mini-pill {
    position: absolute;
    left: 10px;
    top: 10px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.10);
    color: rgba(0, 30, 51, 0.92);
    font-weight: 1000;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mini-heart {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(0,0,0,0.25);
    color: white;
    display: grid;
    place-items: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.mini-heart.active { background: rgba(255,77,77,0.28); border-color: rgba(255,255,255,0.65); }

.mini-status {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(0, 30, 51, 0.82);
    color: white;
    font-weight: 1000;
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 10px;
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-card h3 {
    font-size: 14px;
    font-weight: 1000;
    padding: 12px 12px 4px;
    letter-spacing: -0.15px;
}

.mini-meta {
    padding: 0 12px 6px;
    color: rgba(11,26,42,0.65);
    font-size: 12px;
    line-height: 1.35;
    min-height: 34px;
}

.mini-price {
    padding: 0 12px 10px;
    font-weight: 1000;
    color: rgba(0, 30, 51, 0.95);
    font-size: 13px;
}

.mini-link {
    padding: 0 12px 14px;
    color: var(--primary-blue);
    font-weight: 1000;
    font-size: 12px;
    text-decoration: none;
}

.mini-link:hover { text-decoration: underline; }

.row-next {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.10);
    background: var(--primary-blue);
    color: white;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.row-next:hover { filter: brightness(0.96); }
.row-next[hidden] { display: none; }

/* Auth modal (Create Account) */
.modal-overlay[hidden] { display: none; }
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: grid;
    place-items: center;
    padding: 24px 14px;
    z-index: 4000;
}

.auth-modal {
    width: min(560px, 100%);
    background: white;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}

.auth-head {
    padding: 16px 16px 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: linear-gradient(180deg, rgba(0, 135, 235, 0.08), rgba(255,255,255,0));
}

.auth-kicker {
    color: rgba(0, 30, 51, 0.70);
    font-weight: 1000;
    font-size: 12px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.auth-head h2 {
    margin-top: 6px;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.auth-sub {
    margin-top: 8px;
    color: rgba(11,26,42,0.65);
    font-size: 13px;
    line-height: 1.4;
}

.auth-close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.10);
    background: white;
    cursor: pointer;
    color: rgba(0, 30, 51, 0.80);
    display: grid;
    place-items: center;
}

.auth-close:hover { background: rgba(0,0,0,0.03); }

.auth-form { padding: 14px 16px 16px; display: grid; gap: 12px; }

.field-wrap { display: grid; gap: 6px; text-align: left; }
.field-wrap > span { font-size: 12px; font-weight: 900; color: rgba(11,26,42,0.70); }

.auth-input {
    width: 100%;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 12px;
    padding: 12px 12px;
    outline: none;
    background: white;
}

.auth-input:focus { box-shadow: 0 0 0 6px var(--ring); border-color: rgba(0, 135, 235, 0.45); }
.auth-select { padding-right: 10px; }

.phone-row {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    gap: 10px;
    align-items: center;
}

.btn-otp {
    border: 1px solid rgba(0, 135, 235, 0.45);
    background: rgba(0, 135, 235, 0.08);
    color: rgba(0, 30, 51, 0.92);
    font-weight: 1000;
    padding: 12px 12px;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-otp:hover { background: rgba(0, 135, 235, 0.12); }

.hint { color: rgba(11,26,42,0.55); font-size: 11px; margin-top: 6px; }

.role-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    background: rgba(246, 248, 251, 0.9);
}

.role-label { font-weight: 1000; color: rgba(11,26,42,0.75); font-size: 13px; }
.role-options { display: inline-flex; gap: 12px; align-items: center; }
.role-opt { display: inline-flex; gap: 8px; align-items: center; font-weight: 900; font-size: 13px; color: rgba(11,26,42,0.70); }

.terms {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(11,26,42,0.65);
    font-size: 12px;
}

.terms a { color: var(--primary-blue); font-weight: 1000; text-decoration: none; }
.terms a:hover { text-decoration: underline; }

.auth-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; }

.btn-auth-primary {
    flex: 1;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 1000;
    cursor: pointer;
}

.btn-auth-primary:hover { filter: brightness(0.96); }

.btn-auth-secondary {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 1000;
    cursor: pointer;
    color: rgba(0, 30, 51, 0.85);
}

.btn-auth-secondary:hover { background: rgba(0,0,0,0.03); }

.auth-foot { text-align: center; color: rgba(11,26,42,0.65); font-size: 12px; margin-top: 2px; }
.link-btn { background: transparent; border: none; color: var(--primary-blue); font-weight: 1000; cursor: pointer; padding: 2px 4px; }
.link-btn:hover { text-decoration: underline; }

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: rgba(0, 30, 51, 0.96);
    color: white;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease, transform 150ms ease;
    z-index: 2000;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(-2px); }

/* Alerts */
.page-alert {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #ffffff;
    box-shadow: var(--shadow);
    font-weight: 900;
    font-size: 13px;
}
.page-alert.ok { border-color: rgba(46,204,113,0.28); background: rgba(46,204,113,0.10); }
.page-alert.err { border-color: rgba(255,77,77,0.25); background: rgba(255,77,77,0.10); }

.locked-note, .owner-email, .empty-note {
    margin-top: 10px;
    color: rgba(11,26,42,0.70);
    font-weight: 800;
    font-size: 12px;
}
.owner-email { display: flex; align-items: center; gap: 8px; }

/* Map (Leaflet / OpenStreetMap) */
.map-panel { margin-top: 14px; }
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.map-head h3 { font-size: 18px; font-weight: 900; }
.map-link { color: var(--primary-blue); text-decoration: none; font-weight: 900; font-size: 13px; }
.map-link:hover { text-decoration: underline; }

.property-map {
    height: 360px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #e9eef6;
    box-shadow: var(--shadow);
}

.leaflet-container { font-family: inherit; }

.map-empty {
    border: 1px dashed rgba(0,0,0,0.18);
    border-radius: 16px;
    padding: 16px 14px;
    color: var(--muted);
    background: rgba(255,255,255,0.7);
}
.map-empty-sub { margin-top: 6px; font-size: 13px; }

.price-pin {
    background: #111;
    color: #fff;
    font-weight: 900;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.20);
    position: relative;
    white-space: nowrap;
}
.price-pin:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #111;
}
.price-pin.main { background: var(--primary-blue); }
.price-pin.main:after { border-top-color: var(--primary-blue); }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 6px; }
.reviews-card, .review-form-card {
    background: var(--card);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 16px 16px;
}
.reviews-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.reviews-title { font-weight: 1000; font-size: 18px; }
.reviews-sub { margin-top: 4px; color: var(--muted); font-weight: 800; font-size: 13px; }
.stars { display: inline-flex; gap: 4px; color: #f59e0b; font-size: 14px; margin-top: 2px; }

.reviews-empty {
    margin-top: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    background: rgba(246, 248, 251, 0.9);
    border: 1px dashed rgba(0,0,0,0.12);
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}

.reviews-list { display: grid; gap: 12px; }
.review {
    border: 1px solid rgba(0,0,0,0.06);
    background: rgba(246, 248, 251, 0.9);
    border-radius: 16px;
    padding: 12px 12px;
}
.review-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.review-name { font-weight: 1000; font-size: 14px; }
.review-meta { display: inline-flex; align-items: center; gap: 8px; color: rgba(11,26,42,0.65); font-weight: 800; font-size: 12px; }
.review-stars { display: inline-flex; gap: 3px; color: #f59e0b; }
.review-body { margin-top: 8px; color: rgba(0, 30, 51, 0.92); font-weight: 800; font-size: 13px; line-height: 1.5; }

.review-form { margin-top: 12px; display: grid; gap: 10px; }
.field-label { font-weight: 900; font-size: 12px; color: rgba(11,26,42,0.65); }
.rating-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.10);
    background: #fff;
    cursor: pointer;
    font-weight: 900;
    font-size: 12px;
}
.rating-pill input { margin: 0; }

@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; }
    .hero-right { grid-template-columns: auto minmax(220px, 1fr) auto; justify-content: stretch; }
    .overview-grid { grid-template-columns: 1fr; }
    .carousel { height: 360px; }
    .owner-grid { grid-template-columns: 1fr; }
    .result-card { grid-template-columns: 1fr; }
    .result-media { min-height: 240px; }
    .detail-fact-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
    .feature-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
    .meta-triplet { grid-template-columns: 1fr; }
    .meta-item { border-right: none; padding-right: 0; }
    .mini-row { grid-auto-columns: minmax(240px, 1fr); padding-right: 52px; }
    .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    body { overflow-x: hidden; }
    .detail-page { padding: 10px 10px 60px; }
    .top-strip {
        align-items: stretch;
        gap: 8px;
        padding: 10px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        background: rgba(255,255,255,0.72);
    }
    .crumbs {
        gap: 8px;
        line-height: 1.35;
        max-width: 50%;
    }
    .crumbs a { font-size: 12px; }
    .crumbs i { font-size: 10px; color: rgba(11,26,42,0.40); }
    .crumbs span {
        display: block;
        flex-basis: 100%;
        margin-top: 2px;
        font-size: 12px;
        font-weight: 800;
        color: rgba(11,26,42,0.62);
    }
    .top-meta {
        max-width: 50%;
        justify-content: flex-end;
        align-items: flex-start;
        gap: 8px;
        text-align: right;
        line-height: 1.25;
        font-size: 11px;
        color: rgba(11,26,42,0.62);
    }
    .hero {
        flex-direction: column;
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
        border-radius: 15px;
        padding: 12px;
        gap: 12px;
        margin-top: 10px;
        box-shadow: 0 16px 38px rgba(0,0,0,0.10);
        min-width: 0;
        overflow: hidden;
    }
    .hero-left {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        min-width: 0;
    }
    .hero-price { border-right: none; padding-right: 0; }
    .price-main { font-size: 30px; line-height: 1.05; letter-spacing: 0; overflow-wrap: anywhere; }
    .price-sub { font-size: 12px; }
    .title-main { font-size: 18px; line-height: 1.18; }
    .title-sub { font-size: 12px; line-height: 1.4; max-width: none; overflow-wrap: anywhere; }
    .hero-right {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
        gap: 8px;
        min-width: 0;
    }
    .hero-right .btn-primary,
    .hero-right .contact-note {
        grid-column: 1 / -1;
    }
    .btn-primary,
    .btn-secondary,
    .contact-note {
        min-height: 46px;
        justify-content: center;
        text-align: center;
        border-radius: 13px;
        width: 100%;
        min-width: 0;
        white-space: normal;
        line-height: 1.2;
    }
    .btn-primary { font-size: 14px; }
    .btn-primary span { margin-left: 4px; }
    .btn-secondary { font-size: 14px; }
    .btn-secondary i { margin-right: 5px; }
    .contact-note {
        align-items: center;
        font-size: 12px;
        line-height: 1.35;
        padding: 11px 12px;
        background: rgba(246,248,251,0.98);
    }
    .rera-bar {
        margin-top: 14px;
        gap: 8px;
        padding: 6px 0;
    }
    .rera-pill {
        font-size: 10px;
        padding: 7px 10px;
    }
    .rera-link {
        flex-basis: 100%;
        padding-left: 2px;
        line-height: 1.35;
    }
    .detail-tabs {
        margin-top: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 4px;
        padding-bottom: 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        border-bottom-color: rgba(0,0,0,0.10);
    }
    .detail-tabs::-webkit-scrollbar { display: none; }
    .detail-tabs .tab {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 12px 10px;
        font-size: 13px;
    }
    .facts-grid { grid-template-columns: 1fr; }
    .row { grid-template-columns: 1fr; }
    .contact-row { grid-template-columns: 1fr; }
    .btn-submit { width: 100%; }
    .car-btn { width: 40px; height: 40px; }
    .detail-fact-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .report-row { justify-content: space-between; }
    .btn-report { padding: 10px 12px; }
    .phone-row { grid-template-columns: 1fr; }
    .btn-otp { width: 100%; }
    .auth-actions { flex-direction: column; }
    .btn-auth-secondary { width: 100%; }
}
