
/* Agent Listings Grid */

.agent-listings-section {

    max-width: 1200px;

    margin: 2rem auto 0;

    padding: 2rem;

    border-top: 1px solid rgba(255,255,255,0.1);

}



.agent-listings-section h2 {

    font-family: 'Playfair Display', Georgia, serif;

    font-size: 2rem;

    color: #d4a853;

    margin-bottom: 1.5rem;

}



.listings-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 1.25rem;

    margin-bottom: 2rem;

}



.listing-card {

    background: rgba(255,255,255,0.03);

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 8px;

    overflow: hidden;

    transition: all 0.3s ease;

    text-decoration: none;

    display: block;

}



.listing-card:hover {

    transform: translateY(-4px);

    border-color: #d4a853;

    box-shadow: 0 8px 24px rgba(0,0,0,0.3);

}



.listing-card-image {

    position: relative;

    height: 140px;

    overflow: hidden;

    background: rgba(0,0,0,0.3);

}



.listing-card-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.3s ease;

}



.listing-card:hover .listing-card-image img {

    transform: scale(1.05);

}



.listing-no-photo {

    width: 100%;

    height: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    color: rgba(255,255,255,0.25);

    gap: 0.5rem;

    background: linear-gradient(135deg, rgba(26,38,52,0.8) 0%, rgba(26,38,52,0.95) 100%);

}



.listing-no-photo svg {

    opacity: 0.4;

}



.listing-no-photo span {

    font-size: 0.7rem;

    text-transform: uppercase;

    letter-spacing: 1px;

}



.listing-badge {

    position: absolute;

    top: 8px;

    left: 8px;

    padding: 3px 8px;

    font-size: 0.65rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    border-radius: 3px;

}



.badge-active {

    background: #d4a853;

    color: #1a2634;

}



.badge-pending {

    background: #f59e0b;

    color: #1a2634;

}



.badge-contract {

    background: #3b82f6;

    color: #fff;

}



.listing-type-badge {

    position: absolute;

    bottom: 8px;

    left: 8px;

    background: rgba(26, 38, 52, 0.9);

    color: #fff;

    padding: 3px 6px;

    font-size: 0.6rem;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    border-radius: 3px;

}



.listing-card-content {

    padding: 0.75rem;

}



.listing-price {

    font-size: 1.1rem;

    font-weight: 700;

    color: #d4a853;

    margin-bottom: 0.35rem;

}



.listing-address {

    font-size: 0.85rem;

    color: #2d3748;

    margin-bottom: 0.2rem;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.listing-city {

    font-size: 0.75rem;

    color: #718096;

    font-weight: 500;

}



.listings-cta {

    text-align: center;

    margin-top: 2.5rem;

    padding-top: 1.5rem;

    border-top: 1px solid rgba(255,255,255,0.05);

}



.btn-view-all {

    display: inline-block;

    padding: 14px 40px;

    background: transparent;

    border: 2px solid #d4a853;

    color: #d4a853;

    font-size: 0.9rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1px;

    text-decoration: none;

    border-radius: 4px;

    transition: all 0.3s ease;

}



.btn-view-all:hover {

    background: #d4a853;

    color: #1a2634;

}



/* Agent profile nav */

.agent-profile-nav {

    margin-top: 1rem;

    display: flex;

    gap: 1rem;

}



.agent-profile-nav a {

    color: #d4a853;

    text-decoration: none;

    font-size: 0.9rem;

    padding: 6px 12px;

    border: 1px solid rgba(212, 168, 83, 0.3);

    border-radius: 4px;

    transition: all 0.3s ease;

}



.agent-profile-nav a:hover {

    background: rgba(212, 168, 83, 0.1);

    border-color: #d4a853;

}



#about,

#current-listings {

    scroll-margin-top: 100px;

}



@media (max-width: 1024px) {

    .listings-grid {

        grid-template-columns: repeat(3, 1fr);

    }

}



@media (max-width: 768px) {

    .listings-grid {

        grid-template-columns: repeat(2, 1fr);

    }

    

    .agent-listings-section h2 {

        font-size: 1.5rem;

    }

}



@media (max-width: 480px) {

    .listings-grid {

        grid-template-columns: 1fr;

    }

}

