/* =============================================
   Tour Registration – tour-reg.css
   Palette: cream #f5f0e8, sage #6b7c5e,
            dark #2c3028, white #fff
   ============================================= */

/* ── PAGE WRAP ── */
.tour-reg-wrap {
    font-family: inherit;
    color: #2c3028;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px 60px;
    background: transparent;
}

/* ── HERO ── */
.tour-hero {
    text-align: center;
    padding: 60px 24px 52px;
    background: #f5f0e8;
    border-radius: 4px;
    margin-bottom: 48px;
}
.tour-hero-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: #6b7c5e;
    margin: 0 0 14px;
    font-weight: 500;
}
.tour-hero-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(36px, 6vw, 58px);
    font-weight: 400;
    color: #2c3028;
    margin: 0 0 16px;
    letter-spacing: .02em;
    line-height: 1.1;
}
.tour-hero-sub {
    font-size: 15px;
    color: #5a5a4a;
    max-width: 500px;
    margin: 0 auto 28px;
    line-height: 1.6;
}
.tour-cta-btn {
    display: inline-block;
    background: #6b7c5e;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: 13px 36px;
    border-radius: 50px;
    transition: background .2s, transform .15s;
}
.tour-cta-btn:hover {
    background: #576649;
    transform: translateY(-1px);
}

/* ── SECTION TITLES ── */
.tour-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 400;
    text-align: center;
    color: #2c3028;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin: 0 0 8px;
}
.tour-section-sub {
    text-align: center;
    font-size: 13px;
    color: #8a8a7a;
    letter-spacing: .08em;
    margin: 0 0 32px;
}

/* ── ABOUT ── */
.tour-about {
    background: #f5f0e8;
    border-radius: 4px;
    padding: 44px 40px;
    margin-bottom: 48px;
    text-align: center;
}
.tour-about .tour-section-title {
    margin-bottom: 36px;
}
.tour-about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.tour-about-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
    border-right: 1px solid #ddd5c8;
}
.tour-about-item:last-child {
    border-right: none;
}
.tour-about-icon {
    font-size: 22px;
    line-height: 1;
}
.tour-about-item strong {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: #6b7c5e;
    font-weight: 700;
    margin-bottom: 4px;
}
.tour-about-item span.tour-about-icon ~ div {
    text-align: center;
}
.tour-about-item div {
    text-align: center;
    font-size: 14px;
    color: #4a4a3a;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .tour-about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 0;
    }
    .tour-about-item {
        border-right: none;
        border-bottom: 1px solid #ddd5c8;
        padding-bottom: 24px;
    }
    .tour-about-item:nth-child(2n) { border-right: none; }
    .tour-about-item:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
}

/* ── GROUP CARDS ── */
.tour-schedule {
    margin-bottom: 40px;
}
.tour-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}
.tour-group-card {
    background: #fff;
    border: 1px solid #e0d9ce;
    border-radius: 4px;
    padding: 24px 16px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow .2s, border-color .2s, transform .15s;
}
.tour-group-card.is-open:hover {
    border-color: #6b7c5e;
    box-shadow: 0 6px 24px rgba(107,124,94,.12);
    transform: translateY(-2px);
}
.tour-group-card.is-full {
    background: #faf8f5;
    opacity: .65;
}
.tour-card-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: #9a9a8a;
    font-weight: 600;
}
.tour-card-time {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 30px;
    font-weight: 400;
    color: #2c3028;
    line-height: 1;
}
.tour-card-seats {
    font-size: 12px;
    min-height: 18px;
}
.seats-count { color: #6b7c5e; }
.seats-count strong { font-weight: 700; }
.seats-full { color: #a07060; font-weight: 500; }

.tour-card-btn {
    background: #6b7c5e !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 10px 18px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background .2s, transform .15s, box-shadow .2s !important;
    width: 100% !important;
    margin-top: 4px !important;
    box-shadow: none !important;
    outline: none !important;
    display: block !important;
    text-decoration: none !important;
    text-align: center !important;
    line-height: normal !important;
    box-sizing: border-box !important;
}
.tour-card-btn:hover:not([disabled]) {
    background: #576649 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(107,124,94,.3) !important;
    color: #fff !important;
    border: none !important;
}
.tour-card-btn[disabled],
.tour-card-btn:disabled {
    background: #c8c0b4 !important;
    cursor: not-allowed !important;
    color: #8a8070 !important;
    box-shadow: none !important;
    transform: none !important;
    border: none !important;
    opacity: 1 !important;
}

/* =============================================
   MODAL
   ============================================= */
.tr-modal-overlay {
    display: none !important;
    position: fixed;
    inset: 0;
    background: rgba(44, 48, 40, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
/* shown state — toggled by JS adding .is-open class */
.tr-modal-overlay.is-open {
    display: flex !important;
    animation: trFadeIn .2s ease;
}
@keyframes trFadeIn { from { opacity: 0 } to { opacity: 1 } }

.tr-modal-box {
    background: #fdfaf7;
    border-top: 3px solid #6b7c5e;
    border-radius: 4px;
    padding: 40px 36px 32px;
    width: 100%;
    max-width: 420px;
    position: relative;
    animation: trSlideUp .28s cubic-bezier(.16,1,.3,1);
    box-shadow: 0 24px 64px rgba(0,0,0,.18);
}
@keyframes trSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Close button */
.tr-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #c8c0b4;
    background: transparent;
    color: #8a8070;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: background .15s, color .15s;
}
.tr-close:hover {
    background: #ede6da;
    color: #2c3028;
    border-color: #a89880;
}

/* Eyebrow + title */
.tr-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: #6b7c5e;
    margin: 0 0 8px;
    font-weight: 500;
}
.tr-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    color: #2c3028;
    margin: 0 0 26px;
}

/* Fields */
.tr-field {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.tr-field label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #6b7a5a;
}
.tr-field label span { color: #a07060; }
.tr-field input {
    padding: 11px 14px;
    border: 1px solid #d8d0c4;
    border-radius: 3px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #2c3028;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    width: 100%;
}
.tr-field input::placeholder { color: #b8b0a4; }
.tr-field input:focus {
    border-color: #6b7c5e;
    box-shadow: 0 0 0 3px rgba(107,124,94,.14);
}
.tr-field input.has-error { border-color: #a07060; }
.tr-err {
    font-size: 11px;
    color: #a07060;
    min-height: 15px;
    letter-spacing: .02em;
}

/* Buttons */
.tr-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}
.tr-btn-confirm {
    flex: 1 !important;
    background: #6b7c5e !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 13px 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background .2s, transform .15s !important;
    outline: none !important;
    text-decoration: none !important;
}
.tr-btn-confirm:hover:not([disabled]) {
    background: #576649 !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
}
.tr-btn-confirm[disabled] {
    background: #a8b49a !important;
    cursor: not-allowed !important;
    transform: none !important;
    color: #fff !important;
}
.tr-btn-cancel {
    background: transparent !important;
    color: #6a6458 !important;
    border: 1px solid #c8c0b4 !important;
    border-radius: 50px !important;
    padding: 13px 20px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background .15s, border-color .15s !important;
    outline: none !important;
}
.tr-btn-cancel:hover {
    background: #ede6da !important;
    border-color: #a89880 !important;
    color: #2c3028 !important;
}

/* Success */
.tr-success-check {
    text-align: center;
    font-size: 40px;
    color: #6b7c5e;
    margin-bottom: 12px;
    font-family: Georgia, serif;
}
.tr-success-msg {
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    color: #2c3028;
    line-height: 1.6;
}

/* Error */
.tr-error-msg {
    text-align: center;
    font-size: 14px;
    color: #a07060;
    margin: 12px 0 0;
    line-height: 1.5;
}

/* Spinner */
.tr-btn-confirm.is-loading {
    pointer-events: none;
    opacity: .8;
}
.tr-btn-confirm.is-loading::after {
    content: '';
    display: inline-block;
    width: 11px; height: 11px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: trSpin .7s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}
@keyframes trSpin { to { transform: rotate(360deg) } }

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
    .tour-groups-grid { grid-template-columns: repeat(2, 1fr); }
    .tour-hero { padding: 40px 20px; }
    .tour-about { padding: 28px 20px; }
    .tr-modal-box { padding: 32px 22px 26px; }
}
