/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 var(--radius-sm) 0;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid white;
    outline-offset: 2px;
}

:root {
    --primary-color: #2C5F41;
    --secondary-color: #4A7C59;
    --accent-color: #6B9F78;
    --text-color: #1a1a1a;
    --text-light: #6b7280;
    --bg-color: #fafafa;
    --section-bg: #ffffff;
    --border-color: #e5e7eb;
    --winter-blue: #3b82f6;
    --summer-green: #10b981;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }
}

/* Language Navigation */
.lang-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 16px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.lang-nav .container {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.lang-link {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.01em;
}

.lang-link:hover,
.lang-link:focus {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.lang-link.active {
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.banner {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Booking Badge */
.booking-badge {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius);
    overflow: hidden;
}

.booking-badge:hover {
    transform: scale(1.05) translateY(-4px);
}

.booking-badge img {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    display: block;
}

/* Main Content */
.main-content {
    padding: 48px 0;
}

.section {
    background-color: var(--section-bg);
    margin: 32px 0;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.section:hover {
    box-shadow: var(--shadow-lg);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--primary-color);
    margin-bottom: 32px;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.02em;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--secondary-color);
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 24px;
    text-align: left;
    color: var(--text-color);
}

.hosts {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(135deg, #ffffff, #f9fafb);
    border-radius: var(--radius);
    flex-wrap: wrap;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.hosts-text {
    flex: 1;
    min-width: 250px;
}

.hosts-greeting {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.hosts-names {
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 500;
}

.hosts-image img {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.hosts-image img:hover {
    transform: scale(1.02);
}

/* Content Blocks */
.content-block {
    margin: 28px 0;
    padding: 24px;
    background: linear-gradient(to right, rgba(107, 159, 120, 0.05), rgba(255, 255, 255, 0.8));
    border-left: 4px solid var(--accent-color);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.content-block:hover {
    background: linear-gradient(to right, rgba(107, 159, 120, 0.08), rgba(255, 255, 255, 0.9));
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.subsection-title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--secondary-color);
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.content-block p {
    margin: 12px 0;
    line-height: 1.75;
    color: var(--text-color);
}

.content-block a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.content-block a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Winter Section */
.winter-section {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-top: 4px solid var(--winter-blue);
}

/* Summer Section */
.summer-section {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-top: 4px solid var(--summer-green);
}

/* Apartment Section */
.apartment-section {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.apartment-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.apartment-text {
    flex: 1;
    min-width: 300px;
}

.apartment-image {
    flex-shrink: 0;
}

.apartment-image img {
    max-width: 300px;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.apartment-image img:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.photos-gallery {
    margin-top: 40px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.apartment-gallery {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.apartment-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 4 / 3;
    background: var(--bg-color);
}

.apartment-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.apartment-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.apartment-gallery-item:hover img {
    transform: scale(1.05);
}

.apartment-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Area Section */
.area-section {
    background: linear-gradient(135deg, #ffffff, #f9fafb);
}

/* Section Images */
.section-image {
    margin-top: 40px;
    text-align: center;
}

.section-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-image img:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    text-align: center;
}

.contact-info {
    font-size: 1.125rem;
    line-height: 2;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    margin: 12px 0;
    color: var(--text-color);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.contact-info a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 48px 0 32px;
    margin-top: 64px;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.01em;
}

.footer-nav a:hover,
.footer-nav a:focus {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Contact Info in Footer */
.footer .contact-info {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 0;
}

.footer .contact-info .section-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.25);
    margin-bottom: 20px;
    padding-bottom: 12px;
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 600;
}

.footer .contact-info p {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer .contact-info p strong {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.footer .contact-info a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 1px;
}

.footer .contact-info a:hover,
.footer .contact-info a:focus {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.15);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    margin: -2px -6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 32px 0;
    }

    .section {
        padding: 32px 24px;
        margin: 24px 0;
    }

    .hosts {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .apartment-content {
        flex-direction: column;
        gap: 24px;
    }

    .apartment-image {
        text-align: center;
    }

    .apartment-image img {
        max-width: 100%;
    }

    .apartment-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
        padding: 20px;
    }

    .lang-nav .container {
        justify-content: center;
    }

    .booking-badge {
        right: 16px;
        bottom: 16px;
    }

    .booking-badge img {
        height: 90px;
    }

    .content-block {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 24px 16px;
        margin: 20px 0;
    }

    .footer {
        padding: 32px 0 24px;
    }

    .footer .container {
        gap: 24px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 8px;
        padding-bottom: 20px;
    }

    .footer-nav a {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
    }

    .footer .contact-info {
        font-size: 0.875rem;
    }

    .footer .contact-info p {
        font-size: 0.875rem;
        margin: 8px 0;
    }

    .footer .contact-info p strong {
        font-size: 0.9375rem;
    }

    .footer .contact-info .section-title {
        margin-bottom: 16px;
        padding-bottom: 10px;
        font-size: 1.25rem;
    }

    .booking-badge img {
        height: 70px;
    }

    .header {
        padding: 24px 0;
    }

    .apartment-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background-color: var(--accent-color);
    color: white;
}

::-moz-selection {
    background-color: var(--accent-color);
    color: white;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Ensure focus is visible on all interactive elements */
.lang-link:focus-visible,
.footer-nav a:focus-visible,
.content-block a:focus-visible,
.contact-info a:focus-visible {
    outline: 3px solid white;
    outline-offset: 2px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-color: #000000;
        --text-light: #333333;
        --border-color: #000000;
    }
    
    .section {
        border: 2px solid var(--border-color);
    }
    
    a {
        text-decoration: underline;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .lang-nav,
    .booking-badge,
    .footer {
        display: none;
    }

    .section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

