/* Rehab Center Detail Styles */
.rehab-hero {
    background: linear-gradient(rgba(26, 82, 118, 0.8), rgba(26, 82, 118, 0.9)), url('../images/rehab-center-hero.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
    color: var(--white);
    margin-bottom: 2rem;
}

.rehab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: var(--white);
    flex-wrap: wrap;
}

.rehab-title h1 {
    margin-bottom: 0.5rem;
    color: var(--white);
    font-size: 2.5rem;
}

.rehab-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.rehab-location i {
    color: var(--secondary-color);
}

.rehab-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.rehab-rating .stars {
    color: var(--warning);
}

.rehab-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-save, .btn-share {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn-save:hover, .btn-share:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.btn-save.saved {
    background-color: var(--accent-color);
}

/* Rehab Gallery */
.rehab-gallery {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.gallery-main {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    cursor: zoom-in;
}

.gallery-thumbs {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.gallery-thumbs a {
    flex: 0 0 150px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-thumbs img:hover {
    transform: scale(1.05);
}

.btn-view-all {
    background-color: var(--white);
    border: 1px solid var(--gray);
    color: var(--text-color);
    padding: 0 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 100px;
    transition: var(--transition);
}

.btn-view-all:hover {
    background-color: var(--light-color);
}

/* Main Content Layout */
.rehab-center-container {
    padding: 2rem 0;
}

.rehab-center-layout {
    display: flex;
    gap: 2rem;
}

.rehab-content {
    flex: 1;
    min-width: 0; /* Fixes flexbox overflow issues */
}

.booking-sidebar {
    flex: 0 0 350px;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.rehab-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray);
}

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

.rehab-section h2 {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.rehab-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.rehab-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.rehab-badge {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--white);
}

.rehab-badge.premium {
    background-color: var(--primary-color);
}

.rehab-badge.accredited {
    background-color: var(--success);
}

.rehab-badge.verified {
    background-color: var(--info);
}

.highlight-box {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.highlight-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.highlight-item:last-child {
    margin-bottom: 0;
}

.highlight-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.highlight-item h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Programs */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.program-card {
    background-color: var(--white);
    border: 1px solid var(--gray);
    border-radius: 8px;
    padding: 1.5rem;
    transition: var(--transition);
    height: 100%;
}

.program-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

.program-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.program-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.program-duration {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--light-color);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Therapies */
.therapies-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.therapy-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: var(--light-color);
    border-radius: 4px;
}

.therapy-item i {
    color: var(--success);
    font-size: 0.9rem;
}

/* Amenities */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: 4px;
    text-align: center;
}

.amenity-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.amenity-item span {
    font-size: 0.9rem;
}

/* Reviews */
.reviews-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.overall-rating {
    text-align: center;
    min-width: 100px;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
}

.rating-stars {
    font-size: 1.2rem;
    color: var(--warning);
    margin: 0.5rem 0;
}

.rating-count {
    font-size: 0.9rem;
    color: var(--text-light);
}

.rating-bars {
    flex: 1;
    min-width: 250px;
}

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

.bar-container {
    flex: 1;
    height: 8px;
    background-color: var(--gray);
    border-radius: 4px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background-color: var(--warning);
}

.review-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.review-card {
    background-color: var(--white);
    border: 1px solid var(--gray);
    border-radius: 8px;
    padding: 1.5rem;
}

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

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.reviewer-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.review-rating {
    color: var(--warning);
    font-size: 0.9rem;
}

.review-content h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.btn-view-all-reviews {
    background-color: var(--white);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    margin: 0 auto;
}

.btn-view-all-reviews:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Location */
.location-map {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray);
}

#rehab-location-map {
    height: 100%;
    width: 100%;
}

.location-address {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.location-address h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.location-address p {
    margin-bottom: 1.5rem;
}

/* FAQ */
.faq-accordion {
    border: 1px solid var(--gray);
    border-radius: 8px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--gray);
}

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

.faq-question {
    width: 100%;
    background-color: var(--white);
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--light-color);
}

.faq-question i {
    transition: var(--transition);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--light-color);
}

.faq-answer p {
    padding: 1.5rem 0;
}

/* Booking Sidebar */
.booking-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.booking-header {
    padding: 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
}

.booking-header h3 {
    margin-bottom: 0.5rem;
    color: var(--white);
    font-size: 1.3rem;
}

.booking-price {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.booking-price .price {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.booking-price .duration {
    font-size: 1rem;
    opacity: 0.8;
    padding-bottom: 0.2rem;
}

.booking-form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
}

.price-summary {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.price-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.btn-check-availability {
    width: 100%;
    background-color: var(--white);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-check-availability:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-book-now {
    width: 100%;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-book-now:hover {
    background-color: #d14215;
}

.booking-assurance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

.booking-assurance i {
    color: var(--success);
}

.booking-contact {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--gray);
}

.booking-contact h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.booking-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 1rem 0;
    color: var(--primary-color);
}

.btn-contact {
    background-color: var(--white);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-contact:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.insurance-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    text-align: center;
}

.insurance-card h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.insurance-logos {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.insurance-logos img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.insurance-logos img:hover {
    filter: grayscale(0);
    opacity: 1;
}

.insurance-card p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.btn-verify-insurance {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-verify-insurance:hover {
    background-color: var(--dark-color);
}

/* Similar Centers */
.similar-centers {
    padding: 3rem 0 5rem;
    background-color: var(--light-color);
}

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

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.centers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.center-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.center-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.center-image {
    height: 200px;
    position: relative;
}

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

.center-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--white);
}

.center-badge.affordable {
    background-color: var(--success);
}

.center-badge.luxury {
    background-color: var(--accent-color);
}

.center-badge.faith {
    background-color: var(--info);
}

.center-details {
    padding: 1.5rem;
}

.center-details h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.center-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.center-location i {
    color: var(--primary-color);
}

.center-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.center-rating .stars {
    color: var(--warning);
}

.center-price {
    margin: 1rem 0;
}

.center-price .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.center-price .duration {
    font-size: 0.9rem;
    color: var(--text-light);
}

.btn-view-center {
    display: block;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-view-center:hover {
    background-color: var(--dark-color);
}

/* Need Help Section */
.need-help-section {
    padding: 0 0 5rem;
}

.help-card {
    display: flex;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.help-content {
    flex: 1;
    padding: 3rem;
}

.help-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.help-contacts {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.contact-method h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.help-image {
    flex: 1;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .rehab-center-layout {
        flex-direction: column;
    }
    
    .booking-sidebar {
        flex: auto;
        order: -1;
        margin-bottom: 3rem;
        position: static;
    }
    
    .gallery-main {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .rehab-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .rehab-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .gallery-main {
        height: 300px;
    }
    
    .gallery-thumbs a {
        flex: 0 0 120px;
        height: 80px;
    }
    
    .btn-view-all {
        height: 80px;
    }
    
    .help-card {
        flex-direction: column;
    }
    
    .help-image {
        order: -1;
        height: 250px;
    }
}

@media (max-width: 576px) {
    .rehab-hero {
        padding: 2rem 0;
    }
    
    .rehab-title h1 {
        font-size: 2rem;
    }
    
    .gallery-main {
        height: 250px;
    }
    
    .highlight-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .review-cards {
        grid-template-columns: 1fr;
    }
    
    .reviews-summary {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rating-bars {
        width: 100%;
    }
}