/* Apartment Background Image - CSS Art */
.apartment-bg {
    width: 100%;
    height: 100%;
    background: 
        /* Sky gradient */
        linear-gradient(180deg, #87CEEB 0%, #E0F6FF 50%, #F0F8FF 100%),
        /* Building shapes */
        linear-gradient(to right, 
            transparent 0%, 
            transparent 15%, 
            #4A90E2 15%, 
            #4A90E2 25%, 
            transparent 25%, 
            transparent 35%, 
            #357ABD 35%, 
            #357ABD 50%, 
            transparent 50%, 
            transparent 65%, 
            #2E5984 65%, 
            #2E5984 85%, 
            transparent 85%, 
            transparent 100%
        );
    position: relative;
}

.apartment-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: 
        /* Windows pattern */
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 40px,
            rgba(255,255,255,0.8) 40px,
            rgba(255,255,255,0.8) 45px,
            transparent 45px,
            transparent 55px,
            rgba(255,255,255,0.8) 55px,
            rgba(255,255,255,0.8) 60px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 30px,
            rgba(255,255,255,0.6) 30px,
            rgba(255,255,255,0.6) 35px
        );
}

/* Agent Ranking Page Styles */

/* Hero Section - Simple Background like SolarHome */
.agent-hero {
    padding: 120px 0 80px;
    background: #f8f9fa;
    color: #2c3e50;
}

.agent-hero .hero-content {
    max-width: 800px;
    text-align: center;
}

.agent-hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: #2c3e50;
}

.agent-hero p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #6c757d;
    line-height: 1.6;
}

.city-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.city-input {
    width: 100%;
    padding: 16px 60px 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.city-input:focus {
    border-color: #007bff;
}

.city-search .search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #6c757d;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

/* City Cards Section */
.city-cards-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.city-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.city-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.city-card:hover {
    transform: translateY(-5px);
}

.city-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.city-card h3 {
    padding: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 0;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.breadcrumb {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin: 0;
}

.show-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.show-more:hover {
    text-decoration: underline;
}

/* Promoted Agents Section */
.promoted-agents {
    padding: 80px 0;
    background: white;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.agent-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.agent-card.featured {
    background: white;
    border: 2px solid #007bff;
    transform: scale(1.02);
}

.agent-card:hover {
    transform: translateY(-5px);
}

.agent-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.agent-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-info h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.agent-info p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.rating .stars {
    color: #ffc107;
}

.rating .score {
    color: #6c757d;
    font-size: 0.9rem;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat .label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.2rem;
}

.stat .value {
    font-weight: 600;
    color: #2c3e50;
}

.contact-agent-btn {
    width: 100%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.contact-agent-btn:hover {
    transform: translateY(-2px);
}

/* Recent Transactions Section */
.recent-transactions {
    padding: 80px 0;
    background: #f8f9fa;
}

.transactions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.transaction-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.property-type {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.transaction-card h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 0.2rem;
}

.price-per-m2 {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.property-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.property-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.property-details i {
    color: #007bff;
    width: 15px;
}

.property-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff3cd;
    color: #856404;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.property-status.ready {
    background: #d1ecf1;
    color: #0c5460;
}

.property-status i {
    font-size: 0.7rem;
}

.realtor-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
}

.realtor-info a {
    color: #007bff;
    text-decoration: none;
}

.realtor-info a:hover {
    text-decoration: underline;
}

/* Recent Reviews Section */
.recent-reviews {
    padding: 80px 0;
    background: white;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.review-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.review-card p {
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #495057;
    font-style: italic;
}

.reviewer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer .name {
    font-weight: 600;
    color: #2c3e50;
}

.reviewer .rating {
    color: #ffc107;
}

.realtor-link {
    font-size: 0.9rem;
    color: #6c757d;
}

.realtor-link a {
    color: #007bff;
    text-decoration: none;
}

.realtor-link a:hover {
    text-decoration: underline;
}

/* Agencies Section */
.agencies-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.agencies-section h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    text-align: center;
}

.agencies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.agencies-column h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.agencies-column ul {
    list-style: none;
    margin-bottom: 2rem;
}

.agencies-column li {
    margin-bottom: 0.5rem;
}

.agencies-column a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

.agencies-column a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .city-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .agents-grid,
    .transactions-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .agencies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .agent-hero {
        padding: 100px 0 60px;
    }
    
    .agent-hero h1 {
        font-size: 2rem;
    }
    
    .agent-hero p {
        font-size: 1rem;
    }
    
    .city-cards,
    .agents-grid,
    .transactions-grid,
    .reviews-grid,
    .agencies-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .property-details {
        grid-template-columns: 1fr;
    }
    
    .reviewer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Agent Hero Section Improvements */
.agent-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 6rem 0 4rem 0;
    min-height: 550px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px; /* Space from fixed header */
}

.agent-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 400px;
}

.hero-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    max-width: 90%;
}

.hero-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 85%;
}

.hero-search {
    display: flex;
    justify-content: center;
    align-items: center;
}

.city-search {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.1rem;
    z-index: 3;
}

.city-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.city-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.search-btn i {
    font-size: 1rem;
}

/* Responsive Design for Hero */
@media (max-width: 992px) {
    .agent-hero {
        padding: 5rem 0 3rem 0;
        min-height: 450px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 1.9rem;
        max-width: 100%;
    }
    
    .hero-text p {
        max-width: 100%;
    }
    
    .city-search {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .agent-hero {
        padding: 4rem 0 3rem 0;
        min-height: 400px;
        margin-top: 70px;
    }
    
    .hero-text h1 {
        font-size: 1.6rem;
        line-height: 1.4;
        margin-bottom: 1.25rem;
    }
    
    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .city-search {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .agent-hero {
        padding: 3rem 0 2rem 0;
        margin-top: 60px;
        min-height: 350px;
    }
    
    .hero-content {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .hero-text h1 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .hero-text p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .city-search {
        padding: 1rem;
    }
    
    .city-input {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
        font-size: 0.95rem;
    }
    
    .search-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* City Cards Section */
.city-cards-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

.city-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.city-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.city-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.city-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.city-card:hover .city-image img {
    transform: scale(1.05);
}

.city-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.city-overlay i {
    font-size: 1rem;
}

.city-info {
    padding: 1.5rem;
    text-align: center;
}

.city-info h3 {
    font-size: 1.5rem;
    color: #1a365d;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.city-info p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.view-agents-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.view-agents-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.view-agents-btn i {
    font-size: 0.95rem;
}

/* Responsive for City Cards */
@media (max-width: 768px) {
    .city-cards-section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .city-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .city-image {
        height: 160px;
    }
    
    .city-info {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .city-overlay {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
