/* --- APB Properties of Florida: Agent Directory Stylesheet (team-page.css) --- */

/* 1. Page Title & Search/Filter Bar */
.team-hero-section {
    text-align: center;
    padding: 40px 5%;
    background-color: #eaf6ff; /* Light Blue Accent */
    border-bottom: 3px solid #0077b6;
}

.team-hero-section h2 {
    font-size: 2.2em;
    color: #001f3f; /* Deep Navy */
    margin-bottom: 5px;
}

.section-subtext {
    max-width: 800px;
    margin: 0 auto 20px;
    color: #555;
}

.agent-search-bar {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.agent-search-bar input {
    flex-grow: 1;
    padding: 12px 15px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
}

.search-agent-button {
    background-color: #ff6f61; /* Coral CTA */
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background-color 0.3s;
}

.search-agent-button:hover {
    background-color: #e55a4e;
}

/* 2. Agent Directory Grid */
.agent-directory-grid {
    padding: 60px 5%;
    display: grid;
    /* Creates a responsive grid: min 300px wide, max 1fr */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
}

.agent-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s;
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* FIX: Changed background-size to 'contain' to prevent cropping */
.agent-photo-paul-brytus {
    height: 250px; /* Reduced Height */
    background-color: #ccc;
    background-image: url(../photos/Agent-Paul-Brytus.jpg); 
    background-size: contain; /* CRUCIAL FIX: Shows entire image, no cropping */
    background-repeat: no-repeat; /* Prevents tiling if image is small */
    background-position: center top;
}

.agent-info {
    padding: 20px;
    text-align: center;
}

.agent-info h4 {
    color: #001f3f; /* Deep Navy */
    font-size: 1.6em;
    margin-bottom: 5px;
}

.agent-info .title {
    color: #0077b6; /* Aqua Accent */
    font-weight: 500;
    margin-bottom: 15px;
}

.specialties {
    margin-bottom: 15px;
    min-height: 40px;
}

.specialties span {
    display: inline-block;
    background-color: #eaf6ff;
    color: #0077b6;
    font-size: 0.8em;
    padding: 4px 8px;
    border-radius: 15px;
    margin: 3px;
}

.contact-details {
    margin-bottom: 20px;
    font-size: 0.95em;
    color: #333;
}

.contact-details i {
    color: #ff6f61; /* Coral Accent */
    margin-right: 8px;
    width: 15px;
}

.cta-profile {
    display: block;
    padding: 10px;
    background-color: #001f3f; /* Deep Navy */
    color: #ffffff;
    border-radius: 4px;
    font-weight: 700;
    transition: background-color 0.3s;
}

.cta-profile:hover {
    background-color: #0077b6; /* Aqua on hover */
    text-decoration: none;
}

/* 3. Recruitment CTA */
.recruitment-cta {
    text-align: center;
    padding: 60px 5%;
    background-color: #f4f4f9;
    border-top: 1px solid #ddd;
}

.cta-large-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #ff6f61; /* Coral for recruitment CTA */
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: 700;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.cta-large-button:hover {
    background-color: #e55a4e;
    text-decoration: none;
}

/* 4. Mobile Responsiveness */
@media (max-width: 768px) {
    .team-hero-section {
        padding: 30px 5%;
    }
    
    .agent-search-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .agent-search-bar input {
        border-radius: 4px;
    }
    
    .search-agent-button {
        border-radius: 4px;
    }

    .agent-directory-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .agent-card {
        max-width: 400px;
        margin: 0 auto;
    }
    /* Adjusted photo height for mobile to keep the card compact */
    .agent-photo-paul-brytus {
        height: 200px;
    }
}
