/**
 * Single Clinic Page Styles
 * Prefix: scl- (single-clinic)
 * Minimalist premium design for medical website
 */

/* Hero Section */
.scl-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 32px 0 24px;
    border-bottom: 1px solid #e5e7eb;
}

.scl-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
    text-align: center;
}

.scl-hero-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scl-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    text-align: center;
}

.scl-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    justify-content: center;
}

.scl-rating i {
    color: #f59e0b;
    font-size: 18px;
}

.scl-address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #6b7280;
    justify-content: center;
}

.scl-address i {
    color: #7acacd;
    font-size: 14px;
}

.scl-serial {
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-top: 12px;
}

.scl-breadcrumbs {
    justify-content: center;
    margin-top: 16px;
}

/* Main Layout */
.scl-main {
    background: #ffffff;
    padding: 48px 0;
}

.scl-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
}

/* Gallery styles are in custom-styles.css (.single-property-gallery, .img-slide-single, etc.) */

/* Section Navigation */
.scl-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    justify-content: center;
}

.scl-nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.scl-nav-link:hover {
    color: #1a1a1a;
    background: #f8f9fa;
}

.scl-nav-link-active {
    color: #ffffff;
    background: #7acacd;
}

.scl-nav-link-active:hover {
    color: #ffffff;
    background: #6ab9bc;
}

/* Content Sections */
.scl-section {
    padding: 48px 0;
}

.scl-section:first-of-type {
    padding-top: 0;
}

.scl-section-alt {
    background: #f8f9fa;
    padding: 48px 32px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.scl-section-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 24px 0;
}

.scl-section-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0 0 32px 0;
}

.scl-section-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a1a;
}

.scl-section-content p {
    margin-bottom: 16px;
}

.scl-section-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px 0;
}

.scl-section-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px 0;
}

.scl-section-content ul,
.scl-section-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.scl-section-content li {
    margin-bottom: 8px;
}

/* Price Table */
.scl-table-wrap {
    overflow-x: auto;
    margin-bottom: 24px;
}

.scl-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.scl-table thead {
    background: #1a1a1a;
    color: #ffffff;
}

.scl-table th {
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.scl-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.scl-table tbody tr:last-child {
    border-bottom: none;
}

.scl-table tbody tr:hover {
    background: #f8f9fa;
}

.scl-table td {
    padding: 16px;
    font-size: 14px;
    color: #1a1a1a;
}

.scl-table-category td {
    font-weight: 600;
    background: #f8f9fa;
    color: #1a1a1a;
}

.scl-table-service {
    font-weight: 500;
}

.scl-table-price {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-weight: 600;
    color: #7acacd;
}

.scl-note {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
    margin: 0;
}

/* Departments */
.scl-departments {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -12px !important;
}

.scl-departments .department-item {
    padding: 0 12px !important;
    margin-bottom: 24px !important;
}

.scl-departments .department-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 24px !important;
    height: 100% !important;
    transition: all 0.2s ease !important;
}

.scl-departments .department-card:hover {
    border-color: #7acacd;
    box-shadow: 0 4px 12px rgba(122, 202, 205, 0.1);
}

.scl-departments .department-header {
    margin-bottom: 20px;
}

.scl-departments .department-code {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.scl-departments .department-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.scl-departments .department-title a {
    color: #7acacd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.scl-departments .department-title a:hover {
    color: #6ab9bc;
}

.scl-departments .department-doctor-info {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.scl-departments .department-avatar {
    flex-shrink: 0;
}

.scl-departments .department-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f8f9fa;
}

.scl-departments .department-doctor-details {
    flex: 1;
}

.scl-departments .department-head-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.scl-departments .department-doctor-title {
    font-size: 13px;
    color: #6b7280;
}

.scl-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e40af;
}

.scl-alert i {
    font-size: 20px;
}

.scl-loading {
    text-align: center;
    padding: 48px 0;
    color: #6b7280;
}

.scl-loading i {
    font-size: 32px;
    color: #7acacd;
    margin-bottom: 16px;
}

.scl-loading p {
    font-size: 14px;
    margin: 0;
}

.scl-load-more-wrap {
    text-align: center;
    margin-top: 32px;
}

/* Accommodation */
.scl-living-block {
    margin-bottom: 32px;
}

.scl-living-block:last-child {
    margin-bottom: 0;
}

.scl-living-subtitle {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.scl-living-content {
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a1a;
}

.scl-living-content p {
    margin-bottom: 16px;
}

.scl-amenities {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.scl-amenity {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.scl-amenity i {
    color: #7acacd;
    font-size: 18px;
    min-width: 20px;
}

.scl-amenity span {
    font-size: 14px;
    color: #1a1a1a;
}

/* Map */
.scl-map-wrap {
    margin-top: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.scl-map-wrap iframe,
#scl-yandex-map {
    width: 100%;
    height: 400px;
    border: none;
}

/* Sidebar */
.scl-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.scl-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.scl-widget:last-child {
    margin-bottom: 0;
}

.scl-widget-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

.scl-contacts {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.scl-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scl-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 14px;
    color: #1a1a1a;
}

.scl-contact-item:first-child {
    padding-top: 0;
}

.scl-contact-item i {
    color: #7acacd;
    font-size: 16px;
    min-width: 20px;
}

/* Contact Form 7 Styles */
.scl-form h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

.scl-form .wpcf7-form {
    margin: 0;
}

.scl-form .ip-group {
    margin-bottom: 16px;
}

.scl-form .wpcf7-form-control-wrap {
    display: block;
}

.scl-form input[type="text"],
.scl-form input[type="tel"],
.scl-form input[type="email"],
.scl-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.scl-form input[type="text"]:focus,
.scl-form input[type="tel"]:focus,
.scl-form input[type="email"]:focus,
.scl-form textarea:focus {
    outline: none;
    border-color: #7acacd;
}

.scl-form textarea {
    min-height: 100px;
    resize: vertical;
}

.scl-form input::placeholder,
.scl-form textarea::placeholder {
    color: #9ca3af;
}

.scl-form .wpcf7-submit {
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: #7acacd;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.scl-form .wpcf7-submit:hover {
    background: #6ab9bc;
}

.scl-form .wpcf7-submit:active {
    background: #5aa8ab;
}

.scl-form .wpcf7-spinner {
    margin-left: 8px;
}

.scl-form .wpcf7-response-output {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.scl-form .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
}

.scl-form .wpcf7-form-control.wpcf7-not-valid {
    border-color: #ef4444;
}

.scl-form .wpcf7-validation-errors {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.scl-form .wpcf7-mail-sent-ok {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

/* Hide shortcodes in form */
.scl-form form > br {
    display: none;
}

/* Hide visible shortcodes text */
.scl-form .wpcf7-form {
    font-size: 0;
}

.scl-form .wpcf7-form h4,
.scl-form .wpcf7-form .ip-group,
.scl-form .wpcf7-form input,
.scl-form .wpcf7-form textarea,
.scl-form .wpcf7-form .wpcf7-submit,
.scl-form .wpcf7-form .wpcf7-response-output {
    font-size: 14px;
}

.scl-form .wpcf7-form h4 {
    font-size: 18px;
}

.scl-form .wpcf7-submit {
    font-size: 15px;
}

/* Accreditations */
.scl-accreditation {
    margin-bottom: 24px;
}

.scl-accreditation:last-child {
    margin-bottom: 0;
}

.scl-accreditation-logo {
    margin-bottom: 12px;
}

.scl-accreditation-logo img {
    max-width: 120px;
    height: auto;
}

.scl-accreditation-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.scl-accreditation-text {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Related Clinics */
.scl-related {
    padding: 48px 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .scl-layout {
        grid-template-columns: 1fr 320px;
        gap: 32px;
    }

    .scl-section-alt {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .scl-hero {
        padding: 24px 0 16px;
    }

    .scl-hero-content {
        flex-direction: column;
        gap: 16px;
    }

    .scl-title {
        font-size: 24px;
    }

    .scl-serial {
        align-self: flex-start;
    }

    /* Change layout from grid to block on mobile */
    .scl-layout {
        display: block;
    }

    .scl-content {
        margin-bottom: 32px;
    }

    .scl-main {
        padding: 32px 0;
    }

    /* Remove container padding for full-width gallery on mobile */
    .scl-main .container {
        padding-left: 0;
        padding-right: 0;
    }

    /* Gallery full width on mobile with minimal padding */
    .scl-content .single-property-gallery {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        margin-bottom: 32px;
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }

    /* Restore padding for other content */
    .scl-content > *:not(.single-property-gallery) {
        padding-left: 15px;
        padding-right: 15px;
    }

    .scl-sidebar {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Navigation tabs in multiple rows on mobile - minimalist text style */
    .scl-nav {
        flex-wrap: wrap;
        gap: 12px 16px;
        justify-content: center;
        overflow-x: visible;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 24px;
    }

    .scl-nav-link {
        padding: 4px 0;
        font-size: 14px;
        background: transparent;
        border: none;
        border-radius: 0;
        border-bottom: 2px solid transparent;
        color: #6b7280;
        font-weight: 500;
        flex-shrink: 0;
    }

    .scl-nav-link-active {
        background: transparent;
        border-bottom-color: #7acacd;
        color: #1a1a1a;
        font-weight: 600;
    }

    .scl-nav-link:hover {
        background: transparent;
        color: #1a1a1a;
    }

    .scl-section {
        padding: 32px 0;
    }

    .scl-section-alt {
        padding: 24px 16px;
        border-radius: 8px;
    }

    .scl-section-title {
        font-size: 24px;
    }

    .scl-section-content {
        font-size: 15px;
    }

    .scl-section-content h2 {
        font-size: 20px;
    }

    .scl-section-content h3 {
        font-size: 18px;
    }

    .scl-living-subtitle {
        font-size: 20px;
    }

    .scl-amenities {
        grid-template-columns: 1fr;
    }

    .scl-departments {
        margin: 0;
    }

    .scl-departments .department-item {
        padding: 0;
        width: 100%;
    }

    .scl-sidebar {
        position: static;
    }

    .scl-widget {
        padding: 24px;
    }

    .scl-widget-title {
        font-size: 18px;
    }

    .scl-table th,
    .scl-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .scl-title {
        font-size: 20px;
    }

    /* Change layout from grid to block on small mobile */
    .scl-layout {
        display: block;
    }

    .scl-content {
        margin-bottom: 32px;
    }

    /* Remove container padding for full-width gallery on small mobile */
    .scl-main .container {
        padding-left: 0;
        padding-right: 0;
    }

    /* Gallery full width on small mobile with minimal padding */
    .scl-content .single-property-gallery {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        margin-bottom: 24px;
        padding-left: 6px;
        padding-right: 6px;
        box-sizing: border-box;
    }

    /* Restore padding for other content */
    .scl-content > *:not(.single-property-gallery) {
        padding-left: 15px;
        padding-right: 15px;
    }

    .scl-sidebar {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Navigation tabs in multiple rows on small mobile - minimalist text style */
    .scl-nav {
        flex-wrap: wrap;
        gap: 10px 12px;
        justify-content: center;
        overflow-x: visible;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 20px;
    }

    .scl-nav-link {
        padding: 3px 0;
        font-size: 13px;
        background: transparent;
        border: none;
        border-radius: 0;
        border-bottom: 2px solid transparent;
        color: #6b7280;
        font-weight: 500;
        flex-shrink: 0;
    }

    .scl-nav-link-active {
        background: transparent;
        border-bottom-color: #7acacd;
        color: #1a1a1a;
        font-weight: 600;
    }

    .scl-nav-link:hover {
        background: transparent;
        color: #1a1a1a;
    }

    .scl-section-title {
        font-size: 20px;
    }
}
