/* ===================================
   LISTINGS PAGE - PREMIUM STYLES
   Black & Gold Luxury Aesthetic
   =================================== */

/* ===================================
   LISTINGS HERO SECTION
   =================================== */
.listings-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rich-black) 0%, var(--matte-black) 100%);
    padding: 120px 0 80px;
    margin-top: 80px;
    overflow: hidden;
}

.listings-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 48%, rgba(212, 175, 55, 0.03) 49%, rgba(212, 175, 55, 0.03) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(212, 175, 55, 0.03) 49%, rgba(212, 175, 55, 0.03) 51%, transparent 52%);
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 10, 10, 0.6) 100%);
}

.listings-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.listings-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--metallic-gold);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.listings-hero-content p {
    font-size: 1.25rem;
    color: var(--off-white);
    font-weight: 300;
}

/* ===================================
   FILTERS SECTION
   =================================== */
.filters-section {
    background: var(--matte-black);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    color: var(--metallic-gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-select,
.search-input {
    padding: 0.875rem 1rem;
    background: var(--rich-black);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--pure-white);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.filter-select:hover,
.search-input:hover {
    border-color: var(--metallic-gold);
}

.filter-select:focus,
.search-input:focus {
    outline: none;
    border-color: var(--metallic-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.filter-select option {
    background: var(--rich-black);
    color: var(--pure-white);
    padding: 0.5rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.clear-filters {
    padding: 0.875rem 2rem;
    background: transparent;
    border: 2px solid var(--metallic-gold);
    color: var(--metallic-gold);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-end;
}

.clear-filters:hover {
    background: var(--metallic-gold);
    color: var(--rich-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.results-count {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.results-count span {
    color: var(--off-white);
    font-size: 1rem;
}

.results-count strong {
    color: var(--metallic-gold);
    font-weight: 600;
}

/* ===================================
   LISTINGS GRID
   =================================== */
.listings-section {
    padding: 4rem 0;
    min-height: 60vh;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
}

/* ===================================
   PROPERTY CARD
   =================================== */
.property-card {
    background: var(--matte-black);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-8px);
    border-color: var(--metallic-gold);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
}

.property-card.featured {
    border: 2px solid var(--metallic-gold);
}

.property-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--dark-gray);
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    z-index: 2;
}

.property-badge.sale {
    background: var(--metallic-gold);
    color: var(--rich-black);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.65rem 1.25rem;
}

.property-badge.rental {
    background: rgba(212, 175, 55, 0.9);
    color: var(--rich-black);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.65rem 1.25rem;
}

.property-badge.negotiable {
    top: 1rem;
    left: auto;
    right: 1rem;
    background: rgba(10, 10, 10, 0.9);
    color: var(--metallic-gold);
    border: 1px solid var(--metallic-gold);
}

.property-badge.featured-badge {
    top: auto;
    bottom: 1rem;
    left: 1rem;
    background: var(--metallic-gold);
    color: var(--rich-black);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
}

/* ===================================
   PROPERTY CONTENT
   =================================== */
.property-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-header {
    margin-bottom: 1rem;
}

.property-title {
    font-size: 1.5rem;
    color: var(--pure-white);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--metallic-gold);
    font-size: 0.95rem;
}

.property-location svg {
    width: 18px;
    height: 18px;
}

.property-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem;
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid var(--metallic-gold);
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.price-label {
    font-size: 0.875rem;
    color: var(--off-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-amount {
    font-size: 1.75rem;
    color: var(--metallic-gold);
    font-weight: 700;
}

/* ===================================
   PROPERTY FEATURES
   =================================== */
.property-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--off-white);
    font-size: 0.9rem;
}

.feature svg {
    width: 20px;
    height: 20px;
    color: var(--metallic-gold);
    flex-shrink: 0;
}

/* ===================================
   PROPERTY DESCRIPTION
   =================================== */
.property-description {
    color: var(--off-white);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================
   PROPERTY ACTIONS
   =================================== */
.property-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: auto;
}

.btn-details,
.btn-contact {
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-details {
    background: transparent;
    border: 2px solid var(--metallic-gold);
    color: var(--metallic-gold);
}

.btn-details:hover {
    background: var(--metallic-gold);
    color: var(--rich-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-contact {
    background: var(--metallic-gold);
    border: 2px solid var(--metallic-gold);
    color: var(--rich-black);
}

.btn-contact:hover {
    background: var(--bright-gold);
    border-color: var(--bright-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* ===================================
   NO RESULTS MESSAGE
   =================================== */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--matte-black);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.no-results svg {
    width: 80px;
    height: 80px;
    color: var(--metallic-gold);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-results h3 {
    color: var(--pure-white);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.no-results p {
    color: var(--off-white);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-reset {
    padding: 0.875rem 2rem;
    background: var(--metallic-gold);
    border: none;
    color: var(--rich-black);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-reset:hover {
    background: var(--bright-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* ===================================
   PROPERTY MODAL
   =================================== */
.property-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.property-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--matte-black);
    border: 1px solid var(--metallic-gold);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--metallic-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 3;
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--metallic-gold);
}

.modal-close:hover {
    background: var(--metallic-gold);
    transform: rotate(90deg);
}

.modal-close:hover svg {
    color: var(--rich-black);
}

.modal-body {
    padding: 2.5rem;
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 2.5rem;
    color: var(--metallic-gold);
    margin-bottom: 0.75rem;
}

.modal-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--off-white);
    font-size: 1.1rem;
}

.modal-location svg {
    width: 20px;
    height: 20px;
    color: var(--metallic-gold);
}

.modal-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    padding: 1.25rem;
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid var(--metallic-gold);
    border-radius: 8px;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--off-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1.5rem;
    color: var(--metallic-gold);
    font-weight: 600;
}

.modal-description {
    color: var(--off-white);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.03);
    border-radius: 8px;
}

.modal-features {
    margin-bottom: 2rem;
}

.modal-features h3 {
    color: var(--metallic-gold);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-features ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.modal-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--off-white);
    font-size: 1rem;
    padding: 0.75rem;
    background: rgba(212, 175, 55, 0.03);
    border-radius: 6px;
}

.modal-features li::before {
    content: '✓';
    color: var(--metallic-gold);
    font-weight: bold;
    font-size: 1.2rem;
}

.modal-cta {
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.modal-cta button,
.modal-cta a {
    flex: 1;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-cta .btn-primary {
    background: var(--metallic-gold);
    border: 2px solid var(--metallic-gold);
    color: var(--rich-black);
}

.modal-cta .btn-secondary {
    background: transparent;
    border: 2px solid var(--metallic-gold);
    color: var(--metallic-gold);
}

.modal-cta button:hover,
.modal-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .listings-hero {
        min-height: 30vh;
        padding: 100px 0 60px;
    }

    .filters-container {
        grid-template-columns: 1fr;
    }

    .clear-filters {
        width: 100%;
    }

    .listings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .property-actions {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.75rem;
    }

    .modal-image {
        height: 250px;
    }

    .modal-details {
        grid-template-columns: 1fr;
    }

    .modal-cta {
        flex-direction: column;
    }

    .filters-section {
        position: relative;
        top: 0;
    }
}

@media (max-width: 480px) {
    .property-features {
        grid-template-columns: 1fr;
    }

    .listings-hero-content h1 {
        font-size: 2rem;
    }

    .listings-hero-content p {
        font-size: 1rem;
    }

    .property-price {
        padding: 1rem;
    }

    .price-amount {
        font-size: 1.5rem;
    }
}
