:root {
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --bg-soft: #eeeeee;
    --bg-dark: #1c1c1c;
    --bg-dark-2: #242424;
    --text-dark: #2a2a2a;
    --text-mid: #6b6b6b;
    --text-light: #eaeaea;
    --accent: #bfbfbf;
    --accent-dark: #9d9d9d;
    --border: #dfdfdf;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    font-family: "Georgia", "Times New Roman", serif;
    color: var(--text-dark);
    background: var(--bg-white);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.content {
    flex: 1;
    width: 100%;
    padding: 0;
}

/* NAV */

.top-nav {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    pointer-events: none;
}

.menu-wrap {
    position: absolute;
    top: 20px;
    right: 20px;
    pointer-events: auto;
}

.menu-toggle {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

    .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.14);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: #f5f5f5;
    }

.menu-panel {
    position: absolute;
    top: 62px;
    right: 0;
    min-width: 220px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(28, 28, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

    .menu-panel.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu-panel a {
        color: #f5f5f5;
        text-decoration: none;
        font-family: "Raleway", sans-serif;
        font-size: 0.95rem;
        font-weight: 500;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        padding: 12px 14px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid transparent;
        transition: all 0.2s ease;
    }

        .menu-panel a:hover {
            background: rgba(255, 255, 255, 0.09);
            border-color: rgba(255, 255, 255, 0.16);
            color: #ffffff;
        }

        .menu-panel a.active {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.24);
            color: #ffffff;
        }

/* GENERIC APP LAYOUT */

.layout-wrap {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.svg-host {
    flex: 1;
    min-height: 600px;
    border: 1px solid var(--border);
    background: var(--bg-light);
    overflow: auto;
    padding: 10px;
    border-radius: 10px;
}

    .svg-host svg {
        width: 100%;
        height: auto;
        display: block;
    }

    .svg-host .svg-hover {
        opacity: 0.85;
        transform: scale(1.12);
    }

    .svg-host svg [id] {
        transition: fill 0.2s ease, opacity 0.2s ease, transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
        transform-origin: center;
    }

.side-panel {
    width: 250px;
    min-height: 200px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    padding: 15px;
    border-radius: 10px;
}

.popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.popup-card {
    width: 400px;
    max-width: 90vw;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid var(--border);
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
}

.popup-body {
    padding: 18px;
}

.popup-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    background: var(--bg-light);
}

.popup-close {
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-dark);
}


.form-row {
    margin-bottom: 15px;
}

    .form-row label {
        display: block;
        margin-bottom: 5px;
        font-weight: 600;
    }

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* HOME / HERO */
.hero-text-wrap,
.hero-text-wrap:hover,
.hero-text-wrap:focus,
.hero-text-wrap:focus-visible,
.hero-text-wrap:focus-within,
.hero-overlay,
.hero-overlay:hover,
.hero-overlay:focus,
.hero-overlay:focus-visible,
.hero-overlay:focus-within {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.home-container {
    width: 100%;
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: left;
}

.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.hero-image {
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) contrast(1.03);
}

@media (max-width: 768px) {
    .hero-image {
        content: url('/herobackground-mobile.JPG');
        object-position: center center;
    }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5vw;
    background: transparent;
    border:none;
}

.hero-text-wrap {
    width: min(90%, 900px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    justify-content: center;
    transform: translateY(-8%);
    text-align: center;
}

.home-title,
.home-title:hover,
.home-title:focus,
.home-title:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.home-title {
    margin: 0;
    text-align: center;
    max-width: 80%;
    font-family: "Kunstler Script", "Great Vibes", cursive;
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    line-height: 1.05;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.home-subtitle {
    margin: 0;
    font-family: "Raleway", sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.8vw, 1.3rem);
    letter-spacing: 0.4em;
    color: #d9d9d9;
}

.home-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 20px auto;
}

.home-subtitle2 {
    font-size: 0.8rem;
    color: var(--text-mid);
    margin-bottom: 30px;
    letter-spacing: 0.04em;
}

.home-subtitle3 {
    font-size: 2rem;
    color: var(--text-mid);
    margin-bottom: 30px;
    letter-spacing: 0.04em;
}

.home-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.home-btn {
    display: inline-block;
    margin-top: 18px;
    text-decoration: none;
    background: var(--bg-dark);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

    .home-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
        background: var(--bg-dark-2);
    }

    .home-btn.outline {
        background: transparent;
        border: 1px solid var(--accent);
        color: #ffffff;
    }

/* SHARED SECTIONS */

.rsvp-section,
.menu-section{
    width: 100%;
    padding: 90px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
}

.registry-section {
    width: 100%;
    padding: 90px 20px;
    background: var(--bg-dark);
    color: var(--text-light);
}

.location-section {
    width: 100%;
    padding: 90px 20px;
    background: var(--bg-white);
}

.timeline-section,
.details-section {
    width: 100%;
    padding: 90px 20px;
    background: var(--bg-dark);
    color: var(--text-light);
}

.rsvp-content,
.location-content,
.timeline-content,
.registry-content {
    width: min(92%, 900px);
    margin: 0 auto;
    text-align: center;
}

.menu-content,
.details-content {
    width: min(92%, 1000px);
    margin: 0 auto;
    text-align: center;
}

.section-kicker {
    margin: 0 0 12px 0;
    font-family: "Raleway", sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-mid);
}

.section-heading {
    margin: 0;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--text-dark);
}

.section-copy {
    max-width: 650px;
    margin: 0 auto 24px auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4f4f4f;
}

.timeline-section .section-heading,
.details-section .section-heading {
    color: var(--text-light);
}

.timeline-section .section-kicker,
.details-section .section-kicker {
    color: #bdbdbd;
}

.timeline-section .section-copy,
.details-section .section-copy {
    color: #cccccc;
}

/* RSVP */

.rsvp-card {
    width: 100%;
    max-width: 700px;
    margin: 30px auto 0 auto;
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    background: var(--bg-white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* LOCATION */

.map-wrapper {
    margin-top: 30px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border);
}

    .map-wrapper iframe {
        display: block;
    }

/* TIMELINE */

@media (max-width: 600px) {
    .timeline {
        padding-left: 14px;
    }

    .timeline-time {
        display: block;
        width: 100%;
        min-width: 0 !important;
        text-align: left !important;
        margin: 0 0 8px 20px !important;
    }
}
.timeline {
    margin-top: 50px;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--accent);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

    .timeline-item::before {
        content: "";
        position: absolute;
        left: -10px;
        top: 6px;
        width: 14px;
        height: 14px;
        background: var(--accent);
        border-radius: 50%;
        box-shadow: 0 0 0 4px var(--bg-dark);
    }

.timeline-time {
    min-width: 100px;
    font-family: "Raleway", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: #c9c9c9;
    text-align: right;
    margin-right: 20px;
    margin-top: 2px;
}

.timeline-details {
    text-align: left;
}

    .timeline-details h3 {
        margin: 0 0 6px 0;
        font-size: 1.2rem;
        color: #ffffff;
    }

    .timeline-details p {
        margin: 0;
        font-size: 0.95rem;
        color: #d0d0d0;
        line-height: 1.6;
    }

/* MENU */

.menu-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.menu-card {
    border-radius: 18px;
    padding: 30px 24px;
    text-align: left;
    transition: transform 0.2s ease;
    background: var(--bg-white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

    .menu-card:hover {
        transform: translateY(-4px);
    }

    .menu-card h3 {
        margin-top: 0;
        margin-bottom: 16px;
        font-size: 1.3rem;
        color: var(--text-dark);
    }

    .menu-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .menu-card li {
        margin-bottom: 10px;
        font-size: 0.95rem;
        color: #5f564e;
        position: relative;
        padding-left: 18px;
    }

        .menu-card li::before {
            content: "•";
            position: absolute;
            left: 0;
            color: var(--accent-dark);
        }

.menu-note {
    font-size: 0.8rem;
    color: #8a8a8a;
    margin-left: 4px;
}

/* DETAILS */

.details-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.details-card {
    border-radius: 18px;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

    .details-card h3 {
        margin-top: 0;
        margin-bottom: 14px;
        font-size: 1.3rem;
        color: #ffffff;
    }

    .details-card p {
        margin: 0;
        font-size: 0.98rem;
        line-height: 1.7;
        color: #d0d0d0;
    }

.details-note {
    margin-top: 12px !important;
    color: #b8b8b8 !important;
    font-size: 0.92rem !important;
}

/* REGISTRY */

.registry-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.registry-section .section-heading {
    color: var(--text-light);
}

.registry-section .section-kicker {
    color: #bdbdbd;
}

.registry-section .section-copy {
    color: #cccccc;
}

.registry-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    border-radius: 18px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    transition: all 0.25s ease;
}

    .registry-card:hover {
        transform: translateY(-4px);
        background: rgba(255, 255, 255, 0.08);
    }

.registry-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
}
/* RESPONSIVE */

@media (max-width: 900px) {
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 20px;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .nav-actions {
        width: 100%;
    }

    .layout-wrap {
        flex-direction: column;
    }

    .side-panel {
        width: 100%;
    }

    .menu-grid,
    .details-grid,
    .registry-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .menu-card {
        text-align: center;
    }

        .menu-card li {
            padding-left: 0;
        }

            .menu-card li::before {
                display: none;
            }
}

@media (max-width: 600px) {
    .menu-wrap {
        top: 14px;
        right: 14px;
    }

    .menu-toggle {
        width: 48px;
        height: 48px;
    }

    .menu-panel {
        min-width: 200px;
    }

    .hero-text-wrap {
        width: 92%;
    }

    .home-title {
        max-width: 92%;
        font-size: clamp(2rem, 9vw, 3.2rem);
        line-height: 1.08;
    }

    .rsvp-section,
    .location-section,
    .timeline-section,
    .menu-section,
    .details-section,
    .registry-section {
        padding: 70px 18px;
    }

    .rsvp-card {
        padding: 36px 20px;
    }

    .section-copy {
        font-size: 1rem;
        line-height: 1.7;
    }

    .timeline {
        padding-left: 16px;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-time {
        text-align: left;
        margin-bottom: 6px;
    }

    .registry-card {
        height: 90px;
    }
}
.notes-section {
    width: 100%;
    padding: 90px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
}

.notes-content {
    width: min(92%, 1000px);
    margin: 0 auto;
    text-align: center;
}

.notes-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.notes-card {
    border-radius: 18px;
    padding: 32px 24px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

    .notes-card h3 {
        color: var(--text-dark);
    }

    .notes-card p {
        color: var(--text-mid);
    }

.notes-section .section-heading {
    color: var(--text-dark);
}

.notes-section .section-kicker {
    color: var(--text-mid);
}

@media (max-width: 900px) {
    .notes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-light);
}


/*Login*/
.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px 24px;
    box-shadow: var(--shadow);
    text-align: left;
}

    .login-card h2 {
        margin-top: 0;
        margin-bottom: 10px;
        color: var(--text-dark);
    }

    .login-card p {
        color: var(--text-mid);
        line-height: 1.6;
    }

.form-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 1rem;
}

.login-error {
    color: #a33;
    margin: 12px 0;
}

.menu-auth-btn {
    color: #f5f5f5;
    text-decoration: none;
    font-family: "Raleway", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    cursor: pointer;
}

    .menu-auth-btn:hover {
        background: rgba(255, 255, 255, 0.09);
        border-color: rgba(255, 255, 255, 0.16);
        color: #ffffff;
    }

.login-shell {
    position: relative;
    min-height: 100vh;
    padding: 32px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(20, 20, 20, 0.45), rgba(20, 20, 20, 0.45)), linear-gradient(to bottom, #efefef, #dddddd);
    overflow: hidden;
}

.login-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255,255,255,0.32), transparent 40%), radial-gradient(circle at bottom, rgba(255,255,255,0.18), transparent 35%);
    pointer-events: none;
}

.login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    padding: 38px 30px 34px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
}

.login-kicker {
    margin: 0 0 10px;
    font-family: "Raleway", sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-mid);
}

.login-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text-dark);
}

.login-copy {
    max-width: 320px;
    margin: 0 auto 26px;
    line-height: 1.7;
    color: var(--text-mid);
    font-size: 0.98rem;
}

.login-field {
    margin-bottom: 18px;
    text-align: left;
}

    .login-field label {
        display: block;
        margin-bottom: 8px;
        font-family: "Raleway", sans-serif;
        font-size: 0.85rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-dark);
    }

.login-input {
    width: 100%;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text-dark);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .login-input:focus {
        border-color: #b9b9b9;
        box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
    }

.login-submit {
    width: 100%;
    margin-top: 8px;
    padding: 14px 18px;
    border: none;
    border-radius: 999px;
    background: var(--bg-dark);
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

    .login-submit:hover {
        background: #2a2a2a;
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    }

.login-validation {
    margin: 0 0 12px;
    padding-left: 18px;
    text-align: left;
    color: #9a2f2f;
    font-size: 0.92rem;
}

.login-error-box {
    margin: 6px 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8ecec;
    border: 1px solid #ecd0d0;
    color: #9a2f2f;
    text-align: left;
    font-size: 0.94rem;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .login-shell {
        padding: 20px 14px;
        align-items: center;
    }

    .login-card {
        width: 100%;
        padding: 28px 20px 24px;
        border-radius: 20px;
    }

    .login-copy {
        font-size: 0.94rem;
        margin-bottom: 22px;
    }

    .login-input {
        padding: 12px 14px;
        font-size: 16px; /* prevents iPhone zoom */
    }

    .login-submit {
        padding: 13px 16px;
    }
}

/* Page layout */
.guestlist-page {
    width: 100%;
    min-height: 100vh;
    padding: 100px 20px 60px;
    background: var(--bg-light);
}

.guestlist-shell {
    width: min(100%, 1100px);
    margin: 0 auto;
}

/* Header */
.guestlist-header {
    text-align: center;
    margin-bottom: 28px;
}

/* Form card */
.guestlist-form-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 22px;
}

/* Form layout */
.guest-form {
    max-width: 700px;
    margin: 0 auto;
}

    .guest-form .form-row {
        margin-bottom: 16px;
    }

    .guest-form label {
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
        color: var(--text-dark);
        font-size: 0.85rem;
        letter-spacing: 0.05em;
    }

    /* Inputs */
    .guest-form .form-control,
    .guest-form .form-select {
        border-radius: 12px;
        min-height: 46px;
        border: 1px solid var(--border);
    }

/* Checkbox */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Add button */
.guest-add-btn {
    margin-top: 8px;
    border-radius: 999px;
    padding: 10px 22px;
}

/* Count */
.guestlist-count {
    margin: 0 0 18px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Table wrapper */
.guest-table-wrap {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 14px;
    overflow-x: auto;
}

/* Table */
.guest-table {
    margin-bottom: 0;
    font-size: 0.9rem;
}

    .guest-table th {
        font-weight: 600;
        color: var(--text-dark);
    }

    .guest-table td {
        vertical-align: middle;
    }

/* Action buttons */
.guest-actions-cell {
    white-space: nowrap;
}

    .guest-actions-cell .btn {
        border-radius: 8px;
        padding: 4px 10px;
    }

/* Edit inputs inside table */
.guest-table input,
.guest-table select {
    border-radius: 8px;
    font-size: 0.85rem;
}

/* ========================= */
/* MOBILE CARDS */
/* ========================= */

.guest-cards {
    display: none;
}

.guest-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 14px;
}

/* Name */
.guest-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

/* Rows */
.guest-card-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    color: var(--text-mid);
}

    .guest-card-row:last-of-type {
        border-bottom: none;
    }

/* Labels */
.guest-card-label {
    font-weight: 600;
    color: var(--text-dark);
}

/* Buttons */
.guest-card-buttons {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

/* ========================= */
/* MOBILE BREAKPOINT */
/* ========================= */

@media (max-width: 768px) {

    .guestlist-page {
        padding: 80px 14px 40px;
    }

    .guestlist-form-card {
        padding: 18px;
    }

    /* Hide table */
    .guest-table-wrap {
        display: none;
    }

    /* Show cards */
    .guest-cards {
        display: block;
    }

    /* Stack card rows */
    .guest-card-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    /* Bigger tap targets */
    .guest-add-btn {
        width: 100%;
        min-height: 46px;
    }

    .guest-form .form-control,
    .guest-form .form-select {
        font-size: 16px; /* prevents iPhone zoom */
    }

    .guest-card-buttons {
        flex-direction: column;
    }

        .guest-card-buttons .btn {
            width: 100%;
        }
}

.seating-page {
    width: 100%;
    min-height: 100vh;
    padding: 100px 20px 60px;
    background: var(--bg-light);
}

.seating-shell {
    width: min(100%, 1200px);
    margin: 0 auto;
}

.seating-header {
    text-align: center;
    margin-bottom: 28px;
}

.seating-chart-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 16px;
}

.seating-svg-host {
    width: 100%;
    min-height: 700px;
    border-radius: 12px;
    padding: 8px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.seating-popup-card {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}
.table-popup-card {
    width: min(94vw, 760px);
}

.seating-popup-body {
    overflow-y: auto;
}

.seating-popup-actions {
    margin-top: 15px;
}

.seating-action-btn {
    border-radius: 999px;
}

.table-guests-mobile {
    display: none;
}

.table-guest-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
}

.table-guest-name {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.table-guest-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    border-bottom: 1px solid #ececec;
    color: var(--text-mid);
    font-size: 0.95rem;
}

    .table-guest-row:last-child {
        border-bottom: none;
    }

.table-guest-label {
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .popup-card {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        max-height: 90vh;
        border-radius: 16px;
    }

    .popup-header {
        padding: 12px 14px;
    }

    .popup-body {
        padding: 12px;
        overflow-y: auto;
        overflow-x: hidden;
    }

        .popup-body .table {
            display: none;
        }

    .table-guests-desktop {
        display: none;
    }

    .table-guests-mobile {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .table-guest-card {
        width: 100%;
        max-width: 100%;
        margin: 0 0 12px 0;
        box-sizing: border-box;
    }

    .table-guest-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .seating-popup-actions .btn,
    .seating-action-btn {
        width: 100%;
        min-height: 44px;
    }

    .popup-body .form-select,
    .popup-body .form-control {
        font-size: 16px;
    }
}
/* Make popup a vertical layout */
.popup-card {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

/* Keep header fixed */
.popup-header {
    flex-shrink: 0;
}

/* Make body scroll */
.popup-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Optional: keep footer fixed if you use one */
.popup-footer {
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .popup-card {
        max-height: 90vh;
    }
}

.rsvp-page {
    width: 100%;
    min-height: 100vh;
    padding: 100px 20px 60px;
    background: var(--bg-light);
}

.rsvp-shell {
    width: min(100%, 820px);
    margin: 0 auto;
}

.rsvp-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 32px 24px;
}

.rsvp-party-label {
    margin-bottom: 24px;
    color: var(--text-dark);
    text-align: center;
}

.rsvp-guest-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    background: var(--bg-light);
    margin-bottom: 18px;
}

.rsvp-guest-name {
    margin: 0 0 14px;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.rsvp-textarea {
    min-height: 110px;
    resize: vertical;
}

.rsvp-note {
    margin: 10px 0 0;
    color: var(--text-mid);
    font-size: 0.92rem;
    line-height: 1.5;
}

.rsvp-save-message {
    margin: 8px 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #edf6ed;
    border: 1px solid #cfe3cf;
    color: #2f6b2f;
}

.rsvp-save-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .rsvp-page {
        padding: 82px 14px 40px;
    }

    .rsvp-card {
        padding: 24px 18px;
    }

    .rsvp-guest-card {
        padding: 16px;
    }

    .rsvp-textarea,
    .form-control,
    .form-select {
        font-size: 16px;
    }
}

.guestlist-tools-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 22px;
}

.guestlist-tools {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.guestlist-tool-message {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .guestlist-tools {
        flex-direction: column;
    }

        .guestlist-tools .btn {
            width: 100%;
        }
}
.guest-copy-btn {
    width: 100%;
}

.guest-table .btn-outline-primary,
.guest-card .btn-outline-primary {
    white-space: nowrap;
}

.hero-notice {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #28a745, #34d058);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.45), 0 0 10px rgba(40, 167, 69, 0.6);
    z-index: 10;
    animation: fadeSlideDown 0.4s ease;
}
@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.map-frame {
    width: 100%;
}