/**
 * Inquiry wizard, checkout, header CTA, booking widget scroll.
 * Loaded last so tour-detail.css cannot flatten these layouts.
 */

/* Tailor Made — never wrap, never shrink */
.main-header .header-right-actions {
    flex-shrink: 0;
}
.main-header .btn-tailor-made,
.main-header a.btn-brand-solid {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0 !important;
    padding: 10px 18px !important;
    line-height: 1.15 !important;
    height: auto !important;
    min-width: max-content;
}
@media (max-width: 575.98px) {
    .main-header .btn-tailor-made {
        display: none !important;
    }
}

/* Booking widget: stick AND scroll inside the viewport */
.sticky-sidebar {
    position: sticky !important;
    top: 96px !important;
    max-height: calc(100vh - 112px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

/* ── Inquiry page ───────────────────────────────────────────────────── */
.inquiry-page {
    background: #f6f8fc;
    min-height: 50vh;
    font-family: Poppins, sans-serif;
}
.inquiry-tour-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0e1a33;
}
.inquiry-stepper {
    display: flex !important;
    align-items: center;
    gap: 10px;
    max-width: 560px;
    margin-bottom: 1.5rem;
}
.inq-step {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #9aa4b2;
    font-size: .78rem;
    min-width: 72px;
}
.inq-step small { display: block; text-align: center; }
.inq-step span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #dbe3ee;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: #fff;
    color: #0e1a33;
}
.inq-step.active span,
.inq-step.done span {
    background: #0e1a33;
    color: #fff;
    border-color: #0e1a33;
}
.inq-step.active,
.inq-step.done { color: #0e1a33; font-weight: 600; }
.inq-line {
    flex: 1;
    height: 2px;
    background: #dbe3ee;
    min-width: 24px;
}
.inquiry-card,
.inquiry-summary {
    background: #fff !important;
    border: 1px solid #eef1f6;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 28px rgba(14,26,51,.05);
}
.inquiry-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0e1a33;
    margin-bottom: 22px;
}
.inq-pane-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0e1a33;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.inq-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef3f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
}
.btn-inq-next {
    background: #0e1a33;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 10px 28px;
    font-weight: 600;
}
.btn-inq-back {
    background: #fff;
    color: #0e1a33;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 600;
}
.inquiry-summary { position: sticky; top: 96px; }
.inquiry-summary h4 { font-weight: 700; color: #0e1a33; margin-bottom: 16px; }
.sum-tour { display: flex; gap: 12px; margin-bottom: 16px; }
.sum-tour img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.inquiry-summary .sum-list,
.sum-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.sum-list li {
    display: flex !important;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f4f8;
    font-size: .92rem;
}
.sum-edit { display: inline-block; margin-top: 14px; color: #ff7b00; font-weight: 600; font-size: .9rem; }
.inq-confirm table { width: 100%; }
.inq-confirm table td { padding: 8px 0; border-bottom: 1px solid #f1f4f8; }
.inq-confirm table td:first-child { color: #6c7a89; width: 40%; }
.inquiry-review-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    height: 100%;
    box-shadow: 0 6px 18px rgba(14,26,51,.05);
}

/* ── Checkout ───────────────────────────────────────────────────────── */
.checkout-page {
    background: #f4f7fb;
    padding: 28px 0 72px;
    min-height: 55vh;
}
.checkout-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 16px;
}
.checkout-page h1 {
    font-size: 1.55rem;
    font-weight: 700;
    color: #0e1a33;
    margin-bottom: 6px;
}
.checkout-card {
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(14,26,51,.06);
    overflow: hidden;
}
.checkout-card .card-body { padding: 24px; }
.checkout-pay-btn {
    background: #0e1a33 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-weight: 600;
    padding: 12px 18px !important;
    white-space: nowrap;
}
#stripe-payment-element {
    min-height: 48px;
    padding: 4px 0;
}

/* ── Blog ──────────────────────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.blog-card {
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(14,26,51,.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    background: #eef3f8;
    overflow: hidden;
}
.blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.blog-card:hover .blog-card__media img { transform: scale(1.04); }
.blog-card__body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.blog-card__meta {
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #7b8794;
}
.blog-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}
.blog-card__title a {
    color: #0e1a33;
    text-decoration: none;
}
.blog-card__title a:hover { color: var(--brand-teal, #0d9488); }
.blog-card__excerpt {
    color: #5b6573;
    font-size: .95rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.blog-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-weight: 600;
    color: var(--brand-teal, #0d9488);
    text-decoration: none;
}
.blog-card__more:hover { color: #0e1a33; }
.blog-article {
    background: #f6f8fc;
    padding: 0 0 64px;
}
.blog-article__wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 0 0;
}
.blog-article__meta {
    color: #7b8794;
    font-size: .9rem;
    margin-bottom: 10px;
}
.blog-article__title {
    color: #0e1a33;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 22px;
}
.blog-article__hero {
    width: 100%;
    border-radius: 18px;
    margin-bottom: 28px;
    object-fit: cover;
    max-height: 460px;
}
.cms-prose,
.blog-article__body {
    color: #2d3644;
    font-size: 1.05rem;
    line-height: 1.75;
}
.cms-prose h2,
.blog-article__body h2 {
    color: #0e1a33;
    font-size: 1.45rem;
    font-weight: 700;
    margin: 1.6rem 0 .7rem;
}
.cms-prose h3 {
    color: #0e1a33;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.3rem 0 .5rem;
}
.cms-prose p,
.blog-article__body p { margin-bottom: 1rem; }
.cms-prose ul,
.cms-prose ol {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}
.cms-prose li { margin-bottom: .35rem; }
.cms-prose img,
.blog-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 1rem 0;
}
.cms-lead {
    font-size: 1.05rem;
    color: #5b6573;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.contact-form {
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(14,26,51,.06);
    padding: 28px 28px 32px;
}
.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery-page-card {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #eef3f8;
}
.gallery-page-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.gallery-page-card:hover img { transform: scale(1.04); }
.wishlist-empty {
    background: #fff;
    border: 1px dashed #d5deea;
    border-radius: 16px;
    padding: 28px;
    color: #5b6573;
}
.wishlist-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 999999;
    background: #fff;
    color: #222;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    border-left: 4px solid var(--brand-teal, #0d9488);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all .3s ease;
}
.wishlist-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
[gx-card="tour"] .wishlist-btn.active,
.wishlist-btn.active {
    color: var(--brand-teal, #0d9488);
}
@media (max-width: 991.98px) {
    .blog-grid,
    .gallery-page-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .blog-grid,
    .gallery-page-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 20px; }
    .wishlist-toast { right: 15px; top: 15px; }
}
