/* ======================================================
   Raquel & Damien — Italian Contemporary Wedding Theme
   Colors: Merlot #722F37, Mossy Green #8A9A5B, Baby Blue #89CFF0
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;600&display=swap');

:root {
    --merlot: #722F37;
    --merlot-light: #8B3A43;
    --merlot-dark: #5A252C;
    --green: #8A9A5B;
    --green-light: #A3B374;
    --green-dark: #6B7A45;
    --blue: #89CFF0;
    --blue-light: #B0DEF5;
    --blue-dark: #5EAED6;

    --cream: #FAF7F2;
    --warm-white: #FDFCFA;
    --text-dark: #2C2C2C;
    --text-medium: #5A5A5A;
    --text-light: #8A8A8A;
    --border: #E8E2DA;

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-sans: 'Lato', -apple-system, sans-serif;

    --shadow-sm: 0 2px 8px rgba(114, 47, 55, 0.06);
    --shadow-md: 0 4px 20px rgba(114, 47, 55, 0.08), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(114, 47, 55, 0.1), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-hover: 0 8px 32px rgba(114, 47, 55, 0.12), 0 2px 8px rgba(0,0,0,0.06);

    --radius: 12px;
    --radius-lg: 20px;
    --max-width: 1100px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.75;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.3;
}

a {
    color: var(--merlot);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Olive Branch Decorative Divider --- */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 16px 0;
    color: var(--green);
}

.divider::before,
.divider::after {
    content: '';
    height: 1px;
    flex: 1;
    max-width: 120px;
    background: linear-gradient(to var(--dir, right), transparent, var(--green-light));
}

.divider::before { --dir: right; }
.divider::after  { --dir: left; }

.divider-leaf {
    font-size: 22px;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
}

.divider:hover .divider-leaf {
    opacity: 0.8;
    transform: scale(1.15);
}

/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
}

.navbar-brand {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--merlot);
    letter-spacing: 0.5px;
}

.navbar-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.navbar-links a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.2s;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--merlot);
    text-decoration: none;
    border-bottom-color: var(--merlot);
}

.navbar-links .logout-link {
    color: var(--text-light);
}

.navbar-links .logout-link:hover {
    color: var(--merlot);
}

/* Page nav — centered links, no brand */
.page-nav .container {
    justify-content: center;
}

.page-nav .navbar-links {
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--merlot);
    cursor: pointer;
}

@media (max-width: 600px) {
    .nav-toggle {
        display: block;
    }
    .navbar-links {
        display: none;
        flex-direction: column;
        gap: 12px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--warm-white);
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .navbar-links.open {
        display: flex;
    }
    .hero-background .navbar-links {
        background: rgba(0, 0, 0, 0.85);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* --- Login Page --- */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: url('/images/login-bg.jpeg') center/cover no-repeat fixed;
    background-color: var(--cream);
}

.login-card {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 60px 48px;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 440px;
    width: 100%;
}

.login-card h1 {
    font-size: 2.5rem;
    color: var(--merlot);
    margin-bottom: 4px;
}

.login-card .subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--green);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

.login-card .ampersand {
    display: block;
    font-size: 1.4rem;
    color: var(--green);
    margin: 4px 0;
}

.login-card input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: var(--cream);
    transition: border-color 0.2s;
}

.login-card input[type="text"]:focus {
    outline: none;
    border-color: var(--merlot);
}

.login-card input[type="text"]::placeholder {
    letter-spacing: 1px;
    text-transform: none;
    color: var(--text-light);
    font-size: 0.95rem;
}

.login-error {
    color: var(--merlot);
    font-size: 0.9rem;
    margin-top: 12px;
    min-height: 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--merlot);
    color: white;
    width: 100%;
    margin-top: 20px;
}

.btn-primary:hover {
    background: var(--merlot-dark);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--green);
    color: white;
}

.btn-secondary:hover {
    background: var(--green-dark);
}

.btn-outline {
    background: transparent;
    color: var(--merlot);
    border: 2px solid var(--merlot);
}

.btn-outline:hover {
    background: var(--merlot);
    color: white;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-danger {
    background: #c0392b;
    color: white;
}

.btn-danger:hover {
    background: #a93226;
}

/* --- Hero Background (Home) --- */
.hero-background {
    background: url('/images/hero-bg.jpg') center/cover no-repeat;
    position: relative;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.25) 50%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

.hero-background > * {
    position: relative;
    z-index: 1;
}

.hero-background .navbar {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.hero-background .navbar-brand {
    color: #fff;
}

.hero-background .navbar-links a {
    color: rgba(255, 255, 255, 0.85);
}

.hero-background .navbar-links a:hover,
.hero-background .navbar-links a.active {
    color: #fff;
    border-bottom-color: #fff;
}

.hero-background .navbar-links .logout-link {
    color: rgba(255, 255, 255, 0.6);
}

.hero-background .navbar-links .logout-link:hover {
    color: #fff;
}

.hero-background .nav-toggle {
    color: #fff;
}

/* --- Hero Section (Home) --- */
.hero {
    text-align: center;
    padding: 80px 0 60px;
}

.hero h1 {
    font-size: 3.2rem;
    color: #fff;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero .ampersand {
    display: inline;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 2.4rem;
    color: var(--cream);
    margin: 0 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero .wedding-date {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 16px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero .wedding-location {
    font-family: var(--font-serif);
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-top: 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero .welcome-msg {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* --- Info Sections --- */
.info-section {
    padding: 28px 0;
}

.info-section h2 {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 300;
    font-style: italic;
    color: var(--merlot);
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}

.info-card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow-md);
    border: none;
    transition: box-shadow 0.3s ease;
}

.info-card:hover {
    box-shadow: var(--shadow-hover);
}

.info-card p {
    margin-bottom: 14px;
    color: var(--text-medium);
    font-size: 1.02rem;
    line-height: 1.8;
}

.info-card strong {
    color: var(--merlot-dark);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 48px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(to bottom, var(--green-light), var(--green), var(--green-light));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding: 12px 0 12px 0;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 14px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--warm-white);
    border: 3px solid var(--green);
    box-shadow: 0 0 0 4px rgba(138, 154, 91, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.timeline-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(138, 154, 91, 0.2);
}

.timeline-item .time {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--merlot);
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.timeline-item .event {
    color: var(--text-medium);
    font-size: 1.02rem;
    margin-top: 2px;
}

/* Transport & Accommodation cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.info-grid-card {
    background: var(--warm-white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.info-grid-card h3 {
    font-size: 1.2rem;
    color: var(--merlot);
    margin-bottom: 12px;
}

.info-grid-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* --- Venue Hero --- */
.venue-hero {
    width: 100%;
    height: 450px;
    background: url('/images/venue.jpg') center/cover no-repeat;
    position: relative;
}

.venue-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 48px;
}

.venue-hero-overlay h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    font-style: italic;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

.venue-hero-overlay p {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    margin-top: 8px;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .venue-hero {
        height: 300px;
    }

    .venue-hero-overlay h1 {
        font-size: 2rem;
    }

    .venue-hero-overlay {
        padding-bottom: 32px;
    }
}

/* --- Travel Cards --- */
.travel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.travel-card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--green);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.travel-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.travel-card-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.travel-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    font-style: italic;
    color: var(--merlot);
    margin-bottom: 16px;
}

.travel-card p {
    color: var(--text-medium);
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.travel-card-routes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.travel-route {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    background: var(--cream);
    border-radius: var(--radius);
}

.travel-route-name {
    font-weight: 600;
    color: var(--merlot-dark);
    font-size: 0.9rem;
}

.travel-route-detail {
    color: var(--text-medium);
    font-size: 0.85rem;
}

.travel-tip {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 12px;
    margin-bottom: 0;
}

@media (max-width: 800px) {
    .travel-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* --- Hotel Cards --- */
.hotel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hotel-card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hotel-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.hotel-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--border);
}

.hotel-info {
    padding: 24px;
}

.hotel-info h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--merlot);
    margin-bottom: 4px;
}

.hotel-stars {
    color: #d4a017;
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.hotel-info p {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.hotel-info .btn {
    width: 100%;
    text-align: center;
}

@media (max-width: 800px) {
    .hotel-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* --- RSVP Page --- */
.rsvp-section {
    padding: 60px 0;
}

.rsvp-section h1 {
    font-size: 2.4rem;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
    text-align: center;
    margin-bottom: 0;
}

.rsvp-section .rsvp-subtitle {
    text-align: center;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 12px;
}

.rsvp-card {
    background: rgba(253, 252, 250, 0.93);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    max-width: 600px;
    margin: 0 auto;
}

/* RSVP Toggle */
.rsvp-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.rsvp-toggle-btn {
    flex: 1;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--warm-white);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-medium);
}

.rsvp-toggle-btn.selected-accept {
    border-color: var(--green);
    background: var(--green);
    color: white;
}

.rsvp-toggle-btn.selected-decline {
    border-color: var(--merlot);
    background: var(--merlot);
    color: white;
}

.rsvp-toggle-btn:hover {
    border-color: var(--green-light);
}

/* Per-guest RSVP cards */
.guest-rsvp-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.guest-rsvp-card:last-child {
    margin-bottom: 24px;
}

.guest-rsvp-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--merlot);
    margin-bottom: 14px;
}

.guest-rsvp-card .rsvp-toggle {
    margin-bottom: 0;
}

/* Meal selection within guest card */
.guest-meal-section {
    margin-top: 16px;
}

.guest-meal-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.guest-meal-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: var(--warm-white);
    color: var(--text-dark);
}

.guest-meal-select:focus {
    outline: none;
    border-color: var(--merlot);
}

/* Dietary notes */
.dietary-field {
    margin-bottom: 24px;
}

.dietary-field label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.dietary-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    background: var(--cream);
}

.dietary-field textarea:focus {
    outline: none;
    border-color: var(--merlot);
}

/* RSVP Confirmation */
.rsvp-confirmed {
    text-align: center;
    padding: 20px 0;
}

.rsvp-confirmed .checkmark {
    font-size: 3rem;
    color: var(--green);
    margin-bottom: 12px;
}

.rsvp-confirmed p {
    color: var(--text-medium);
}

.rsvp-message {
    text-align: center;
    padding: 12px;
    border-radius: var(--radius);
    margin-top: 16px;
    font-weight: 600;
}

.rsvp-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.rsvp-message.error {
    background: #fbe9e7;
    color: #c62828;
}

/* --- Admin Page --- */
.admin-login-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.admin-section {
    padding: 40px 0;
    max-width: 1100px;
    margin: 0 auto;
}

.admin-section h1 {
    font-size: 2rem;
    color: var(--merlot);
    margin-bottom: 32px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--warm-white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.stat-card .stat-number {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--merlot);
}

.stat-card .stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-top: 4px;
}

.stat-card.accepted .stat-number { color: var(--green); }
.stat-card.declined .stat-number { color: var(--merlot); }
.stat-card.pending .stat-number { color: var(--blue-dark); }

/* Add household form */
.add-household-form {
    background: var(--warm-white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 32px;
}

.add-household-form h2 {
    font-size: 1.4rem;
    color: var(--merlot);
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: end;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: var(--cream);
}

.form-group input:focus {
    outline: none;
    border-color: var(--merlot);
}

#guestInputs {
    margin-bottom: 16px;
}

.guest-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.guest-input-row input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: var(--cream);
}

.guest-input-row input:focus {
    outline: none;
    border-color: var(--merlot);
}

.remove-guest-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px 8px;
}

.remove-guest-btn:hover {
    color: var(--merlot);
}

/* Guest table */
.guest-table-wrapper {
    background: var(--warm-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow-x: auto;
}

.guest-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.guest-table th {
    background: var(--cream);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    color: var(--text-medium);
    border-bottom: 2px solid var(--border);
}

.guest-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.guest-table tr:last-child td {
    border-bottom: none;
}

.guest-table tr:hover {
    background: var(--cream);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.accepted {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.declined {
    background: #fbe9e7;
    color: #c62828;
}

.status-badge.pending {
    background: #e3f2fd;
    color: #1565c0;
}

.admin-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 56px 0 40px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 64px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--green-light), transparent);
}

.footer p:first-child {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-medium);
    letter-spacing: 0.5px;
}

.footer .hearts {
    color: var(--merlot);
    opacity: 0.6;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children inside grids */
.reveal .accordion-item,
.reveal .timeline-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.revealed .accordion-item,
.reveal.revealed .timeline-item {
    opacity: 1;
    transform: translateY(0);
}

/* --- Accordion --- */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.accordion-item {
    background: var(--warm-white);
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border-left: 4px solid transparent;
}

.accordion-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.accordion-item.open {
    border-left-color: var(--green);
    box-shadow: var(--shadow-md);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--merlot);
    transition: color 0.2s;
    letter-spacing: 0.3px;
}

.accordion-item.open .accordion-header {
    color: var(--merlot-dark);
}

.accordion-icon {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--green);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-left: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(138, 154, 91, 0.08);
}

.accordion-item.open .accordion-icon {
    transform: rotate(45deg);
    background: rgba(138, 154, 91, 0.15);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 28px;
}

.accordion-item.open .accordion-body {
    max-height: 500px;
    padding: 0 28px 24px;
}

.accordion-body p {
    color: var(--text-medium);
    font-size: 0.98rem;
    margin-bottom: 10px;
    line-height: 1.8;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

/* --- Florence Hero (Things to Do) --- */
.florence-hero {
    width: 100%;
    height: 320px;
    background: url('/images/20210401173629-firenze-toscana-gettyimages-1145040590-2.webp') center / cover no-repeat;
    position: relative;
    margin-bottom: 16px;
}

.florence-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.55) 100%);
}

.florence-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
}

.florence-hero-overlay h2 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 300;
    font-style: italic;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    margin-bottom: 12px;
}

.florence-hero-overlay p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
    max-width: 520px;
}

@media (max-width: 600px) {
    .florence-hero {
        height: 220px;
    }
    .florence-hero-overlay h2 {
        font-size: 1.8rem;
    }
}

/* --- Our Story Photo Grid --- */
.story-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    justify-items: center;
}

.story-photo-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 1px;
    overflow: hidden;
}

.story-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.story-photo-placeholder:hover img {
    transform: scale(1.04);
}

.story-photo-caption {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: var(--radius);
}

.story-photo-placeholder {
    position: relative;
}

.story-photo-placeholder:hover .story-photo-caption {
    opacity: 1;
}

.story-photo-caption p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.95rem;
    color: #fff;
    text-align: center;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

@media (max-width: 600px) {
    .story-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Bottom Navigation --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 0 24px;
}

.bottom-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.bottom-nav ul li a {
    display: block;
    padding: 16px 14px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
    border-top: 2px solid transparent;
}

.bottom-nav ul li a:hover,
.bottom-nav ul li a.active {
    color: #fff;
    border-top-color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.bottom-nav ul li a.logout-link {
    color: rgba(255,255,255,0.45);
}

.bottom-nav ul li a.logout-link:hover {
    color: rgba(255,255,255,0.8);
    border-top-color: transparent;
}

.nav-toggle-bottom {
    display: none;
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 110;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

body.with-bottom-nav .container {
    padding-bottom: 80px;
}

@media (max-width: 700px) {
    .nav-toggle-bottom {
        display: flex;
    }

    .bottom-nav {
        display: none;
        padding: 8px 0;
    }

    .bottom-nav.open {
        display: block;
    }

    .bottom-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 24px 16px;
    }

    .bottom-nav ul li a {
        padding: 12px 0 12px 12px;
        font-size: 0.85rem;
        border-top: none;
        border-left: 2px solid transparent;
    }

    .bottom-nav ul li a:hover,
    .bottom-nav ul li a.active {
        border-top: none;
        border-left-color: rgba(255,255,255,0.7);
    }
}

/* --- Mobile & Touch Optimisation --- */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
}

/* Remove tap highlight on interactive elements */
a, button, input, select, textarea, label {
    -webkit-tap-highlight-color: transparent;
}

/* Ensure all inputs are 16px+ to prevent iOS zoom on focus */
input, select, textarea {
    font-size: 16px !important;
}

/* Fix background-attachment: fixed broken on iOS Safari */
@media (max-width: 1024px) {
    .login-page {
        background-attachment: scroll;
    }
}

/* Larger touch targets for buttons */
.btn {
    min-height: 44px;
}

.rsvp-toggle-btn {
    min-height: 48px;
}

.nav-toggle-bottom {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 16px;
}

/* Photo caption tap-to-show on touch devices */
@media (hover: none) {
    .story-photo-placeholder .story-photo-caption {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .story-photo-placeholder.caption-active .story-photo-caption {
        opacity: 1;
    }
    .story-photo-placeholder:hover img {
        transform: none;
    }
}

@media (max-width: 480px) {
    /* Tighter container padding on very small screens */
    .container {
        padding: 0 16px;
    }

    /* Section spacing */
    .info-section {
        padding: 20px 0;
    }

    .info-section h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    /* Info cards */
    .info-card {
        padding: 20px 16px;
    }

    /* RSVP */
    .rsvp-section {
        padding: 40px 0;
    }

    .rsvp-card {
        padding: 20px 16px;
    }

    .rsvp-section h1 {
        font-size: 2rem;
    }

    .rsvp-section .rsvp-subtitle {
        font-size: 1rem;
    }

    /* Guest cards */
    .guest-rsvp-card {
        padding: 16px;
    }

    /* Travel & hotel grids — full width on phones */
    .travel-grid,
    .hotel-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    /* Story photo grid — 2 columns */
    .story-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Footer */
    .footer {
        margin-top: 40px;
        padding: 40px 0 28px;
    }

    /* Bottom nav container padding */
    body.with-bottom-nav .container {
        padding-bottom: 100px;
    }

    /* Venue & florence hero */
    .venue-hero {
        height: 240px;
    }

    .venue-hero-overlay h1 {
        font-size: 1.6rem;
    }

    .florence-hero {
        height: 180px;
    }

    .florence-hero-overlay h2 {
        font-size: 1.5rem;
    }

    .florence-hero-overlay p {
        font-size: 0.9rem;
    }

    /* Login card */
    .login-card {
        padding: 32px 20px;
        margin: 12px;
    }

    /* Accordion */
    .accordion-header {
        padding: 16px;
        font-size: 1rem;
        min-height: 44px;
    }

    /* Stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* --- Utilities --- */
.hidden {
    display: none !important;
}

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .login-card {
        padding: 40px 28px;
        margin: 16px;
    }

    .login-card h1 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .rsvp-card {
        padding: 28px 20px;
    }

    .rsvp-toggle {
        flex-direction: column;
    }

    .guest-meal-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .form-row {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-card {
        padding: 28px;
        border-radius: var(--radius);
    }

    .info-section h2 {
        font-size: 2rem;
    }

    .accordion-header {
        padding: 18px 20px;
        font-size: 1.05rem;
    }

    .accordion-body {
        padding: 0 20px;
    }

    .accordion-item.open .accordion-body {
        padding: 0 20px 18px;
    }

    .accordion-item {
        border-radius: var(--radius);
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline-item .time {
        font-size: 1.05rem;
    }
}
