/* Clinic Page Styles */

.clinic-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.clinic-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    background-color: var(--bg-color);
}

.clinic-header h1 {
    font-size: 2.5em;
    color: var(--heading-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.intro {
    font-size: 1.1em;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

section {
    margin: 40px 0;
    padding: 30px;
    background: var(--panel-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

section h2 {
    font-size: 2em;
    color: var(--link-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    font-weight: 600;
}

.contact-info {
    background: var(--panel-bg);
}

.contact-details {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
}

.contact-details p {
    margin: 10px 0;
    color: var(--text-color);
}

.contact-details strong {
    color: var(--heading-color);
    font-weight: 600;
}

.contact-details a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
    color: var(--link-hover);
}

.opening-hours {
    background: var(--panel-bg);
}

.clinics-grid, .doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.clinic-card, .doctor-card {
    background: var(--panel-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid var(--link-color);
    border: 1px solid var(--border-color);
}

.clinic-card:hover, .doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.clinic-card h3, .doctor-card h3 {
    font-size: 1.5em;
    color: var(--heading-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.specialization {
    color: var(--link-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.doctor-contact {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
}

.doctor-contact p {
    margin: 5px 0;
    color: var(--text-color);
}

.doctor-contact strong {
    color: var(--heading-color);
}

.doctor-contact a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
}

.doctor-contact a:hover {
    text-decoration: underline;
    color: var(--link-hover);
}

/* Rich text content styling */
.clinic-card .rich-text,
.doctor-card .rich-text,
.opening-hours .rich-text,
.intro .rich-text {
    line-height: 1.6;
    color: var(--text-color);
}

.clinic-card .rich-text p,
.doctor-card .rich-text p {
    margin: 10px 0;
    color: var(--text-color);
}

.clinic-card .rich-text ul,
.doctor-card .rich-text ul {
    margin: 10px 0;
    padding-left: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .clinic-page {
        padding: 15px;
    }
    
    .clinic-header h1 {
        font-size: 2em;
    }
    
    .clinics-grid, .doctors-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 20px;
        margin: 20px 0;
    }
    
    section h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .clinic-header h1 {
        font-size: 1.5em;
    }
    
    .intro {
        font-size: 1em;
    }
    
    .contact-details {
        font-size: 1em;
    }
    
    .clinic-card, .doctor-card {
        padding: 15px;
    }
}

/* Mapa i kontakt */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.contact-details {
    background-color: var(--panel-bg);
    color: var(--text-color);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.map-container iframe {
    display: block;
}

/* Godziny otwarcia w karcie poradni */
.clinic-hours {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.clinic-hours h4 {
    font-size: 1.1em;
    color: var(--heading-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.hours-table tr {
    border-bottom: 1px solid var(--border-color);
}

.hours-table tr:last-child {
    border-bottom: none;
}

.hours-table td {
    padding: 8px 0;
    color: var(--text-color);
}

.day-name {
    font-weight: 600;
    color: var(--text-color);
    width: 40%;
}

.hours-time {
    color: var(--link-color);
    font-weight: 500;
}

.closed {
    color: var(--text-color);
    font-style: italic;
    opacity: 0.7;
}

.clinic-address {
    margin-top: 15px;
    padding: 10px;
    background: var(--bg-color);
    border-radius: 4px;
    font-size: 0.95em;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.clinic-map {
    margin-top: 15px;
}

.map-link {
    display: inline-block;
    padding: 8px 15px;
    background: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.2s;
}

.map-link:hover {
    background: var(--button-hover);
}

/* Clinic Doctors Styles */
.clinic-doctors {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.clinic-doctors h4 {
    font-size: 1.1em;
    color: var(--heading-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.doctors-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doctor-item {
    padding: 10px;
    background: var(--bg-color);
    border-radius: 4px;
    border-left: 3px solid var(--link-color);
    border: 1px solid var(--border-color);
}

.doctor-item strong {
    display: block;
    color: var(--heading-color);
    font-size: 1em;
    margin-bottom: 5px;
}

.doctor-spec {
    display: inline-block;
    color: var(--link-color);
    font-size: 0.9em;
    margin-right: 10px;
}

.doctor-phone {
    display: inline-block;
    color: var(--text-color);
    font-size: 0.85em;
}

/* Responsywność mapy */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .map-container {
        order: 2;
    }
    
    .map-container iframe {
        height: 250px;
    }
}
