/* ─────────────────────────────────────────────
   Pro X Properties — v1.1
───────────────────────────────────────────── */

:root {
    --prox-primary:   #0A2540;
    --prox-secondary: #2D5F7E;
    --prox-accent:    #FF6B35;
    --prox-accent-hover: #E55A2A;
    --prox-light:     #F7F9FB;
    --prox-border:    #E2E8F0;
    --prox-text:      #1A1A1A;
    --prox-muted:     #4A5568;
    --prox-success:   #10B981;
    --prox-radius:    10px;
}

.prox-properties-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: inherit;
}

/* ─── FILTER BAR ──────────────────────────── */
.prox-filters {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    margin-bottom: 1.5rem;
}

.prox-filters-top,
.prox-filters-bottom {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.prox-filters-top {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--prox-border);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    min-width: 130px;
}

.filter-search {
    flex: 3;
    min-width: 260px;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--prox-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Search Input */
.search-input-wrap {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
}

.prox-search {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--prox-border);
    border-radius: var(--prox-radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.25s;
}

.prox-search:focus {
    outline: none;
    border-color: var(--prox-accent);
}

/* Select dropdowns */
.prox-filter {
    padding: 0.75rem 1rem;
    border: 2px solid var(--prox-border);
    border-radius: var(--prox-radius);
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.25s;
    width: 100%;
}

.prox-filter:focus {
    outline: none;
    border-color: var(--prox-accent);
}

/* Reset button */
.prox-reset-btn {
    padding: 0.75rem 1.5rem;
    background: var(--prox-light);
    border: 2px solid var(--prox-border);
    border-radius: var(--prox-radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    white-space: nowrap;
    align-self: flex-end;
}

.prox-reset-btn:hover {
    background: var(--prox-accent);
    color: #fff;
    border-color: var(--prox-accent);
}

/* ─── RESULTS COUNT ───────────────────────── */
.prox-results-count {
    font-size: 0.9rem;
    color: var(--prox-muted);
    margin-bottom: 1.5rem;
    padding-left: 0.25rem;
}

/* ─── LOADING ────────────────────────────── */
.prox-loading {
    text-align: center;
    padding: 4rem 2rem;
    font-size: 1.1rem;
    color: var(--prox-muted);
}

/* ─── PROPERTIES GRID ────────────────────── */
.prox-properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

/* ─── PROPERTY CARD ──────────────────────── */
.property-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--prox-border);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.1);
}

.property-image {
    width: 100%;
    height: 210px;
    background: linear-gradient(135deg, var(--prox-secondary), var(--prox-primary));
    position: relative;
    overflow: hidden;
}

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

.img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--prox-secondary), var(--prox-primary));
}

.property-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--prox-success);
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-waitlist {
    background: #F59E0B;
}

.property-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.property-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--prox-muted);
}

.property-type {
    background: var(--prox-light);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

.property-avail {
    color: var(--prox-success);
    font-weight: 600;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--prox-primary);
    line-height: 1;
}

.property-price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--prox-muted);
}

.property-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--prox-text);
    margin: 0;
    line-height: 1.35;
}

.property-address {
    font-size: 0.82rem;
    color: var(--prox-muted);
}

.property-features {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--prox-muted);
    padding-top: 0.5rem;
    border-top: 1px solid var(--prox-border);
}

.property-pets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pet-badge {
    font-size: 0.75rem;
    background: #EFF6FF;
    color: #1D4ED8;
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    font-weight: 600;
}

.pet-none {
    background: #FEF2F2;
    color: #B91C1C;
}

/* Card Actions — 2 buttons */
.property-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.btn-details,
.btn-schedule {
    flex: 1;
    padding: 0.65rem 0.5rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-block;
    border: none;
    font-family: inherit;
}

.btn-details {
    background: var(--prox-primary);
    color: #fff;
}

.btn-details:hover {
    background: var(--prox-secondary);
}

.btn-schedule {
    background: var(--prox-accent);
    color: #fff;
}

.btn-schedule:hover {
    background: var(--prox-accent-hover);
}

.btn-waitlist {
    background: #F59E0B;
}

.btn-waitlist:hover {
    background: #D97706;
}

/* ─── NO RESULTS ─────────────────────────── */
.prox-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--prox-light);
    border-radius: 14px;
    color: var(--prox-muted);
    font-size: 1.05rem;
}

/* ─── MODAL ──────────────────────────────── */
body.prox-modal-open {
    overflow: hidden;
}

.prox-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(3px);
}

.prox-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}

.prox-modal-close {
    position: sticky;
    top: 0;
    float: right;
    margin: 1rem 1rem 0 0;
    background: var(--prox-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    color: var(--prox-text);
    z-index: 10;
    transition: background 0.2s;
}

.prox-modal-close:hover {
    background: var(--prox-border);
}

.prox-modal-content {
    padding: 1.5rem 2rem 2rem;
    clear: both;
}

/* Modal header */
.modal-header {
    margin-bottom: 1.25rem;
}

.modal-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--prox-primary);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.modal-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--prox-muted);
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--prox-text);
    margin: 0 0 0.4rem;
}

.modal-address {
    font-size: 0.9rem;
    color: var(--prox-muted);
}

/* Gallery */
.modal-gallery {
    width: 100%;
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
    background: var(--prox-light);
}

.modal-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.modal-gallery img.active {
    display: block;
}

.modal-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.modal-gallery-thumbs img {
    width: 72px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.modal-gallery-thumbs img.active,
.modal-gallery-thumbs img:hover {
    opacity: 1;
    border-color: var(--prox-accent);
}

/* Details grid */
.modal-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    background: var(--prox-light);
    border-radius: 10px;
    padding: 1rem;
}

.modal-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--prox-muted);
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--prox-text);
}

/* Amenities */
.modal-amenities {
    margin-bottom: 1.25rem;
}

.modal-amenities h4,
.modal-description h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--prox-muted);
    margin: 0 0 0.6rem;
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.amenities-list span {
    background: var(--prox-light);
    border: 1px solid var(--prox-border);
    border-radius: 20px;
    padding: 0.3rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--prox-text);
}

/* Description */
.modal-description {
    margin-bottom: 1.75rem;
}

.description-body {
    font-size: 0.9rem;
    color: var(--prox-muted);
    line-height: 1.7;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.description-body p {
    margin: 0 0 0.75rem;
}

/* Modal CTAs */
.modal-ctas {
    display: flex;
    gap: 1rem;
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 1rem 0 0;
    border-top: 1px solid var(--prox-border);
}

.modal-btn-primary,
.modal-btn-secondary {
    flex: 1;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.25s;
}

.modal-btn-primary {
    background: var(--prox-accent);
    color: #fff;
}

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

.modal-btn-secondary {
    background: var(--prox-primary);
    color: #fff;
}

.modal-btn-secondary:hover {
    background: var(--prox-secondary);
}

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 1200px) {
    .prox-properties-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .prox-properties-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-details-grid { grid-template-columns: repeat(2, 1fr); }
    .prox-filters-bottom { flex-wrap: wrap; }
}

@media (max-width: 640px) {
    .prox-properties-wrapper { padding: 1rem 0.5rem; }
    .prox-filters { padding: 1.25rem; }
    .prox-filters-top { flex-direction: column; }
    .filter-search { min-width: 100%; }
    .prox-filters-bottom { flex-direction: column; }
    .filter-group { min-width: 100%; }
    .prox-properties-grid { grid-template-columns: 1fr; }
    .prox-modal-content { padding: 1rem 1.25rem 1.5rem; }
    .modal-gallery { height: 200px; }
    .modal-details-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-ctas { flex-direction: column; }
}