/* 1. Reset and Variables */
:root {
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray-soft: #F9F9F9;
    --gray-text: #666666;
    --gray-line: #F0F0F0;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sc: 'Cormorant SC', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--black);
    font-family: var(--font-serif);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 2. Global Components */
.caps {
    text-transform: uppercase;
}

.tracking-widest {
    letter-spacing: 0.25em;
}

.hidden {
    display: none !important;
}

.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }

    .desktop-only {
        display: block !important;
    }
}

.font-sc {
    font-family: var(--font-sc);
}

.font-main {
    font-family: var(--font-serif);
}

/* Scroll Container & Snap */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

section,
.snap-section {
    width: 100%;
    min-height: 100vh;
    padding: 120px 20px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 0.8;
}

.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 3. Header Styling */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    border-bottom: 1px solid var(--gray-line);
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    padding: 0 40px;
}

/* 4. Lists & Accordion */
.accordion-item {
    border-top: 1px solid var(--gray-line);
    width: 100%;
    transition: background-color 0.3s;
}

.accordion-item:last-child {
    border-bottom: 1px solid var(--gray-line);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 10px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
}

.accordion-header:hover {
    background-color: #fafafa;
}

.accordion-header h3 {
    font-family: var(--font-sc);
    font-size: var(--h3-title-size-mobile, 15px);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--black);
    margin: 0;
}

.accordion-icon {
    width: 16px;
    height: 16px;
    color: #ccc;
    transition: transform 0.3s;
}

.accordion-item.active>.accordion-header .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 0 10px 30px;
    animation: slideDown 0.3s ease-out forwards;
}

.accordion-item.active>.accordion-content {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.map-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #aaa;
    text-decoration: none;
    text-transform: uppercase;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.map-link:hover {
    color: var(--black);
}

.hotel-desc {
    font-family: var(--font-serif);
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    border-top: 1px solid #f9f9f9;
    padding-top: 20px;
    margin: 0;
    margin: 0;
}

/* Restaurant Sub-categories Horizontal Layout (Desktop) */
@media (min-width: 769px) {
    .sub-accordion-container {
        display: flex;
        gap: 15px;
        align-items: flex-start;
        width: 100%;
    }

    .accordion-item.sub-item {
        flex: 1;
        border: 1px solid #f9f9f9;
        border-radius: 4px;
        padding: 0;
        background: #fff;
    }

    .accordion-item.sub-item .accordion-header {
        padding: 10px 0;
        justify-content: center;
        border-bottom: 1px solid #f9f9f9;
        cursor: default;
        pointer-events: none;
    }

    .accordion-item.sub-item .accordion-icon {
        display: none !important;
    }

    /* Force expanded on desktop */
    .accordion-item.sub-item .accordion-content {
        display: block !important;
        padding: 5px 0;
        opacity: 1;
        animation: none;
    }

    .accordion-item.sub-item li {
        margin-bottom: 2px !important;
    }

    .accordion-item.sub-item a {
        font-size: 11px !important;
    }
}

/* 5. Hero Photos Grid */
.hero-photos {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 50px;
    transition: all 0.3s ease;
}



.photo-box {
    flex: 1;
    aspect-ratio: 10/14;
    overflow: hidden;
    background: #fafafa;
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.5s;
    opacity: 0.9;
}

@media (max-width: 768px) {

    /* Force no horizontal scroll on mobile */
    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
    }

    /* Prevent all sections from causing horizontal scroll */
    section,
    .snap-section {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }

    /* Ensure section containers don't overflow */
    .section-container {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }

    /* Adjust Hero Padding to move title up */
    /* Adjust Hero Padding to clear fixed header (70px) + spacing */
    #hero {
        padding-top: 85px !important;
        justify-content: flex-start !important;
    }

    /* Fix Carousel Buttons on Mobile */
    .carousel-btn {
        z-index: 20000 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        width: 40px !important;
        height: 40px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
        cursor: pointer !important;
        pointer-events: auto !important;
    }

    /* HERO CAROUSEL: Force Horizontal Scroll & Single View */
    .hero-photos {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        /* Extremely important */
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0 15px 0 !important;
        padding: 0 20px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 100px !important;
        height: auto !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .hero-photos::-webkit-scrollbar {
        display: none;
    }

    .hero-phrase {
        font-size: 11px !important;
        margin-top: 0 !important;
        line-height: 1.4 !important;
        padding: 0 15px !important;
    }

    .hero-title {
        font-size: clamp(24px, 10vw, 42px) !important;
        white-space: nowrap !important;
        margin-top: 5px !important;
    }

    .photo-box {
        width: 100% !important;
        /* Full width of the content area */
        min-width: 100% !important;
        flex: 0 0 auto !important;
        scroll-snap-align: center;
        aspect-ratio: auto !important;
        height: auto !important;
        background: transparent;
        display: block !important;
    }

    .photo-box img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block;
        max-height: 40vh !important;
        /* Reduce height to fit text */
    }

    /* WEDDING CAROUSEL: Force Horizontal Scroll & Single View */
    .wedding-carousel {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important;
        padding: 0 20px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        align-items: center !important;
        gap: 100px !important;
        height: auto !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .wedding-carousel::-webkit-scrollbar {
        display: none;
    }

    .wedding-photo-box {
        width: 100% !important;
        min-width: 100% !important;
        flex: 0 0 auto !important;
        scroll-snap-align: center;
        height: auto !important;
        border-radius: 4px;
        overflow: hidden;
        display: block !important;
    }

    .wedding-photo-box img {
        width: 100% !important;
        height: auto !important;
        display: block;
        filter: grayscale(100%);
        opacity: 0.9;
        object-fit: contain !important;
    }

    /* Center Recommendations on Mobile */
    .accordion-header {
        justify-content: center !important;
    }

    .accordion-content {
        text-align: center;
    }

    .map-link {
        justify-content: center;
    }

    .hotel-desc {
        text-align: center !important;
    }

    /* Sub-accordion mobile centering/style */
    .accordion-item.sub-item {
        border: 1px solid #eee !important;
        border-radius: 4px !important;
        margin: 0 0 10px 0 !important;
        background: #fff;
    }

    .accordion-item.sub-item .accordion-header {
        padding: 15px 15px !important;
        justify-content: space-between !important;
        background: #fcfcfc;
        width: 100% !important;
        cursor: pointer !important;
        pointer-events: auto !important;
    }

    /* Ensure content is hidden by default on mobile (only block if active) */
    .accordion-item.sub-item .accordion-content {
        display: none !important;
        /* Force hidden unless active */
        padding: 5px !important;
    }

    .accordion-item.sub-item.active .accordion-content {
        display: block !important;
    }

    .accordion-item.sub-item .accordion-icon {
        display: block !important;
        opacity: 1 !important;
        color: #ccc !important;
        /* Discrete gray */
        transform: rotate(0deg) !important;
        /* Point DOWN by default */
        transition: transform 0.3s ease !important;
    }

    .accordion-item.sub-item.active .accordion-icon {
        transform: rotate(180deg) !important;
        /* Point UP when active */
    }

    .sub-accordion-container {
        display: block !important;
        padding: 5px !important;
    }

    /* Nav Container stays within bounds on Mobile */
    .carousel-nav-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* Gift section mobile adjustments */
    #gift .section-container {
        overflow-x: visible !important;
        padding: 0 15px !important;
    }

    /* Compact spacing on mobile - restore sizes to 20px (from 22px/enormous) */
    section h2,
    #wedding h2,
    #accommodation h2,
    #recommendations h2,
    #gift h2,
    #rsvp h2 {
        font-size: 20px !important;
        margin-bottom: 20px !important;
        letter-spacing: 0.1em !important;
    }

    #gift .font-main {
        font-size: 14px !important;
        margin-bottom: 25px !important;
        line-height: 1.6 !important;
    }

    #gift .font-main p {
        margin-bottom: 8px !important;
    }

    /* Compact gift card */
    #gift>div>div[style*="background: #fff"] {
        padding: 20px 15px !important;
        min-width: auto !important;
        width: 100% !important;
    }

    #gift>div>div[style*="background: #fff"]>div {
        margin-bottom: 15px !important;
        padding-bottom: 12px !important;
    }

    #gift>div>div[style*="background: #fff"]>div:last-child {
        margin-bottom: 0 !important;
    }

    /* Stack content vertically but keep buttons discrete */
    #gift div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
    }

    /* Make buttons discrete - only text with underline */
    #gift button[onclick*="copy"] {
        width: auto !important;
        text-align: center !important;
        padding: 5px 0 !important;
        font-size: 10px !important;
        color: #aaa !important;
        text-decoration: underline !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
    }

    /* Wedding Section - Compact "El Sitio" subsection on mobile */
    .wedding-text p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 10px !important;
    }

    .wedding-grid-container {
        gap: 15px !important;
    }

    .wedding-photo-box {
        margin-bottom: 15px !important;
    }

    /* Gift Section - More vertical breathing room */
    #gift {
        padding-top: 100px !important;
        padding-bottom: 60px !important;
    }
}

/* Base styles for carousel buttons */
.carousel-nav-container {
    position: relative;
    width: 100%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 20;
    color: #333;
}

.carousel-btn.left {
    left: 10px;
}

.carousel-btn.right {
    right: 10px;
}

@media (min-width: 769px) {

    /* Hide buttons but KEEP container layout structure for grid */
    .carousel-btn {
        display: none !important;
    }

    .carousel-nav-container {
        display: contents !important;
    }
}

/* Wedding Section Layout */
.wedding-grid-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

@media (min-width: 769px) {
    .wedding-grid-container {
        display: grid;
        grid-template-areas: "photo1 text photo2";
        grid-template-columns: 1fr 1.2fr 1fr;
        align-items: center;
        gap: 60px;
        /* Increased gap for better spacing */
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 40px;
    }

    .wedding-carousel {
        display: contents !important;
        /* Flatten hierarchy for Grid */
    }

    .wedding-text {
        grid-area: text;
        padding: 0 40px !important;
        text-align: center;
    }

    .photo-left {
        grid-area: photo1;
    }

    .photo-right {
        grid-area: photo2;
    }

    /* Reset Photo Styles for Desktop */
    .wedding-photo-box {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        aspect-ratio: 2/3;
        border-radius: 4px;
        overflow: hidden;
    }

    .wedding-photo-box img {
        width: 100%;
        height: 100%;
        object-fit: cover !important;
        filter: grayscale(100%);
        transition: all 0.5s;
    }

    .wedding-photo-box:hover img {
        filter: grayscale(0);
    }
}

/* 6. RSVP Card */
.rsvp-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 40px 20px;
    max-width: 550px;
    margin: 0 auto;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    position: relative;
    border-radius: 4px;
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #eee;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot.active {
    background: #111;
    transform: scale(1.2);
}

.btn-option {
    width: 100%;
    padding: 15px;
    border: 1px solid #f0f0f0;
    background: #fff;
    font-family: var(--font-sc);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    color: #888;
}

.btn-option:hover {
    border-color: #ccc;
    color: #111;
}

.btn-option.selected {
    background: #111;
    border-color: #111;
    color: #fff;
}

.rsvp-input {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #eee;
    font-family: var(--font-serif);
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    background: transparent;
}

.rsvp-input:focus {
    border-bottom-color: #111;
}

.guest-item {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

.allergy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.allergy-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    cursor: pointer;
}

/* 7. Animations */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 8. Mobile adjustments */
@media (max-width: 1023px) {
    .header-nav {
        display: none;
    }

    header {
        height: 70px;
    }

    .header-container {
        padding: 0 20px;
        justify-content: space-between;
    }

    section,
    .snap-section {
        padding-top: 80px;
    }

    /* Fix absolute positioning for mobile to prevent overflow/overlap */
    .header-left {
        left: 20px !important;
    }

    .header-right {
        right: 20px !important;
        display: flex;
        align-items: center;
        gap: 20px;
    }
}

/* Mobile Menu Overlay & Button */
#mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--black);
    padding: 5px;
    z-index: 10001;
    /* Above overlay */
}

@media (max-width: 1023px) {
    #mobile-menu-btn {
        display: block;
    }
}

#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav-item {
    font-family: var(--font-sc);
    font-size: 24px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--black);
    transition: opacity 0.3s;
}

.mobile-nav-item:active {
    opacity: 0.5;
}

.close-menu-btn {
    position: absolute;
    top: 25px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 768px) {

    /* Accommodation Section Compression */
    #accommodation {
        padding-top: 110px !important;
        /* Increased from 60px to clear header */
        justify-content: flex-start !important;
    }

    #accommodation .section-container {
        padding-top: 0 !important;
    }

    #accommodation h2 {
        margin-bottom: 15px !important;
        font-size: 24px !important;
    }

    /* Paragraph text compression */
    #accommodation .font-main {
        margin-bottom: 20px !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    #accommodation .font-main p {
        margin-bottom: 8px !important;
    }

    /* List compression */
    #hotels-container {
        margin-bottom: 15px !important;
        max-height: none !important;
    }

    .accordion-header {
        padding: 12px 5px !important;
    }

    .accordion-header h3 {
        font-size: 13px !important;
    }

    .accordion-content {
        padding-bottom: 15px !important;
    }
}

/* Desktop Optimization (1920x1080) */
@media (min-width: 769px) {

    /* Header Navigation - Larger text */
    .header-nav li {
        font-size: 15px !important;
        letter-spacing: 0.2em !important;
    }

    /* Hero Section - Better use of space and prevent overlap */
    #hero {
        padding-top: 100px !important;
        padding-bottom: 60px !important;
    }

    .section-container {
        max-width: 1200px !important;
        margin: 0 auto !important;
    }

    .hero-title {
        font-size: 52px !important;
        margin-bottom: 18px !important;
    }

    .hero-date {
        font-size: 18px !important;
        margin-bottom: 40px !important;
    }

    .hero-photos {
        max-width: 1200px !important;
        margin: 45px auto 40px !important;
        gap: 30px !important;
    }

    .photo-box {
        height: 480px !important;
    }

    .hero-phrase {
        font-size: 20px !important;
        line-height: 1.8 !important;
        max-width: 800px !important;
        margin-top: 40px !important;
        margin-bottom: 50px !important;
    }

    /* Recommendations Section - Fit in 100vh without scroll */
    #recommendations {
        padding-top: 85px !important;
        padding-bottom: 10px !important;
        justify-content: flex-start !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        overflow-y: hidden !important;
    }

    #recommendations h2 {
        font-size: 38px !important;
        margin-bottom: 20px !important;
    }

    /* Ensure the accordion container doesn't have huge gaps */
    #recommendations-container .accordion-item {
        margin-bottom: 0;
    }

    /* Force Restaurantes and Peluquerías to be expanded on desktop */
    #recommendations-container .accordion-item:nth-child(1) .accordion-content,
    #recommendations-container .accordion-item:nth-child(2) .accordion-content {
        display: block !important;
    }

    #recommendations-container .accordion-item:nth-child(1) .accordion-icon,
    #recommendations-container .accordion-item:nth-child(2) .accordion-icon {
        transform: rotate(180deg) !important;
    }

    /* Compact accordion headers */
    #recommendations .accordion-header {
        padding: 12px 10px !important;
    }

    #recommendations .accordion-header h3 {
        font-size: 16px !important;
    }

    /* Accordion content */
    #recommendations .accordion-content {
        padding: 0 10px 12px !important;
    }

    /* Sub-accordion containers */
    #recommendations .sub-accordion-container {
        gap: 8px !important;
    }

    /* Compact sub-accordion items */
    #recommendations .accordion-item.sub-item {
        padding: 0 !important;
    }

    #recommendations .accordion-item.sub-item .accordion-header {
        padding: 7px 0 !important;
        font-size: 14px !important;
    }

    #recommendations .accordion-item.sub-item .accordion-content {
        padding: 2px 0 !important;
    }

    /* List items - better readability */
    #recommendations .accordion-item.sub-item li {
        margin-bottom: 2px !important;
    }

    #recommendations .accordion-item.sub-item a {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    /* Map links */
    #recommendations .map-link {
        font-size: 11px !important;
        margin-bottom: 4px !important;
    }

    /* Accommodation Desktop Compact */
    #accommodation {
        padding-top: 100px !important;
        padding-bottom: 20px !important;
        justify-content: flex-start !important;
    }

    #accommodation h2 {
        font-size: 38px !important;
        margin-bottom: 28px !important;
    }

    #accommodation p {
        font-size: var(--p-body-size-desktop, 20px) !important;
        line-height: 1.8 !important;
        margin-bottom: 18px !important;
    }

    #accommodation .accordion-header {
        padding: 25px 10px !important;
    }

    #accommodation .accordion-header h3 {
        font-size: 17px !important;
    }

    #hotels-container .accordion-item {
        margin-bottom: 0;
    }



    /* Wedding Section - Compact to fit in one screen */
    #wedding {
        padding-top: 100px !important;
        padding-bottom: 30px !important;
        justify-content: flex-start !important;
    }

    #wedding h2 {
        font-size: 38px !important;
        margin-bottom: 28px !important;
    }

    #wedding .wedding-grid-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 40px !important;
        max-width: 1200px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    #wedding .wedding-text {
        flex: 1 !important;
        max-width: 450px !important;
        padding: 0 10px !important;
        text-align: center !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #wedding .wedding-text p {
        font-size: 19px !important;
        line-height: 1.8 !important;
        margin-bottom: 16px !important;
    }

    /* Wedding photos EXACT same as hero */
    .wedding-photo-box.desktop-only {
        width: 380px !important;
        height: 480px !important;
        min-width: 380px !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
    }

    /* Wedding info icons larger */
    #wedding .accordion-content i[data-lucide] {
        width: 38px !important;
        height: 38px !important;
    }

    #wedding .accordion-content h4 {
        font-size: 16px !important;
    }

    #wedding .accordion-content p {
        font-size: 17px !important;
        line-height: 1.8 !important;
    }

    #wedding .accordion-item {
        margin-bottom: 0 !important;
    }

    #wedding .accordion-header {
        padding: 20px 10px !important;
    }

    #wedding .accordion-content {
        padding: 0 10px 25px !important;
    }

    /* Wedding location title and link larger */
    #wedding .accordion-header h3 {
        font-size: 18px !important;
    }

    #wedding a[href*="maps"],
    #wedding a[href*="localiza"] {
        font-size: 14px !important;
    }

    /* Wedding carousel photos MUCH larger */
    .wedding-carousel>div {
        width: 360px !important;
        height: 480px !important;
        min-width: 360px !important;
    }

    .wedding-photo-box {
        height: 550px !important;
        min-height: 550px !important;
    }


    /* Gift Section - Better readability and vertical centering */
    #gift {
        padding-top: 90px !important;
        padding-bottom: 50px !important;
        justify-content: center !important;
    }

    #gift h2 {
        font-size: 38px !important;
        margin-bottom: 22px !important;
    }

    /* Gift icon larger */
    #gift i[data-lucide="gift"] {
        width: 50px !important;
        height: 50px !important;
    }

    #gift .font-main {
        font-size: 20px !important;
        line-height: 1.9 !important;
        margin-bottom: 40px !important;
    }

    #gift .font-main p {
        margin-bottom: 12px !important;
    }

    /* Gift card larger and more readable */
    #gift>div>div[style*="background: #fff"] {
        padding: 45px 40px !important;
        min-width: 550px !important;
    }

    #gift>div>div[style*="background: #fff"]>div {
        margin-bottom: 28px !important;
        padding-bottom: 22px !important;
    }

    #gift .font-sc {
        font-size: 13px !important;
    }

    #gift #iban-text {
        font-size: 19px !important;
    }

    #gift button[onclick*="copy"] {
        font-size: 12px !important;
    }

    /* RSVP Section - Better spacing and readability */
    #rsvp {
        padding-top: 90px !important;
        padding-bottom: 50px !important;
        justify-content: center !important;
    }

    #rsvp h2 {
        font-size: 38px !important;
        margin-bottom: 18px !important;
    }

    #rsvp .font-main {
        font-size: var(--p-body-size-desktop, 20px) !important;
        margin-bottom: 45px !important;
    }

    /* RSVP form larger */
    .rsvp-card {
        max-width: 1000px !important;
        margin: 0 auto !important;
        padding: 60px 80px !important;
    }

    .rsvp-input {
        font-size: 19px !important;
        padding: 16px 20px !important;
    }

    #rsvp-steps-content label {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }

    .btn-option {
        font-size: 17px !important;
        padding: 18px !important;
    }

    #btn-next,
    #btn-back {
        font-size: 16px !important;
        padding: 20px 60px !important;
    }

    /* Countdown DRAMATICALLY larger */
    .countdown {
        font-size: 32px !important;
        margin-top: 45px !important;
        font-weight: 600 !important;
        letter-spacing: 0.05em !important;
    }

    /* Standardize all h2 titles to 38px for consistency in desktop */
    section#wedding h2,
    section#accommodation h2,
    section#recommendations h2,
    #gift-section-title,
    section#gift h2,
    section#rsvp h2 {
        font-size: 38px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.15em !important;
        line-height: 1.2 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* iPad / Tablet Specific Adjustments (769px - 1200px) */
@media (min-width: 769px) and (max-width: 1200px) {

    /* Hero: Reduce padding slightly for better fit */
    #hero {
        padding-top: 80px !important;
        padding-bottom: 20px !important;
    }

    .hero-photos {
        margin: 15px auto 25px !important;
        gap: 15px !important;
    }

    .hero-date {
        margin-bottom: 15px !important;
    }

    .hero-phrase {
        margin-top: 15px !important;
    }

    /* Recommendations: Increase padding to avoid header overlap */
    #recommendations {
        padding-top: 110px !important;
    }
}

/* 9. Countdown Grid Optimization */
.countdown-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
}

.unit-num {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: #999999;
    line-height: 1;
}

.unit-label {
    font-family: var(--font-sc);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-top: 4px;
}

.countdown-separator {
    font-family: var(--font-serif);
    font-size: 20px;
    color: #eee;
    padding-bottom: 12px;
}

@media (min-width: 769px) {
    .countdown-grid {
        gap: 30px;
    }

    .countdown-unit {
        min-width: 100px;
    }

    .unit-num {
        font-size: 42px;
    }

    .unit-label {
        font-size: 13px;
        letter-spacing: 0.2em;
        margin-top: 8px;
    }

    .countdown-separator {
        font-size: 32px;
        padding-bottom: 20px;
    }
}

@media (max-width: 400px) {
    .countdown-grid {
        gap: 4px;
    }

    .countdown-unit {
        min-width: 55px;
    }

    .unit-num {
        font-size: 22px;
    }

    .unit-label {
        font-size: 8px;
    }
}

/* 9.1 Gift Card Compact Design */
.gift-card-body {
    background: #fff;
    border: 1px solid #eee;
    padding: var(--gift-card-padding);
    display: inline-block;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    text-align: left;
}

.gift-item {
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.gift-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.gift-label {
    font-family: var(--font-sc);
    font-size: 13px;
    letter-spacing: 0.15em;
    color: #bbb;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.gift-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.gift-text {
    font-family: var(--font-main);
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.2;
    word-break: break-all;
}

#iban-text.gift-text {
    font-size: 20px;
    font-weight: 600;
}

.gift-copy-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-sc);
    font-size: 12px;
    letter-spacing: 0.1em;
    cursor: pointer;
    color: #888;
    text-decoration: underline;
    transition: color 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.gift-copy-btn:hover {
    color: var(--black);
}


/* 10. Vertical Compression for Short Devices (e.g. iPhone SE, S8+) */
@media (max-height: 760px) and (max-width: 768px) {
    :root {
        --section-v-padding: 65px;
        --element-v-margin: 12px;
        --h2-title-size: 18px;
        --p-body-size-mobile: 13px;
        --gift-card-padding: 12px 15px;
    }

    section,
    .snap-section {
        padding-top: var(--section-v-padding) !important;
        padding-bottom: 20px !important;
        justify-content: flex-start !important;
    }

    .hero-photos,
    .wedding-carousel {
        margin-bottom: 5px !important;
        max-height: 30vh !important;
    }

    .photo-box img,
    .wedding-photo-box img {
        max-height: 30vh !important;
    }

    .wedding-text h3 {
        margin-bottom: 5px !important;
        font-size: 15px !important;
    }

    .wedding-text p {
        margin-bottom: 5px !important;
        line-height: 1.3 !important;
    }

    #wedding-info h3 {
        margin-bottom: 8px !important;
    }

    #wedding-info .icon-box {
        margin-bottom: 4px !important;
        width: 28px !important;
        height: 28px !important;
    }

    #wedding-info i[data-lucide] {
        width: 12px !important;
    }

    #wedding-info p {
        font-size: 11.5px !important;
        line-height: 1.2 !important;
    }

    /* Aggressive compression for Gift Card */
    .gift-card-body {
        padding: 15px 15px !important;
    }

    .gift-item {
        padding-bottom: 6px !important;
        margin-bottom: 8px !important;
    }

    .gift-label {
        font-size: 10px !important;
        margin-bottom: 2px !important;
    }

    #iban-text.gift-text {
        font-size: 16px !important;
    }

    .gift-text {
        font-size: 15px !important;
        line-height: 1.2 !important;
    }

    .gift-row {
        gap: 2px !important;
    }

    .gift-copy-btn {
        font-size: 10px !important;
    }

    #gift-section-title {
        margin-bottom: 5px !important;
    }

    .rsvp-card {
        padding: 15px 12px !important;
        min-height: auto !important;
    }

    .scroll-indicator {
        bottom: 8px !important;
        transform: translateX(-50%) scale(0.6) !important;
    }
}