/* Theme 3: Vintage Infirmary (Retro Vintage) */

body.theme-vintage_infirmary {
    background-color: #f2efe6;
    color: #383227;
    font-family: var(--font-mono);
}

.theme-vintage_infirmary ::selection {
    background-color: rgba(138, 123, 99, 0.3);
    color: #211c14;
}

/* Header */
.theme-vintage_infirmary header {
    background: #eae5d8;
    border-bottom: 2px solid #8a7b63;
    position: sticky;
    top: 0;
    z-index: 100;
}

.theme-vintage_infirmary .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.theme-vintage_infirmary .logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.3rem;
    color: #564f3e;
    text-transform: uppercase;
}

.theme-vintage_infirmary .logo span {
    font-weight: 400;
    text-transform: lowercase;
}

.theme-vintage_infirmary .nav-lang a {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem;
    border: 2px solid #8a7b63;
    color: #564f3e;
}

.theme-vintage_infirmary .nav-lang a.active,
.theme-vintage_infirmary .nav-lang a:hover {
    color: #f2efe6;
    background-color: #8a7b63;
}

/* Banner / Carousel */
.theme-vintage_infirmary .hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-color: #1a1712;
    overflow: hidden;
    border-bottom: 3px double #8a7b63;
}

.theme-vintage_infirmary .carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.theme-vintage_infirmary .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.3s ease;
    z-index: 1;
}

.theme-vintage_infirmary .carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.theme-vintage_infirmary .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.85) contrast(0.9) brightness(0.6);
}

.theme-vintage_infirmary .carousel-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: #eae5d8;
    max-width: 700px;
    text-align: center;
    padding: 2rem;
    background: rgba(26, 23, 18, 0.8);
    border: 1px solid #8a7b63;
    outline: 4px double #8a7b63;
    outline-offset: -8px;
    animation: vintageAppear 1s ease-out forwards;
}

.theme-vintage_infirmary .carousel-overlay h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.theme-vintage_infirmary .carousel-overlay p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.theme-vintage_infirmary .carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 15;
}

.theme-vintage_infirmary .dot {
    width: 12px;
    height: 12px;
    background: transparent;
    border: 2px solid #8a7b63;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.theme-vintage_infirmary .dot.active {
    background: #8a7b63;
}

/* About / Intro */
.theme-vintage_infirmary .intro-section {
    padding: 6rem 0;
    text-align: center;
    background-color: #eae5d8;
    border-bottom: 2px dashed #8a7b63;
}

.theme-vintage_infirmary .intro-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #564f3e;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.theme-vintage_infirmary .intro-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: #383227;
    line-height: 1.8;
}

/* Inquiry Form */
.theme-vintage_infirmary .inquiry-section {
    padding: 6rem 0;
    background-color: #f2efe6;
}

.theme-vintage_infirmary .section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.theme-vintage_infirmary .section-header h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #564f3e;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.theme-vintage_infirmary .section-header p {
    color: #8a7b63;
    font-size: 0.9rem;
}

.theme-vintage_infirmary .form-container {
    max-width: 650px;
    margin: 0 auto;
    background: #eae5d8;
    padding: 3rem;
    border: 2px solid #8a7b63;
}

.theme-vintage_infirmary .form-group input,
.theme-vintage_infirmary .form-group textarea {
    border: 2px solid #8a7b63;
    background: #f2efe6;
    border-radius: 0;
    color: #211c14;
}

.theme-vintage_infirmary .form-group input:focus,
.theme-vintage_infirmary .form-group textarea:focus {
    background: #ffffff;
    border-color: #564f3e;
}

.theme-vintage_infirmary .form-group label {
    color: #8a7b63;
    font-weight: 700;
}

.theme-vintage_infirmary .form-group input:focus ~ label,
.theme-vintage_infirmary .form-group input:not(:placeholder-shown) ~ label,
.theme-vintage_infirmary .form-group textarea:focus ~ label,
.theme-vintage_infirmary .form-group textarea:not(:placeholder-shown) ~ label {
    transform: translateY(-2.2rem) scale(0.85);
    color: #564f3e;
}

.theme-vintage_infirmary button[type="submit"] {
    background-color: #8a7b63;
    color: #f2efe6;
    padding: 1rem 2rem;
    width: 100%;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid #564f3e;
}

.theme-vintage_infirmary button[type="submit"]:hover {
    background-color: #564f3e;
    color: #ffffff;
}

/* Contacts */
.theme-vintage_infirmary .contact-section {
    padding: 6rem 0;
    background-color: #eae5d8;
    border-top: 2px solid #8a7b63;
}

.theme-vintage_infirmary .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.theme-vintage_infirmary .contact-info h2 {
    font-size: 1.9rem;
    color: #564f3e;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.theme-vintage_infirmary .contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.theme-vintage_infirmary .contact-item h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #8a7b63;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.theme-vintage_infirmary .contact-item p,
.theme-vintage_infirmary .contact-item a {
    font-size: 1.05rem;
    font-weight: 700;
}

.theme-vintage_infirmary .contact-item a:hover {
    color: #8a7b63;
    text-decoration: underline;
}

.theme-vintage_infirmary .contact-map {
    background: #f2efe6;
    border: 2px solid #8a7b63;
    padding: 1rem;
}

.theme-vintage_infirmary .map-placeholder {
    height: 100%;
    min-height: 250px;
    background-color: #eae5d8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #564f3e;
    position: relative;
    overflow: hidden;
    border: 1px dashed #8a7b63;
}

.theme-vintage_infirmary .map-placeholder::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(138, 123, 99, 0.03) 20px, rgba(138, 123, 99, 0.03) 40px);
}

.theme-vintage_infirmary .map-placeholder-title {
    font-weight: 700;
    color: #564f3e;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Footer */
.theme-vintage_infirmary footer.main-footer {
    background: #211c14;
    color: #8a7b63;
    padding: 3rem 0;
    text-align: center;
    border-top: 2px solid #8a7b63;
    font-size: 0.85rem;
}

.theme-vintage_infirmary footer.main-footer p {
    margin-bottom: 0.5rem;
}

.theme-vintage_infirmary footer.main-footer a {
    color: #eae5d8;
}

.theme-vintage_infirmary footer.main-footer a:hover {
    color: #8a7b63;
}

/* Form Message */
.theme-vintage_infirmary .form-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
    border: 2px solid;
    font-size: 0.9rem;
}

.theme-vintage_infirmary .form-message.success {
    background-color: #eae5d8;
    color: #27563f;
    border-color: #27563f;
}

.theme-vintage_infirmary .form-message.error {
    background-color: #eae5d8;
    color: #8b2525;
    border-color: #8b2525;
}

/* Animations */
@keyframes vintageAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 768px) {
    .theme-vintage_infirmary .carousel-overlay {
        width: 90%;
        padding: 1rem;
    }
    .theme-vintage_infirmary .carousel-overlay h1 {
        font-size: 1.8rem;
    }
    .theme-vintage_infirmary .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .theme-vintage_infirmary .form-container {
        padding: 1.8rem;
    }
}
