﻿.invitation-page {
    background: #f7eeee;
    padding: 20px 10px;
    display: flex;
    justify-content: center;
}

.invitation-card--spread {
    width: 100%;
    max-width: 1120px;
    border: none;
    box-shadow: none;
    background: transparent;
}

.card-overlay--spread {
    background: transparent;
    padding: 0;
}

.invitation-spread {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.invitation-panel--left,
.invitation-panel--right {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    background: #fffdfb;
    border-radius: 20px;
    border: 1px solid rgba(92, 36, 36, 0.08);
    box-shadow: 0 8px 24px rgba(76, 28, 28, 0.08);
    color: #4e3b38;
}

.panel-inner--ceremony,
.reception-panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    padding: 30px 32px 26px;
}

.invitation-panel--left *,
.invitation-panel--right * {
    color: #4b3a37;
}

/* LOGO */
.card-logo-wrap {
    text-align: center;
    margin-bottom: 14px;
}

.card-logo {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}

/* LEFT PANEL - CEREMONY */
.ceremony-family-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    text-align: center;
    margin-bottom: 26px;
}

.ceremony-family-side {
    font-family: "Cormorant Garamond", serif;
    font-size: 16px;
    letter-spacing: 1px;
    color: #2c2c2c;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ceremony-family-parent {
    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    font-style: italic;
    margin-bottom: 8px;
    color: #2c2c2c;
}

.ceremony-family-name {
    font-family: "Cormorant Garamond", serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    color: #2c2c2c;
}

.ceremony-announce-small {
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    font-style: italic;
    color: #2c2c2c;
    margin: 18px 0 20px;
}

.ceremony-couple {
    text-align: center;
    margin-bottom: 14px;
}

.ceremony-couple-name {
    font-family: "Great Vibes", cursive;
    font-size: 40px;
    line-height: 1.08;
    color: #7f4052;
    word-break: break-word;
}

.ceremony-role-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 26px;
}

.ceremony-role {
    font-family: "Cormorant Garamond", serif;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #2c2c2c;
}

.ceremony-block {
    text-align: center;
    margin-bottom: 24px;
}

.ceremony-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.ceremony-venue {
    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    font-style: italic;
    color: #2c2c2c;
}

.ceremony-subvenue {
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    font-style: italic;
    color: #2c2c2c;
    margin-top: 4px;
    line-height: 1.4;
}

.ceremony-time-line {
    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    margin-top: 10px;
    color: #2c2c2c;
    text-align: center;
}

    .ceremony-time-line span {
        display: inline-block;
        margin: 0 10px;
        color: #2c2c2c;
    }

.time-value {
    color: inherit;
}

.ceremony-address,
.ceremony-lunar {
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    font-style: italic;
    color: #2c2c2c;
    margin: 8px 0 18px;
    line-height: 1.5;
}

/* RIGHT PANEL - RECEPTION */
.reception-top {
    text-align: center;
    margin-bottom: 18px;
}

.reception-invite-line {
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #2c2c2c;
    text-transform: none;
}

.reception-guest-name {
    font-family: "Great Vibes", cursive;
    font-size: 26px;
    line-height: 1.1;
    color: #2c2c2c;
    margin-top: 6px;
    word-break: break-word;
}

.reception-subline {
    margin-top: 10px;
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    font-style: italic;
    color: #2c2c2c;
    line-height: 1.55;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.reception-venue-name {
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 30px;
    letter-spacing: 3px;
    color: #2c2c2c !important;
    text-transform: uppercase;
    margin: 0px 0 8px;
    line-height: 1.25;
}

.reception-hall {
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 14px;
    color: #2c2c2c;
    margin-bottom: 8px;
    line-height: 1.4;
}

.reception-address {
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 16px;
    font-style: italic;
    color: #2c2c2c;
    line-height: 1.5;
    margin: 0 auto 16px;
    max-width: 360px;
}

.reception-time-table {
    max-width: 320px;
    margin: 0 auto 18px;
}

.reception-time-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

    .reception-time-row .time {
        min-width: 82px;
        text-align: right;
        font-family: "Cormorant Garamond", serif;
        font-size: 22px;
        color: #2c2c2c;
    }

    .reception-time-row .divider {
        color: #bba8a2;
        font-size: 22px;
    }

    .reception-time-row .label {
        min-width: 98px;
        text-align: left;
        font-family: "Cormorant Garamond", serif;
        font-size: 22px;
        color: #2c2c2c;
    }

.reception-message {
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 16px;
    font-style: italic;
    color: #2c2c2c;
    line-height: 1.65;
    margin: 14px auto 18px;
    max-width: 360px;
}

.reception-table-box {
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    color: #2c2c2c;
    background: rgba(127, 64, 82, 0.05);
    border: 1px solid rgba(127, 64, 82, 0.12);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.reception-bottom-section {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    margin-top: auto;
}

.reception-panel .qr-box,
.reception-panel .map-box {
    background: #fff;
    border: 1px solid rgba(120, 100, 96, 0.12);
    box-shadow: none;
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    height: 100%;
}

.map-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

.reception-panel .map-title,
.reception-panel .qr-caption {
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    color: #2c2c2c;
}

.qr-image {
    width: 100%;
    max-width: 170px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 8px;
    border: 1px solid rgba(120, 100, 96, 0.12);
}

#miniMapCanvas {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 6px;
    background: #2c2c2c;
    border-radius: 10px;
    border: 1px solid rgba(214, 178, 94, 0.35);
}

.map-legend {
    max-width: 320px;
    margin: 0 auto;
    font-family: "Cormorant Garamond", serif;
    color: #2c2c2c;
    line-height: 1.45;
}

.map-legend-title {
    font-size: 18px;
    color: #2c2c2c;
}

.map-legend-position {
    margin-top: 4px;
    font-size: 16px;
    color: #2c2c2c;
    font-weight: 600;
}

.map-legend-note,
.map-legend--empty {
    margin-top: 6px;
    font-size: 15px;
    font-style: italic;
}

.action-buttons {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-rsvp {
    background: #7f4052;
    color: #fff !important;
    border-radius: 999px;
    padding: 10px 22px;
    border: none;
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

    .btn-rsvp:hover {
        background: #6f3345;
        color: #fff !important;
    }

.reception-panel .btn-outline-dark {
    border-radius: 999px;
    padding: 10px 22px;
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
}

.reception-footer-note {
    text-align: center;
    margin-top: 18px;
    font-size: 12px;
    letter-spacing: 3px;
    color: #2c2c2c;
    text-transform: uppercase;
}

@media (max-width: 991.98px) {
    .invitation-spread {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .invitation-panel--left,
    .invitation-panel--right {
        height: auto;
        min-height: 0;
    }

    .reception-bottom-section {
        grid-template-columns: 1fr;
    }

    .reception-panel {
        padding: 28px 24px 24px;
    }
}

@media (max-width: 767.98px) {
    .invitation-page {
        padding: 14px 6px;
    }

    .panel-inner--ceremony,
    .reception-panel {
        padding: 22px 16px;
    }

    .ceremony-family-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ceremony-couple-name {
        font-size: 42px;
    }

    .reception-guest-name {
        font-size: 34px;
    }

    .reception-venue-name {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .reception-subline,
    .reception-address,
    .reception-message,
    .ceremony-address,
    .ceremony-lunar {
        font-size: 16px;
    }

    .reception-time-row {
        gap: 8px;
    }

        .reception-time-row .time,
        .reception-time-row .label {
            font-size: 18px;
            min-width: auto;
        }

    .reception-time-row .divider {
        font-size: 18px;
    }

    .reception-table-box {
        font-size: 18px;
    }

    .btn-rsvp,
    .reception-panel .btn-outline-dark {
        width: 100%;
        justify-content: center;
        font-size: 17px;
    }
}

@media print {
    .invitation-page {
        padding: 0;
        background: #fff;
    }

    .invitation-spread {
        gap: 12px;
    }

    .panel-inner--ceremony,
    .reception-panel {
        padding: 24px 24px 20px;
    }

    .reception-guest-name {
        font-size: 34px;
    }

    .reception-venue-name {
        font-size: 24px;
    }

    .reception-subline,
    .reception-address,
    .reception-message {
        font-size: 16px;
    }

    .reception-time-row .time,
    .reception-time-row .label,
    .reception-time-row .divider {
        font-size: 18px;
    }
}
