/*
Theme Name: Astra Child
Description: Child theme for Astra
Author: Your Name
Template: astra
Version: 1.0.0
*/

/* Import parent theme styles */
@import url("../astra/style.css");

/* Your custom styles start here */

/* Rehab Center Directory Styles - IMPROVED */
.rehab-directory {
    margin: 20px 0;
}

.rehab-filters {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 220px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* FIXED: Better select dropdown styling */
.filter-group select,
.filter-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.3s;
    line-height: 1.4;
    height: auto;
    min-height: 44px; /* Ensure adequate height */
    box-sizing: border-box;
}

/* FIXED: Ensure select options are fully visible */
.filter-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 35px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* FIXED: Better button styling and positioning */
.filter-buttons {
    display: flex;
    gap: 10px;
    align-items: end;
    min-width: 200px;
}

/* REMOVED: Filter button since we're doing auto-filtering */
.btn-reset {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #6c757d;
    color: white;
    width: 100%;
}

.btn-reset:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

/* Loading state for dropdowns */
.filter-group select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Results Count */
.results-count {
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #e8f4f8;
    border-left: 4px solid #0073aa;
    font-weight: 600;
    color: #0073aa;
    border-radius: 0 6px 6px 0;
}

/* Rehab Center Cards - IMPROVED GRID */
.rehab-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Always 3 equal columns */
    gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .rehab-results {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .rehab-results {
        grid-template-columns: 1fr; /* 1 column on mobile */
        gap: 15px;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-buttons {
        min-width: 100%;
    }
}

.rehab-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.rehab-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    border-color: #0073aa;
}

.rehab-card-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.rehab-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.rehab-card-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    height: 220px;
    text-align: center;
}

.rehab-card-placeholder .dashicons {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.rehab-card-content {
    padding: 25px;
}

.rehab-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.rehab-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.rehab-card-title a:hover {
    color: #0073aa;
}

.rehab-card-location {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.rehab-card-location .dashicons {
    color: #0073aa;
    font-size: 16px;
}

.rehab-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 6px;
    border-left: 3px solid #ffa500;
}

.star-rating {
    color: #ffa500;
    font-size: 18px;
    font-weight: bold;
}

.rating-text {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.rehab-card-phone {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rehab-card-phone .dashicons {
    color: #28a745;
    font-size: 16px;
}

.rehab-card-phone a {
    color: #28a745;
    text-decoration: none;
    font-weight: 600;
}

.rehab-card-phone a:hover {
    text-decoration: underline;
}

.rehab-card-footer {
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.btn-view-details {
    background-color: #0073aa;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
    display: block;
}

.btn-view-details:hover {
    background-color: #005a87;
    color: white;
    transform: translateY(-1px);
}

/* Map Improvements */
.rehab-map-container {
    margin: 30px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.rehab-map-container h3 {
    margin: 0;
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.rehab-map {
    width: 100%;
    height: 500px;
    display: block;
}

/* Single Rehab Center Page */
.single-rehab-header {
    background: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 30px;
}

.single-rehab-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

.single-rehab-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.single-rehab-address {
    font-size: 16px;
    color: #666;
}

.single-rehab-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.rehab-main-content {
    /* Main content styles */
}

.rehab-sidebar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

.rehab-info-box {
    margin-bottom: 20px;
}

.rehab-info-box h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.rehab-info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.rehab-info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #333;
}

.info-value {
    color: #666;
}

/* Map Styles */
.rehab-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin: 20px 0;
}

.single-rehab-map {
    height: 300px;
}

.multiple-rehab-map {
    height: 500px;
}

/* Info Window Styles */
.rehab-info-window {
    max-width: 250px;
}

.rehab-info-window h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.rehab-info-window h4 a {
    color: #0073aa;
    text-decoration: none;
}

.rehab-info-window p {
    margin: 5px 0;
    font-size: 14px;
}

.rehab-info-window .button {
    background-color: #0073aa;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    display: inline-block;
    margin-top: 5px;
}

/* Pagination */
.rehab-pagination {
    text-align: center;
    margin: 30px 0;
}

.rehab-pagination a,
.rehab-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
}

.rehab-pagination a:hover,
.rehab-pagination .current {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Archive Page Styles */
.archive-header {
    background: #f8f9fa;
    padding: 40px 0;
    margin-bottom: 30px;
    text-align: center;
}

.archive-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.archive-description {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Action Buttons */
.btn-action {
    display: block;
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 10px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-action:hover {
    background-color: #005a87;
    color: white;
}

.btn-action .dashicons {
    margin-right: 5px;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.btn-call { background-color: #28a745; }
.btn-call:hover { background-color: #218838; }

.btn-website { background-color: #6f42c1; }
.btn-website:hover { background-color: #5a32a3; }

.btn-directions { background-color: #fd7e14; }
.btn-directions:hover { background-color: #e06b00; }

.btn-back { background-color: #6c757d; }
.btn-back:hover { background-color: #545b62; }

/* Breadcrumb */
.rehab-breadcrumb {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.rehab-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

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

/* Featured Image */
.rehab-featured-image {
    margin-bottom: 30px;
}

.rehab-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Error state */
.error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

/* Enhanced Single Rehab Center Page Styles */

/* Navigation */
.single-rehab-navigation {
    margin-bottom: 20px;
}

.btn-back-directory {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid #dee2e6;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-back-directory:hover {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
    transform: translateX(-3px);
}

.btn-back-directory .dashicons {
    font-size: 16px;
}

/* UPDATED: Compact Hero Section - Reduced Height */
.single-rehab-hero-compact {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 280px; /* Reduced from 400px */
}

.hero-image-section-compact {
    position: relative;
    overflow: hidden;
}

.hero-image-container-compact {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px; /* Reduced from 400px */
}

.hero-image-compact {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,115,170,0.1) 0%, rgba(0,0,0,0.1) 100%);
}

.hero-placeholder-compact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 16px;
    height: 100%;
    min-height: 280px; /* Reduced from 400px */
}

.hero-placeholder-compact .dashicons {
    font-size: 60px; /* Reduced from 80px */
    margin-bottom: 15px;
    opacity: 0.6;
}

.hero-content-compact {
    padding: 30px; /* Reduced from 40px */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.hero-header {
    flex: 1;
}

.rehab-title {
    font-size: 28px; /* Reduced from 32px */
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px; /* Reduced from 20px */
    line-height: 1.2;
}

.hero-rating {
    margin-bottom: 15px; /* Reduced from 20px */
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced from 10px */
    margin-bottom: 6px; /* Reduced from 8px */
}

.rating-value {
    font-size: 18px; /* Reduced from 20px */
    font-weight: 600;
    color: #212529;
}

.review-count {
    color: #6c757d;
    font-size: 13px; /* Reduced from 14px */
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced from 8px */
    color: #495057;
    font-size: 14px; /* Reduced from 16px */
    margin-bottom: 15px; /* Reduced from 20px */
    padding: 10px 14px; /* Reduced from 12px 16px */
    background: white;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.hero-location .dashicons {
    color: #0073aa;
    font-size: 16px; /* Reduced from 18px */
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px; /* Reduced from 6px */
    background: #0073aa;
    color: white;
    padding: 6px 14px; /* Reduced from 8px 16px */
    border-radius: 18px; /* Reduced from 20px */
    font-size: 13px; /* Reduced from 14px */
    font-weight: 500;
    margin-bottom: 20px; /* Reduced from 30px */
}

.category-badge .dashicons {
    font-size: 14px; /* Reduced from 16px */
}

.hero-actions {
    display: flex;
    gap: 10px; /* Reduced from 12px */
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Reduced from 8px */
    padding: 10px 16px; /* Reduced from 12px 20px */
    border-radius: 6px; /* Reduced from 8px */
    text-decoration: none;
    font-weight: 600;
    font-size: 13px; /* Reduced from 14px */
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-call {
    background-color: #28a745;
    color: white;
}

.btn-call:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40,167,69,0.3);
    color: white;
}

.btn-website {
    background-color: #6f42c1;
    color: white;
}

.btn-website:hover {
    background-color: #5a32a3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(111,66,193,0.3);
    color: white;
}

.btn-directions {
    background-color: #fd7e14;
    color: white;
}

.btn-directions:hover {
    background-color: #e06b00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253,126,20,0.3);
    color: white;
}

/* Content Grid */
.single-rehab-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Main Content */
.main-content-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0073aa;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .dashicons {
    color: #0073aa;
    font-size: 24px;
}

.section-content {
    color: #495057;
    line-height: 1.7;
}

.rehab-description {
    font-size: 16px;
    margin-bottom: 20px;
}

.additional-info h3 {
    color: #212529;
    font-size: 18px;
    margin-bottom: 15px;
    margin-top: 25px;
}

.no-description {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.details-column {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #0073aa;
}

.details-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-title .dashicons {
    color: #0073aa;
    font-size: 20px;
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #495057;
    min-width: 100px;
}

.detail-value {
    color: #212529;
    text-align: right;
}

.detail-value a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.detail-value a:hover {
    text-decoration: underline;
}

/* Map Section */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.map-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #dee2e6;
}

.btn-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.btn-map-link:hover {
    text-decoration: underline;
}

/* Sidebar */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f8f9fa;
}

.card-title .dashicons {
    color: #0073aa;
    font-size: 20px;
}

.card-content {
    color: #495057;
}

/* Contact Card */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f8f9fa;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    color: #0073aa;
    font-size: 20px;
    margin-top: 2px;
}

.contact-details {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-value {
    display: block;
    font-size: 15px;
    color: #212529;
    font-weight: 500;
}

.phone-link {
    color: #28a745;
    text-decoration: none;
    font-weight: 600;
}

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

.website-link {
    color: #6f42c1;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.website-link:hover {
    text-decoration: underline;
}

.address-text,
.hours-text {
    line-height: 1.4;
}

/* Rating Card */
.rating-display {
    text-align: center;
}

.rating-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: #ffa500;
    line-height: 1;
}

.rating-stars-large {
    font-size: 28px;
    color: #ffa500;
}

.rating-meta {
    padding-top: 15px;
    border-top: 1px solid #f8f9fa;
}

.review-count-text {
    color: #6c757d;
    font-size: 14px;
}

/* Actions Card */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
}

.sidebar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sidebar-btn.btn-call {
    background-color: #28a745;
    color: white;
}

.sidebar-btn.btn-call:hover {
    background-color: #218838;
    color: white;
}

.sidebar-btn.btn-website {
    background-color: #6f42c1;
    color: white;
}

.sidebar-btn.btn-website:hover {
    background-color: #5a32a3;
    color: white;
}

.sidebar-btn.btn-directions {
    background-color: #fd7e14;
    color: white;
}

.sidebar-btn.btn-directions:hover {
    background-color: #e06b00;
    color: white;
}

.sidebar-btn.btn-back {
    background-color: #6c757d;
    color: white;
}

.sidebar-btn.btn-back:hover {
    background-color: #545b62;
    color: white;
}

/* Breadcrumb Card */
.breadcrumb-trail {
    font-size: 14px;
    line-height: 1.6;
}

.breadcrumb-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

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

.breadcrumb-separator {
    margin: 0 8px;
    color: #6c757d;
    font-weight: bold;
}

.breadcrumb-current {
    color: #212529;
    font-weight: 600;
}

/* NEW: Related Centers Section Styles */
.related-centers-section {
    margin-top: 30px;
}

.related-centers-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.related-group {
    border-top: 2px solid #f8f9fa;
    padding-top: 25px;
}

.related-group:first-child {
    border-top: none;
    padding-top: 0;
}

.related-group-title {
    font-size: 20px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    position: relative;
}

.related-group-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #0073aa;
}

.related-centers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.related-center-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.related-center-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #0073aa;
}

.related-card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.related-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-center-card:hover .related-card-img {
    transform: scale(1.05);
}

.related-card-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    height: 160px;
}

.related-card-placeholder .dashicons {
    font-size: 40px;
    opacity: 0.5;
}

.related-card-content {
    padding: 20px;
}

.related-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.related-card-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-card-title a:hover {
    color: #0073aa;
}

.related-card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 10px;
}

.related-card-location .dashicons {
    color: #0073aa;
    font-size: 14px;
}

.related-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.related-card-rating .star-rating {
    color: #ffa500;
    font-size: 16px;
}

.related-card-rating .rating-text {
    color: #666;
    font-size: 13px;
    font-weight: 600;
}

.related-card-phone {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 15px;
}

.related-card-phone .dashicons {
    color: #28a745;
    font-size: 14px;
}

.related-card-phone a {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
}

.related-card-phone a:hover {
    text-decoration: underline;
}

.related-card-footer {
    border-top: 1px solid #f8f9fa;
    padding-top: 15px;
}

.btn-view-center {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 15px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-center:hover {
    background-color: #005a87;
    color: white;
    transform: translateY(-1px);
}

.related-group-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f8f9fa;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid #dee2e6;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-view-more:hover {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.3);
}

/* Enhanced Responsive Design for Single Page */
@media (max-width: 1200px) {
    .single-rehab-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar-column {
        order: -1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .related-centers-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .single-rehab-hero-compact {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .hero-image-container-compact {
        min-height: 200px;
    }
    
    .hero-content-compact {
        padding: 25px 20px;
    }
    
    .rehab-title {
        font-size: 22px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn-action {
        justify-content: center;
        width: 100%;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .details-column {
        padding: 20px;
    }
    
    .sidebar-card {
        padding: 20px;
    }
    
    .sidebar-column {
        grid-template-columns: 1fr;
    }
    
    .rating-number {
        font-size: 36px;
    }
    
    .rating-stars-large {
        font-size: 24px;
    }
    
    /* Related centers mobile */
    .related-centers-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-centers-container {
        gap: 30px;
    }
    
    .related-group-title {
        font-size: 18px;
    }
    
    .related-card-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .hero-content-compact {
        padding: 20px 15px;
    }
    
    .rehab-title {
        font-size: 20px;
    }
    
    .content-section {
        padding: 15px;
    }
    
    .sidebar-card {
        padding: 15px;
    }
    
    .details-column {
        padding: 15px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .contact-item {
        padding: 12px 0;
    }
    
    .related-group-title {
        font-size: 16px;
    }
    
    .related-card-title {
        font-size: 15px;
    }
}

/* Animation for page load */
.single-rehab-hero-compact,
.content-section,
.sidebar-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delays */
.single-rehab-hero-compact {
    animation-delay: 0.1s;
}

.content-section:nth-child(1) {
    animation-delay: 0.2s;
}

.content-section:nth-child(2) {
    animation-delay: 0.3s;
}

.content-section:nth-child(3) {
    animation-delay: 0.4s;
}

.sidebar-card:nth-child(1) {
    animation-delay: 0.2s;
}

.sidebar-card:nth-child(2) {
    animation-delay: 0.3s;
}

.sidebar-card:nth-child(3) {
    animation-delay: 0.4s;
}

.sidebar-card:nth-child(4) {
    animation-delay: 0.5s;
}

/* Print styles */
@media print {
    .single-rehab-navigation,
    .hero-actions,
    .sidebar-card.actions-card,
    .btn-map-link {
        display: none !important;
    }
    
    .single-rehab-hero-compact {
        grid-template-columns: 1fr;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .single-rehab-content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-section,
    .sidebar-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* NEW: Fixed Height Archive Cards - Add this entire section */

/* Enhanced rehab card with fixed height layout */
.rehab-card-fixed-height {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%; /* Full height of grid cell */
}

.rehab-card-fixed-height:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    border-color: #0073aa;
}

/* Image section - fixed height */
.rehab-card-fixed-height .rehab-card-image-container {
    width: 100%;
    height: 200px; /* Fixed height for all images */
    overflow: hidden;
    position: relative;
    flex-shrink: 0; /* Don't shrink */
}

.rehab-card-fixed-height .rehab-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.rehab-card-fixed-height:hover .rehab-card-image {
    transform: scale(1.05);
}

.rehab-card-fixed-height .rehab-card-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    height: 200px;
    text-align: center;
}

.rehab-card-fixed-height .rehab-card-placeholder .dashicons {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.6;
}

/* Content section with flexbox layout */
.rehab-card-content-fixed {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1; /* Take remaining space */
    min-height: 0; /* Allow shrinking */
}

/* Title section - fixed space */
.rehab-card-title-section {
    margin-bottom: 15px;
    min-height: 60px; /* Reserve space for 2-3 lines of title */
    display: flex;
    align-items: flex-start;
}

.rehab-card-fixed-height .rehab-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Max 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rehab-card-fixed-height .rehab-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.rehab-card-fixed-height .rehab-card-title a:hover {
    color: #0073aa;
}

/* Info section - flexible space */
.rehab-card-info-section {
    flex: 1; /* Take available space */
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* Location styling */
.rehab-card-fixed-height .rehab-card-location {
    font-size: 14px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.rehab-card-fixed-height .rehab-card-location .dashicons {
    color: #0073aa;
    font-size: 16px;
    flex-shrink: 0;
}

/* Rating styling */
.rehab-card-fixed-height .rehab-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 6px;
    border-left: 3px solid #ffa500;
}

.rehab-card-fixed-height .star-rating {
    color: #ffa500;
    font-size: 16px;
    font-weight: bold;
}

.rehab-card-fixed-height .rating-text {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

/* Footer section - always at bottom */
.rehab-card-footer-fixed {
    margin-top: auto; /* Push to bottom */
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.rehab-card-fixed-height .btn-view-details {
    background-color: #0073aa;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
    display: block;
}

.rehab-card-fixed-height .btn-view-details:hover {
    background-color: #005a87;
    color: white;
    transform: translateY(-1px);
}

/* Grid adjustments for equal heights */
.rehab-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
    align-items: stretch; /* Equal heights */
}

/* AJAX results compatibility */
.rehab-results .rehab-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rehab-results .rehab-card .rehab-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rehab-results .rehab-card .rehab-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .rehab-results {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .rehab-card-title-section {
        min-height: 50px;
    }
    
    .rehab-card-fixed-height .rehab-card-title {
        font-size: 17px;
    }
}

@media (max-width: 600px) {
    .rehab-results {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .rehab-card-content-fixed {
        padding: 18px;
    }
    
    .rehab-card-title-section {
        min-height: 45px;
    }
    
    .rehab-card-fixed-height .rehab-card-title {
        font-size: 16px;
    }
    
    .rehab-card-fixed-height .rehab-card-image-container {
        height: 180px;
    }
    
    .rehab-card-fixed-height .rehab-card-image,
    .rehab-card-fixed-height .rehab-card-placeholder {
        height: 180px;
    }
}