/* --- Header & Search Section --- */
.listings-header-section {
    padding: 60px 50px 30px 50px;
    position: relative;
    /*background-color: #000;*/
    background: radial-gradient(circle at bottom left, #0e3552 0%, #000 60%);
}

.main-heading-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

/* Filter Row */
.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 250px;
    color: #a0a0a0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-bottom: 2px solid #cda85f;
    padding-bottom: 5px;
    cursor: pointer;
    transition: color 0.3s;
}

.filter-item:hover {
    color: #fff;
}

.filter-item i {
    color: #cda85f;
    font-size: 1.1rem;
}

/* Vertical text on the right edge */
.for-lease-vertical {
    position: fixed;
    right: 15px;
    top: 50px;
    writing-mode: vertical-rl;
    color: #a0a0a0;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 100;
}

/* --- Grid & Cards --- */
.listings-grid {
    /* Removing gaps to match the edge-to-edge look */
    margin: 0; 
}

.listing-card {
    position: relative;
    height: 450px;
    overflow: hidden;
    cursor: pointer;
    background-color: #111;
}

/* The Gold Inner Border on Hover */
.listing-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 0 0 #cda85f;
    transition: box-shadow 0.3s ease-in-out;
    pointer-events: none;
    z-index: 10;
}

.listing-card:hover::after {
    box-shadow: inset 0 0 0 6px #cda85f;
}

/* Background Image */
.listing-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.listing-card:hover .listing-img {
    transform: scale(1.06);
}

/* Dark Gradient Overlay */
.card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    transition: background 0.4s ease;
    z-index: 2;
}

.listing-card:hover .card-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.95) 100%);
}

/* --- Top Tags (Hidden by default, shown on hover) --- */
.top-tags {
    display: flex;
    align-items: center;
    font-size:1.563vw;
    font-weight: 400;
    text-transform: uppercase;
    opacity: 1;
    transform: translateY(0px);
    transition: all 0.4s ease;
    color: #fff;
    line-height: 1;
}

/*.listing-card:hover .top-tags {
    opacity: 1;
    transform: translateY(0);
}*/

.tag-separator {
    width: 2px;
    height: 18px;
    background-color: #cda85f;
    margin: 0 15px;
    display: inline-block;
    vertical-align: middle;
}

/* --- Bottom Content --- */
.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.bottom-left {
    display: flex;
    flex-direction: column;
    width: 65%;
}

/* Default Address Block */
.address-wrapper {
    display: flex;
    align-items: stretch; /* Stretches the gold bar to match text height */
}

.address-gold-bar {
    width: 3px;
    background-color: #cda85f;
    margin-right: 12px;
    transition: height 0.3s ease;
}

.address-text {
    display: flex;
    flex-direction: column;
}

.street {
    font-size:1.563vw;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
}

.city {
    font-size: 1.125vw;
    font-weight: 400;
    line-height: 1.8;
    color: #fff;
    margin-top: 3px;
    text-transform: uppercase;
    font-family: var(--font-01);
}

/* Extra Details (Beds/Price) - Expanding on hover */
.extra-details {
    max-height: 100px;
    opacity:1;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

/*.listing-card:hover .extra-details {
    max-height: 80px;
    opacity: 1;
    margin-top: 15px;
}*/

.beds-baths {
    font-size: 1.125vw;
    font-weight: 400;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.beds-baths span {
    color: #cda85f;
    margin: 0 8px;
}

.price {
    font-size: 2.438vw;
    font-weight: 400;
    color: #d4b56a;
    line-height: 1;
    letter-spacing: 0.5px;
}

/* View Details Button */
.view-btn {
    background-color: #d4b56a;
    color: #fff;
    padding: 10px 15px;
    font-size: 0.938vw;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
    text-decoration: none;
    font-family: var(--font-01);
}

.listing-card:hover .view-btn {
    opacity: 1;
    transform: translateX(0);
}

.view-btn:hover {
    background-color: #ffffff;
    color: #000;
}
.gold-highlight {
    background-color: var(--color-1); /* The golden color */
    color: #ffffff; /* White text for contrast, change to #000 if you want black text */
    padding: 3px 8px; /* Adds space around the text so the background looks like a button/tag */
    border-radius: 3px; /* Slightly rounds the corners */
    font-weight: 500;
    display: inline-block;
}
/* --- Responsive Design --- */
@media (max-width: 991px) {
    .listings-header-section { padding: 40px 30px; }
    .filter-row { flex-direction: column; align-items: flex-start; gap: 20px; border-bottom: none; }
    .filter-item { width: 100%; }
    .for-lease-vertical { display: none; } /* Hide on smaller screens */
}

@media (max-width: 768px) {
    .listings-header-section { padding: 30px 15px; }
    .listing-card { height: 400px; }
    .street { font-size: 1.2rem; }
    .price { font-size: 1.3rem; }
    .card-overlay { padding: 20px; }
    .view-btn { padding: 8px 15px; font-size: 0.75rem; }
    .top-tags{font-size: 16px}
    .city{font-size:16px}
    .beds-baths {font-size: 16px}
    .bottom-left{width: 64%}
}