/* RSVP button pulse animation */
.pulse-rsvp {
    animation: pulse-rsvp 0.6s cubic-bezier(.4,0,.6,1) 0s 3;
}

@keyframes pulse-rsvp {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 174, 0, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(255, 174, 0, 0.2);
        transform: scale(1.08);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 174, 0, 0.0);
        transform: scale(1);
    }
}
/* Vertically center Colorbox popup in viewport */
#colorbox, #cboxOverlay, #cboxWrapper {
    top: 0 !important;
}
#colorbox {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}
/* Footer funny image styles */
.footer-img {
    max-width: 350px;
    width: 80%;
    margin-top: 26px;
    display: block;
}

/* Minimalist countdown timer styles */
.countdown-timer {
    font-family: 'Poiret One', serif;
    font-size: 1.2em;
    color: var(--white);
    margin-bottom: 18px;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: center;
    gap: 0.3em;
    align-items: center;
}
.countdown-timer .cd-days {
    font-weight: 500;
    background: var(--white);
    color: var(--black);
    border-radius: 6px;
    padding: 0.2em 0.6em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Underline .jump links */
.jump {
    text-decoration: underline;
    cursor: pointer;
}
/* Show checkmark on hover if not checked */
.check:not(.checked):hover::after {
    content: '\2713'; /* Unicode checkmark */
    display: inline-block;
    color: #43a047;
    font-size: 1.5em;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
@font-face {
    font-family: 'AlexBrush';
    src: url('../fonts/alex/AlexBrush-Regular.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
:root {
    --white: hsl(36, 83%, 95%);
    --black: #191823;
    --neutral: #191823;
    --neutral6: #76748E;
    --neutral8: #48455E;
    --neutral9:#2C2A3B;
    --primary: #3d5347;
    --primary_dark: #26332c;
    --background: var(--white);
    --border: #EEEEED;
    --shadow: #CCCCCC;
}
/* Sticky Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(25, 24, 35, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0;
    font-family: 'Poiret One', sans-serif;
    font-size: 0.9em;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0); /* Always visible for debugging */
    transition: transform 0.3s ease-in-out;
    display: block; /* Ensure it's not display: none */
}

nav.visible {
    transform: translateY(0);
}

nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

nav .nav-brand {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1em;
    text-decoration: none;
    display: flex;
    align-items: center;
}

nav .nav-swan {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

nav .nav-swan:hover {
    transform: scale(1.1);
}

nav .nav-links {
    display: flex;
    gap: 2em;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav .nav-links li {
    margin: 0;
}

nav .nav-links a {
    color: var(--white);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    cursor: pointer;
}

nav .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

nav .nav-links a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

/* Mobile menu toggle */
nav .nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5em;
    cursor: pointer;
    padding: 8px;
}

/* Mobile styles */
@media (max-width: 768px) {
    nav .nav-container {
        padding: 0 15px;
        height: 50px; /* Smaller height for mobile */
        position: relative; /* For absolute positioning of elements */
    }
    
    nav .nav-brand {
        font-size: 1em; /* Smaller brand font on mobile */
        position: absolute;
        left: 15px;
    }
    
    nav .nav-swan {
        height: 30px; /* Smaller swan on mobile */
    }
    
    nav .nav-toggle {
        display: block;
        color: white;
        font-size: 1.2em;
        padding: 5px;
        background: transparent;
        border: none;
        cursor: pointer;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    nav .nav-links {
        position: absolute;
        top: 50px; /* Match the nav height */
        left: 0;
        right: 0;
        background: rgba(25, 24, 35, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        display: none; /* Hidden by default */
        gap: 0;
        padding: 10px 0;
        z-index: 1001;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }
    
    nav .nav-links.open {
        display: flex; /* Show when open */
    }
    
    nav .nav-links li {
        width: 100%;
        margin: 0;
    }
    
    nav .nav-links a {
        padding: 12px 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: center;
        width: 100%;
        display: block;
        color: white;
        font-size: 1.1em;
    }
    
    nav .nav-links li:last-child a {
        border-bottom: none;
    }
}

/* Add padding to body to account for fixed nav */
body {
    padding-top: 0; /* Will be added via JS when nav becomes visible */
}

html, body {
    margin: 0;
    height: 100%;
    scroll-behavior: smooth;
    overflow-y: auto;
    overscroll-behavior: contain;
    overflow-x: hidden;
    position: relative;
}
body {
    text-align: center;
    background-color: var(--background);
    color: var(--black);
    font-family: 'Poiret One', serif;
    height: 100vh;
    scroll-snap-type: y mandatory;
    scroll-snap-stop: normal;
}
header {
    z-index: 9999;
    position: fixed;
    right: 50px;
    top: 20px;
    font-family: sans-serif;
    color: var(--white);
}
a {
    color: var(--p);
}
label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
  }
  
  input, select, button {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    font-size: 16px;
    box-sizing: border-box;
  }
section:not(:last-child) {
    min-height:100vh;
    scroll-snap-align: start;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
section .title {
    font-size: 3em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--white);
    color: var(--white);
    margin-bottom: 30px;
    margin-top:30px;
    display: inline-block;
}
section .title.black {
    color: var(--black);
    border-bottom: 1px solid var(--black);
}
section .subtitle {
    font-size: 2em;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(61, 83, 71, 0.5); 
    z-index: 1;
}
.background-image {
    background-color: var(--primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}
.button {
    font-family:  "Poiret One", serif;
    color:var(--white);
    background: var(--primary);
    border:2px solid var(--primary);
    padding: 10px 20px;
    display: block;
    margin: 10px auto 10px;
    font-weight: bold;
    min-width: 150px;
    box-sizing: border-box;
    border-radius: 10px;
    font-size:1.2em;
    text-transform: capitalize;
    min-height:40px;
    max-width: 250px;
    text-align: center;
    appearance: none;
    transition: 0.2s background-color ease-in-out;
    text-decoration: none;
}
.button:hover {
    cursor: pointer;
}
.button.white {
    background: var(--white);
    color: var(--primary);
}
.button.light {
    color:var(--white);
    background: transparent;
    border:2px solid var(--white);
}
.button.ghost {
    color:var(--primary);
    background: transparent;
}
.button.ghost.active {
    color:var(--white);
    background: var(--primary);
}
.button.small {
    font-size: 16px;
}
.button.inline {
    display: inline-block;
    margin-right: 10px;
}
#notifications {
    display: none;
    visibility: hidden;
    position: relative;
    background-color: var(--primary);
    width: 60px;
    height: 60px;
    border-radius: 100%;
    line-height: 60px;
    font-weight: bold;
    box-shadow: 0 0 3px 3px var(--white);
    z-index: 999999999;
    transition: box-shadow 0.4s ease;
    cursor:pointer;
}
#notifications.active {
    box-shadow: 0 0 3px 3px rgba(253,245,233,0);
  }
#notifications i {
    font-size: 34px;
    line-height: 60px;
}
#checklist {
    display: none;
    position: fixed;
    width: 250px;
    right: 50px;
    background: var(--primary);
    padding: 10px 20px;
    text-align: left;
    box-shadow: 0 0 3px 3px var(--white);
    top: 20px;
    border-radius: 0 30px 0 0;
}
#checklist .title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 10px;
    padding-right: 40px;
}
.checkitem {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    cursor:pointer;
}
.checktext {
    width: calc(100% - 40px);
}
.check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--white);
    border-radius: 5px;
    position: relative;
    background: transparent;
    transition: background 0.2s, border-color 0.2s;
}

.check.checked {
    background-color: #4caf50;
    border-color: #388e3c;
    color: white;
}
.check.checked::after {
    content: '✔';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    color: white;
    pointer-events: none;
}
.new {
    position: absolute;
    background-color: red;
    border-radius: 100%;
    width: 15px;
    height: 15px;
    top: 10px;
    right: 10px;
    font-size:10px;
    font-family:Arial, Helvetica, sans-serif;
    line-height: 15px;
  }
  .new.pulse {
    animation: pulse 1.5s infinite;
  }
  .new.pulse:hover {
    animation: none;
  }
  
  @keyframes pulse {
    0% {
      transform: scale(0.9);
      box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    70% {
      transform: scale(1);
      box-shadow: 0 0 0 15px rgba(255, 0, 0, 0);
    }
    100% {
      transform: scale(0.9);
      box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
  }
/* hero */
.hero {
    background-image: url('../images/venue_dock.jpg');
}
.hero .overlay {
    background-color: rgba(61, 83, 71, 0.9); 
}
.content {
    z-index: 2;
}
.hero .content img {
    width:250px;
}
.hero .content .header {
    color: var(--white);
    font-weight: normal;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
    padding: 0 1rem;
    line-height:0.8;
}
.hero .content .header > * {
    display: block;
}
.hero .content .header > .name {
    font-size:12em;
    font-family:"AlexBrush", serif;
}
.hero .content .header > .subtitle {
    font-size: 3em;
    font-family:  "Poiret One", serif;
    font-weight:100;
    text-transform: uppercase;
    margin-top:30px;
}

/* img_text */
.img_text {
    display: flex;
    height: 100vh;
}
.img_text .title {
    font-size: 4em;
}
.img_text .subtitle {
    font-size:3em;
}
.img_text .column {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:40px;
}
.img_text .left .image-border {
    padding: 10px;
    border: 20px double var(--primary);
    margin: 50px;
}
.img_text .left img {
    max-width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
}
.img_text .right .text-content {
    text-align: center;
}
.img_text .map {
    width: 140px;
}
.map_container {
    position: relative;
    width: fit-content;
    margin: 20px auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    line-height: 8px;
}
.map_container .absolute {
    position: absolute;
}
.pin {
    width: 20px;
    left: 55px;
    top: 30px;
}
.map_container .absolute.braga {
    left: 65px;
    top: 53px;
}
.map_container .absolute.porto {
    left: 47px;
    top: 67px;
}
.map_container .absolute.lisbon {
    left: 16px;
    top: 146px;
}
.map_container .absolute.algarve {
    left: 30px;
    top: 229px;
}

/* introduction */
.introduction {
    background-image: url('../images/venue_ceremony.jpeg');
}
.introduction .content {
    width: calc(90% - 140px);
    height: calc(80% - 40px);
    background-color: rgba(61, 83, 71, 0.8); 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    flex-direction:column;
    padding:20px 70px;
    max-width: 800px;
}
.introduction .body {
    font-family:  "Poiret One", serif;
    font-size:2em;
    margin-top:1em;
}
/* schedule */
.minischedule {
    flex-direction: column;
}
.minischedule .days {
    display: flex;
    width: 100%;
    max-width: 1000px;
    align-items: center;
}
.minischedule .date {
    font-family:  "Poiret One", serif;
    background-color: var(--primary);
    color:var(--white);
    padding: 15px;
    font-size:1.6em;
}
.minischedule .day {
    width: 100%;
    border: 1px solid var(--primary);
    aspect-ratio: 1;
    margin: 10px;
    box-shadow: 0 0 10px 0px var(--primary);
}
.minischedule .text {
    font-size: 2em;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    aspect-ratio: 2 / 1.6;
    font-family: "Poiret One", serif;
    padding: 20px
}
.minischedule .icon {
    width: 124px;
    height: 124px;
    background-image: url(../images/icons_green.png);
    background-repeat: no-repeat;
    display: inline-block;
    background-size: 960px 960px;
}
.minischedule .icon.champagne {
    background-position: -650px -40px;
}
.minischedule .icon.ring {
    background-position: -800px -650px;
}
.minischedule .icon.dancing {
    background-position: -340px -650px;
}
.schedule {
    flex-direction: column;
    padding:40px;
    height: calc(100vh - 80px);
}
.schedule .card-carousel { 
    font-family:  "Poiret One", serif;
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 100%;
    margin: 40px auto 10px;
    perspective: 1000px;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 70vh;
}
.schedule .card {
    position: absolute;
    width: 80%;
    height: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease/*, z-index 0.5s ease*/;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    opacity: 0.8;
    flex-direction: column;
    justify-content: space-evenly;
    max-width: 600px;
    cursor:pointer;
}
.schedule .card .title {
    font-size: 1em;
    display: block;
    padding: 15px 5px;
    background-color: var(--primary);
    color: var(--white);
    width: calc(100% - 10px);
    overflow: hidden;
    border-radius: 10px 10px 0px 0px;
    margin-bottom: 20px;
    position: absolute;
    top:0;
}
.schedule .card .title i {
    margin-right:5px;
}
.schedule .card .time {
    font-weight: bold;
    font-size: 0.7em;
    text-transform: uppercase;
    margin-right: 10px;
    line-height: 1em;
    color: var(--primary);
}
.schedule .schedule .schedule .schedule .card .items {
    margin-top: 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}
.schedule .card .icon {
    width: 62px;
    height: 62px;
    background-image: url(../images/icons_green.png);
    background-repeat: no-repeat;
    display: inline-block;
    background-size: 480px 480px;
}
.schedule .card .icon.champagne {
    background-position: -320px -20px;
}
.schedule .card .icon.transport {
    background-position: -400px -20px;
}
.schedule .card .icon.ring {
    background-position: -400px -320px;
}
.schedule .card .icon.drink {
    background-position: -400px -400px;
}
.schedule .card .icon.dinner {
    background-position: -240px -320px;
}
.schedule .card .icon.dancing {
    background-position: -170px -320px;
}
.schedule .card .icon.microphone {
    background-position: -20px -250px;
}

/* rsvp */
.rsvp {
    display: flex;
    height: 100vh;
    background-color: var(--primary);
    color: var(--background);
}
.rsvp .subtitle {
    font-size: 1.1em;
}
.rsvp .left-column, .rsvp .right-column {
    flex: 1;
}
.rsvp .left-column {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    flex-direction: column;
}
.rsvp input {
    background-color: #ffffffab;
    border-left-width: 0px;
    border-right-width: 0px;
    border-top-width: 0px;
    font-family: helvetica, arial, sans-serif;
    letter-spacing: 0.6px;
}
.rsvp .right-column {
    position: relative;
    background-image: repeating-linear-gradient(to right, var(--background), var(--background) 60px, transparent 0px, transparent 120px);
    background-size: 100% 100%;
    height: 100vh;
}

/* Save the Date */
#rsvpForm .columns {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-top: 1px dotted var(--black);
    padding-bottom: 10px;
    padding-top: 10px;
}
#rsvpForm .columns .icon {
    padding:10px;
}
#rsvpForm .columns .text {
    flex-grow:1;
}
#rsvpForm .icon img {
    width: 100px;
}
.rsvp-card {
    max-width: 760px; margin: 0 auto; text-align: left;
    background: var(--white); border: 1px solid var(--border);
    border-radius: 16px; padding: 28px; box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    color: var(--black);
    font-size: 1.4em;
    font-family: "Poiret One", serif;
}
.rsvp-card h2 { 
    margin: 0 0 8px; 
}
.rsvp-card input[type="text"], .rsvp-card input[type="email"] {
    padding: 12px 14px; 
    border:1px solid var(--border); 
    border-radius: 10px;
    font-size: 16px; 
    outline: none; 
    transition: border-color 150ms ease, box-shadow 150ms ease;
    background: var(--primary);
    color: var(--white);
    max-width: 400px;
}
.rsvp-card input:focus { 
    border-color: var(--primary); 
    box-shadow: 0 0 0 3px rgba(61,83,71,0.15); 
}
#person2, #person3, #person4 {
    display: none;
}
.add-plusone { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 6px; cursor: pointer; }
.guest2.hidden { display: none; }

.note { font-size: 14px; opacity: 0.8; margin: 12px 0 16px; }

.button.rsvp-submit { min-width: 160px; }
.button.rsvp-submit[disabled] { opacity: 0.6; cursor: not-allowed; }

.status { margin-top: 12px; font-size: 14px; min-height: 20px; }
.status.ok { color: #1a7f37; }
.status.err { color: #b00020; }

/* Honeypot */
.hp { position: absolute !important; left: -9999px !important; height: 0 !important; width: 0 !important; }

/* RSVP Display Styles */
.rsvpd {
  display: inline-block;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin: 8px 8px 8px 0;
  text-align: center;
  min-width: 120px;
  vertical-align: top;
}

.rsvpd img {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto 8px auto;
}

.rsvpd span {
  display: block;
  font-size: 0.9em;
  line-height: 1.3;
}

.rsvpd span:first-of-type {
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}

.rsvpd span:last-of-type {
  font-size: 0.8em;
  color: #666;
}

/* Container for RSVP items */
.rsvp-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}


/* accommodation */
.accommodation {
    background-image: url('../images/hotel_night.jpg');
}
.accommodation .title {
    color: var(--white);
    margin-bottom: 40px;
}
.accommodation .body {
    font-size: 1.4em;
    font-family: 'Poiret One';
}
.accommodation .columns {
    height: calc(80% - 80px);
    display: flex;
    align-items: center;
    color: var(--white);
}
.accommodation .column {
    width: 300px;
    height: 100%;
    height: -webkit-fill-available;
    background-color: rgba(61, 83, 71, 0.8);
    padding: 40px 70px;
    margin: 40px;
}
.accommodation .column .body:not(:last-child) {
    margin-bottom:40px;
}
.accommodation .subtitle {
    margin-bottom: 10px;
}

/* details */ 
.details {
    flex-direction: column;
}
.details .title {
    width: min-content;
}
.details .items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 90%;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    font-family:  "Poiret One", serif;
    max-width: 600px;
}
.details .item {
    margin-bottom: 40px;
}

/* faqs */ 
.faqs {
    flex-direction: column;
}

/* Itineraries */
.itineraries {
    flex-direction: column;
    padding: 40px 20px;
    font-family: 'Poiret One', serif;
}

.itineraries .subtitle {
    font-size: 1.6em;
    margin-bottom: 30px;
}

.itineraries .filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
}

.itineraries .filter {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
    max-width: 400px;
}

.itineraries .filter-title {
    font-size: 1.2em;
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--primary);
    text-align: center;
}

.itineraries .options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.itineraries .option {
    background: #ffffff;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
    text-align: center;
}

.itineraries .option:hover {
    background: rgba(61, 83, 71, 0.1);
}

.itineraries .option.selected {
    background: var(--primary);
    color: white;
}

.itineraries .option[data-compulsory="true"] {
    position: relative;
}

.itineraries .option[data-compulsory="true"]::after {
    content: '*';
    position: absolute;
    top: 2px;
    right: 5px;
    color: inherit;
}

.itineraries .calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 2000px;
    margin-top: 30px;
}

.itineraries .day {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.itineraries .day.empty {
    display: none;
}

.itineraries .date {
    background: var(--primary);
    color: white;
    padding: 15px;
    font-size: 1.4em;
    text-align: center;
    position: relative;
}

.itineraries .date .date-number {
    font-size: 0.8em;
    opacity: 0.9;
}

.itineraries .day .text {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100px;
}

.itineraries .itinerary-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background-color 0.2s;
}

.itineraries .itinerary-item:last-child {
    border-bottom: none;
}

.itineraries .itinerary-item:hover {
    background-color: #f9f9f9;
}

.itineraries .itinerary-item.clickable {
    cursor: pointer;
}

.itineraries .itinerary-item.compulsory {
    background-color: rgba(61, 83, 71, 0.05);
}

.itineraries .itinerary-item.compulsory .icon {
    color: var(--primary);
}

.itineraries .itinerary-item .icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(61, 83, 71, 0.1);
    border-radius: 50%;
    color: #666;
    flex-shrink: 0;
}

.itineraries .itinerary-item .content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.itineraries .itinerary-item .time {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 5px;
    color: var(--primary_dark);
}

.itineraries .itinerary-item .title {
    font-size: 1.1em;
    margin: 0;
    padding: 0;
    border: none;
    color: var(--black);
    text-align: left;
    display: block;
    width: 100%;
}

.itineraries .itinerary-item .description {
    font-size: 0.9em;
    margin-top: 5px;
    color: #666;
}

.itineraries .itinerary-item .links {
    margin-top: 8px;
    display: flex;
    gap: 10px;
}

.itineraries .itinerary-item .link {
    font-size: 0.85em;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

.itineraries .itinerary-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.itineraries .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
}

.itineraries .legend-item i {
    color: var(--primary);
}

.itineraries .legend-item.reset {
    margin-left: 20px;
}

.itineraries .legend-item.reset button {
    padding: 8px 12px;
    margin: 0;
    font-size: 0.9em;
    min-width: auto;
    min-height: auto;
}

/* Itinerary Modal */
.itinerary-modal {
    padding: 25px;
    max-width: 600px;
    font-family: 'Poiret One', serif;
}

.itinerary-modal h3 {
    font-size: 1.8em;
    margin: 0 0 15px;
    color: var(--primary);
}

.itinerary-modal .time {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--primary_dark);
    font-weight: bold;
}

.itinerary-modal .description {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.1em;
}

.itinerary-modal .booking {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.itinerary-modal .booking-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary_dark);
}

.itinerary-modal .booking-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9em;
}

/* Responsive styles for itinerary */
@media (max-width: 1000px) {
    .itineraries .filter {
        min-width: 100%;
        margin: 0 15px;
    }
    
    .itineraries .calendar {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .itineraries .option {
        font-size: 0.85em;
        padding: 8px 12px;
    }
    
    .itineraries .itinerary-item {
        padding: 12px 10px;
    }
    
    .itineraries .itinerary-item .icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .itineraries .legend-item {
        font-size: 0.9em;
    }
}

/* footer */
.footer {
    background-color: var(--primary);
    color:var(--white);
}

/* side-nav */
.side-nav {
    position: fixed;
    top: calc(50% + 40px);
    right: 40px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 20px 10px;
    transition: width 0.3s ease;
    overflow: hidden;
    min-width: 20px;
    z-index: 1000;
}
.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.side-nav li {
    display: flex;
    align-items: center;
    margin: 12px 0;
    cursor: pointer;
    color: white;
    transition: background 0.2s ease;
    justify-content: center;
}
.side-nav .label {
    margin-left: 10px;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s;
    display: none;
    margin-right: 10px;
}
.side-nav:hover li {
    justify-content: flex-end;
}
.side-nav:hover .label {
    opacity: 1;
    display: inline-block;
}
.side-nav .dot {
    width: 14px;
    height: 14px;
    background: var(--background);
    border-radius: 50%;
    transition: background 0.3s;
    margin: 10px 0px;
}
.side-nav:hover .label {
    display:block;
}
.side-nav li.active .dot {
    background: var(--primary);
}
.confetti-heart {
    position: fixed;
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.85;
    transform: translate(-50%, -50%);
  }
  
  .confetti-heart .left,
  .confetti-heart .right {
    position: absolute;
    width: 8px;
    height: 12px;
    border-radius: 8px 8px 0 0;
    top: 0;
  }
  
  .confetti-heart .left {
    left: 0;
    transform: rotate(-45deg);
  }
  
  .confetti-heart .right {
    right: 0;
    transform: rotate(45deg);
  }
  
  .confetti-heart .bottom {
    position: absolute;
    left: 4px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 0 0 8px 8px;
    transform: rotate(0deg);
  }
  .footer {
    font-size: 2em;
    flex-direction: column; 
    gap: 1em;
   }
   #login-btn {
    display:none;
    margin-top: 20px;
   }
  
  
@media (max-width: 1000px) {
    .rsvp-row { 
        grid-template-columns: 1fr; 
    }
    header {
        right: 25px;
    }
    .hero .content .header > .name {
        font-size: 6em;
    }
    .hero .content .header > .subtitle {
        font-size: 2em;
        line-height: 1.1;
    }
    section .title {
        font-size: 3em;
    }
    section:not(:last-child) {
        padding-top: 30px;
        padding-bottom: 140px;
    }
    .img_text .title {
        font-size:2.4em;
    }
    .img_text .subtitle {
        font-size: 2em;
    }
    .introduction .overlay {
        height: 100%;
        min-height: 100vh;
    }
    .introduction .content {
        height: auto;
        margin: 20px 0;
        width: calc(90% - 80px);
        padding: 20px 20px;
    }
    .introduction .body {
        font-size:1.4em;
    }
    .img_text {
        flex-direction: column;
        justify-content: space-around;
    }
    .img_text .left .image-border {
        margin: 10px;
    }
    .img_text .column {
        padding: 20px 40px;
    }
    .minischedule .days {
        flex-direction: column;
        max-width: 60%;
    }
    .rsvp .right-column {
        display: none;
    }
    #rsvpForm .columns {
        display: flex;
        flex-direction: column;
    }
    .content h1 {
        font-size: 2.5rem;
    }
    .details .item .subtitle {
        font-size: 2.4em;
    }
    .details .body {
        font-size: 1.2em;
    }
    .accommodation .title {
        margin-bottom: 0px;
        margin-top: 20px;
    }
    .accommodation .columns {
        flex-direction: column;
        width: 90%;
        margin: 0 auto;
    }
    .accommodation .column {
        width: calc(100% - 60px);
        padding: 40px 20px;
    }
    .button.small {
        font-size: 14px;
        min-width: revert;
        padding: 10px;
    }
    .footer {
        padding-left: 40px;
        padding-right: 40px;
    }
    .side-nav {
        right: 10px;
        min-width: 10px;
        padding: 10px 5px;
    }
    /* On mobile, labels are hidden by default */
    .side-nav .label {
        display: none !important;
        opacity: 0 !important;
    }
    /* When .show-labels is added, show labels */
    .side-nav.show-labels .label {
        display: inline-block !important;
        opacity: 1 !important;
    }
    .countdown-timer {
        flex-direction: column;
    }

    .rsvpd {
        min-width: calc(50% - 12px);
        margin: 4px;
    }

}

/* === Added: Card transitions (JS is source of truth for transform) === */
.card {
    will-change: transform, opacity;
    transition: transform 300ms ease, opacity 200ms ease, z-index 0s linear;
}

/* === Added: Button hover tidy === */
.button {
    transition: transform 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.button:not(.light):hover { transform: translateY(-2px); }
.button.light:hover { transform: translateY(-2px); }

/* === Added: Side nav dot emphasis === */
.side-nav li .dot {
    opacity: 0.4;
    transition: opacity 150ms ease, transform 150ms ease;
}
.side-nav li.active .dot {
    opacity: 1;
    transform: scale(1.15);
}
