/* ============================================
   Properties Page - Glass Morphism Design
   ============================================ */

/* Page Background - subtle mesh gradient for glass to show against */
.properties-page-bg {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(23, 32, 68, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(133, 176, 43, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(23, 32, 68, 0.02) 0%, transparent 70%),
        var(--bg-secondary);
}

/* ============================================
   Glass Filter Bar
   ============================================ */
.properties-filters {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    overflow: visible;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1.25rem 1.5rem;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 999;
    transition: top 0.3s ease;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.7);
    transition: top 0.3s ease;
}
.filters-container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Filter bar logo — hidden by default, slides in when navbar hides (mobile only) */
.filters-logo {
    display: none;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-bottom: 0;
}
.filters-logo a {
    display: inline-block;
}
.filters-logo img {
    height: 38px;
    width: auto;
    max-width: 200px;
}

/* Mandate Toggle — sits on its own row inside filters-row */
.mandate-tabs {
    display: flex;
    gap: 0;
    width: 100%;
    margin-bottom: 0.35rem;
}
.mandate-tab {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    border: 2px solid var(--accent-elite);
    background: transparent;
    color: var(--accent-elite);
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    letter-spacing: 0.01em;
}
.mandate-tab:first-child { border-radius: 10px 0 0 10px; }
.mandate-tab:last-child { border-radius: 0 10px 10px 0; border-left: none; }
.mandate-tab.active {
    background: var(--accent-elite);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(23, 32, 68, 0.25);
}
.mandate-tab:hover:not(.active) {
    background: rgba(23, 32, 68, 0.08);
}
.mandate-tab .count {
    font-size: 0.78rem;
    opacity: 0.7;
    margin-left: 0.25rem;
}

/* Filter Row */
.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: flex-end;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 140px;
}
.filter-group label {
    display: none;
}
.filter-group select,
.filter-group input {
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.65);
    color: var(--text-primary);
    transition: var(--transition-fast);
    min-height: 42px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--accent-elite);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(23, 32, 68, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06);
}
.filter-group select::placeholder,
.filter-group input::placeholder {
    color: var(--text-muted);
}

/* --- Hide native select when custom dropdown is active --- */
.filter-group select.has-custom-dd {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* --- Custom dropdown (properties filter) --- */
.filters-row .custom-dd {
    position: relative;
    width: 100%;
    flex: 1;
    min-width: 140px;
}
.filters-row .custom-dd-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-primary);
    cursor: pointer;
    min-height: 42px;
    transition: var(--transition-fast);
    user-select: none;
    gap: 0.4rem;
}
.filters-row .custom-dd-trigger:hover {
    border-color: rgba(23, 32, 68, 0.2);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.filters-row .custom-dd.open .custom-dd-trigger {
    border-color: var(--accent-elite);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(23, 32, 68, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06);
}
.filters-row .custom-dd-trigger.placeholder {
    color: var(--text-muted);
}

.filters-row .custom-dd-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
}
.filters-row .custom-dd.open .custom-dd-chevron {
    transform: rotate(180deg);
    color: var(--accent-elite);
}

.filters-row .custom-dd-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    z-index: 500;
    padding: 0.35rem;
    max-height: 240px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.filters-row .custom-dd.open .custom-dd-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.filters-row .custom-dd-panel::-webkit-scrollbar { width: 5px; }
.filters-row .custom-dd-panel::-webkit-scrollbar-track { background: transparent; }
.filters-row .custom-dd-panel::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.12); border-radius: 10px; }

.filters-row .custom-dd-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    transition: all 0.15s ease;
}
.filters-row .custom-dd-item:hover {
    background: rgba(23, 32, 68, 0.05);
    color: var(--accent-elite);
}
.filters-row .custom-dd-item.selected {
    background: rgba(23, 32, 68, 0.08);
    color: var(--accent-elite);
    font-weight: 600;
}
.filters-row .custom-dd-item.selected::after {
    content: '';
    margin-left: auto;
    width: 16px;
    height: 16px;
    background: var(--accent-elite);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.5 8.5l2.5 2.5 4.5-4.5' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

/* Filter Buttons */
.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}
.filter-btn {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1.5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
    min-height: 42px;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.filter-btn-primary {
    background: var(--accent-elite);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(23, 32, 68, 0.2);
}
.filter-btn-primary:hover {
    background: var(--accent-elite-light);
    box-shadow: 0 4px 16px rgba(23, 32, 68, 0.3);
    transform: translateY(-1px);
}
.filter-btn-clear {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.filter-btn-clear:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Mobile filter toggle button - hidden on desktop */
.filters-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}
.filters-toggle svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-secondary);
    flex-shrink: 0;
}
.filters-toggle .filters-toggle-arrow {
    width: 16px;
    height: 16px;
    margin-left: auto;
    transition: transform 0.25s ease;
}
.filters-open .filters-toggle .filters-toggle-arrow {
    transform: rotate(180deg);
}

/* ============================================
   Results Content
   ============================================ */
.properties-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 2rem;
    overflow-x: hidden;
}
.properties-results-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* ============================================
   Property Grid
   ============================================ */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ============================================
   Glass Property Card
   ============================================ */
.prop-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.prop-card:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.7);
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.7);
}

/* Card Image */
.prop-card-image {
    position: relative;
    width: 100%;
    padding-top: 62%; /* Slightly shorter than 3:2 for modern feel */
    overflow: hidden;
    background: linear-gradient(135deg, #e8ecf1 0%, #d5dbe3 100%);
}
.prop-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.prop-card:hover .prop-card-image img {
    transform: scale(1.06);
}
.prop-card-image .placeholder-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    font-weight: 500;
}

/* Badges */
.prop-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.prop-card-badge.sale {
    background: rgba(23, 32, 68, 0.85);
    color: var(--text-white);
}
.prop-card-badge.rental {
    background: rgba(133, 176, 43, 0.85);
    color: var(--text-white);
}
.prop-card-badge.status-offer {
    background: rgba(230, 126, 34, 0.85);
    color: var(--text-white);
}
.prop-card-badge.status-sold {
    background: rgba(231, 76, 60, 0.85);
    color: var(--text-white);
}
.prop-card-badge.status-reduced {
    background: rgba(142, 68, 173, 0.85);
    color: var(--text-white);
}
.prop-detail-status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.prop-detail-status-badge.status-offer {
    background: rgba(230, 126, 34, 0.15);
    color: #e67e22;
}
.prop-detail-status-badge.status-sold {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}
.prop-detail-status-badge.status-reduced {
    background: rgba(142, 68, 173, 0.15);
    color: #8e44ad;
}
.prop-card-image-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-white);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Body */
.prop-card-body {
    padding: 1.25rem 1.25rem 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prop-card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-green-dark);
    margin-bottom: 0.3rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.prop-card-price-desc {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.prop-card-title {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.prop-card-location {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.prop-card-location::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-green);
    flex-shrink: 0;
}

/* Features */
.prop-card-features {
    display: flex;
    gap: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto;
    flex-wrap: wrap;
}
.prop-feature {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.prop-feature svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
    fill: none;
    flex-shrink: 0;
    opacity: 0.7;
}
.prop-feature strong {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.92rem;
}

/* Last card spans full width when alone on its row (10th card in 3-col grid) */
.prop-card:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
}
.prop-card:last-child:nth-child(3n+1) .prop-card-image {
    padding-top: 35%;
}

/* ============================================
   Empty State
   ============================================ */
.properties-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-secondary);
}
.properties-empty svg {
    width: 56px;
    height: 56px;
    stroke: var(--text-muted);
    margin-bottom: 1.25rem;
    opacity: 0.5;
}
.properties-empty h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.properties-empty p {
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   Pagination
   ============================================ */
.properties-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.page-link:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--accent-elite);
    color: var(--accent-elite);
    box-shadow: 0 2px 8px rgba(23, 32, 68, 0.1);
}
.page-link.active {
    background: var(--accent-elite);
    color: var(--text-white);
    border-color: var(--accent-elite);
    box-shadow: 0 2px 8px rgba(23, 32, 68, 0.25);
}
.page-link.disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* ============================================
   Property Detail Page
   ============================================ */
.prop-detail-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    padding-top: 90px; /* Clear fixed navbar */
}

/* Image Gallery */
.prop-gallery {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    background: var(--bg-tertiary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.prop-gallery-main {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    cursor: pointer;
}
.prop-gallery-main img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.prop-gallery-thumbs {
    display: flex;
    gap: 4px;
    padding: 4px;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.prop-gallery-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}
.prop-gallery-thumb:hover,
.prop-gallery-thumb.active {
    opacity: 1;
    border-color: var(--accent-elite);
}
.prop-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Detail Content */
.prop-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
}
.prop-detail-main { min-width: 0; }

.prop-detail-heading {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}
.prop-detail-location {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.prop-detail-ref {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.prop-detail-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-green-dark);
    margin-bottom: 0.25rem;
}
.prop-detail-price-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.prop-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.prop-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.4;
}
.prop-badge-sale {
    background: var(--accent-elite);
    color: white;
}
.prop-badge-rental {
    background: var(--accent-green);
    color: white;
}
.prop-badge-offer {
    background: #e67e22;
    color: white;
}
.prop-badge-type {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Features grid */
.prop-detail-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.prop-detail-feature {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-primary);
}
.prop-detail-feature svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-elite);
    flex-shrink: 0;
}

/* Description */
.prop-detail-section {
    margin-bottom: 2rem;
}
.prop-matterport-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-tertiary);
}
.prop-matterport-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.prop-detail-section h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-green);
    display: inline-block;
}
.prop-detail-description {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.7;
    white-space: pre-line;
    transition: max-height 0.4s ease;
    overflow: hidden;
}
.prop-detail-description.collapsed {
    max-height: 8.5em; /* ~5 lines */
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.prop-read-more-btn {
    background: none;
    border: none;
    color: var(--accent-elite);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.4rem 0;
    display: inline-block;
}
.prop-read-more-btn:hover {
    text-decoration: underline;
}

/* Heading row with share button */
.prop-detail-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.prop-detail-heading-row .prop-detail-heading {
    margin-bottom: 0;
}
.prop-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.prop-share-btn svg {
    width: 16px;
    height: 16px;
}
.prop-share-btn:hover {
    background: var(--accent-elite);
    color: white;
    border-color: var(--accent-elite);
}
@media (max-width: 768px) {
    .prop-detail-heading-row {
        flex-direction: row;
        align-items: flex-start;
    }
    .prop-share-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Key details */
.prop-key-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.prop-key-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.85rem;
}
.prop-key-detail .label { color: var(--text-secondary); }
.prop-key-detail .value { font-weight: 600; color: var(--text-primary); }

/* Sidebar */
.prop-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 90px;
    align-self: start;
}
.prop-sidebar-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 1.35rem;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
}
.prop-sidebar-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Agent card — centered layout */
.prop-agent-card-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.prop-agent-card-centered .prop-sidebar-card h4 {
    width: 100%;
    text-align: left;
}
.prop-agent-photo-lg {
    max-width: 188px;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    margin-bottom: 0.75rem;
}
.prop-agent-photo-lg img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}
.prop-agent-initials-lg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-elite);
    color: var(--text-white);
    font-weight: 700;
    font-size: 3rem;
}
.prop-agent-name-centered {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.prop-agent-detail-centered {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.prop-agent-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 1.25rem 0;
}
.prop-agent-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    width: 100%;
}
.prop-agent-buttons .prop-contact-btn {
    width: 100%;
}
.prop-contact-btn--call {
    border-color: var(--accent-elite);
    color: var(--accent-elite);
}
.prop-contact-btn--call:hover {
    background: var(--accent-elite);
    color: white;
    border-color: var(--accent-elite);
}
.prop-contact-btn--call:hover svg {
    stroke: white;
}
.prop-contact-btn--email {
    border-color: var(--accent-elite);
    color: var(--accent-elite);
}
.prop-contact-btn--email:hover {
    background: var(--accent-elite);
    color: white;
    border-color: var(--accent-elite);
}
.prop-contact-btn--email:hover svg {
    stroke: white;
}
.prop-contact-btn--whatsapp {
    border-color: #25D366;
    color: #128C7E;
}
.prop-contact-btn--whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}
.prop-contact-btn--whatsapp:hover svg {
    fill: white;
}

/* Contact Form */
.prop-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1.5px solid var(--accent-green);
    background: transparent;
    color: var(--accent-green-dark);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 44px;
}
.prop-contact-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.prop-contact-btn:hover {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
}
.prop-contact-btn:hover svg {
    stroke: white;
    fill: white;
}
.prop-contact-input-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-tertiary, #f5f6f8);
    border-radius: 10px;
    padding: 0 0.75rem;
    margin-bottom: 0.6rem;
    border: 1.5px solid transparent;
    transition: border-color 0.2s ease;
}
.prop-contact-input-group:focus-within {
    border-color: var(--accent-elite);
}
.prop-contact-input-group svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    fill: none;
    flex-shrink: 0;
    opacity: 0.6;
}
.prop-contact-input-group input,
.prop-contact-input-group textarea {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.88rem;
    padding: 0.7rem 0;
    color: var(--text-primary);
    outline: none;
    min-width: 0;
}
.prop-contact-input-group input::placeholder,
.prop-contact-input-group textarea::placeholder {
    color: var(--text-muted);
}
.prop-contact-input-group--textarea {
    align-items: flex-start;
    padding-top: 0.65rem;
}
.prop-contact-input-group textarea {
    resize: vertical;
    min-height: 60px;
}
.prop-contact-submit {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    background: var(--accent-green);
    color: white;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.25rem;
    min-height: 44px;
}
.prop-contact-submit:hover {
    background: var(--accent-green-light, #6a9e2a);
    box-shadow: 0 4px 16px rgba(133, 176, 43, 0.35);
}
.prop-contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.prop-contact-terms {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.75rem;
    line-height: 1.5;
}
/* Enquiry Overlay */
.enquiry-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
    align-items: center;
    justify-content: center;
}
.enquiry-overlay.active {
    display: flex;
}
.enquiry-overlay-panel {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: overlaySlideIn 0.3s ease;
}
@keyframes overlaySlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.enquiry-overlay-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}
.enquiry-overlay-loading p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.enquiry-spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid var(--bg-tertiary, #eee);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    animation: enquirySpin 0.8s linear infinite;
}
@keyframes enquirySpin {
    to { transform: rotate(360deg); }
}
.enquiry-overlay-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInUp 0.35s ease;
}
.enquiry-overlay-result h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.enquiry-overlay-result p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}
.enquiry-result-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.enquiry-result-icon svg {
    width: 28px;
    height: 28px;
}
.enquiry-result-success {
    background: rgba(133, 176, 43, 0.12);
}
.enquiry-result-success svg {
    stroke: var(--accent-green);
}
.enquiry-result-error {
    background: rgba(220, 53, 69, 0.1);
}
.enquiry-result-error svg {
    stroke: #dc3545;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Info items */
.prop-info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.85rem;
}
.prop-info-item .label { color: var(--text-secondary); }
.prop-info-item .value { font-weight: 600; color: var(--text-primary); }

/* Breadcrumb Navigation */
.prop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.prop-breadcrumb-link {
    color: var(--accent-elite);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}
.prop-breadcrumb-link:hover {
    color: var(--accent-elite-light);
    text-decoration: underline;
}
.prop-breadcrumb-sep {
    width: 14px;
    height: 14px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}
.prop-breadcrumb-current {
    color: var(--text-secondary);
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

/* Gallery Navigation Arrows */
.prop-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
    opacity: 0;
}
.prop-gallery-main:hover .prop-gallery-nav {
    opacity: 1;
}
.prop-gallery-nav:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: translateY(-50%) scale(1.05);
}
.prop-gallery-nav svg {
    width: 22px;
    height: 22px;
}
.prop-gallery-prev { left: 12px; }
.prop-gallery-next { right: 12px; }

/* Gallery Counter */
.prop-gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    z-index: 2;
    letter-spacing: 0.5px;
}

/* Lightbox */
.prop-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.prop-lightbox.active { display: flex; }
.prop-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}
.prop-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    line-height: 1;
    border-radius: 10px;
    transition: var(--transition-fast);
}
.prop-lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }
.prop-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 12px;
    transition: var(--transition-fast);
}
.prop-lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.prop-lightbox-prev { left: 20px; }
.prop-lightbox-next { right: 20px; }

/* ============================================
   Hero Search (Home Page Glass Panel)
   ============================================ */
.hero-property-search {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 960px;
    margin-top: 2.5rem;
}
.hero-search-panel {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    border-radius: 20px;
    padding: 1rem 2rem;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.hero-search-title {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    text-align: center;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.5);
}
.hero-search-row {
    display: flex;
    gap: 0.65rem;
    align-items: flex-end;
    flex-wrap: wrap;
}
.hero-search-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    min-width: 130px;
}
.hero-search-group label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: white;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.5);
}
.hero-search-group select,
.hero-search-group input {
    width: 100%;
}
.hero-search-group select,
.hero-search-group input {
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-primary);
    transition: var(--transition-fast);
    min-height: 44px;
}
.hero-search-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    cursor: pointer;
}
.hero-search-group select option {
    background: white;
    color: var(--text-primary);
    padding: 0.5rem;
}
.hero-search-group select:focus,
.hero-search-group input:focus {
    outline: none;
    border-color: var(--accent-elite);
    background: white;
    box-shadow: 0 0 0 3px rgba(23, 32, 68, 0.1);
}
.hero-search-group input::placeholder {
    color: var(--text-muted);
}
.hero-search-actions {
    display: flex;
    align-items: flex-end;
}
.hero-search-btn {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.6rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
    min-height: 44px;
    white-space: nowrap;
    background: var(--accent-green);
    color: var(--text-white);
    box-shadow: 0 4px 16px rgba(133, 176, 43, 0.35);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hero-search-btn:hover {
    background: var(--accent-green-light);
    box-shadow: 0 6px 24px rgba(133, 176, 43, 0.45);
    transform: translateY(-1px);
}
.hero-search-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .prop-detail-grid {
        grid-template-columns: 1fr;
    }
    .prop-detail-sidebar {
        position: static;
    }
    .hero-search-panel {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .properties-filters { padding: 1rem; }
    .filter-group { min-width: 120px; }
    .properties-content { padding: 2rem 1rem; }
    .prop-detail-container { padding: 1.5rem 1rem; padding-top: 80px; }
    .prop-detail-heading { font-size: 1.35rem; }
    .prop-detail-price { font-size: 1.4rem; }
    .prop-key-details { grid-template-columns: 1fr; }
    .prop-gallery-thumb { width: 60px; height: 45px; }
    /* Always show arrows on touch devices */
    .prop-gallery-nav { opacity: 1; width: 38px; height: 38px; }
    .prop-gallery-nav svg { width: 18px; height: 18px; }
    .prop-gallery-prev { left: 8px; }
    .prop-gallery-next { right: 8px; }
    .prop-breadcrumb-current { max-width: 160px; }
    .prop-agent-actions { flex-wrap: wrap; }
    .hero-search-panel {
        padding: 1.25rem;
        border-radius: 16px;
    }
    .hero-search-row {
        gap: 0.5rem;
    }
    .hero-search-group {
        min-width: 100px;
    }

    /* Logo hidden by default on mobile — animates in when navbar hides */
    .filters-logo {
        display: block;
    }
    .nav-hidden .filters-logo {
        max-height: 50px;
        opacity: 1;
        margin-bottom: 0.65rem;
    }

    /* Collapsible filters on tablet/mobile */
    .filters-toggle {
        display: flex;
    }
    .filters-row {
        display: none;
        flex-direction: column;
    }
    .filters-open .filters-row {
        display: flex;
    }
    .filter-group {
        width: 100%;
        min-width: unset;
    }
    .filter-actions {
        width: 100%;
        justify-content: stretch;
    }
    .filter-actions .filter-btn {
        flex: 1;
    }

    /* Mandate tabs inside the dropdown on mobile */
    .mandate-tabs {
        margin-bottom: 0.5rem;
        padding-bottom: 0.65rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
}

@media (max-width: 600px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
    .mandate-tabs {
        width: 100%;
    }
    .mandate-tab {
        flex: 1;
        text-align: center;
        font-size: 0.82rem;
        padding: 0.55rem 0.75rem;
    }
    .prop-card-price { font-size: 1.15rem; }
    .prop-card-title { font-size: 0.95rem; }
    .hero-property-search {
        margin-top: 1.5rem;
    }
    .hero-search-panel {
        padding: 1rem;
        border-radius: 14px;
    }
    .hero-search-row {
        flex-direction: column;
    }
    .hero-search-group {
        width: 100%;
        min-width: unset;
    }
    .hero-search-actions {
        width: 100%;
    }
    .hero-search-btn {
        width: 100%;
        justify-content: center;
    }
}
