/**
 * Archive Components CSS
 * 
 * Styles for the custom archive pages:
 * - Hero Section
 * - Breadcrumbs
 * - Category Grid
 * - Clinic List & Cards
 * - Search Bar
 * - SEO Content
 * - Call to Action
 */

/* -------------------------------------------------------------------------- */
/*                                   Utilities                                */
/* -------------------------------------------------------------------------- */

.eh-text-center {
    text-align: center;
}

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

.eh-hidden {
    display: none;
}

/* -------------------------------------------------------------------------- */
/*                                   Hero Section                             */
/* -------------------------------------------------------------------------- */

.eh-hero {
    margin-bottom: 40px;
    text-align: center;
}

.eh-hero-title {
    font-size: 42px;
    color: #333;
    font-weight: 700;
}

.eh-hero-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0 auto 25px;
}

/* Pricing Stats Box */
.eh-pricing-stats {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
    border: 1px solid #d0e3f7;
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
    text-align: center;
}

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

.eh-pricing-title {
    font-size: 22px;
    color: #1a5490;
    margin-bottom: 15px;
    font-weight: 600;
}

.eh-pricing-desc {
    font-size: 17px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.eh-pricing-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.eh-pricing-item-value {
    font-size: 28px;
    font-weight: 700;
    color: #2271b1;
}

.eh-pricing-item-value.min {
    color: #16a34a;
}

/* Green */
.eh-pricing-item-value.max {
    color: #dc2626;
}

/* Red */

.eh-pricing-item-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Empty State Box */
.eh-pricing-coming-soon {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 1px solid #fde047;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.eh-pricing-coming-soon-container {
    max-width: 600px;
    margin: 0 auto;
}

.eh-pricing-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.eh-pricing-empty-title {
    font-size: 20px;
    color: #854d0e;
    margin-bottom: 10px;
    font-weight: 600;
}

.eh-pricing-empty-desc {
    font-size: 15px;
    color: #a16207;
    margin-bottom: 20px;
}

/* Demand Capture Form */
.eh-demand-capture {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #fde047;
}

.eh-demand-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.eh-price-alert-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.eh-price-alert-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.eh-price-alert-submit {
    background: #2271b1;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.eh-price-alert-submit:hover {
    background: #1a5490;
}

.eh-demand-footer {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 10px;
    margin-bottom: 0;
}


/* -------------------------------------------------------------------------- */
/*                                   Breadcrumbs                              */
/* -------------------------------------------------------------------------- */

.eh-breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.eh-breadcrumb a {
    color: #2271b1;
    text-decoration: none;
}

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

.eh-breadcrumb-sep {
    margin: 0 8px;
}


/* -------------------------------------------------------------------------- */
/*                                   Clinic Card                              */
/* -------------------------------------------------------------------------- */

.eh-clinic-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: start;
}

.eh-clinic-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

/* Media Query for Responsive Card */
@media (max-width: 768px) {
    .eh-clinic-card {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.eh-clinic-logo-wrapper {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.eh-clinic-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #f9fafb;
    padding: 8px;
}

/* Card Content */
.eh-clinic-title {
    font-size: 18px;
    margin: 0 0 8px 0;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.eh-clinic-title a {
    color: #111827;
    text-decoration: none;
}

.eh-clinic-title a:hover {
    color: #2271b1;
}

/* Badges & Rating */
.eh-card-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.eh-category-badge {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eh-rating-stars span {
    font-size: 16px;
    color: #e5e7eb;
    /* default/empty */
}

.eh-rating-stars span.filled,
.eh-rating-stars span.half {
    color: #fbbf24;
}

.eh-rating-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.eh-review-count {
    font-size: 13px;
    color: #6b7280;
}

/* Contact Info */
.eh-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #6b7280;
}

.eh-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.eh-icon {
    color: #9ca3af;
    flex-shrink: 0;
}

.eh-phone-link {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
}

.eh-phone-link:hover {
    text-decoration: underline;
}

/* Price & Hours */
.eh-price-badge {
    display: inline-block;
    background: #ecfdf5;
    color: #065f46;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.eh-hours-vary {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.eh-dot-indicator {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #9ca3af;
    border-radius: 50%;
    margin-right: 8px;
}

/* Card Actions */
.eh-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .eh-card-actions {
        flex-direction: row;
        width: 100%;
    }

    .eh-card-actions a {
        flex: 1;
    }
}

.eh-btn-book {
    display: inline-block;
    background: #16a34a;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.3);
}

.eh-btn-book:hover {
    background: #15803d;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.4);
}

.eh-btn-view {
    display: inline-block;
    color: #2271b1;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.eh-btn-view:hover {
    background: #f3f4f6;
}


/* -------------------------------------------------------------------------- */
/*                                   Category Grid                            */
/* -------------------------------------------------------------------------- */

.eh-category-grid {
    margin-bottom: 40px;
}

.eh-section-title {
    font-size: 26px;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    font-weight: 700;
}

.eh-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.eh-category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.eh-category-card:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.12);
    transform: translateY(-2px);
}

.eh-category-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.eh-category-name {
    font-size: 16px;
    font-weight: 600;
    color: #2271b1;
    line-height: 1.3;
}


/* -------------------------------------------------------------------------- */
/*                                   Search Bar                               */
/* -------------------------------------------------------------------------- */

.eh-search-section {
    margin-bottom: 30px;
}

.eh-search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.eh-search-input-wrapper {
    position: relative;
}

.eh-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #9ca3af;
}

.eh-city-search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.eh-city-search-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
    outline: none;
}

.eh-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.eh-search-result-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.1s;
}

.eh-search-result-item:hover,
.eh-search-result-item.selected {
    background: #f3f4f6;
}

.eh-search-highlight {
    color: #2271b1;
    font-weight: bold;
}


/* -------------------------------------------------------------------------- */
/*                                   CTA & SEO                                */
/* -------------------------------------------------------------------------- */

.eh-cta {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    border-radius: 12px;
    color: white;
    margin-bottom: 40px;
}

.eh-cta-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: white;
    font-weight: 700;
}

.eh-cta-desc {
    font-size: 17px;
    opacity: 0.9;
    margin-left: auto;
    margin-right: auto;
}

.eh-btn-cta {
    display: inline-block;
    background: white;
    color: #2271b1;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.eh-btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.eh-seo-content {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.eh-seo-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

.eh-seo-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}/* FAQ Section */
.eh-faq-section {
    margin-bottom: 40px;
}

.eh-faq-container {
    display: grid;
    gap: 20px;
}

.eh-faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.eh-faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.eh-faq-question {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.eh-faq-answer {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
}

/* Make strong tags in answers pop slightly */
.eh-faq-answer strong {
    color: #1f2937;
    font-weight: 600;
}