/**
 * AGENTS PAGE STYLES
 * ==================
 * All styles for agent finder and agent detail pages
 * 
 * SECTIONS:
 * 1. Agent Hero (search section)
 * 2. Agents Grid (agent cards)
 * 3. CTA Section
 * 4. FAQ Section
 * 5. Agent Profile Header
 * 6. Agent Stats
 * 7. Featured Sales
 * 8. Team Members
 * 9. Reviews
 * 10. Service Areas
 * 11. Contact Form
 */
 .navbar {
    height: 70px;
    background: white;
    width: 100%;
    position: relative;
    z-index: 100;
         transition: all 0.5s ease-in-out;

}
.hamburger { cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    gap: 5px; 
    border: none;
    background: transparent;
}

/* MOBILE NAV (Default) */
.nav-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    height: 100%;
}
/* ============================================
   AGENT HERO SECTION
   ============================================ */
.agent-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.agent-hero-bg {
    position: absolute;
    top: 0;
    left: 0; 
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.agent-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    z-index: 2;
}

.agent-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
    max-width: 600px;
    width: 100%;
}

.agent-hero-content h1 {
    color: white;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Agent Search Box */
.agent-search-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.search-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-tab {
    flex: 1;
    padding: 12px;
    border: 2px solid #e8e8ef;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-tab.active {
    border-color: #006aff;
    color: #006aff;
}

.search-tab:hover:not(.active) {
    border-color: #b0b0b5;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 15px;
    color: #6b6b7b;
    font-size: 18px;
}

.search-input-wrapper input {
    flex: 1;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e8e8ef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: #006aff;
}

.search-btn {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    padding: 10px 15px;
    color: #006aff;
    cursor: pointer;
    font-size: 18px;
}

/* ============================================
   AGENTS SECTION
   ============================================ */
.agents-section {
    padding: 40px 20px;
    background: #f8f9fa;
}

.section-container {
    max-width: 800px;
    margin: 0 auto;
}

.agents-header {
    margin-bottom: 30px;
}

.agents-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2a2a33;
    margin-bottom: 10px;
}

.agents-header p {
    color: #6b6b7b;
    font-size: 15px;
    line-height: 1.5;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e8e8ef;
    border-top-color: #006aff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Agents Grid */
.agents-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Agent Card */
.agent-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.agent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.agent-card-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

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

.top-agent-icon {
    position: absolute;
    bottom: 0;
    left: 0;
    background: white;
    border-radius: 50%;
    padding: 2px;
    width: 24px;
    height: 24px;
}

.top-agent-icon img {
    width: 100%;
    height: 100%;
}

.agent-card-info {
    flex: 1;
}

.team-label {
    display: inline-block;
    background: #fff8e1;
    color: #f9a825;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.agent-card-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2a2a33;
    margin-bottom: 3px;
}

.agent-card-info .company {
    color: #6b6b7b;
    font-size: 14px;
    margin-bottom: 8px;
}

.agent-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #6b6b7b;
}

.agent-card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.agent-card-rating .stars {
    color: #006aff;
    font-size: 12px;
}

.agent-card-rating .rating-value {
    font-weight: 700;
    color: #2a2a33;
}

.agent-card-rating .review-count {
    color: #6b6b7b;
    font-size: 13px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results i {
    font-size: 48px;
    color: #d1d1d5;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 20px;
    color: #2a2a33;
    margin-bottom: 10px;
}

.no-results p {
    color: #6b6b7b;
}

/* View More Button */
.view-more-container {
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    background: white;
    border: 2px solid #006aff;
    color: #006aff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-more-btn:hover {
    background: #006aff;
    color: white;
}

/* ============================================
   CTA SECTION
   ============================================ */
.agent-cta-section {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2;
}

.cta-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
    max-width: 500px;
}

.cta-content h2 {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    margin-bottom: 25px;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: #006aff;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 40px 20px;
    background: #2a3f54;
    color: white;
}

.faq-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: white;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question i {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding-bottom: 20px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e8e8ef;
}

.breadcrumb-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb a {
    color: #006aff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #6b6b7b;
}

/* ============================================
   AGENT PROFILE HEADER
   ============================================ */
.agent-profile-header {
    position: relative;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profile-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.profile-header-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.agent-photo-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}

.agent-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.top-agent-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.top-agent-badge img {
    width: 20px;
    height: 20px;
}

.top-agent-badge span {
    font-size: 11px;
    font-weight: 700;
    color: #2a2a33;
    line-height: 1.2;
}

.agent-title {
    color: white;
}

.team-badge {
    display: inline-block;
    background: #fff8e1;
    color: #f9a825;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.agent-title h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.agent-designation {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.agent-company {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 3px;
}

.agent-role {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 15px;
}

.agent-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.agent-rating .stars {
    color: #ffd700;
}

.agent-rating .rating-value {
    font-weight: 700;
    font-size: 18px;
}

.agent-rating .review-count {
    opacity: 0.8;
}

/* ============================================
   AGENT ACTIONS
   ============================================ */
.agent-actions {
    padding: 20px;
    background: white;
    border-bottom: 1px solid #e8e8ef;
}

.actions-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary {
    flex: 1;
    min-width: 150px;
    background: #006aff;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #0056cf;
}

.btn-secondary {
    padding: 15px 20px;
    background: white;
    border: 2px solid #e8e8ef;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: #006aff;
    color: #006aff;
}

.btn-outline {
    width: 100%;
    padding: 15px 20px;
    background: white;
    border: 2px solid #006aff;
    color: #006aff;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: #006aff;
    color: white;
}

.btn-outline.full-width {
    margin-top: 20px;
}

/* ============================================
   AGENT STATS
   ============================================ */
.agent-stats-section {
    padding: 30px 20px;
    background: white;
    border-bottom: 1px solid #e8e8ef;
}

.stats-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #2a2a33;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #6b6b7b;
}

/* ============================================
   FEATURED SALES
   ============================================ */
.featured-sales-section {
    padding: 40px 20px;
    background: #f8f9fa;
}

.featured-sales-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.sales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.sale-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sale-card-image {
    position: relative;
    height: 150px;
}

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

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.sale-card-info {
    padding: 15px;
}

.sale-price {
    font-size: 20px;
    font-weight: 700;
    color: #2a2a33;
    margin-bottom: 5px;
}

.sale-details {
    font-size: 14px;
    color: #6b6b7b;
    margin-bottom: 5px;
}

.sale-location {
    font-size: 13px;
    color: #9e9e9e;
    margin-bottom: 8px;
}

.sale-date {
    font-size: 12px;
    color: #9e9e9e;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sale-date::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
}

/* ============================================
   TEAM MEMBERS
   ============================================ */
.team-members-section {
    padding: 40px 20px;
    background: white;
    border-bottom: 1px solid #e8e8ef;
}

.team-members-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.team-count {
    color: #6b6b7b;
    margin-bottom: 20px;
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.team-member-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.team-member-card:hover {
    background: #e8e8ef;
}

.team-member-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-info {
    flex: 1;
}

.team-member-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
}

.team-member-info .price-range {
    font-size: 13px;
    color: #6b6b7b;
    margin-bottom: 3px;
}

.team-member-info .sales-count {
    font-size: 13px;
    color: #9e9e9e;
}

.team-member-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.team-member-rating .stars {
    color: #006aff;
    font-size: 12px;
}

.team-member-rating span {
    font-size: 13px;
    color: #6b6b7b;
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews-section {
    padding: 40px 20px;
    background: #f8f9fa;
}

.reviews-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.reviews-summary {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.big-rating {
    font-size: 48px;
    font-weight: 700;
    color: #2a2a33;
    display: block;
    margin-bottom: 10px;
}

.reviews-rating .stars {
    color: #006aff;
    margin-bottom: 5px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-rating {
    color: #006aff;
}

.review-date {
    color: #9e9e9e;
    font-size: 13px;
}

.review-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.review-text {
    color: #6b6b7b;
    font-size: 14px;
    line-height: 1.5;
}

.review-author {
    margin-top: 10px;
    font-size: 13px;
    color: #9e9e9e;
}

/* ============================================
   SERVICE AREAS
   ============================================ */
.service-areas-section {
    padding: 40px 20px;
    background: white;
    border-bottom: 1px solid #e8e8ef;
}

.service-areas-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-areas-section h2 span {
    color: #6b6b7b;
    font-weight: 400;
}

.areas-list {
    display: flex;
    flex-direction: column;
}

.area-item {
    padding: 12px 0;
    border-bottom: 1px solid #e8e8ef;
    color: #2a2a33;
}

.show-more-link {
    background: none;
    border: none;
    color: #006aff;
    font-weight: 600;
    padding: 15px 0;
    cursor: pointer;
    font-size: 14px;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-section {
    padding: 40px 20px;
    background: #f8f9fa;
}

.contact-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.call-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #006aff;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 25px;
}

.contact-form {
    background: white;
    padding: 25px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2a2a33;
}

.form-group label .optional {
    color: #9e9e9e;
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e8e8ef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #006aff;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #d32f2f;
}

.form-disclaimer {
    margin-top: 20px;
    font-size: 12px;
    color: #6b6b7b;
    line-height: 1.5;
}

.form-disclaimer a {
    color: #006aff;
}

/* Form Messages */
.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.form-message.error {
    background: #ffebee;
    color: #d32f2f;
}

/* ============================================
   MOBILE SIDEBAR STYLES
   ============================================ */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1001;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e8e8ef;
}

#close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #2a2a33;
    cursor: pointer;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-links li a {
    display: block;
    padding: 15px 20px;
    color: #2a2a33;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #f4f4f4;
    transition: background 0.2s ease;
}

.sidebar-links li a:hover,
.sidebar-links li a.active {
    background: #f8f9fa;
    color: #006aff;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e8e8ef;
}

.sidebar-signin {
    display: block;
    text-align: center;
    padding: 15px;
    background: #006aff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (min-width: 768px) {
    .agent-hero-content h1 {
        font-size: 48px;
    }
    
    .agent-search-box {
        padding: 25px;
    }
    
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .sales-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .actions-container {
        flex-wrap: nowrap;
    }
    
    .btn-outline {
        width: auto;
    }
}

@media (max-width: 767px) {
    .agent-hero {
        height: 350px;
    }
    
    .agent-hero-content h1 {
        font-size: 28px;
    }
    
    .agent-photo-container {
        width: 120px;
        height: 120px;
    }
    
    .agent-title h1 {
        font-size: 24px;
    }
    
    .sales-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.full-width {
    width: 100%;
}
