/* =====================================================================
   Home page — Only Ticket MOCKUP layout (carousel, chips, coupons,
   destination circles, product cards). Classes are prefixed "ot-" so they
   don't clash with Bootstrap (.carousel, .card) or the old home styles.
   ===================================================================== */

.ot-home { max-width: 1180px; margin: 0 auto; padding: 26px 28px 40px; }

/* ---------- Carousel ---------- */
.ot-hero-wrap { position: relative; }
.ot-car { position: relative; overflow: hidden; height: 400px; background: var(--ot-ink); }
/* Leave room at the bottom of each slide for the search box */
.ot-hero-wrap .ot-slide { padding-bottom: 110px; }

/* Search box over the carousel (outside .ot-car so suggestions can drop below it) */
.ot-hero-search {
    position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%);
    width: calc(100% - 56px); max-width: 620px; z-index: 20; margin: 0;
    display: flex; align-items: stretch; gap: 10px;
}
.ot-hero-wrap.no-slides { background: linear-gradient(120deg, var(--ot-brand) 0%, #7a5cff 55%, var(--ot-teal) 100%); height: 200px; }
.ot-hero-wrap.no-slides .ot-hero-search { bottom: 50%; transform: translate(-50%, 50%); }
body .ot-hero-search .autoComplete_wrapper { width: 100%; max-width: none; display: block; }
body .ot-hero-search .autoCompleteProduct {
    width: 100%; max-width: none; height: 52px; border: none; border-radius: 12px;
    font-size: 15px; color: var(--ot-ink); background-color: #fff;
    box-shadow: 0 8px 26px rgba(20,22,34,.3);
}
body .ot-hero-search .autoCompleteProduct:focus { outline: none; box-shadow: 0 0 0 3px rgba(227,30,36,.35), 0 8px 26px rgba(20,22,34,.3); }
body .ot-hero-search .autoComplete_wrapper > ul { z-index: 1080; }
.ot-hero-q { flex: 1; min-width: 0; }
@media (max-width: 720px) {
    .ot-car { height: 320px; }
    .ot-hero-wrap .ot-slide { padding-bottom: 100px; }
    .ot-hero-search { bottom: 40px; width: calc(100% - 32px); }
    body .ot-hero-search .autoCompleteProduct { height: 48px; font-size: 14px; }
    /* tighter slide text so title + 2-line detail + button fit above the search box */
    .ot-slide h2 { margin-bottom: 6px; }
    .ot-slide p { font-size: 13px; line-height: 1.45; margin-bottom: 10px; }
    .ot-s-cta { padding: 8px 16px; font-size: 13px; }
    .ot-s-content { max-width: 100%; }
    .ot-hero-wrap .ot-slide { padding-top: 22px; }
}
.ot-slides { display: flex; height: 100%; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.ot-slide {
    min-width: 100%; height: 100%; display: flex; align-items: center;
    padding: 40px max(80px, calc((100vw - 1124px) / 2)); color: #fff; cursor: pointer; /* 80px keeps the text clear of the arrow buttons (2026-11-06) */
    background-size: cover; background-position: center;
}
.ot-s-content { max-width: min(62%, 560px); display: flex; flex-direction: column; align-items: flex-start; }
/* Title and detail capped at 2 lines each; the button follows straight after the text */
.ot-s-content h2, .ot-s-content p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ot-s-content > * { flex-shrink: 0; }
.ot-slide h2 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.ot-slide p { font-size: 14.5px; opacity: .95; line-height: 1.55; margin: 0 0 18px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.ot-s-cta {
    display: inline-block; background: #fff; color: var(--ot-ink); border-radius: 10px; padding: 11px 22px;
    font-size: 14px; font-weight: 600; text-decoration: none; transition: transform .15s;
}
.ot-s-cta:hover { transform: scale(1.04); color: var(--ot-ink); }
/* 2026-11-06: solid white buttons so they show on any photo; the chevron is centred by flex */
.ot-car-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; padding: 0; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; background: #fff; color: var(--ot-ink); z-index: 5; cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.28); transition: background-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.ot-car-arrow svg { display: block; }
.ot-car-arrow:hover { background: var(--ot-brand); color: #fff; transform: translateY(-50%) scale(1.08); box-shadow: 0 6px 18px rgba(0,0,0,.34); }
.ot-car-arrow:active { transform: translateY(-50%) scale(.96); }
.ot-car-arrow:focus-visible { outline: 3px solid #fff; outline-offset: 2px; background: var(--ot-brand); color: #fff; }
.ot-car-arrow.left { left: 16px; }
.ot-car-arrow.right { right: 16px; }
.ot-car-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 5; }
.ot-car-dot { width: 9px; height: 9px; border-radius: 999px; border: none; background: rgba(255,255,255,.65); box-shadow: 0 0 0 1px rgba(0,0,0,.25); padding: 0; cursor: pointer; transition: width .2s; }
.ot-car-dot.active { background: #fff; width: 24px; }
@media (max-width: 720px) {
    .ot-car { height: 260px; }
    .ot-s-content { max-width: 100%; }
    .ot-slide h2 { font-size: 22px; }
    .ot-slide p { font-size: 13px; }
}

/* ---------- Section heads ---------- */
.ot-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 16px; }
.ot-section-head h2 { font-size: 19px; font-weight: 600; margin: 0; color: var(--ot-ink); }
.ot-section-head .count { font-size: 13px; color: var(--ot-muted); }
.ot-section-head .seeall { font-size: 13px; color: var(--ot-brand); font-weight: 500; text-decoration: none; }
.ot-section-head .seeall:hover { text-decoration: underline; }

/* ---------- Scroll rows ---------- */
.ot-srow { position: relative; }
.ot-chips { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 12px; margin-bottom: 6px; }
.ot-hscroll { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 14px; }
.ot-chips, .ot-hscroll { scrollbar-width: none; -ms-overflow-style: none; }
.ot-chips::-webkit-scrollbar, .ot-hscroll::-webkit-scrollbar { display: none; }
.ot-chip-logo { width: 22px; height: 22px; object-fit: contain; border-radius: 6px; background: #fff; }
.ot-sarrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 40px; height: 40px; border-radius: 999px;
    background: #fff; border: none; box-shadow: 0 4px 16px rgba(30,33,48,.2); color: var(--ot-ink);
    display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
    transition: opacity .2s, transform .15s, color .15s, background-color .15s;
}
/* 2026-11-06: same look as the slider arrows (drawn chevron, red on hover) */
.ot-sarrow svg { display: block; width: 20px; height: 20px; }
.ot-sarrow:hover { background: var(--ot-brand); color: #fff; transform: translateY(-50%) scale(1.08); }
.ot-sarrow:active { transform: translateY(-50%) scale(.96); }
.ot-sarrow:focus-visible { outline: 3px solid var(--ot-brand); outline-offset: 2px; }
.ot-sarrow.left { left: -16px; }
.ot-sarrow.right { right: -16px; }
.ot-sarrow.hidden { opacity: 0; pointer-events: none; }
.ot-srow:has(.ot-chips) .ot-sarrow { top: calc(50% - 6px); }

/* ---------- Offers (coupons) ---------- */
.ot-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 14px; }
.ot-coupon {
    display: flex; background: var(--ot-card); border: 1px solid var(--ot-line); border-radius: 14px; box-shadow: var(--ot-shadow);
    position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.ot-coupon:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30,33,48,.12); }
.ot-coupon .c-left {
    width: 92px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; color: #fff; padding: 14px 6px; text-align: center;
}
.ot-coupon .c-icon { font-size: 20px; }
.ot-coupon .c-amount { font-size: 15px; font-weight: 600; line-height: 1.15; }
.ot-coupon .c-right { flex: 1; min-width: 0; padding: 13px 14px; display: flex; flex-direction: column; gap: 6px; border-left: 1.5px dashed var(--ot-line); }
/* One line each, like the mockup; full text is in the title attribute */
.ot-coupon .c-title,
.ot-coupon .c-cond { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot-coupon .c-title { font-size: 13.5px; font-weight: 600; color: var(--ot-ink); }
.ot-coupon .c-cond { font-size: 11.5px; color: var(--ot-muted); line-height: 1.4; }
.ot-coupon .c-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ot-coupon .c-code {
    font-size: 11.5px; background: var(--ot-bg); border: 1px dashed #cfd3e0; padding: 3px 9px; border-radius: 6px; color: #3a3e52;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%;
}
.ot-coupon .c-collect {
    background: var(--ot-brand-light); color: var(--ot-brand); border-radius: 8px; padding: 6px 14px; font-size: 12px;
    font-weight: 600; text-decoration: none; transition: background .15s;
}
.ot-coupon .c-collect:hover { background: #fbd9da; color: var(--ot-brand); }
.ot-coupon::before, .ot-coupon::after {
    content: ''; position: absolute; left: 86px; width: 12px; height: 12px; border-radius: 999px;
    background: var(--ot-bg); border: 1px solid var(--ot-line); z-index: 2;
}
.ot-coupon::before { top: -7px; }
.ot-coupon::after { bottom: -7px; }

/* ---------- Destination / brand circles ---------- */
.ot-dest { flex-shrink: 0; width: 112px; text-align: center; text-decoration: none; color: var(--ot-ink); }
.ot-dest .d-circle {
    width: 84px; height: 84px; margin: 0 auto 8px; border-radius: 999px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(30,33,48,.15); transition: transform .12s;
}
.ot-dest .d-circle img { width: 100%; height: 100%; object-fit: cover; }
.ot-brand .d-circle img { object-fit: contain; padding: 10px; }
.ot-dest:hover .d-circle { transform: scale(1.08); }
.ot-dest b { font-size: 13px; display: block; font-weight: 600; }
.ot-dest span { font-size: 11px; color: var(--ot-muted); }
.ot-dest:hover { color: var(--ot-brand); }

/* ---------- Events ---------- */
.ot-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.ot-event {
    background: var(--ot-card); border: 1px solid var(--ot-line); border-radius: 12px; box-shadow: var(--ot-shadow);
    padding: 14px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ot-ink);
    transition: transform .12s, box-shadow .12s;
}
.ot-event:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(30,33,48,.14); color: var(--ot-ink); }
.ot-ev-date {
    align-self: flex-start; background: var(--ot-brand); color: #fff; font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: 6px;
}
.ot-ev-desc { font-size: 12.5px; color: var(--ot-muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ot-event .p-view { margin-top: auto; }

/* ---------- Product cards (Klook-style) ---------- */
.ot-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.ot-pcard {
    background: var(--ot-card); border: 1px solid var(--ot-line); border-radius: 12px; overflow: hidden; box-shadow: var(--ot-shadow);
    display: flex; flex-direction: column; text-decoration: none; color: var(--ot-ink); transition: transform .12s, box-shadow .12s;
}
.ot-pcard:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(30,33,48,.14); color: var(--ot-ink); }
.ot-pcard .p-img { height: 178px; position: relative; background-color: var(--ot-bg); background-size: cover; background-position: center; }
.ot-pcard .p-flag {
    position: absolute; top: 10px; left: 10px; background: #ff5722; color: #fff; font-size: 10.5px; font-weight: 600;
    padding: 3px 9px; border-radius: 6px; letter-spacing: .03em;
}
.ot-pcard .p-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.p-cat { font-size: 11px; color: var(--ot-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
.p-title {
    font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--ot-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ot-pcard .p-rating { font-size: 12px; color: #f59e0b; font-weight: 500; }
.ot-pcard .p-rating span { color: var(--ot-muted); font-weight: 600; }
.ot-pcard .p-price-row { margin-top: auto; padding-top: 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ot-pcard .p-price { font-size: 12.5px; color: var(--ot-muted); }
.ot-pcard .p-price b { font-size: 16px; color: var(--ot-ink); font-weight: 600; }
.p-view { color: var(--ot-brand); font-size: 11.5px; font-weight: 600; white-space: nowrap; opacity: .85; }
.ot-pcard:hover .p-view, .ot-event:hover .p-view { opacity: 1; text-decoration: underline; }

/* Phones: home "Top attractions" cards in one row, swipe/drag left and right */
@media (max-width: 767.98px) {
    .ot-home .ot-pgrid {
        display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
        margin: 0 -16px; padding: 2px 16px 10px; scroll-padding: 0 16px;
    }
    .ot-home .ot-pgrid::-webkit-scrollbar { display: none; }
    .ot-home .ot-pgrid .ot-pcard { flex: 0 0 68%; max-width: 260px; scroll-snap-align: start; }
    .ot-home .ot-pgrid.is-dragging { scroll-snap-type: none; cursor: grabbing; }
    .ot-home .ot-pgrid.is-dragging .ot-pcard { pointer-events: none; }
}
/* Arrows on the phone attractions row (sit just inside the screen edges) */
@media (max-width: 767.98px) {
    body .ot-prow .ot-sarrow { display: flex; width: 34px; height: 34px; top: 38%; }
    body .ot-prow .ot-sarrow svg { width: 17px; height: 17px; }
    body .ot-prow .ot-sarrow.left { left: -6px; }
    body .ot-prow .ot-sarrow.right { right: -6px; }
}
/* "Buy now" on bookable product cards (Coming soon cards keep "View details") */
.p-buy {
    background: var(--ot-grad); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap;
    padding: 6px 12px; border-radius: 8px; box-shadow: 0 3px 10px rgba(227,30,36,.22); transition: transform .15s, box-shadow .15s;
}
.ot-pcard:hover .p-buy { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(227,30,36,.3); }
/* Offer coupons are links to the blog post */
a.ot-coupon { text-decoration: none; color: inherit; }
a.ot-coupon:hover { color: inherit; }
a.ot-coupon:hover .c-collect { background: var(--ot-brand); color: #fff; }
/* Offer cards (blog posts) */
.ot-ocard .ot-o-noimg { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9); font-size: 42px; }
.ot-ocard .ot-o-excerpt { font-size: 12.5px; color: var(--ot-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ot-ocard .p-price i { margin-right: 4px; }

/* ---------- Promotions carousel (KLIA Ekspres style) ---------- */
.ot-promo-head { margin: 40px 0 18px; }
.ot-promo-head h2 { font-size: 30px; font-weight: 700; color: var(--ot-brand); margin: 0 0 6px; letter-spacing: -.01em; }
.ot-promo-head p { font-size: 15px; color: #3a3e52; margin: 0; }
.ot-promo { position: relative; }
.ot-promo-track {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; padding: 4px 2px 12px; margin: -4px -2px 0;
}
.ot-promo-track::-webkit-scrollbar { display: none; }
.ot-promo-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.ot-promo-track.is-dragging .ot-promo-card { pointer-events: none; }
.ot-promo-card {
    flex: 0 0 calc((100% - 54px) / 4); scroll-snap-align: start; display: flex; flex-direction: column;
    background: #fff; border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ot-ink);
    box-shadow: 0 2px 10px rgba(30,33,48,.08); transition: transform .15s, box-shadow .15s; min-height: 430px;
}
.ot-promo-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(30,33,48,.14); color: var(--ot-ink); }
.ot-promo-card .pc-img { aspect-ratio: 16 / 10; background: var(--ot-bg) center / cover no-repeat; flex-shrink: 0; }
.ot-promo-card .pc-noimg { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9); font-size: 46px; }
.ot-promo-card .pc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ot-promo-card .pc-title {
    font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0 0 10px; color: var(--ot-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ot-promo-card .pc-text {
    font-size: 14.5px; line-height: 1.55; color: #4a4f63; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ot-promo-card .pc-date { margin-top: auto; padding-top: 18px; font-size: 13.5px; color: var(--ot-muted); }
.ot-promo-arrow {
    position: absolute; top: 34%; z-index: 3; width: 42px; height: 42px; border-radius: 999px; border: none;
    background: #fff; color: var(--ot-brand); font-size: 24px; line-height: 1; padding-bottom: 3px;
    box-shadow: 0 4px 16px rgba(30,33,48,.2); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.ot-promo-arrow[hidden] { display: none; }
.ot-promo-arrow:hover { background: var(--ot-brand); color: #fff; }
.ot-promo-arrow.left { left: -18px; }
.ot-promo-arrow.right { right: -18px; }
.ot-promo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.ot-promo-dots { display: flex; gap: 7px; align-items: center; }
.ot-promo-dot { width: 8px; height: 8px; border-radius: 999px; border: none; padding: 0; background: #f3c2c4; cursor: pointer; transition: width .2s, background .2s; }
.ot-promo-dot.active { width: 40px; background: var(--ot-brand); }
.ot-promo-more { margin-left: auto; font-size: 16px; font-weight: 700; color: var(--ot-brand); text-decoration: none; white-space: nowrap; }
.ot-promo-more:hover { color: var(--ot-brand-dark); text-decoration: underline; }
@media (max-width: 1199.98px) { .ot-promo-card { flex-basis: calc((100% - 36px) / 3); } }
@media (max-width: 860px) { .ot-promo-card { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 575.98px) {
    .ot-promo-head h2 { font-size: 22px; }
    .ot-promo-head p { font-size: 13.5px; }
    .ot-promo-card { flex-basis: 82%; min-height: 0; }
    .ot-promo-card .pc-title { font-size: 16px; }
    .ot-promo-card .pc-text { font-size: 13.5px; }
    .ot-promo-arrow { display: none !important; }
    .ot-promo-more { font-size: 14px; }
}
