/* Public (marketing) surface — recreates the "Tour" template look (Untree.co)
   using its palette, fonts and imagery, layered lightly over MudBlazor.
   Scoped under .public-surface so it never affects the MudBlazor portal. */

:root {
    --tour-navy: #1A374D;
    --tour-navy-2: #204560;
    --tour-blue: #6998AB;
    --tour-blue-light: #B1D0E0;
}

/* ---- Top navigation (transparent, floats over the hero, scrolls away) ---- */
.public-surface .public-main {
    padding-top: 0 !important; /* no fixed app bar — hero runs to the very top */
}

.public-surface .tour-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding-block: 18px;
}

.public-surface .tour-nav .tour-logo {
    letter-spacing: -0.02em;
    font-weight: 700;
    font-size: 1.6rem;
    color: #fff;
    text-decoration: none;
    line-height: 1;
}

.public-surface .tour-nav .tour-logo span {
    color: var(--tour-blue-light);
}

/* nav links + buttons render white over the dark hero */
.public-surface .tour-nav a,
.public-surface .tour-nav .mud-button-root {
    color: rgba(255, 255, 255, .78);
    font-weight: 500;
}

.public-surface .tour-nav a:hover,
.public-surface .tour-nav .mud-button-root:hover {
    color: #fff;
}

/* ---- Hero (full-bleed, nav overlays the top) ---------------------------- */
.public-surface .tour-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(26, 55, 77, .45), rgba(26, 55, 77, .78)),
                url('../images/hero-slider-1.jpg') center/cover no-repeat fixed;
    color: #fff;
    overflow: hidden;
}

.public-surface .tour-hero h1 {
    letter-spacing: -0.02em;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.5px;
}

/* search card floating over the hero */
.public-surface .tour-search-card {
    backdrop-filter: blur(2px);
}

/* ---- Inner-page header band (keeps the white nav readable) -------------- */
.public-surface .tour-pageheader {
    background: linear-gradient(120deg, var(--tour-navy), var(--tour-navy-2)),
                url('../images/hero-slider-3.jpg') center/cover no-repeat;
    background-blend-mode: multiply;
    color: #fff;
    padding-top: 128px;
    padding-bottom: 56px;
    text-align: center;
}

.public-surface .tour-pageheader .tour-section-title { color: #fff; }

/* ---- Destination / tour cards ------------------------------------------- */
.public-surface .tour-card {
    overflow: hidden;
    transition: transform .3s var(--mud-default-transition, ease), box-shadow .3s ease;
}

.public-surface .tour-card:hover {
    transform: translateY(-6px);
}

.public-surface .tour-card__media {
    overflow: hidden;
}

.public-surface .tour-card__media img {
    transition: transform .5s ease;
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.public-surface .tour-card:hover .tour-card__media img {
    transform: scale(1.08);
}

/* country pill over the image */
.public-surface .tour-card__pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(26, 55, 77, .85);
    color: #fff;
    padding: 2px 12px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .3px;
}

/* ---- Section rhythm ------------------------------------------------------ */
.public-surface .tour-section {
    padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}

.public-surface .tour-section-title {
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* counters band */
.public-surface .tour-counter-band {
    background: var(--tour-navy);
    color: #fff;
    border-radius: 16px;
}

.public-surface .tour-counter__num {
    letter-spacing: -0.02em;
    font-weight: 700;
    line-height: 1;
}

/* CTA band */
.public-surface .tour-cta-band {
    background: linear-gradient(120deg, var(--tour-navy), var(--tour-navy-2));
    color: #fff;
    border-radius: 16px;
}

/* ---- Catalogue ------------------------------------------------------------ */
/* three lines of summary, so cards in a row keep the same height */
.public-surface .tour-card__summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Tour detail ---------------------------------------------------------- */
.public-surface .tour-gallery__main {
    width: 100%;
    height: clamp(240px, 42vw, 440px);
    object-fit: cover;
    display: block;
    border-radius: 14px;
}

.public-surface .tour-gallery__thumb {
    width: 88px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .75;
    transition: opacity .2s ease, border-color .2s ease;
}

.public-surface .tour-gallery__thumb:hover,
.public-surface .tour-gallery__thumb--active {
    opacity: 1;
    border-color: var(--tour-blue);
}

/* the map itself is shared with the tour editor in the portal */
.tour-map {
    height: 340px;
    border-radius: 14px;
    border: 1px solid var(--mud-palette-lines-default);
    z-index: 0;
}

.tour-map__mode span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    font-size: 14px;
    line-height: 1;
    border: 1px solid rgba(26, 55, 77, .35);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

/* ---- Itinerary: route map + day-by-day list ------------------------------- */
.public-surface .itinerary-explorer__body {
    display: grid;
    gap: 24px;
}

.public-surface .itinerary-explorer__map .tour-map {
    height: 380px;
}

/* wide screens: the list scrolls past while the map stays beside it */
@media (min-width: 1280px) {
    .public-surface .itinerary-explorer__body--with-map {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        align-items: start;
    }

    .public-surface .itinerary-explorer__body--with-map .itinerary-explorer__map {
        order: 2;
        position: sticky;
        top: 16px;
    }

    .public-surface .itinerary-explorer__body--with-map .itinerary-explorer__map .tour-map {
        height: 460px;
    }
}

.public-surface .itinerary-explorer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.public-surface .itinerary-day {
    --day-color: var(--tour-navy);
    padding: 0 0 20px 22px;
    border-left: 3px solid var(--day-color);
    margin-left: 14px;
}

.public-surface .itinerary-day__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px -39px;
    color: var(--tour-navy);
    letter-spacing: -0.02em;
    font-size: 1.15rem;
    font-weight: 700;
}

.public-surface .itinerary-day__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--day-color);
    color: #fff;
    font-size: .95rem;
    box-shadow: 0 0 0 4px #fff;
}

.public-surface .itinerary-day__items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.public-surface .itinerary-item__travel {
    font-size: .8rem;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 2px;
}

.public-surface .itinerary-item__title {
    line-height: 1.35;
}

.public-surface .itinerary-item__text {
    margin-top: 4px;
}

/* day buttons in the map's top right corner */
.tour-map__day-control {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-height: calc(100% - 20px);
    overflow-y: auto;
}

.tour-map__day-button {
    --day-color: #1A374D;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #1A374D;
    font: inherit;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.tour-map__day-button:hover {
    transform: translateX(-2px);
}

.tour-map__day-button:focus-visible {
    outline: 3px solid var(--tour-blue-light);
    outline-offset: 2px;
}

.tour-map__day-button[aria-pressed="true"] {
    background: var(--day-color);
    color: #fff;
}

.tour-map__day-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--day-color);
    box-shadow: 0 0 0 2px #fff;
}

/* phones and long tours: round day numbers in a column */
.tour-map__day-control--compact {
    align-items: center;
    gap: 5px;
    padding: 6px 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.tour-map__day-caption {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #6e7894;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-bottom: 2px;
}

.tour-map__day-control--compact .tour-map__day-button {
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid var(--day-color);
    box-shadow: none;
}

.tour-map__day-control--compact .tour-map__day-button:hover {
    transform: scale(1.08);
}

/* the place names of the day that is lit up */
.leaflet-tooltip.tour-map__label {
    padding: 2px 7px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, .92);
    color: #1A374D;
    font-size: .75rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.leaflet-tooltip.tour-map__label::before {
    display: none;
}

/* "use two fingers" over the map on touch screens */
.tour-map__gesture-hint {
    position: absolute;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(26, 55, 77, .55);
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 200ms ease;
}

.tour-map__gesture-hint--visible {
    opacity: 1;
}

/* the map credit OpenStreetMap asks for, kept small and quiet */
.tour-map .leaflet-control-attribution {
    font-size: 10px;
    background: rgba(255, 255, 255, .55);
    color: #6e7894;
}

.tour-map .leaflet-control-attribution a {
    color: inherit;
}

/* popup of a place on the map */
.tour-map__popup {
    font-size: .85rem;
    line-height: 1.45;
}

.tour-map__popup-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--tour-navy);
}

.tour-map__place-text {
    margin: 6px 0 0;
    color: #4a5568;
    white-space: pre-line;
}

@media (prefers-reduced-motion: reduce) {
    .tour-map__day-button,
    .tour-map__gesture-hint {
        transition: none;
    }
}

/* booking box that stays in view next to a long tour page */
.public-surface .tour-sticky {
    position: sticky;
    top: 16px;
}

.public-surface .tour-description {
    white-space: pre-line;
}

/* ---- Booking status steps -------------------------------------------------- */
.public-surface .booking-steps {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.public-surface .booking-step {
    flex: 1;
    text-align: center;
    font-size: .75rem;
    color: var(--mud-palette-text-secondary);
    position: relative;
}

.public-surface .booking-step::before {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    margin: 0 auto .35rem;
    border-radius: 50%;
    background: var(--mud-palette-lines-default);
}

.public-surface .booking-step::after {
    content: "";
    position: absolute;
    top: 6px;
    left: calc(50% + 12px);
    right: calc(-50% + 12px);
    height: 2px;
    background: var(--mud-palette-lines-default);
}

.public-surface .booking-step:last-child::after { display: none; }

.public-surface .booking-step--done,
.public-surface .booking-step--current { color: var(--tour-navy); font-weight: 600; }

.public-surface .booking-step--done::before,
.public-surface .booking-step--current::before { background: var(--tour-navy); }

.public-surface .booking-step--done::after { background: var(--tour-navy); }

.public-surface .booking-step--current::before { box-shadow: 0 0 0 4px rgba(105, 152, 171, .35); }

/* ----- Notification inbox (/notifications) ----- */

.public-surface .notification-list { overflow: hidden; border-radius: 12px; }

.public-surface .notification-item {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    width: 100%;
    padding: .9rem 1.1rem;
    border: 0;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color .15s ease;
}

.public-surface .notification-item:last-child { border-bottom: 0; }

.public-surface .notification-item:hover { background: rgba(105, 152, 171, .08); }

.public-surface .notification-item:focus-visible { outline: 2px solid var(--tour-blue); outline-offset: -2px; }

/* Unread rows stand out by a tinted background and a bolder title, not by colour alone */
.public-surface .notification-item.is-unread { background: rgba(177, 208, 224, .18); }

.public-surface .notification-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(105, 152, 171, .14);
}

.public-surface .notification-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }

.public-surface .notification-title { font-weight: 500; }

.public-surface .notification-item.is-unread .notification-title { font-weight: 700; color: var(--tour-navy); }

.public-surface .notification-body { font-size: .9rem; opacity: .85; overflow-wrap: anywhere; }

.public-surface .notification-time { font-size: .78rem; opacity: .6; }

.public-surface .notification-dot {
    flex: none;
    width: .6rem;
    height: .6rem;
    margin-top: .45rem;
    border-radius: 50%;
    background: var(--mud-palette-error);
}

/* ----- Bank transfer / VietQR (booking page, checkout) ----- */

.public-surface .bank-transfer {
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    border: 1px solid rgba(105, 152, 171, .45);
    border-radius: 12px;
    background: rgba(177, 208, 224, .14);
}

/* Stacked on phones; QR on the left from tablet width */
.public-surface .bank-transfer__body { display: grid; gap: 1.25rem; justify-items: center; }

@media (min-width: 640px) {
    .public-surface .bank-transfer__body { grid-template-columns: auto 1fr; align-items: center; justify-items: stretch; }
}

.public-surface .bank-transfer__qr { margin: 0; text-align: center; }

.public-surface .bank-transfer__qr img {
    display: block;
    width: 240px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(26, 55, 77, .12);
}

.public-surface .bank-transfer__qr figcaption { margin-top: .5rem; font-size: .8rem; opacity: .7; }

.public-surface .bank-transfer__details { display: flex; flex-direction: column; gap: .35rem; width: 100%; margin: 0; }

.public-surface .bank-transfer__details > div {
    display: grid;
    grid-template-columns: minmax(7rem, 38%) 1fr;
    align-items: center;
    gap: .5rem;
    padding: .3rem .5rem;
    border-radius: 8px;
}

.public-surface .bank-transfer__details dt { font-size: .85rem; opacity: .7; }

.public-surface .bank-transfer__details dd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .25rem;
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* The description is the one line customers must not change, so it stands out */
.public-surface .bank-transfer__details > .is-highlight { background: rgba(26, 55, 77, .08); }

.public-surface .bank-transfer__details > .is-highlight dd span { color: var(--tour-navy); letter-spacing: .08em; }

.public-surface .bank-transfer__waiting {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(105, 152, 171, .5);
}

/* The three checkout steps reuse the booking progress bar, kept narrow above the form */
.public-surface .checkout-steps { max-width: 34rem; margin-left: auto; margin-right: auto; }
