/* Luxury Real Estate Dark Mode Theme Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@200;300;400;500;600&display=swap');

:root {
    --lre-bg-dark: #08080a;
    --lre-card-bg: #121215;
    --lre-card-border: #1e1e24;
    --lre-text-main: #f3f3f6;
    --lre-text-muted: #8e8e9c;
    --lre-accent-copper: #d4af37;
    --lre-accent-hover: #f3c948;
    --lre-font-heading: 'Outfit', sans-serif;
    --lre-font-body: 'Inter', sans-serif;
}

.lre-container {
    background-color: var(--lre-bg-dark);
    color: var(--lre-text-main);
    font-family: var(--lre-font-body);
    padding: 60px 20px;
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
}

/* Header & Title */
.lre-header {
    text-align: center;
    margin-bottom: 35px;
}

.lre-main-title {
    font-family: var(--lre-font-heading);
    font-weight: 200;
    font-size: 38px;
    letter-spacing: 1px;
    color: #ffffff;
    margin: 0 0 25px 0;
}

/* Filter Navigation Tabs */
.lre-tabs-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.lre-tab-item {
    font-family: var(--lre-font-heading);
    font-size: 16px;
    font-weight: 300;
    color: var(--lre-text-muted);
    cursor: pointer;
    padding-bottom: 6px;
    position: relative;
    transition: color 0.3s ease;
}

.lre-tab-item:hover,
.lre-tab-item.active {
    color: #ffffff;
}

.lre-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Property Cards Grid */
.lre-grid-wrapper {
    max-width: 1240px;
    margin: 40px auto 0 auto;
    position: relative;
    min-height: 480px;
}

.lre-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 1024px) {
    .lre-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .lre-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Single Property Card */
.lre-card {
    background-color: var(--lre-card-bg);
    border: 1px solid var(--lre-card-border);
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.lre-card:hover {
    border-color: #33333e;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* Card Image Slider Container */
.lre-card-slider {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #000;
}

.lre-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lre-slide-img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slider Controls Overlay */
.lre-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    z-index: 5;
}

.lre-card-slider:hover .lre-slider-arrow {
    opacity: 0.8;
}

.lre-slider-arrow:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.8);
}

.lre-arrow-prev { left: 10px; }
.lre-arrow-next { right: 10px; }

.lre-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.lre-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.lre-dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

/* Top Right Overlay Icons (Compare & Bookmark) */
.lre-card-actions-top {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 6;
}

.lre-top-btn {
    background: rgba(18, 18, 21, 0.75);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #dedede;
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lre-top-btn:hover, .lre-top-btn.bookmarked {
    background: rgba(212, 175, 55, 0.9);
    color: #111;
    border-color: #d4af37;
}

/* Card Content Body */
.lre-card-body {
    padding: 22px 20px 0 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lre-card-title {
    font-family: var(--lre-font-heading);
    font-weight: 300;
    font-size: 22px;
    color: #ffffff;
    margin: 0 0 10px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lre-card-title:hover {
    color: var(--lre-accent-copper);
}

.lre-location {
    font-size: 13.5px;
    color: var(--lre-text-muted);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lre-location-icon {
    font-size: 13px;
    color: #a0a0b0;
}

.lre-sub-type {
    font-size: 12px;
    color: #6e6e7e;
    margin-bottom: 15px;
    text-transform: capitalize;
}

/* Key Features Row */
.lre-specs-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #b0b0c0;
    margin-bottom: 18px;
}

.lre-spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lre-spec-icon {
    font-size: 14px;
    color: #888899;
}

.lre-divider {
    height: 1px;
    background-color: var(--lre-card-border);
    margin: 0 -20px 16px -20px;
}

/* Price Row */
.lre-price-row {
    font-family: var(--lre-font-heading);
    font-size: 17px;
    font-weight: 300;
    color: #f0f0f0;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.lre-price-amount {
    font-weight: 400;
}

/* Bottom Contact Action Bar (Call, Email, WhatsApp) */
.lre-contact-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--lre-card-border);
    margin: auto -20px 0 -20px;
    background: #0d0d10;
}

.lre-contact-btn {
    border: none;
    background: transparent;
    border-right: 1px solid var(--lre-card-border);
    padding: 12px 0;
    color: #a0a0b0;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.lre-contact-btn:last-child {
    border-right: none;
}

.lre-contact-btn:hover {
    background-color: #1a1a22;
    color: var(--lre-accent-copper);
}

/* Footer Pagination Bar (PREV, Show All, NEXT) */
.lre-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1240px;
    margin: 50px auto 0 auto;
    position: relative;
}

.lre-nav-btn {
    font-family: var(--lre-font-heading);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--lre-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    padding-bottom: 4px;
    position: relative;
    transition: color 0.3s ease;
}

.lre-nav-btn:hover {
    color: #ffffff;
}

.lre-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lre-nav-line {
    position: absolute;
    bottom: 0;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.lre-nav-btn.prev-btn { text-align: left; width: 140px; }
.lre-nav-btn.next-btn { text-align: right; width: 140px; }
.lre-nav-btn.prev-btn .lre-nav-line { left: 0; width: 60px; }
.lre-nav-btn.next-btn .lre-nav-line { right: 0; width: 60px; }
.lre-nav-btn:hover .lre-nav-line { width: 100%; }

.lre-show-all-btn {
    font-family: var(--lre-font-heading);
    font-size: 14px;
    color: var(--lre-text-muted);
    cursor: pointer;
    background: transparent;
    border: none;
    transition: color 0.3s ease;
}

.lre-show-all-btn:hover {
    color: #ffffff;
}

/* Dynamic Detail Lightbox Modal */
.lre-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lre-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lre-modal-content {
    background: #141418;
    border: 1px solid #2a2a32;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 6px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}

.lre-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #222;
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lre-modal-close:hover {
    background: var(--lre-accent-copper);
    color: #111;
}

/* Agent Showcase Grid */
.lre-agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1240px;
    margin: 30px auto;
}

.lre-agent-card {
    background: #121215;
    border: 1px solid #1e1e24;
    border-radius: 6px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.lre-agent-card:hover {
    transform: translateY(-4px);
    border-color: var(--lre-accent-copper);
}

.lre-agent-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto;
    border: 2px solid var(--lre-accent-copper);
}

.lre-agent-name {
    font-family: var(--lre-font-heading);
    font-size: 20px;
    font-weight: 300;
    color: #fff;
    margin: 0 0 5px 0;
}

.lre-agent-role {
    font-size: 13px;
    color: var(--lre-accent-copper);
    margin-bottom: 15px;
}
