/* ═══════════════════════════════════════════════════════════
 *  css/pages/buy.css — Land of Profits
 *  Page-specific styles for buy.html.
 * ═══════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ──────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}
button {
    font-family: var(--sans);
    cursor: pointer;
}
input,
select {
    font-family: var(--sans);
}

/* ─── PAGE HEADER ────────────────────────────── */
#page-header {
    background: var(--navy);
    padding: 100px 40px 48px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}
.ph-inner {
    max-width: 1360px;
    margin: 0 auto;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.breadcrumb a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.15s;
}
.breadcrumb a:hover {
    color: var(--gold);
}
.breadcrumb svg {
    width: 10px;
    height: 10px;
    stroke: rgba(255, 255, 255, 0.2);
    fill: none;
    stroke-width: 2;
}
.breadcrumb span {
    font-size: 12px;
    color: var(--gold);
}
.ph-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.ph-title {
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.4px;
    line-height: 1.1;
}
.ph-title em {
    font-style: italic;
    color: var(--gold);
}
.ph-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 6px;
}
.ph-count strong {
    color: var(--gold);
    font-weight: 500;
}
.view-toggle {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r6);
    padding: 4px;
}
.vt-btn {
    padding: 6px 10px;
    border-radius: 5px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.15s;
    display: flex;
    align-items: center;
}
.vt-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.vt-btn.active {
    background: var(--gold);
    color: var(--navy);
}

/* ─── SEARCH BAR (inline) ───────────────────── */
#search-bar {
    background: var(--navy2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 40px;
    position: sticky;
    top: 64px;
    z-index: 200;
}
.sb-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.sb-tabs {
    display: flex;
    gap: 3px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px;
    border-radius: var(--r6);
    flex-shrink: 0;
}
.sb-tab {
    padding: 7px 14px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    background: transparent;
}
.sb-tab.active {
    background: var(--gold);
    color: var(--navy);
}
.sb-sep {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.sb-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r6);
    padding: 8px 28px 8px 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12.5px;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    cursor: pointer;
    transition: border-color 0.15s;
    min-width: 120px;
}
.sb-select:focus {
    border-color: rgba(201, 169, 110, 0.4);
}
.sb-select option {
    background: var(--navy2);
    color: var(--white);
}
.sb-search-btn {
    background: var(--gold);
    color: var(--navy);
    padding: 9px 20px;
    border-radius: var(--r6);
    font-size: 13px;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
    margin-left: auto;
    flex-shrink: 0;
}
.sb-search-btn:hover {
    background: var(--gold2);
}
.sb-search-btn svg {
    width: 14px;
    height: 14px;
    stroke: var(--navy);
    fill: none;
    stroke-width: 2.5;
}
.sb-reset {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    border: none;
    background: transparent;
    padding: 4px 8px;
    cursor: pointer;
    transition: color 0.15s;
}
.sb-reset:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ─── MAIN LAYOUT ────────────────────────────── */
#content {
    max-width: 1360px;
    margin: 0 auto;
    padding: 28px 40px 60px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

/* ─── FILTER SIDEBAR ─────────────────────────── */
#sidebar {
    position: sticky;
    top: 128px;
    background: var(--white);
    border: 1px solid var(--fog);
    border-radius: var(--r20);
    overflow: hidden;
}
.filter-hdr {
    padding: 18px 20px;
    border-bottom: 1px solid var(--fog);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.filter-hdr h3 {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-hdr h3 svg {
    width: 16px;
    height: 16px;
    stroke: var(--mocha);
    fill: none;
    stroke-width: 2;
}
.filter-clear {
    font-size: 12px;
    color: var(--mocha);
    font-weight: 500;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--r6);
    transition: background 0.15s;
}
.filter-clear:hover {
    background: var(--sand);
}
.active-filters {
    padding: 12px 20px;
    background: var(--sand);
    border-bottom: 1px solid var(--fog);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.af-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px 3px 10px;
    background: var(--white);
    border: 1px solid var(--fog);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: var(--mocha);
}
.af-pill button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--fog);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}
.af-pill button svg {
    width: 8px;
    height: 8px;
    stroke: var(--slate);
    fill: none;
    stroke-width: 2.5;
}
.filter-body {
    padding: 0;
}
.filter-section {
    padding: 16px 20px;
    border-bottom: 1px solid var(--fog);
}
.filter-section:last-child {
    border-bottom: none;
}
.fs-label {
    font-size: 10.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ghost);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fs-label span {
    font-size: 11px;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}
/* Filter: Select */
.filter-select {
    width: 100%;
    background: var(--smoke);
    border: 1px solid var(--fog);
    border-radius: var(--r6);
    padding: 9px 28px 9px 11px;
    color: var(--ink);
    font-size: 13px;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.15s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='none' stroke='%239AAABB' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.filter-select:focus {
    border-color: rgba(76, 55, 36, 0.4);
    background-color: var(--white);
}
/* Filter: Number pills (beds/baths) */
.num-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.np {
    padding: 7px 12px;
    background: var(--smoke);
    border: 1px solid var(--fog);
    border-radius: var(--r6);
    font-size: 13px;
    font-weight: 400;
    color: var(--slate);
    cursor: pointer;
    transition: all 0.15s;
    border: none;
}
.np:hover {
    border-color: var(--mocha);
    color: var(--mocha);
}
.np.active {
    background: var(--mocha);
    color: var(--white);
    border-color: var(--mocha);
}
/* Filter: Price range */
.price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.price-row .filter-select {
    font-size: 12px;
    padding: 8px 24px 8px 9px;
}
/* Filter: Checkbox group */
.check-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.check-item {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}
.check-item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--mocha);
    cursor: pointer;
    flex-shrink: 0;
}
.check-item label {
    font-size: 13px;
    color: var(--ink);
    cursor: pointer;
    flex: 1;
}
.check-item .check-count {
    font-size: 11px;
    color: var(--ghost);
    margin-left: auto;
}
/* Filter: Area range */
.area-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
/* Filter: Apply btn */
.filter-apply {
    width: 100%;
    background: var(--mocha);
    color: var(--white);
    padding: 12px;
    border: none;
    border-radius: var(--r10);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.filter-apply:hover {
    background: var(--mocha2);
}
.filter-apply svg {
    width: 15px;
    height: 15px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
}

/* ─── RESULTS AREA ───────────────────────────── */
#results {
}
.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.rt-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rt-count {
    font-size: 14px;
    color: var(--slate);
}
.rt-count strong {
    color: var(--ink);
    font-weight: 600;
}
.sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sort-label {
    font-size: 13px;
    color: var(--slate);
}
.sort-select {
    background: var(--white);
    border: 1px solid var(--fog);
    border-radius: var(--r6);
    padding: 8px 28px 8px 11px;
    color: var(--ink);
    font-size: 13px;
    outline: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='none' stroke='%239AAABB' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.map-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--white);
    border: 1px solid var(--fog);
    border-radius: var(--r6);
    font-size: 13px;
    color: var(--ink);
    transition: all 0.15s;
}
.map-toggle-btn svg {
    width: 15px;
    height: 15px;
    stroke: var(--mocha);
    fill: none;
    stroke-width: 2;
}
.map-toggle-btn:hover {
    border-color: var(--mocha);
    color: var(--mocha);
}

/* ─── PROPERTY GRID ──────────────────────────── */
.props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.props-grid.list-view {
    grid-template-columns: 1fr;
}

/* ─── PROPERTY CARD ──────────────────────────── */
.prop-card {
    background: var(--white);
    border: 1px solid var(--fog);
    border-radius: var(--r14);
    overflow: hidden;
    transition: all 0.22s;
    position: relative;
}
.prop-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(201, 169, 110, 0.35);
}
/* Card image area */
.pc-img {
    height: 196px;
    position: relative;
    overflow: hidden;
    background: var(--mist);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pc-img-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #162236 0%, #1e3a28 100%);
}
.pc-img-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(201, 169, 110, 0.4) 0,
        rgba(201, 169, 110, 0.4) 1px,
        transparent 0,
        transparent 50%
    );
    background-size: 16px 16px;
}
.pc-img-info {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 16px;
}
.pc-city {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.3px;
}
.pc-country {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 3px;
}
/* Badges */
.pc-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.badge {
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.badge-new {
    background: var(--gold);
    color: var(--navy);
}
.badge-offplan {
    background: rgba(22, 34, 54, 0.88);
    color: var(--gold);
    border: 1px solid rgba(201, 169, 110, 0.35);
}
.badge-ready {
    background: rgba(20, 80, 40, 0.85);
    color: #7eeaaa;
    border: 1px solid rgba(126, 234, 170, 0.25);
}
.badge-hot {
    background: rgba(180, 50, 30, 0.85);
    color: #ffaa88;
    border: 1px solid rgba(255, 120, 80, 0.2);
}
/* Wishlist */
.pc-wish {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}
.pc-wish svg {
    width: 14px;
    height: 14px;
    stroke: rgba(255, 255, 255, 0.8);
    fill: none;
    stroke-width: 2;
}
.pc-wish:hover {
    background: rgba(255, 255, 255, 0.25);
}
.pc-wish.liked svg {
    stroke: var(--gold);
    fill: var(--gold);
}
/* Card body */
.pc-body {
    padding: 16px 18px 18px;
}
.pc-name {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 5px;
    line-height: 1.2;
}
.pc-loc {
    font-size: 12px;
    color: var(--slate);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}
.pc-loc svg {
    width: 12px;
    height: 12px;
    stroke: var(--slate);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}
.pc-specs {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--smoke);
    border-bottom: 1px solid var(--smoke);
    margin-bottom: 12px;
}
.pc-spec {
    font-size: 12px;
    color: var(--slate);
    display: flex;
    align-items: center;
    gap: 4px;
}
.pc-spec svg {
    width: 13px;
    height: 13px;
    stroke: var(--ghost);
    fill: none;
    stroke-width: 1.8;
    flex-shrink: 0;
}
.pc-spec strong {
    color: var(--ink);
    font-weight: 500;
}
.pc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.pc-price {
    display: flex;
    flex-direction: column;
}
.pc-price-val {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--mocha);
    line-height: 1;
}
.pc-price-sub {
    font-size: 10.5px;
    color: var(--ghost);
    margin-top: 2px;
}
.pc-yield {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--ok-lt);
    border-radius: 20px;
    padding: 3px 8px;
}
.pc-yield svg {
    width: 10px;
    height: 10px;
    stroke: var(--ok);
    fill: none;
    stroke-width: 2.5;
}
.pc-yield span {
    font-size: 11px;
    color: var(--ok);
    font-weight: 600;
}
.pc-actions {
    display: flex;
    gap: 6px;
}
.pc-btn {
    padding: 7px 13px;
    border-radius: var(--r6);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.15s;
    border: none;
}
.pc-btn-primary {
    background: var(--mocha);
    color: var(--white);
}
.pc-btn-primary:hover {
    background: var(--mocha2);
}
.pc-btn-outline {
    background: transparent;
    color: var(--mocha);
    border: 1px solid rgba(76, 55, 36, 0.2) !important;
}
.pc-btn-outline:hover {
    background: var(--sand);
}

/* ─── LIST VIEW CARD ─────────────────────────── */
.props-grid.list-view .prop-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: auto;
}
.props-grid.list-view .pc-img {
    height: auto;
    min-height: 180px;
}
.props-grid.list-view .pc-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 22px;
}
.props-grid.list-view .pc-specs {
    padding: 10px 0;
    margin-bottom: 10px;
    border: none;
    padding-bottom: 0;
}
.props-grid.list-view .pc-footer {
    flex-wrap: wrap;
    gap: 10px;
}

/* ─── MAP PANEL ──────────────────────────────── */
#map-panel {
    display: none;
    background: var(--white);
    border: 1px solid var(--fog);
    border-radius: var(--r14);
    overflow: hidden;
    margin-bottom: 20px;
    height: 320px;
    position: relative;
}
#map-panel.visible {
    display: block;
}
.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f0ec 0%, #d8e8f0 50%, #e0e8d8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}
.map-placeholder svg {
    width: 40px;
    height: 40px;
    stroke: var(--ghost);
    fill: none;
    stroke-width: 1.5;
}
.map-placeholder p {
    font-size: 13px;
    color: var(--ghost);
}
.map-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    background: var(--white);
    border-radius: 50%;
    border: 1px solid var(--fog);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.map-close svg {
    width: 14px;
    height: 14px;
    stroke: var(--slate);
    fill: none;
    stroke-width: 2;
}

/* ─── PAGINATION ─────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
}
.pg-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r6);
    background: var(--white);
    border: 1px solid var(--fog);
    font-size: 13px;
    color: var(--slate);
    cursor: pointer;
    transition: all 0.15s;
}
.pg-btn:hover {
    border-color: var(--mocha);
    color: var(--mocha);
}
.pg-btn.active {
    background: var(--mocha);
    color: var(--white);
    border-color: var(--mocha);
}
.pg-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.pg-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
}
.pg-ellipsis {
    padding: 0 4px;
    color: var(--ghost);
    font-size: 13px;
}

/* ─── SIDE FLOATING BUTTONS ──────────────────── */
.float-left {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg) translateX(-50%);
    transform-origin: left center;
    z-index: 100;
}
.float-right {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(90deg) translateX(50%);
    transform-origin: right center;
    z-index: 100;
}
.float-btn {
    background: var(--mocha);
    color: var(--white);
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

/* ─── EMPTY STATE ────────────────────────────── */
.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 20px;
}
.empty-state svg {
    width: 56px;
    height: 56px;
    stroke: var(--fog);
    fill: none;
    stroke-width: 1.5;
    margin-bottom: 20px;
}
.empty-state h3 {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}
.empty-state p {
    font-size: 14px;
    color: var(--slate);
}

/* ─── ENQUIRE MODAL ──────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(13, 27, 46, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open {
    display: flex;
}
.modal {
    background: var(--white);
    border-radius: var(--r20);
    padding: 36px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--smoke);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.modal-close svg {
    width: 14px;
    height: 14px;
    stroke: var(--slate);
    fill: none;
    stroke-width: 2;
}
.modal h3 {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}
.modal p {
    font-size: 13px;
    color: var(--slate);
    margin-bottom: 24px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--ghost);
    font-weight: 600;
    margin-bottom: 6px;
}
.form-input {
    width: 100%;
    padding: 11px 13px;
    background: var(--smoke);
    border: 1px solid var(--fog);
    border-radius: var(--r6);
    color: var(--ink);
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.15s;
}
.form-input:focus {
    border-color: rgba(76, 55, 36, 0.4);
    background: var(--white);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-select {
    width: 100%;
    padding: 11px 13px;
    background: var(--smoke);
    border: 1px solid var(--fog);
    border-radius: var(--r6);
    color: var(--ink);
    font-size: 13.5px;
    outline: none;
    appearance: none;
}
.btn-submit {
    width: 100%;
    background: var(--mocha);
    color: var(--white);
    padding: 13px;
    border: none;
    border-radius: var(--r10);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.15s;
    margin-top: 8px;
}
.btn-submit:hover {
    background: var(--mocha2);
}
.modal-note {
    font-size: 11px;
    color: var(--ghost);
    text-align: center;
    margin-top: 12px;
    line-height: 1.6;
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1100px) {
    #content {
        grid-template-columns: 260px 1fr;
    }
    .props-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 900px) {
    #content {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    #sidebar {
        position: static;
        display: none;
    }
    #sidebar.mobile-open {
        display: block;
    }
    .props-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    #search-bar {
        padding: 12px 20px;
        overflow-x: auto;
    }
    #page-header {
        padding: 88px 20px 36px;
    }
    .nav-links {
        display: none;
    }
    #nav {
        padding: 0 20px;
    }
}
@media (max-width: 600px) {
    .props-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══ FOOTER ══════════════════════════════════════════════════════════════
 *  Footer styles were missing from buy.css — the footer partial renders
 *  HTML but this page had no CSS to display it. Copied from blog.css
 *  (the canonical reference page that has the correct footer styles).
 * ══════════════════════════════════════════════════════════════════════ */

footer {
    background: var(--navy);
    padding: 72px 5% 0;
    border-top: 1px solid rgba(201, 169, 110, 0.12);
}
.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.75;
    margin-top: 16px;
    font-weight: 300;
    max-width: 260px;
}
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}
.social-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.15s;
    cursor: pointer;
}
.social-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.social-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.footer-col h5 {
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 500;
    margin-bottom: 20px;
}
.footer-col a {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 11px;
    transition: color 0.15s;
    font-weight: 300;
}
.footer-col a:hover {
    color: rgba(255, 255, 255, 0.85);
}
.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
}
.footer-badges {
    display: flex;
    gap: 8px;
}
.fbadge {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

/* Footer nav-logo styles (used inside footer-brand) */
.footer-brand .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-brand .nav-logo-mark {
    width: 32px;
    height: 32px;
    background: var(--mocha);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-brand .nav-logo-mark svg {
    width: 18px;
    height: 18px;
    stroke: var(--cream);
    fill: none;
    stroke-width: 2;
}
.footer-brand .nav-logo-text {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.01em;
}
.footer-brand .nav-logo-text span {
    color: var(--gold);
}

/* Footer responsive */
@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}
@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    footer {
        padding: 48px 24px 0;
    }
}

/* ═══ SHARED LOP PAGINATION — overrides for buy page (centred) ═══════
 *  The portal uses lop-pagination right-aligned (portal.css).
 *  On the buy page we override to centre it.
 * ═══════════════════════════════════════════════════════════════════ */

.lop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.lop-pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--r6);
    border: 1px solid var(--fog);
    background: var(--white);
    color: var(--slate);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

.lop-pg-btn svg {
    width: 14px;
    height: 14px;
}

.lop-pg-btn:hover:not(.disabled):not(.active) {
    border-color: var(--mocha);
    color: var(--mocha);
}

.lop-pg-btn.active {
    background: var(--mocha);
    color: var(--white);
    border-color: var(--mocha);
    cursor: default;
}

.lop-pg-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.lop-pg-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--ghost);
    font-size: 13px;
}

/* ─── VIEW DETAILS BUTTON ───────────────────── */
.pc-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: var(--mocha, #4c3724);
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 600;
    font-family: var(--sans, "Outfit", sans-serif);
    border-radius: 8px;
    text-decoration: none;
    transition:
        background 0.15s,
        transform 0.1s;
    white-space: nowrap;
}
.pc-cta:hover {
    background: var(--mocha2, #3a2a1a);
    transform: translateY(-1px);
}
