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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(245, 245, 245, 0.75)), url('son sampol desktop.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 1000;
}

.lang-btn {
    background: #fff;
    border: 1px solid #d4a574;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-btn:hover {
    background: #f5ebe0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.lang-btn.active {
    background: #d4a574;
    border-color: #d4a574;
    box-shadow: 0 2px 6px rgba(212, 165, 116, 0.3);
}

.sticky-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.sticky-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 15px;
}

.couple-names {
    font-size: 3.5em;
    font-weight: 300;
    letter-spacing: 3px;
    color: #2c2c2c;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
}

.subtitle {
    font-size: 1.2em;
    color: #666;
    font-style: italic;
    letter-spacing: 1px;
}

/* Tabs Navigation */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0;
    margin-top: -5px;
    padding-bottom: 30px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid #d4a574;
    color: #8b6f47;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
    border-radius: 0;
}

.tab-button:hover {
    background: #f5ebe0;
    color: #6b5233;
}

.tab-button.active {
    background: #d4a574;
    color: #fff;
    border-color: #d4a574;
}

/* Current section indicator - hidden on desktop */
.current-section-indicator {
    display: none !important;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.tab-content.active {
    display: block;
}

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

.content-wrapper {
    background: rgba(255, 255, 255, 0.97);
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8e8e8;
    backdrop-filter: blur(5px);
}

h2 {
    font-size: 2.5em;
    color: #2c2c2c;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 300;
    letter-spacing: 2px;
}

.section-intro {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-bottom: 40px;
    font-style: italic;
}

.intro-text {
    text-align: center;
    font-size: 1.2em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.date-highlight {
    text-align: center;
    padding: 30px;
    background: #f9f7f4;
    border-left: 3px solid #d4a574;
    margin-top: 30px;
}

.section-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4a574, transparent);
    margin: 40px 0;
}

.date-highlight p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.dates {
    font-size: 1.5em;
    color: #8b6f47;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.dates-month {
    font-size: 1.2em;
    color: #8b6f47;
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: 0;
}

/* Accommodation Notice */
.accommodation-notice {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
}

.accommodation-notice p {
    color: #555;
    font-size: 1.15em;
    line-height: 1.8;
    margin: 0;
}

.highlight-location {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border-bottom: 3px solid #d4a574;
    padding-bottom: 2px;
}

/* Important Info Section */
.important-info {
    text-align: center;
    padding: 50px 35px 40px 35px;
    background: #c45c3b !important;
    border: 4px solid #a84a2d !important;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(180, 70, 45, 0.4);
    position: relative;
    overflow: hidden;
}

.important-info::before {
    content: '📍';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5em;
    z-index: 2;
}

.important-info::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
    z-index: 0;
}

.important-info p {
    color: #ffffff !important;
    font-size: 1.2em;
    line-height: 1.9;
    margin-bottom: 18px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    margin-top: 40px;
}

.important-info p:first-child {
    font-weight: 700;
    color: #ffffff !important;
    font-size: 1.4em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.important-info p:last-child {
    margin-bottom: 0;
    margin-top: 0;
}

/* Timeline */
.timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
}

.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-date {
    font-size: 1.3em;
    color: #d4a574;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 2em;
    color: #2c2c2c;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 1px;
}

.location-name {
    font-size: 1.3em;
    color: #8b6f47;
    font-weight: 400;
    margin: 10px 0;
    letter-spacing: 1px;
}

.location-address {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.time {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05em;
}

.links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.link-button {
    display: inline-block;
    padding: 10px 20px;
    background: #f5ebe0;
    color: #8b6f47;
    text-decoration: none;
    border: 1px solid #d4a574;
    transition: all 0.3s ease;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

.link-button:hover {
    background: #d4a574;
    color: #fff;
}

/* Map */
.map-container {
    margin: 40px 0;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.map-note {
    text-align: center;
    margin-top: 15px;
    color: #666;
}

.map-link {
    color: #8b6f47;
    text-decoration: none;
    border-bottom: 1px solid #d4a574;
    transition: color 0.3s ease;
}

.map-link:hover {
    color: #6b5233;
}

/* Locations List */
.locations-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.location-card {
    background: #f9f7f4;
    padding: 30px;
    border-left: 3px solid #d4a574;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.location-card h3 {
    font-size: 1.5em;
    color: #2c2c2c;
    margin-bottom: 10px;
    font-weight: 400;
}

.location-card p {
    color: #666;
    margin-bottom: 8px;
}

.location-type {
    font-style: italic;
    color: #8b6f47;
}

.location-link {
    display: inline-block;
    margin-top: 15px;
    color: #8b6f47;
    text-decoration: none;
    font-weight: 400;
    border-bottom: 1px solid #d4a574;
    transition: color 0.3s ease;
}

.location-link:hover {
    color: #6b5233;
}

/* Hotel Suggestion */
.hotel-suggestion {
    text-align: center;
    background: #f9f7f4;
    border-left: 3px solid #d4a574;
    padding: 20px 25px;
    margin-bottom: 30px;
    color: #555;
    font-size: 1.05em;
    line-height: 1.7;
}

/* Hotels List */
.hotels-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.hotel-card {
    background: #f9f7f4;
    padding: 18px 20px;
    border-left: 3px solid #d4a574;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hotel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.hotel-card h3 {
    font-size: 1.15em;
    color: #2c2c2c;
    margin-bottom: 4px;
    font-weight: 400;
}

.hotel-price {
    display: block;
    color: #8b6f47;
    font-size: 0.95em;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.hotel-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.9em;
    color: #8b6f47;
    text-decoration: none;
    font-weight: 400;
    border-bottom: 1px solid #d4a574;
    transition: color 0.3s ease;
}

.hotel-link:hover {
    color: #6b5233;
}

/* Useful Links */
.useful-links {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e8e8e8;
}

.useful-links h3 {
    font-size: 1.8em;
    color: #2c2c2c;
    margin-bottom: 20px;
    font-weight: 300;
    text-align: left;
}

.useful-links ul {
    list-style: none;
}

.useful-links li {
    margin-bottom: 12px;
}

.useful-links a {
    color: #8b6f47;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    font-size: 1.05em;
}

.useful-links a:hover {
    border-bottom-color: #d4a574;
    color: #6b5233;
}

/* Contact */
.contact-info {
    margin: 40px 0;
}

.contact-card {
    background: #f9f7f4;
    padding: 15px 30px;
    border-left: 3px solid #d4a574;
    text-align: center;
}

.contact-card h3 {
    font-size: 1.8em;
    color: #2c2c2c;
    margin-bottom: 15px;
    font-weight: 300;
}

.contact-card p {
    color: #666;
    font-size: 1.05em;
}

.contact-details {
    margin-top: 0;
    padding-top: 0;
}

.contact-details p {
    margin-bottom: 12px;
}

.contact-details a {
    color: #8b6f47;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.contact-details a:hover {
    border-bottom-color: #d4a574;
    color: #6b5233;
}

.additional-info {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e8e8e8;
}

.additional-info h3 {
    font-size: 1.8em;
    color: #2c2c2c;
    margin-bottom: 20px;
    font-weight: 300;
    text-align: left;
}

.additional-info p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05em;
}

/* Celebrate Text */
.celebrate-text {
    text-align: center;
    margin-top: 30px;
    font-size: 1.3em;
    color: #8b6f47;
    font-style: italic;
    font-weight: 400;
}

/* Couple Photo */
.couple-photo {
    margin-top: 40px;
    text-align: center;
}

.couple-photo img {
    max-width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Simple Contact Details */
.contact-details-simple {
    text-align: center;
    padding: 20px 0;
}

.contact-details-simple p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #555;
}

.contact-details-simple a {
    color: #8b6f47;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.contact-details-simple a:hover {
    border-bottom-color: #d4a574;
    color: #6b5233;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    color: #999;
    font-size: 0.9em;
    letter-spacing: 1px;
}


/* Responsive Design */
@media (max-width: 768px) {
    /* === STATE 1: INITIAL (at top) === */
    /* Language switcher visible, subtitle on separate line, tabs hidden */
    
    .language-switcher {
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 1em;
    }

    /* Hide non-active flags by default */
    .language-switcher .lang-btn:not(.active) {
        display: none !important;
    }
    
    /* Show all flags when expanded */
    .language-switcher.expanded .lang-btn {
        display: inline-flex !important;
    }

    /* Hide language switcher when scrolled (State 2 & 3) */
    body.mobile-scrolled .language-switcher {
        display: none !important;
    }

    /* Compact mobile header */
    .sticky-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        padding: 10px 15px;
        margin-bottom: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    header {
        padding: 15px 10px 10px 10px;
        margin-bottom: 0;
        text-align: center;
        transition: all 0.3s ease;
    }
    

    .couple-names {
        font-size: 1.8em;
        letter-spacing: 1px;
        margin-bottom: 3px;
        transition: all 0.3s ease;
    }

    .subtitle {
        font-size: 0.85em;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        display: block;
    }

    /* === STATE 2: SCROLLED (compact header) === */
    /* Language hidden, subtitle inline, tabs still hidden */
    
    body.mobile-scrolled .sticky-header header {
        text-align: left;
        padding: 8px 10px;
    }

    body.mobile-scrolled .sticky-header .couple-names {
        font-size: 1.3em;
        display: inline;
        margin-right: 8px;
        margin-bottom: 0;
    }

    body.mobile-scrolled .sticky-header .subtitle {
        font-size: 0.7em;
        display: inline;
    }

    /* === STATE 3: TABS REVEALED === */
    /* Same as State 2, plus tabs visible with scroll-spy indicator */
    
    /* Slightly larger text in State 3 since we have compact forms */
    body.mobile-tabs-revealed .sticky-header .couple-names {
        font-size: 1.4em;
    }
    
    body.mobile-tabs-revealed .sticky-header .subtitle {
        font-size: 0.75em;
    }
    
    /* Tabs hidden by default on mobile */
    .tabs {
        display: none;
        justify-content: flex-start;
        gap: 0;
        padding: 0 10px 10px 10px;
        margin: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    /* Show tabs in State 3 */
    body.mobile-tabs-revealed .sticky-header .tabs {
        display: flex;
    }

    /* Mobile tab button styling - slightly larger in State 3 */
    body.mobile-tabs-revealed .sticky-header .tabs .tab-button {
        padding: 8px 12px;
        font-size: 0.72em;
        white-space: nowrap;
        border: none;
        background: transparent;
        color: #8b6f47;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        flex-shrink: 0;
    }

    /* Active tab indicator - terracotta box */
    body.mobile-tabs-revealed .sticky-header .tabs .tab-button.active {
        background: #d4a574;
        color: #fff;
        border-radius: 3px;
    }

    body.mobile-tabs-revealed .sticky-header .tabs .tab-button:hover {
        background: transparent;
    }

    body.mobile-tabs-revealed .sticky-header .tabs .tab-button.active:hover {
        background: #d4a574;
    }

    /* Add margin to main content to account for fixed header */
    main {
        margin-top: 90px;
        padding-top: 10px;
        transition: margin-top 0.3s ease;
    }

    /* More margin when tabs are revealed */
    body.mobile-tabs-revealed main {
        margin-top: 120px;
    }

    /* All sections visible and scrollable */
    .tab-content {
        display: block !important;
        scroll-margin-top: 130px;
        margin-bottom: 0;
        padding-top: 20px;
        padding-bottom: 30px;
    }

    /* Section separator with elegant centered label */
    .tab-content::before {
        content: attr(data-section-label);
        display: inline-block;
        text-align: center;
        background: #d4a574;
        color: white;
        font-size: 0.75em;
        font-weight: 600;
        padding: 10px 25px;
        margin: 0 auto 25px auto;
        letter-spacing: 2px;
        text-transform: uppercase;
        font-family: 'Georgia', serif;
        border-radius: 3px;
        box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
    }

    .tab-content .content-wrapper {
        text-align: center;
    }

    .tab-content .content-wrapper > * {
        text-align: left;
    }

    .tab-content .content-wrapper > .intro-text,
    .tab-content .content-wrapper > .date-highlight,
    .tab-content .content-wrapper > .celebrate-text {
        text-align: center;
    }

    .tab-content:not(:first-child) {
        margin-top: 30px;
        padding-top: 0;
    }

    /* First section doesn't need top border */
    .tab-content:first-child::before {
        margin-top: 0;
    }

    /* Show H2 headings on mobile */
    .tab-content h2:first-of-type {
        font-size: 1.8em;
        line-height: 1.4;
        margin-bottom: 20px;
        padding: 0;
        height: auto;
        overflow: visible;
    }

    /* Hide current section indicator since we have tabs now */
    .current-section-indicator {
        display: none !important;
    }

    .content-wrapper {
        padding: 25px;
        position: relative;
    }

    h2 {
        font-size: 2em;
        position: relative;
        padding-bottom: 15px;
        padding-top: 50px;
    }

    /* Remove the subtle line, we have the badge now */
    h2::after {
        display: none;
    }

    .tab-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .timeline-content h3 {
        font-size: 1.6em;
    }

    .locations-list {
        grid-template-columns: 1fr;
    }

    .map-container iframe {
        height: 400px;
    }

    /* === MOBILE SECTION BACKGROUND IMAGES === */
    /* Each section has its own cropped image with same transparency as desktop */
    
    body {
        background: #f5ebe0; /* Fallback warm sand base */
        background-image: none !important;
    }
    
    /* Section-specific background images with transparency overlay */
    .tab-content#home {
        background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(245, 245, 245, 0.75)), url('mobile 1.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .tab-content#timeline {
        background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(245, 245, 245, 0.75)), url('mobile 2.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .tab-content#hotels {
        background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(245, 245, 245, 0.75)), url('mobile 3.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .tab-content#contact {
        background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(245, 245, 245, 0.75)), url('mobile 4.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    /* Section styling */
    .tab-content {
        border-radius: 8px;
        margin-left: -10px;
        margin-right: -10px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 480px) {
    /* Even more compact on very small screens */
    header {
        padding: 10px 5px 8px 5px;
    }

    .couple-names {
        font-size: 1.5em;
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: 0.75em;
    }

    main {
        margin-top: 75px;
    }

    .content-wrapper {
        padding: 20px;
    }

    .links {
        flex-direction: column;
    }

    .link-button {
        text-align: center;
    }

    h2 {
        font-size: 1.7em;
    }

    /* Accommodation notice adjustments for small screens */
    .accommodation-notice {
        padding: 15px 0;
        margin-top: 30px;
    }

    .accommodation-notice p {
        font-size: 1em;
    }

    .highlight-location {
        display: inline;
    }
}

