/*  Floating Hearts from Canva v1 - ignore Copilot and go and try and find the code and steal out of there  */
/* Floating pastel hearts */
#petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh; /* only top 20% of the screen */
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}


.heart {
      position: absolute;
      width: 8px;
      height: 8px;
      opacity: 0;
      pointer-events: none;
      animation: floatUpwards linear infinite;
      z-index: 9999;
    }

.petal {
      position: absolute;
      width: 12px;
      height: 12px;
      border-radius: 50% 0 50% 50%;
      opacity: 0;
      pointer-events: none;
      animation: floatUpwards linear infinite;
    }

.heart svg {
    width: 100%;
    height: 100%;
}

/* Animation from V1 */
@keyframes floatUpwards {
      0% { transform: translateY(-5%) translateX(0) rotate(0deg); opacity: 0; }
      15% { opacity: 0.7; }
      50% { transform: translateY(50%) translateX(30px) rotate(180deg); opacity: 0.5; }
      85% { opacity: 0.3; }
      100% { transform: translateY(110%) translateX(-20px) rotate(360deg); opacity: 0; }
}


/* Floating Nav Bar */
/* Hidden by default */
#topNav {
    position: fixed;
    top: 20px;
    left: 10%;
    width: 80%;
    padding: 14px 0;
    background: rgba(255, 248, 239, 0.85); /* warm cream with transparency */
    backdrop-filter: blur(6px);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 999;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.4s ease;
}

/* When active */
#topNav.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.05s;
}

#topNav ul {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
}

#topNav a {
    font-family: "Alice", serif;
    font-size: 1.1rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

#topNav a:hover {
    color: #f5a4a4;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    margin: 0 auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}



.nav-brand {
    font-family: "Alex Brush", cursive;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #1a1a1a;
    white-space: nowrap;
    margin: 0;
  }

.nav-rsvp-btn {
    background: #1a4d2e;
    color: #ffe082;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: "Alice", serif;
    font-size: 1rem;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-left: 10px;
  }
  .nav-rsvp-btn:hover {
    background: #0f3620;
  }


/* Invitation Text Section */
#invitationText {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.invite-line {
    font-family: "Alice", serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-top: 18px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.invite-title {
    font-family: "Alex Brush", cursive;
    font-size: 4rem; /* double size compared to invite-line */
    color: var(--text-dark);
    margin-top: 0;
}


/* Timeline Section */
.timeline {
    position: relative;
    width: 100%;
    padding: 40px 0; /* reduced vertical padding */
    z-index: 2;
    background: linear-gradient(to bottom, #fffedd 0%, #fdf6ed 100%);

}

.timeline-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.timeline-inner {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.timeline-header {
    text-align: center;
    margin-bottom: 60px;
}

.timeline-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    margin-bottom: 8px;
    color: #b4d4e3;
}

.timeline-title {
    font-family: "Alice", serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 8vw, 2.4rem);
    color: #5a5a5a;
}

.timeline-items {
    max-width: 650px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    transition-delay: var(--delay);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--icon-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.timeline-icon:hover {
    transform: scale(1.08);
    transition: transform 0.2s ease;
}

.timeline-content {
    flex: 1;
}

.timeline-date {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    margin-bottom: 4px;
    font-family: "Josefin Sans", sans-serif;
    color: var(--date-color);
}

.timeline-heading {
    font-family: "Alice", serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 5vw, 1.4rem);
    color: #5a5a5a;
    margin-bottom: 8px;
}

.timeline-text {
    color: #7a7a7a;
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-line {
    width: 2px;
    flex-grow: 1;
    margin-top: 12px;
    background: linear-gradient(
        180deg,
        var(--line-color) 0%,
        transparent 100%
    );
    opacity: 0.8;
}

/* Closing note under timeline */
.timeline-note {
    text-align: center;
    margin-top: 40px;
    font-family: "Alice", serif;
    font-size: 1rem;
    color: #6a6a6a;
    line-height: 1.6;
}

.timeline-note span {
    font-style: italic;
    opacity: 0.9;
}

/* Modal */
.timeline-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.timeline-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.timeline-modal-content {
    background: #fffdf8;
    padding: 30px 40px;
    border-radius: 14px;
    border: 3px solid #ccc;
    max-width: 400px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #444;
}

.timeline-modal-text {
    font-family: "Alice", serif;
    font-size: 1.2rem;
    color: #444;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  
  /* Shrink the nav bar padding slightly */
    #topNav {
        padding: 10px 0;
        width: 90%;
        left: 5%;
    }

    /* A & B brand tighter + smaller */
    .nav-brand {
        font-size: 0.95rem;
        letter-spacing: 0.1em; /* was 0.2em */
    }

    /* Nav inner layout stays horizontal but tighter */
    .nav-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    /* Links closer together */
    .nav-links {
        display: flex;
        gap: 16px; /* was 40px on desktop */
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    /* RSVP button fits neatly */
    .nav-rsvp-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
        border-radius: 6px;
        white-space: nowrap;
    }

    /* Ensure right side stays compact */
    .nav-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
}

/* MODULE 7 — Navigation Buttons */
/* Soft backwash for Module 7 */
#navigationSection {
    padding-top: 0px; /* was 60px */
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 0 40px rgba(0,0,0,0.04);
    background: linear-gradient(
    180deg,
    #fff9fe 0%,
    #fffaf3 100%
);
    border-radius: 20px;
    width: 90%;
    margin: 0 auto;
}

/* Section title for Module 7 */
.info-section-title {
    font-family: "Alice", serif;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #5a5a5a;
    letter-spacing: 0.5px;
}

/* Optional soft divider under the title */
.info-section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background: #e0dcd2; /* soft neutral line */
    margin: 12px auto 0;
    border-radius: 2px;
}

.nav-buttons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

/* Base button styling */
.info-btn {
    display: flex;
    align-items: center;
    gap: 16px;

    background: #fffdf8;
    padding: 18px 22px;
    border-radius: 14px;
    text-decoration: none;

    border: 2px solid transparent;
    box-shadow: 0 0 0 rgba(0,0,0,0);

    transition: all 0.25s ease;
    color: #5a5a5a;
}

/* ICON CIRCLE — correct structure */
.icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Icon inside the circle */
.icon-circle svg {
    width: 22px;
    height: 22px;
    color: white;
}

/* Text block */
.info-text {
    text-align: left;
}

.info-text h3 {
    font-family: "Alice", serif;
    font-size: 1.2rem;
    margin: 0;
}

.info-text p {
    font-size: 0.95rem;
    margin: 4px 0 0;
    opacity: 0.8;
}

/* Pastel themes with borders + glow */
.pastel-yellow {
    border-color: #f2e8a8;
    box-shadow: 0 0 10px #f2e8a855;
}

.pastel-green {
    border-color: #c8e8ba;
    box-shadow: 0 0 10px #c8e8ba55;
}

.pastel-pink {
    border-color: #e38f8f;
    box-shadow: 0 0 10px #e38f8f55;
}

.pastel-blue {
    border-color: #9cc2d3;
    box-shadow: 0 0 10px #9cc2d355;
}

.pastel-lilac {
    border-color: #d3c4f2;
    box-shadow: 0 0 10px #d3c4f255;
}

/* Pastel icon circles — now applied to the wrapper */
.pastel-yellow .icon-circle {
    background: #f2e8a8;
}

.pastel-green .icon-circle {
    background: #c8e8ba;
}

.pastel-pink .icon-circle {
    background: #e38f8f;
}

.pastel-blue .icon-circle {
    background: #9cc2d3;
}

.pastel-lilac .icon-circle {
    background: #d3c4f2;
}

/* Hover effect */
.info-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.03);
}

/* Mobile tweaks */
@media (max-width: 640px) {

    .nav-buttons-wrapper {
        width: 80%;
        margin: 0 auto;
    }

    .info-btn {
        padding: 16px 18px;
    }

    .info-text h3 {
        font-size: 1.1rem;
    }

    .info-text p {
        font-size: 0.9rem;
    }
}

/********************* Information Pages CSS *********************/
/* Global */
/* PAGE WRAPPER */
.info-page {
    padding: 40px 24px 80px;
    border-radius: 20px;
    background: var(--page-gradient);
    max-width: 900px;
    margin: 40px auto;
}

/* TOP BAR */
.info-page-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ICON CIRCLE */
.info-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon-circle svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* RETURN BUTTON */
.return-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.return-btn svg {
    width: 22px;
    height: 22px;
    color: #555;
}

/* HEADER */
.info-page-title {
    font-family: "Alice", serif;
    font-size: 2rem;
    margin: 20px 0 10px;
    color: #444;
}

/* DIVIDER (matches Hero section) */
.info-divider {
    width: 120px;
    height: 2px;
    background: #d8d2c4;
    margin-bottom: 30px;
}

/* CONTENT */
.info-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

/* Footer button matching FAQ buttons */
.return-footer-btn {
    display: block;
    margin-top: 50px;
    padding: 14px 20px;
    text-align: center;

    font-family: "Alice", serif;
    font-size: 1.1rem;

    text-decoration: none;
    color: #000; /* black text */

    background: #fffdf8; /* same as FAQ buttons */
    border: 2px solid var(--page-accent); /* pastel border */
    border-radius: 12px;

    box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* soft drop shadow */

    transition: all 0.25s ease;
}

.return-footer-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.03);
}

/* Page fade-in */
.page-fade {
    opacity: 0;
    animation: fadeInPage 0.8s ease forwards;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Page fade-out */
.page-fade-out {
    animation: fadeOutPage 0.6s ease forwards;
}

@keyframes fadeOutPage {
    from { opacity: 1; }
    to { opacity: 0; }
}

/********************************************* TRavel Information Page ****************************************/
.map-container {
    margin: 20px 0 25px;
}

.airport-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.airport-buttons button {
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid var(--page-accent);
    background: #fffdf8;
    color: #333;
    font-family: "Alice", serif;
    cursor: pointer;
    transition: 0.25s ease;
}

.airport-buttons button.selected {
    background: #444;
    color: white;
    border-color: #444;
}

.airport-buttons button.selected .recommended-badge {
    background: #ffe08a; /* slightly brighter gold */
    color: #000;
}

.airport-buttons button:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
}

.airport-time-output {
    font-weight: bold;
    margin-bottom: 25px;
}

.section-divider {
    margin: 40px 0;
    border: none;
    height: 2px;
    background: #d8d2c4;
    width: 120px;
}

.section-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Alice", serif;
    margin-top: 40px;
}

.section-icon {
    width: 26px;
    height: 26px;
    color: #333;
}

.airport-message {
    margin-top: 10px;
    font-style: italic;
    opacity: 0.85;
}

.recommended-airport {
    position: relative;
}

.recommended-badge {
    position: absolute;
    top: -8px;
    right: -8px;

    background: #ffd966; /* soft pastel gold */
    color: #000;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 6px;

    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.airport-time-output {
    margin-top: 10px;
    line-height: 1.5;
}

.airport-time-output .label {
    font-weight: normal;
    opacity: 0.85;
}

.airport-time-output .time {
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 4px;
}

#dynamic-map {
    border-radius: 14px;
    overflow: hidden;
}

.train-section ul {
    padding-left: 1.2rem;   /* aligns bullets with paragraph text */
    margin-left: 0;         /* removes extra indentation */
}

.train-section li {
    line-height: 1.5;
    margin-bottom: 6px;
}
/* Bullet alignment */
.train-section ul {
    padding-left: 1.2rem;
    margin-left: 0;
}

.train-section li {
    line-height: 1.5;
    margin-bottom: 6px;
}

/* Collapsible styling */
.train-item {
    margin-bottom: 12px;
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 8px;
}

.train-toggle {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    padding: 10px 0;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
font-family: var(--your-main-font), sans-serif;
}


.train-toggle .emoji-flag {
    font-family: 
        "Segoe UI Emoji", 
        "Apple Color Emoji", 
        "Noto Color Emoji",
        system-ui !important;
}


.train-toggle::after {
    content: "▾";
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.train-toggle.active::after {
    transform: rotate(180deg);
}

.train-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.train-content.open {
    max-height: 300px; /* plenty for content */
}

.car-times {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

/***********************************Accomedation Page ******************/
.top-tip {
    background: #f7f2ff;
    padding: 14px 18px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #c7a7ff;
}

#bled-map {
    width: 100%;
    height: 350px;
    border-radius: 14px;
    margin: 20px 0;
    overflow: hidden;
}

.accommodation-links {
    list-style: none;
    padding-left: 0;
}

.accommodation-links li {
    margin-bottom: 8px;
}

.accommodation-links a {
    color: #6a4bc3;
    font-weight: 600;
    text-decoration: none;
}

.accommodation-links a:hover {
    text-decoration: underline;
}

.custom-emoji-marker {
  background-color: #ffffff;
  border-radius: 50%;
  border: 2px solid #333;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.active-pin {
    box-shadow: 0 0 12px 4px rgba(0,0,0,0.25);
    transition: box-shadow 0.25s ease;
}

/* Glow colours */
.glow-gold {
    box-shadow: 0 0 12px 4px rgba(247, 217, 168, 0.9) !important;
}

.glow-blue {
    box-shadow: 0 0 12px 4px rgba(201, 228, 255, 0.9) !important;
}

.glow-green {
    box-shadow: 0 0 12px 4px rgba(201, 239, 201, 0.9) !important;
}

.glow-lilac {
    box-shadow: 0 0 12px 4px rgba(217, 200, 255, 0.9) !important;
}

/* Bounce animation */
@keyframes pin-bounce {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-8px); }
    60%  { transform: translateY(0); }
    80%  { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

.bounce {
    animation: pin-bounce 0.6s ease-out;
}

.accommodation-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.acc-box {
    flex: 1;
    min-width: 140px;
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center; /* centres the logo */
    text-decoration: none;
    border: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.acc-box img {
    height: 32px; /* slightly larger now that text is gone */
    width: auto;
    display: block;
}

.acc-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/**** Bled Guide ****/
#bled-map {
  width: 100%;
  height: 420px;
  border-radius: 14px;
  margin: 20px 0;
  overflow: hidden;
}

.itinerary-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.itinerary-buttons button {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  background: #f2f2f2;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.itinerary-buttons button.active {
  background: #dcd6ff;
  color: #333;
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
}

.itinerary-buttons button:hover {
  background: #e8e8e8;
}

#itinerary-content {
  padding: 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  line-height: 1.6;
}

/* Glow colours */
.glow {
    box-shadow: 0 0 12px 4px rgba(0,0,0,0.25) !important;
    transition: box-shadow 0.25s ease;
}

/* Bounce animation */
@keyframes pin-bounce_guide {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-10px); }
    60%  { transform: translateY(0); }
    80%  { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.bounce-guide {
    animation: pin-bounce_guide 0.6s ease-out;
}

.wedding-pin {
    box-shadow: 0 0 14px 5px rgba(247, 217, 168, 0.9) !important;
}

.pin-label {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #f7d9a8;
    color: #5a4a2c;
    padding: 3px 6px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    pointer-events: none;
}

.pin-message {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.9);
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    white-space: nowrap;
    display: none;
}

.pin-message.show {
    display: block;
}

/*********** THEME *********/
/* Vision Text */
.vision-title {
    font-family: 'Alex Brush', cursive;
    font-size: 50px;
    margin: 40px 0 60px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
   
}

/* Shimmer animation */
.shimmer-active {
    animation: shimmer-move 4s linear infinite;
}

@keyframes shimmer-move {
    0% { background-position: 0%; }
    100% { background-position: 200%; }
}

/* Section headings */
.section-heading {
    font-size: 26px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 10px;
    text-align: center;
}

/* Theme subline */
.theme-subline {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* Dresscode layout */
.dresscode-overview {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.dresscode-block {
    margin-bottom: 30px;
}

.dresscode-block h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

/* Advice box */
.advice-box {
    background: #fff7d9;
    border-left: 4px solid #f7d9a8;
    padding: 14px 18px;
    border-radius: 8px;
    margin: 25px 0;
    font-size: 15px;
    line-height: 1.5;
}

/* Sparkle Layer */
.sparkle-layer {
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    height: 180px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
    background-image: url('images/sparkle.png'); /* You can use any tiny sparkle PNG */
    background-repeat: repeat;
    background-size: 180px;
    animation: sparkle-move 12s linear infinite;
}

@keyframes sparkle-move {
    0% { background-position: 0 0; }
    100% { background-position: 600px 300px; }
}

.sparkle-active {
    opacity: 0.45;
}

.dresscode-block h4 i {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    stroke-width: 1.8;
    vertical-align: middle;
}

.advice-box i {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
    margin-right: 8px;
    vertical-align: middle;
    color: #b48a4a;
}

.palette-bar {
    display: flex;
    gap: 6px;
    margin: 14px 0 26px;
}

.palette-bar div {
    flex: 1;
    height: 26px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.castle-emoji {
    font-size: 22px;
    margin-right: 8px;
    vertical-align: middle;
}

/***** gifts *********/
:root {
  --bg: #f7f7f5;
  --card-bg: #fffaf5;
  --border-colour: #c9a3c9; /* bridesmaid colour example */
  --text-main: #2b2b2b;
  --accent: #b57bb5;
}

body {
  background: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
}

.registry {
  max-width: 1100px;
  margin: 3rem auto 5rem;
  padding: 0 1.5rem;
}

.registry-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.registry-intro h1 {
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.registry-intro p {
  max-width: 650px;
  margin: 1rem auto 0;
  line-height: 1.6;
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.gift-card {
  background: var(--card-bg);
  border: 2px solid var(--border-colour);
  border-radius: 18px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gift-image img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.gift-title {
  font-size: 1.2rem;
  margin-top: 0.25rem;
}

.gift-tagline {
  font-size: 0.95rem;
  opacity: 0.8;
}

.gift-progress {
  margin-top: 0.5rem;
}

.gift-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  overflow: hidden;
}

.gift-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #e2b7e2);
  transition: width 0.4s ease;
}

.gift-progress-meta {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.gift-contribute-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
}

.gift-contribute-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.16);
  background: #a36aa3;
}

/* Messages */
.registry-messages {
  margin-top: 3rem;
}

.registry-messages h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

#registry-messages-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

#registry-messages-list li {
  background: white;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  font-size: 0.9rem;
}

.wheel-suggestions {
    margin-top: 1.25rem;
}
.wheel-suggestion-item {
    background: white;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    margin-bottom: 0.75rem;
}
.wheel-sugg-name {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
}
.wheel-sugg-idea {
    margin: 0;
    font-size: 0.9rem;
}

/* Modal */
.registry-modal-backdrop[hidden],
.registry-modal [hidden] {
    display: none !important;
}
.registry-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

/* Animated open/close for modal */
.registry-modal-backdrop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}
.registry-modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.registry-modal {
    transform: translateY(12px) scale(0.995);
    opacity: 0;
    transition: transform 220ms cubic-bezier(.2,.9,.2,1), opacity 220ms ease;
}
.registry-modal-backdrop.open .registry-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Fixed amount lock icon */
.amount-lock {
    margin-left: 0.5rem;
    font-size: 1rem;
    vertical-align: middle;
    opacity: 0.9;
}

.registry-modal {
  background: #fffdf9;
  border-radius: 18px;
  padding: 1.75rem 1.5rem 1.5rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.registry-modal h2 {
  margin-bottom: 1rem;
}

.registry-modal label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.registry-modal input,
.registry-modal textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 0.9rem;
}

.modal-submit,
#modal-close-after-thanks {
  margin-top: 0.9rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
}

.modal-thankyou {
  font-size: 0.9rem;
}

.bank-details {
  margin-top: 0.5rem;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Confetti canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
}

.wheel-subheader {
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Large container */
.wheel-suggestions {
  background: #fffaf5;
  padding: 35px;
  border-radius: 16px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Individual suggestion cards */
.wheel-suggestion-item {
  width: 95%;
  padding: 14px 16px;
  border-radius: 14px;
  margin: 10px auto;
  color: #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.wheel-suggestion-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Name styling */
.wheel-sugg-name {
  margin: 0;
  font-weight: 600;
}

/* Suggestion text */
.wheel-sugg-idea {
  margin: 4px 0 0;
  font-style: italic;
}

/* Messages container styling */
.registry-messages {
  margin-top: 40px;
  padding: 20px;
  background: #faf7f7;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Individual message card */
.message-item {
  padding: 15px 18px;
  border-radius: 12px;
  margin-bottom: 14px;
  background: white;
  border: 2px solid transparent; /* colour added via JS */
  box-shadow: 0 0 10px rgba(0,0,0,0.05); /* glow added via JS */
}

/* Name styling */
.message-item strong {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

/* Message text */
.message-item span {
  display: block;
  line-height: 1.4;
}

/* Fade-in base state */
.fade-section_gift_messages {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* When visible */
.fade-section_gift_messages.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Base fade state for each message */
.message-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* When visible */
.message-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.wheel-suggestion-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vote-btn {
  background: white;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.2s;
}

.vote-btn:hover {
  background: #f7f7f7;
  transform: scale(1.05);
}

.vote-tooltip {
  position: absolute;
  right: 10px;
  top: -28px;
  background: #fff7c2;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  border: 1px solid #e6d87a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.vote-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.confetti-piece {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--confetti-color);
  border-radius: 2px;
  animation: confetti-fall 600ms ease-out forwards;
}

@keyframes confetti-fall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(20px) rotate(180deg); }
}

.top-voted-wrapper {
  margin-top: 8px;
  text-align: left; /* or center if you prefer */
}

.top-voted-badge {
  display: inline-block;
  background: #ffe9a3;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  border: 1px solid #e8c96f;
  white-space: nowrap; /* prevents wrapping */
}

.movie-emoji {
  text-decoration: none;
  font-size: 1.2rem;
  margin-left: 6px;
  cursor: pointer;
}

.movie-emoji:hover {
  opacity: 0.8;
}

.medical-emoji {
    cursor: pointer;
    margin-left: 6px;
    font-size: 1.2rem;
    display: inline-block;
}

.medical-emoji:hover {
    opacity: 0.8;
}


.weather-btn {
    margin-top: 10px;
    padding: 10px 16px;
    background: #064022;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}

.weather-btn:hover {
    background: #0a6033;
}

/* Modal backdrop */
.weather-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 20px;
}

/* Modal box */
.weather-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.weather-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.weather-caption {
    font-size: 0.95rem;
    color: #333;
}

/* Close button */
.weather-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 28px;
    cursor: pointer;
}

/* Fade animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.weather-frame {
    width: 100%;
    height: 420px;
    border: none;
    border-radius: 12px;
}
