/* Gemeinsames CSS für alle Hochzeitsseiten */

/* === EINHEITLICHES FARBSCHEMA === */
/* 
Primary Colors (Warme Beigetöne):
- Sehr hell: #FEFBF6 (Background)
- Hell: #F5E6D3 (Cards, Light Elements)
- Medium: #D4B896 (Buttons, Accents)
- Dunkel: #A68B5B (Borders, Secondary)

Text Colors:
- Dunkelbraun: #3D2F1F (Primary Text)
- Mittelbraun: #5A4A3B (Secondary Text)
- Hell: #F5E6D3 (Text on Dark)

Accent Colors:
- Warm Orange: #E8A87C (Icons)
- Soft Green: #A8C09A (Icons)
- Muted Pink: #E8B4B8 (Icons)
*/

/* RSVP Success Modal */
.rsvp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 47, 31, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.rsvp-modal.show {
    opacity: 1;
    visibility: visible;
}

.rsvp-modal-content {
    background: linear-gradient(135deg, #F5E6D3, #FEFBF6);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(61, 47, 31, 0.3);
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
    border: 2px solid #D4B896;
}

.rsvp-modal.show .rsvp-modal-content {
    transform: translateY(0);
}

.rsvp-modal-content .success-icon {
    font-size: 4rem;
    color: #A8C09A;
    margin-bottom: 1.5rem;
    animation: bounceIn 0.8s ease;
}

.rsvp-modal-content h3 {
    font-size: 2rem;
    color: #3D2F1F;
    margin-bottom: 1rem;
    font-weight: 300;
}

.rsvp-modal-content p {
    font-size: 1.2rem;
    color: #5A4A3B;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.rsvp-modal-content .close-modal {
    background: linear-gradient(45deg, #D4B896, #A68B5B);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 24px rgba(212, 184, 150, 0.3);
}

.rsvp-modal-content .close-modal:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(212, 184, 150, 0.4);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Booking Modal */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Cover entire viewport including URL bar */
    background: rgba(61, 47, 31, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    overflow: hidden; /* Prevent any overflow */
    padding: 0;
    margin: 0;
}

.booking-modal.show {
    opacity: 1;
    visibility: visible;
}

.booking-modal-content {
    background: linear-gradient(135deg, #F5E6D3, #FEFBF6);
    padding: 2rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(61, 47, 31, 0.3);
    max-width: 800px;
    width: 90%;
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
    border: 2px solid #D4B896;
    margin: auto;
    max-height: 90vh;
    overflow-y: auto;
    padding-right: 2rem;
}

/* Custom scrollbar styling for booking modal */
.booking-modal-content::-webkit-scrollbar {
    width: 8px;
}

.booking-modal-content::-webkit-scrollbar-track {
    background: rgba(212, 184, 150, 0.1);
    border-radius: 10px;
}

.booking-modal-content::-webkit-scrollbar-thumb {
    background: rgba(212, 184, 150, 0.6);
    border-radius: 10px;
}

.booking-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 184, 150, 0.8);
}

/* Firefox scrollbar styling */
.booking-modal-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 184, 150, 0.6) rgba(212, 184, 150, 0.1);
}

.booking-modal.show .booking-modal-content {
    transform: translateY(0);
}

.booking-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #D4B896;
}

.booking-modal-header h2 {
    margin: 0;
    color: #3D2F1F;
    font-size: 1.8rem;
}

.booking-modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #A68B5B;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.booking-modal-close:hover {
    background: rgba(166, 139, 91, 0.1);
    color: #3D2F1F;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .booking-modal {
        padding: 1rem 0;
    }

    .booking-modal-content {
        width: 95%;
        padding: 1.5rem;
        padding-right: 2rem;
        max-height: 95vh;
        border-radius: 25px;
    }

    .booking-modal-header h2 {
        font-size: 1.5rem;
    }
}

/* Neues RSVP-Formular im alten Stil */
.rsvp-form {
    background: transparent;
    max-width: 420px;
    margin: 2.5rem auto 0 auto;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}
.rsvp-form .form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}
.rsvp-form label {
    display: block;
    margin-bottom: 0.4rem;
    color: #3D2F1F; /* Dunkelbraun für besseren Kontrast */
    font-size: 1.08rem;
    font-weight: 500;
}
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #A68B5B; /* Einheitlicher Rahmen */
    border-radius: 8px;
    background: #F5E6D3; /* Einheitlicher heller Hintergrund */
    font-size: 1.08rem;
    color: #3D2F1F; /* Dunkelbraun */
    box-sizing: border-box;
    margin-top: 0.1rem;
    transition: border-color 0.2s;
}
.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    border-color: #D4B896; /* Einheitlicher Focus-Rahmen */
    outline: none;
}
.rsvp-form textarea {
    min-height: 90px;
    resize: vertical;
}
.rsvp-form .rsvp-button {
    display: inline-block;
    width: auto;
    background: linear-gradient(45deg, #D4B896, #A68B5B); /* Einheitliche Buttons */
    color: white;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 0 auto 0 auto;
    box-shadow: 0 8px 24px rgba(212, 184, 150, 0.3); /* Einheitlicher Schatten */
}
.rsvp-form .rsvp-button:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 15px 30px rgba(212, 184, 150, 0.4); /* Einheitlicher Hover-Schatten */
}
#rsvpResponse {
    margin-top: 1.5rem;
    color: #A8C09A; /* Soft Green für Success */
    font-size: 1.15rem;
    font-weight: 500;
}

/* Site Header & Navigation */
.site-header {
    background: rgba(254, 251, 246, 0.95); /* Sehr helles warmes Beige mit Transparenz */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 184, 150, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    box-shadow: 0 2px 20px rgba(61, 47, 31, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease;
    height: auto;
    min-height: 70px;
}

.site-header.hidden {
    transform: translateY(-100%);
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

/* Navigation links container */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    justify-content: center;
    flex: 1;
}

.main-nav a {
    color: #3D2F1F;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.main-nav a:hover {
    background: linear-gradient(45deg, #D4B896, #A68B5B);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 184, 150, 0.4);
}

.main-nav a.active {
    background: linear-gradient(45deg, #D4B896, #A68B5B);
    color: white;
    box-shadow: 0 4px 15px rgba(212, 184, 150, 0.5);
    border: 1px solid rgba(212, 184, 150, 0.6);
}

/* Mobile Navigation */
@media (max-width: 1200px) {
    .site-header {
        min-height: 60px;
    }
    
    .main-nav {
        padding: 0.8rem 1rem;
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .main-nav a {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Body and content spacing */
body {
    margin: 0;
    padding: 0;
}

/* Ensure all sections have proper top spacing to avoid header overlap */
.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Special spacing for first sections after hero */
.section:first-of-type:not(.hero) {
    padding-top: 8rem; /* Extra space after header */
}

/* Hero adjustments for proper spacing */

/* Hero Section - adjusted for fixed header */
.hero {
    height: 100vh; /* Full viewport height */
    background: linear-gradient(135deg, 
        #1e3a8a 0%,    /* Deep Blue - Tiefes Meer */
        #3b82f6 15%,   /* Royal Blue - Offenes Meer */
        #60a5fa 30%,   /* Bright Blue - Mittleres Meer */
        #87CEEB 45%,   /* Sky Blue - Seichtes Wasser */
        #b3d9ff 60%,   /* Very Light Blue - Brandung */
        #F5E6D3 70%,   /* Hell Sand Beige - Nasser Sand */
        #F7F0E8 85%,   /* Sehr hell Sand - Mittlerer Sand */
        #FAF6F0 100%   /* Cremiges helles Beige - Trockener Sand */
    ); 
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px; /* Account for fixed header */
    box-sizing: border-box;
}

/* Basis-Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Allgemeine Farben */
body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #3D2F1F; /* Dunkelbraun als Haupttext */
    background-color: #FEFBF6; /* RGB 254, 251, 246 - sehr helles warmes Beige */
    overflow-x: hidden;
}

/* Small reusable badge for airports or short labels */
.airport-badge {
    display: inline-block;
    background: #ffefea; /* warm pale background */
    color: #6c4c1b;      /* dark brown text */
    padding: 4px 10px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95em;
    vertical-align: baseline;
}

/* Compact flight list for quick scan */
.flight-list {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.6rem;
}
.flight-item {
    /* Stack flight details vertically for clearer reading on Unterkünfte/Anreise pages */
    display: grid;
    grid-template-columns: 1fr; /* single column so each datum is on its own row */
    gap: 0.4rem;
    align-items: start;
    /* center the inline text horizontally and center grid items within their cells */
    text-align: center;
    justify-items: center;
    padding: 0.9rem 1rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(61,47,31,0.06);
    color: #5a4a3b;
}
.flight-date { font-weight:700; color:#3D2F1F; }
.flight-time { font-weight:600; }
.flight-route { font-size:0.95rem; }
.flight-duration { font-size:0.9rem; color:#6c4c1b; }
.flight-airline a { color:#A68B5B; font-weight:600; text-decoration:none; }
.flight-airline a:hover { text-decoration:underline; }

/* Shared small info panels used on Anreise pages (Lima stopover, transfer service) */
.info-panel {
    margin-top: 1rem;
    padding: 0.6rem;
    background: #fff; /* match flight boxes */
    border: 1px solid #e5d6be;
    border-radius: 8px;
    color: #6c4c1b;
}

@media (max-width: 700px) {
    /* Keep the single-column stacking on small screens as well; ensure spacing fits */
    .flight-item { padding: 0.8rem 0.8rem; gap: 0.45rem; }
    .flight-duration { grid-column: auto; }
    .flight-airline { grid-column: auto; }
}

/* Sticky footer fallback: make body a column flex container so the footer
   is pushed to the bottom on pages with little content. This is safe because
   the header is position:fixed and won't participate in flow. */
/* (sticky-footer attempt removed to avoid layout regressions) */

/* Floating RSVP Button */
.floating-rsvp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Desktop positioning override */
@media (min-width: 1201px) {
    .floating-rsvp {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }
    
    .floating-rsvp-button {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        padding: 1rem 1.5rem;
        border-radius: 50px;
    }
}

.floating-rsvp-button {
    background: linear-gradient(45deg, #D4B896, #A68B5B); /* Einheitlicher Button */
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 184, 150, 0.4); /* Einheitlicher Schatten */
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.floating-rsvp-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 184, 150, 0.5); /* Einheitlicher Hover-Schatten */
}

/* Hero Section */
/* Hero Section */
.hero {
    height: 100vh;
    height: 100dvh; /* For newer browsers */
    background: linear-gradient(135deg, 
        #1e3a8a 0%,    /* Deep Blue - Tiefes Meer */
        #3b82f6 15%,   /* Royal Blue - Offenes Meer */
        #60a5fa 30%,   /* Bright Blue - Mittleres Meer */
        #87CEEB 45%,   /* Sky Blue - Seichtes Wasser */
        #b3d9ff 60%,   /* Very Light Blue - Brandung */
        #F5E6D3 85%,   /* Helles Beige - Sand */
        #FEFBF6 100%   /* Sehr helles Beige - Trockener Sand */
    );
    background-size: 400% 400%; /* Essential for animation movement */
    animation: gradientShift 8s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(1px);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 300;
    color: #F5E6D3; /* Einheitliches Helles Beige */
    text-shadow: 2px 2px 4px rgba(61, 47, 31, 0.6); /* Dunkelbraun Schatten */
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
    /* Nur Silbentrennung hinzufügen, ohne Layout zu ändern */
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.hero .ampersand {
    font-size: 2.5rem;
    margin: 0 1rem;
    opacity: 0.8;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: #F5E6D3; /* Einheitliches Helles Beige */
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

.hero .date {
    font-size: 1.2rem;
    color: #F5E6D3; /* Heller Text für Kontrast auf transparentem Hintergrund */
    background: rgba(61, 47, 31, 0.4); /* Dunkler transparenter Hintergrund */
    padding: 1rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 230, 211, 0.4); /* Heller transparenter Rahmen */
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 1s ease 1.5s forwards;
    transition: transform 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Schatten für bessere Lesbarkeit */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 40%;
    left: 80%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Section Styles */
.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Section with alternate background - unified design */
.section.alt-background {
    background: #fefbf7; /* Very close to main background for seamless design */
}

/* Special spacing for first sections after hero */
.section:first-of-type:not(.hero) {
    padding-top: 8rem; /* Extra space after header */
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #3D2F1F; /* Dunkelbraun für besseren Kontrast */
    font-weight: 300;
    position: relative;
}

.section h2::after {
    content: '';
    width: 80px;
    height: 2px;
    background: linear-gradient(45deg, #D4B896, #A68B5B); /* Einheitlicher Gradient */
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* RSVP Section */
.rsvp {
    background: linear-gradient(135deg, rgba(245, 230, 211, 0.3), rgba(212, 184, 150, 0.2)); /* Einheitlicher Gradient */
    padding: 4rem 2rem;
    text-align: center;
}

.rsvp-button {
    display: inline-block;
    background: linear-gradient(45deg, #D4B896, #A68B5B); /* Einheitlicher Button */
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 0 1rem 1rem 0;
    box-shadow: 0 15px 30px rgba(212, 184, 150, 0.4); /* Einheitlicher Schatten */
}

.rsvp-button:hover {
    transform: translateY(-5px);
}

.rsvp-button.secondary {
    background: transparent;
    border: 2px solid #D4B896; /* Einheitlicher Rahmen */
    color: #D4B896; /* Einheitliche Farbe */
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.info-card {
    background: #F5E6D3; /* Einheitlicher heller Hintergrund */
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(61, 47, 31, 0.1); /* Dunkelbraun Schatten */
    border: 1px solid rgba(212, 184, 150, 0.3); /* Einheitlicher Rahmen */
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #3D2F1F; /* Dunkelbraun */
    display: flex;
    align-items: center;
}

.info-card h3 i {
    margin-right: 15px;
    font-size: 1.5rem;
}

.info-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #5A4A3B; /* Mittelbraun */
}

/* Story Text */
.story-text {
    font-size: 1.2rem;
    line-height: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* Travel Options */
.travel-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.travel-card {
    background: linear-gradient(135deg, rgba(245, 230, 211, 0.4), rgba(212, 184, 150, 0.2)); /* Einheitlicher Gradient */
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 184, 150, 0.3); /* Einheitlicher Rahmen */
}

.travel-card h4 {
    font-size: 1.5rem;
    color: #3D2F1F; /* Dunkelbraun */
    margin-bottom: 1rem;
}

/* Timeline */
.schedule-timeline {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.timeline-time {
    background: linear-gradient(45deg, #D4B896, #A68B5B); /* Einheitlicher Gradient */
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    font-weight: bold;
    width: 130px; /* Feste Breite statt min-width */
    text-align: center;
    margin-right: 2rem;
    font-size: 1rem; /* Kleinere Schriftgröße für bessere Passform */
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-content {
    flex: 1;
    background: #F5E6D3; /* Einheitlicher heller Hintergrund */
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(61, 47, 31, 0.1); /* Dunkelbraun Schatten */
}

.timeline-content h4 {
    color: #3D2F1F; /* Dunkelbraun */
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* FAQ */
.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background: linear-gradient(45deg, rgba(212, 184, 150, 0.2), rgba(196, 174, 140, 0.2));
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #3D2F1F; /* Dunkelbraun */
}

.faq-question:hover {
    background: linear-gradient(45deg, rgba(212, 184, 150, 0.3), rgba(196, 174, 140, 0.3));
}

.faq-answer {
    padding: 2rem 2rem 2.5rem;
    display: none;
    line-height: 1.8;
}

.faq-answer.active {
    display: block;
}

.faq-question i {
    color: #ff9a8b;
    transition: transform 0.3s ease;
}

.faq-answer a {
    color: #ff9a8b;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px; /* Begrenzung der Gesamtbreite */
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Anpassungen für bessere Verteilung */
@media (min-width: 768px) {
    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (min-width: 1200px) {
    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Maximale Spaltenanzahl begrenzen */
@supports (grid-template-columns: subgrid) {
    .links-grid {
        max-width: calc(3 * 350px + 4rem); /* 3 Karten + Gaps */
    }
}

.link-card {
    background: #F5E6D3; /* Einheitlicher heller Hintergrund */
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(61, 47, 31, 0.1); /* Dunkelbraun Schatten */
    transition: transform 0.3s ease;
}

/* Make link cards equal-height and distribute their inner content so the spacing
   between cards and the footer is visually consistent across pages. */
.links-grid > .link-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* make them stretch to the grid row height */
}

.links-grid > .link-card a {
    /* push the link to the bottom if content is short */
    margin-top: 1rem;
}

.link-card:hover {
    transform: translateY(-5px);
}

.link-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #D4B896; /* Einheitliche Accent-Farbe */
}

.link-card h4 {
    color: #3D2F1F; /* Dunkelbraun */
    margin-bottom: 1rem;
}

.link-card a {
    color: #A68B5B; /* Dunkleres Beige für Links */
    text-decoration: none;
    font-weight: 500;
}

.link-card a:hover {
    color: #D4B896; /* Helleres Beige beim Hover */
}

/* Gift Info (spezifisch für Geschenke-Seite) */
.gift-info {
    background: #F5E6D3; /* Einheitlicher heller Hintergrund */
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(61, 47, 31, 0.1); /* Dunkelbraun Schatten */
    border: 1px solid rgba(212, 184, 150, 0.3); /* Einheitlicher Rahmen */
    text-align: center;
    font-size: 1.25rem;
    color: #3D2F1F; /* Dunkelbraun */
}

.gift-info i {
    font-size: 3rem;
    color: #D4B896; /* Einheitliche Accent-Farbe */
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: #C4AE8C; /* Helles Braun/Beige */
    color: #3D2F1F; /* Dunkelbraun für guten Kontrast */
    padding: 3rem 0; /* Padding nur oben/unten, nicht links/rechts */
    text-align: center;
    margin-top: 4rem; /* Einheitlicher Abstand von oben */
    width: 100vw; /* full viewport width to guarantee full-bleed */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw; /* ensure it stretches to both edges */
    box-sizing: border-box;
    clear: both;
    position: relative;
    z-index: 1;
}

/* Ensure short pages push footer to the bottom without changing page flow.
   We avoid making the body a flex container (that caused regressions). Instead
   give the main content a minimum height that fills the viewport minus a
   conservative header/footer estimate. This is non-invasive and easy to tune.
*/
.site-main {
    min-height: calc(100vh - var(--header-height, 80px) - var(--footer-height, 220px));
    /* keep normal flow; wrappers won't affect absolutely positioned header/footer */
}

@media (max-width: 1200px) {
    .site-main {
        min-height: calc(100vh - var(--header-height, 70px) - var(--footer-height, 180px));
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; /* horizontal padding for inner content */
}

/* If any page-level container applied extra constraints, force footer-content to center */
.page .footer .footer-content,
body > .footer .footer-content,
.footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    margin-bottom: 1rem;
}

/* Responsive hero background via <picture> */
.hero picture,
.hero img.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}



/* === Hero dual-setup (mobile/desktop) === */
.hero {
    position: relative;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5%;
    color: #f5e6d3;
    box-sizing: border-box;
    margin-top: 0; /* No margin for hero */
}

.hero picture,
.hero img.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.9);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    text-align: left;
    margin-top: +15vh; /* Text nach unten verschieben */
    padding-top: 80px; /* Account for fixed header */
}

.hero-content h1,
.hero-content p,
.hero-content .date {
    color: #F5E6D3; /* Einheitliches helles Beige */
}

.hero-content .subtitle {
    color: #F5E6D3; /* Einheitliches helles Beige */
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(61, 47, 31, 0.8); /* Dunkelbraun Schatten */
}

.hero-content .date {
    color: #F5E6D3; /* Einheitliches helles Beige */
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(61, 47, 31, 0.8); /* Dunkelbraun Schatten */
}

/* Mobile Styles */
@media (max-width: 1200px) {
    .floating-rsvp {
        /* Mobile-friendly positioning - bottom right corner */
        position: fixed;
        bottom: 20px;
        right: 20px;
        top: auto;
        left: auto;
        transform: none;
        z-index: 9999;
    }
    
    .floating-rsvp-button {
        /* Mobile-optimized styling */
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 25px;
        min-width: 70px;
        text-align: center;
        /* Add a subtle white outline so the button stands out against the footer on mobile */
        /* Use an outer box-shadow as a stroke so the element's layout doesn't shift */
        box-shadow: 0 4px 15px rgba(212, 184, 150, 0.4), 0 0 0 3px white;
    }

    .site-header {
        min-height: 60px;
    }
    
    .main-nav {
        padding: 0.8rem 1rem;
        gap: 0.8rem;
        justify-content: center;
    }
    
    .main-nav a {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .hero {
        height: 100vh; /* Full viewport height on mobile */
        height: calc(100vh - env(safe-area-inset-top)); /* Account for iOS safe areas */
        height: calc(100dvh); /* Use dynamic viewport height if supported */
        min-height: 100vh; /* Fallback to ensure full coverage */
    }

    .hero-content {
        margin-top: +25vh; /* Tiefere Position wie ursprünglich gewünscht */
        padding-left: 2%; /* Less padding on mobile */
        padding-top: 70px; /* Account for smaller mobile header */
        max-width: 90%; /* More width usage on mobile */
    }

    .hero h1 {
        font-size: 2.5rem;
        /* Nur Silbentrennung für mobile, alles andere bleibt gleich */
        hyphens: auto;
        -webkit-hyphens: auto;
    }
    
    /* Hide date buttons on mobile for hero sections with reduced height (non-index pages) */
    .hero[style*="45vh"] .date {
        display: none !important;
    }

    .hero picture,
    .hero img.hero-bg {
        /* Ensure image covers full viewport on mobile */
        height: 100vh;
        height: calc(100vh - env(safe-area-inset-top));
        height: calc(100dvh);
        min-height: 100vh;
        object-fit: cover;
        object-position: center;
        filter: none; /* Remove brightness filter on mobile for better visibility */
    }

    .section {
        padding-top: 4rem;
        padding-bottom: 4rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* First section after hero needs extra space on mobile too */
    .section:first-of-type:not(.hero) {
        padding-top: 6rem;
    }

    .section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Use native select appearance on mobile to avoid double/overlapping arrows
       Some mobile browsers show a native picker arrow/indicator; the custom
       background-image used for desktop can overlap with the native UI and
       cause visual glitches. Here we remove the custom arrow and restore the
       native appearance for better mobile UX. */
    .booking-form .form-group select {
        -webkit-appearance: menulist-button; /* iOS/Safari */
        -moz-appearance: menulist-button; /* Firefox on Android */
        appearance: menulist-button;
        background-image: none !important;
        padding-right: 1.2rem; /* reduce right padding for mobile */
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-time {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 100%; /* Volle Breite auf Mobile */
        max-width: 130px; /* Aber nicht zu breit */
        margin-right: auto;
    }

    .gift-info {
        padding: 2rem 1rem;
        font-size: 1.05rem;
    }

    .travel-options {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 2rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Klickbare Date Elements */
.clickable-date {
    cursor: pointer;
}

.clickable-date:hover {
    transform: scale(1.02);
    background: rgba(61, 47, 31, 0.5);
}



/* Language Switch Styles - Updated for dropdown layout */
.language-switch {
    position: relative;
    flex-shrink: 0;
    margin-left: 1rem;
}

/* Language Dropdown Button */
.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ff9a8b; /* Orange Ton wie bei den Links */
    border: 2px solid white; /* Weißer Rand */
    color: white;
    padding: 0.7rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 154, 139, 0.6);
    min-width: 100px;
}

.lang-dropdown-btn:hover {
    background: #ff8770; /* Etwas dunkleres Orange beim Hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 154, 139, 0.7);
}

.lang-dropdown-btn .flag-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.lang-dropdown-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.lang-dropdown-btn.active i {
    transform: rotate(180deg);
}

/* Language Dropdown Menu */
.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(254, 251, 246, 0.98);
    backdrop-filter: blur(15px);
    border: 2px solid #D4B896;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(61, 47, 31, 0.15);
    padding: 0.5rem 0;
    z-index: 1000;
    min-width: 160px;
}

.lang-dropdown-menu.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Language Options */
.lang-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    background: transparent;
    border: none;
    color: #3D2F1F;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
}

.lang-option:hover {
    background: rgba(212, 184, 150, 0.2);
}

.lang-option.active {
    background: linear-gradient(90deg, rgba(255, 154, 139, 0.15), transparent);
    border-left: 4px solid #ff9a8b;
    color: #ff9a8b;
    font-weight: 600;
}

.lang-option .flag-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.lang-option .lang-text {
    flex: 1;
}

/* Legacy button support - hide if present */
.lang-btn {
    display: none;
}

.main-nav a.current-page {
  background: linear-gradient(45deg, #D4B896, #A68B5B);
  color: white;
  border-radius: 25px;
  padding: 0.8rem 1.5rem;
  transform: translateY(-1px);
  box-shadow: 0 3px 15px rgba(212, 184, 150, 0.6);
}

.main-nav a.current-page:hover {
  background: linear-gradient(45deg, #A68B5B, #8B7355);
  box-shadow: 0 4px 20px rgba(212, 184, 150, 0.7);
  transform: translateY(-2px);
}

/* Mobile Hamburger Menu Styles */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(212, 184, 150, 0.1);
}

.hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #3D2F1F;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.hamburger-icon.active span:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
    top: 8px;
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
    top: 8px;
}

.menu-text {
    font-size: 1rem;
    font-weight: 500;
    color: #3D2F1F;
    letter-spacing: 0.3px;
}

.mobile-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(254, 251, 246, 0.98);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(212, 184, 150, 0.2);
    box-shadow: 0 8px 32px rgba(61, 47, 31, 0.15);
    padding: 1rem 0;
    z-index: 999;
}

.mobile-nav-menu.active {
    display: block;
}

.mobile-nav-menu a {
    display: block;
    padding: 1rem 2rem;
    color: #3D2F1F;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(212, 184, 150, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-menu a:last-child {
    border-bottom: none;
}

.mobile-nav-menu a:hover {
    background-color: rgba(212, 184, 150, 0.1);
    padding-left: 2.5rem;
}

.mobile-nav-menu a.current-page {
    background: linear-gradient(90deg, rgba(212, 184, 150, 0.15), transparent);
    border-left: 4px solid #D4B896;
    color: #A68B5B;
    font-weight: 600;
}

/* Mobile Navigation - Hamburger Menu Implementation */
@media (max-width: 1200px) {
    .site-header {
        min-height: 60px;
    }
    
    .main-nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 1rem;
        gap: 1rem;
    }
    
    /* Hide desktop navigation on mobile */
    .desktop-nav {
        display: none !important;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .language-switch {
        margin-left: 0;
        flex-shrink: 0;
        gap: 0.5rem;
    }
    
    .lang-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: 45px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Centralized Booking Form Styles */
.booking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    font-family: 'Georgia', serif;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.room-card {
    background: #F5E6D3;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    box-shadow: 0 5px 15px rgba(61, 47, 31, 0.1);
    transition: transform 0.3s ease;
}

.room-card:hover {
    transform: translateY(-5px);
}

.room-card.selected {
    border: 2px solid #A68B5B;
    background: rgba(166, 139, 91, 0.1);
}

.room-link {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    text-align: center;
}

.room-link a:hover {
    text-decoration: underline !important;
}

.room-header {
    margin-bottom: 1rem;
}

.room-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3D2F1F;
    margin-bottom: 0.5rem;
}

.room-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.room-availability-left {
    background: #E8A87C;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    min-height: 1.8rem;
    display: flex;
    align-items: center;
}

.room-category {
    background: #D4B896;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.room-availability {
    background: #E8A87C;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.room-details {
    margin: 1rem 0;
}

.room-detail {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
}

.room-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #A68B5B;
    text-align: center;
    margin: 1rem 0;
}

.total-price {
    background: #E8D5B7;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
}

.booking-form {
    background: white;
    padding: 5rem 4rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(61, 47, 31, 0.1);
    margin: 3rem 0;
    border: 1px solid rgba(212, 184, 150, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.booking-form .form-group {
    margin-bottom: 3rem;
}

.booking-form > .form-group:first-child {
    margin-top: 1rem;
}

.booking-form .form-row .form-group:first-child {
    margin-top: 0;
}

.booking-form .form-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #3D2F1F;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}

.booking-form .form-group input,
.booking-form .form-group select,
.booking-form .form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid #E8D5B7;
    border-radius: 12px;
    font-size: 1rem;
    color: #3D2F1F;
    background: #FEFBF6;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
    margin: 0;
}

.booking-form .form-group input:focus,
.booking-form .form-group select:focus,
.booking-form .form-group textarea:focus {
    outline: none;
    border-color: #D4B896;
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 184, 150, 0.1);
    transform: translateY(-1px);
}

.booking-form .form-group input:hover,
.booking-form .form-group select:hover,
.booking-form .form-group textarea:hover {
    border-color: #D4B896;
}

.booking-form .form-group select {
    background: #FEFBF6;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A68B5B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 3rem;
    cursor: pointer;
}

/* Additional browser-specific rules to hide default arrows */
.booking-form .form-group select::-ms-expand {
    display: none;
}

.booking-form .form-group select:focus {
    background-color: white;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4B896' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

.booking-form .form-group input[readonly] {
    background-color: #F5F5F5;
    color: #666;
    cursor: not-allowed;
    border-color: #DDD;
}

.booking-form .form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.booking-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.booking-form .form-row .form-group input[type="date"] {
    width: 100%;
    box-sizing: border-box;
}

.booking-form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    border: 2px solid #E8D5B7;
    border-radius: 12px;
    background: #FEFBF6;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    height: 60px; /* Match height of select elements */
    min-height: 60px;
}

.booking-form .checkbox-group:hover {
    border-color: #D4B896;
    background: white;
}

.booking-form .checkbox-group:focus-within {
    border-color: #D4B896;
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 184, 150, 0.1);
}

.booking-form .checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #D4B896;
}

.booking-form .checkbox-group label {
    margin-bottom: 0 !important;
    cursor: pointer;
    font-weight: normal;
    font-size: 1rem;
    color: #3D2F1F;
}

/* Remove all special rules for extraBedGroup - let it behave like normal form-group */

/* Fix form-row alignment to ensure all elements sit at same baseline */
.booking-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
    align-items: end; /* Align items to bottom */
}

.submit-btn {
    background: linear-gradient(45deg, #D4B896, #A68B5B);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin: 2.5rem 0 0 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Georgia', serif;
    box-shadow: 0 6px 20px rgba(212, 184, 150, 0.3);
    box-sizing: border-box;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 184, 150, 0.4);
    background: linear-gradient(45deg, #A68B5B, #8B7355);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 6px 20px rgba(212, 184, 150, 0.2);
}

.error-message,
.success-message {
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
}

.error-message {
    background: #ffe6e6;
    border: 1px solid #ff9999;
    color: #cc0000;
}

.success-message {
    background: #e6ffe6;
    border: 1px solid #99cc99;
    color: #006600;
}

/* Modal Styles for Booking Forms */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 47, 31, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 2rem 0;
}

.booking-modal.show {
    opacity: 1;
    visibility: visible;
}

.booking-modal-content {
    background: linear-gradient(135deg, #F5E6D3, #FEFBF6);
    padding: 2rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(61, 47, 31, 0.3);
    max-width: 800px;
    width: 90%;
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
    border: 2px solid #D4B896;
    margin: auto;
    max-height: 90vh;
    overflow-y: auto;
    padding-right: 2rem;
}

/* Custom scrollbar styling for booking modal */
.booking-modal-content::-webkit-scrollbar {
    width: 8px;
}

.booking-modal-content::-webkit-scrollbar-track {
    background: rgba(212, 184, 150, 0.1);
    border-radius: 10px;
}

.booking-modal-content::-webkit-scrollbar-thumb {
    background: rgba(212, 184, 150, 0.6);
    border-radius: 10px;
}

.booking-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 184, 150, 0.8);
}

/* Firefox scrollbar styling */
.booking-modal-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 184, 150, 0.6) rgba(212, 184, 150, 0.1);
}

.booking-modal.show .booking-modal-content {
    transform: translateY(0);
}

.booking-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #D4B896;
}

.booking-modal-header h2 {
    margin: 0;
    color: #3D2F1F;
    font-size: 1.8rem;
}

.booking-modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #A68B5B;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.booking-modal-close:hover {
    background: rgba(166, 139, 91, 0.1);
    color: #3D2F1F;
    transform: rotate(90deg);
}

.booking-modal .booking-form {
    margin: 0;
    padding: 2rem 3rem;
    box-shadow: none;
}

/* Booking Form Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Ensure floating RSVP button stays in bottom right on small mobile devices */
    .floating-rsvp {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-rsvp-button {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        border-radius: 20px;
        min-width: 60px;
        box-shadow: 0 3px 12px rgba(212, 184, 150, 0.4), 0 0 0 2px white;
    }

    .room-grid {
        grid-template-columns: 1fr;
    }

    .booking-form {
        padding: 4rem 2rem 4rem 2rem;
        margin: 2rem 1rem;
        max-width: none;
    }

    .booking-form .form-group {
        margin-bottom: 2.5rem;
    }

    .booking-form > .form-group:first-child {
        margin-top: 0.8rem;
    }

    .booking-form .form-row .form-group:first-child {
        margin-top: 0;
    }

    .booking-form .form-group label {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .booking-form .form-group input,
    .booking-form .form-group select,
    .booking-form .form-group textarea {
        padding: 1rem 1.2rem;
        font-size: 16px; /* Prevent zoom on iOS */
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }

    .booking-form .form-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 1rem;
    }

    .booking-form .form-row .form-group {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .booking-form .form-row .form-group input[type="date"] {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-width: 0; /* Prevent overflow on iPhone */
        -webkit-appearance: none; /* Remove iOS default styling */
        -moz-appearance: none;
        appearance: none;
    }

    .booking-form .checkbox-group {
        padding: 1rem 1.2rem;
        margin: 0.8rem 0 0 0;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }

    .submit-btn {
        padding: 1.2rem 2rem;
        font-size: 1rem;
        margin: 3rem 0 2rem 0;
        width: 100%;
    }

    .booking-container {
        padding: 1rem;
    }

    .booking-modal {
        padding: 0;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    .booking-modal-content {
        width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
        padding: 1.5rem;
        padding-right: 2rem;
        max-height: 90vh; /* Increased from 85vh */
        max-height: 90dvh; /* Increased from 85dvh */
        border-radius: 25px;
        margin: 1rem;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
        /* Prevent elastic scrolling on iOS */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .booking-modal-header h2 {
        font-size: 1.5rem;
    }

    .booking-modal .booking-form {
        padding: 0 1.5rem;
    }
}

/* Additional iPhone-specific optimizations */
@media (max-width: 430px) and (max-height: 932px) {
    /* iPhone 14 Pro Max and similar devices with Dynamic Island */
    .booking-modal-content {
        max-height: 85vh; /* Increased from 80vh */
        max-height: 85dvh; /* Increased from 80dvh */
        padding: 1rem;
        padding-right: 1.5rem;
    }
    
    .booking-form {
        padding: 2rem 1rem 2rem 1rem !important;
    }
    
    .booking-form .form-group {
        margin-bottom: 2rem;
    }
    
    /* Ensure date inputs don't overflow */
    .booking-form .form-row .form-group {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .booking-form .form-row .form-group input[type="date"] {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 390px) and (max-height: 844px) {
    /* iPhone 12/13/14 Pro and similar devices */
    .booking-modal-content {
        max-height: 80vh; /* Increased from 75vh */
        max-height: 80dvh; /* Increased from 75dvh */
        padding: 1rem;
        padding-right: 1.5rem;
    }
    
    /* Ensure date inputs don't overflow on iPhone 13 Pro */
    .booking-form .form-row .form-group {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .booking-form .form-row .form-group input[type="date"] {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Additional fixes for booking modal positioning and scrolling issues */
@media (max-width: 768px) {
    /* Override base booking-modal-content for mobile to prevent side scrolling */
    .booking-modal-content {
        width: calc(100vw - 2rem) !important;
        max-width: calc(100vw - 2rem) !important;
        margin: 1rem !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure all form elements stay within bounds */
    .booking-form .form-group input,
    .booking-form .form-group select,
    .booking-form .form-group textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }
}

/* Specific iPhone optimizations */
@media only screen and (max-width: 414px) {
    .booking-form .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .booking-form .form-row .form-group {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    
    .booking-form .form-row .form-group input[type="date"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        font-size: 16px !important; /* Prevent zoom on iPhone */
        -webkit-appearance: none !important;
        appearance: none !important;
        border-radius: 8px !important;
        padding: 12px !important;
    }
}
