/* Trip Semporna public site - Header, navigation, account menu, cart bag, footer, toasts.
   Part of the public CSS: the files in assets/css/public/ load in name order (TRIPSEM_Public::assets()). */

@keyframes tsp-toast-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes tsp-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.tsp-skip { position: absolute; left: -999px; top: 8px; background: var(--tsp-black); color: var(--tsp-yellow); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.tsp-skip:focus { left: 8px; }
/* keyboard focus: a soft amber ring, never black */
.tsp-header :focus-visible { outline-color: #fff; }
/* text fields show the yellow ring instead */
/* Header */
.tsp-header { background: var(--tsp-yellow); color: var(--tsp-black); position: sticky; top: 0; z-index: 5; box-shadow: 0 1px 0 rgba(12, 12, 12, .08); }
.tsp-header-in { display: flex; padding-top: 10px; padding-bottom: 4px; }
.tsp-logo { display: inline-flex; }
.tsp-logo img { height: 44px; width: auto; }
/* Menu: Home | Package | About Us | Tips Travel | Contact, thin separators between items. Phone: its own row under logo + bag. */
.tsp-bag { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px rgba(12, 12, 12, .08); color: var(--tsp-black) !important; text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s; }
.tsp-bag:hover { background: #fff; transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(12, 12, 12, .06), 0 8px 18px -8px rgba(12, 12, 12, .35); }
.tsp-bag:hover svg { transform: rotate(-6deg); }
.tsp-bag svg { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.tsp-bag-count { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; font-size: .7rem; font-weight: 800; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--tsp-yellow); }
.tsp-bag.is-empty .tsp-bag-count { background: #fff; color: var(--tsp-muted); box-shadow: 0 0 0 2px var(--tsp-yellow), inset 0 0 0 1px rgba(12, 12, 12, .12); }
.tsp-bag.has-items .tsp-bag-count { background: var(--tsp-black); color: var(--tsp-yellow); animation: tsp-pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@media (prefers-reduced-motion: reduce) {
    .tsp-bag, .tsp-bag svg, .tsp-bag.has-items .tsp-bag-count { animation: none; transition: none; }
}
/* Phones/tablets: hamburger left of the logo, the menu slides in from the left */
.tsp-header-in { align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; min-height: 64px; }
.tsp-burger { flex: 0 0 44px; height: 44px; margin-left: -6px; border: 0; border-radius: 14px; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--tsp-black); }
.tsp-burger:hover { background: rgba(255, 255, 255, .5); }
.tsp-burger span, .tsp-burger span::before, .tsp-burger span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; position: relative; }
.tsp-burger span::before, .tsp-burger span::after { content: ""; position: absolute; left: 0; }
.tsp-burger span::before { top: -6px; }
.tsp-burger span::after { top: 6px; width: 14px; }
.tsp-logo { margin-right: auto; }
.tsp-logo img { max-width: 180px; object-fit: contain; height: 40px; }
.tsp-nav { position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; width: min(340px, 86vw); display: flex; flex-direction: column; gap: 4px; padding: 16px 16px max(20px, env(safe-area-inset-bottom)); background: #fff; color: var(--tsp-text); box-shadow: 24px 0 60px rgba(12, 12, 12, .2); overflow-y: auto; transform: translateX(-104%); visibility: hidden; transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .32s; }
.tsp-nav-open .tsp-nav { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.tsp-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 12px 8px; margin-bottom: 6px; border-bottom: 1px solid var(--tsp-line); }
.tsp-nav-head strong { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tsp-muted); }
.tsp-nav-x { width: 40px; height: 40px; border: 0; border-radius: 12px; background: #f0f1f3; display: grid; place-items: center; cursor: pointer; color: var(--tsp-text); }
.tsp-nav-x:hover { background: #e8e9eb; }
.tsp-nav > a { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 14px; border-radius: 14px; font-size: 1.08rem; font-weight: 700; color: var(--tsp-text); text-decoration: none; }
.tsp-nav > a .tsh-ico { width: 18px; height: 18px; opacity: .35; }
.tsp-nav > a:hover { background: #f8f9fb; }
.tsp-nav > a.is-active { background: var(--tsp-yellow); color: var(--tsp-black); }
.tsp-nav > a.is-active .tsh-ico { opacity: 1; }
.tsp-nav-foot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.tsp-nav-foot a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; font-weight: 700; text-decoration: none; }
.tsp-nav-find { background: #f0f1f3; color: var(--tsp-text) !important; }
.tsp-nav-wa { background: var(--tsp-black); color: #fff !important; }
.tsp-nav-wa .tsh-ico { color: #25d366; }
.tsp-nav-back { position: fixed; inset: 0; z-index: 29; background: rgba(12, 12, 12, .45); opacity: 0; transition: opacity .3s; }
.tsp-nav-open .tsp-nav-back { opacity: 1; }
html.tsp-nav-lock { overflow: hidden; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: reduce) {
    .tsp-nav, .tsp-nav-open .tsp-nav, .tsp-nav-back { transition: none; }
}
@media (min-width: 860px) {
    /* Desktop: plain text links; the current page is bold with a short black line, hover grows the line from the centre */
    .tsp-header-in { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "logo nav bag"; min-height: 78px; }
    .tsp-burger, .tsp-nav-head, .tsp-nav-foot, .tsp-nav-back { display: none !important; }
    .tsp-logo { grid-area: logo; justify-self: start; margin: 0; }
    .tsp-logo img { height: 52px; }
    .tsp-nav { grid-area: nav; position: static; width: auto; flex-direction: row; align-items: center; gap: 34px; padding: 0; overflow: visible; transform: none; visibility: visible; transition: none; background: none; box-shadow: none; color: var(--tsp-black); }
    .tsp-nav > a { position: relative; min-height: 44px; padding: 0; border-radius: 0; font-size: .97rem; font-weight: 600; color: var(--tsp-black); opacity: .78; transition: opacity .2s; }
    .tsp-nav > a::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 100%; height: 3px; border-radius: 3px; background: var(--tsp-black); transform: translateX(-50%) scaleX(0); transition: transform .25s ease; }
    .tsp-nav > a .tsh-ico { display: none; }
    .tsp-nav > a:hover { background: none; opacity: 1; }
    .tsp-nav > a:hover::after { transform: translateX(-50%) scaleX(1); }
    .tsp-nav > a.is-active, .tsp-nav > a.is-active:hover { background: none; color: var(--tsp-black); font-weight: 800; opacity: 1; }
    .tsp-nav > a.is-active::after { transform: translateX(-50%) scaleX(1); transition: none; }
}
@media (min-width: 860px) and (max-width: 1039px) {
    .tsp-nav { gap: 22px; }
    .tsp-nav > a { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
    .tsp-nav > a::after { transition: none; }
}
.tsp-main { min-height: 60vh; padding-bottom: 48px; }
.tsp-flash { max-width: 1296px; margin: 16px auto 0; padding: 14px 16px; border-radius: var(--tsp-radius-sm); font-weight: 600; width: calc(100% - 32px); }
.tsp-flash.is-error { background: #fdecea; color: var(--tsp-red); border: 1px solid #f6c8c1; }
.tsp-flash.is-ok { background: #e7f6ef; color: var(--tsp-green); border: 1px solid #bfe6d4; }
/* Toast: a message after a form, floating at the bottom centre (dark card, a coloured icon, a close button) */
.tsp-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1000; display: flex; align-items: flex-start; gap: 12px; width: max-content; max-width: min(480px, calc(100vw - 32px)); margin: 0; padding: 14px 12px 14px 14px; border: 0; border-radius: 16px; background: var(--tsp-black); color: #fff; font-size: .92rem; font-weight: 600; line-height: 1.45; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 18px 40px -12px rgba(12, 12, 12, .45); transform: translate(-50%, 0); animation: tsp-toast-in .35s cubic-bezier(.2, .9, .3, 1.2) both; transition: opacity .25s ease, transform .25s ease; }
.tsp-toast.is-ok, .tsp-toast.is-error { background: var(--tsp-black); color: #fff; border: 0; }
.tsp-toast.is-out { opacity: 0; transform: translate(-50%, 12px); animation: none; }
.tsp-toast p { margin: 2px 0 0; min-width: 0; }
.tsp-toast-ic { display: grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; }
.tsp-toast-ic .tsh-ico { width: 18px; height: 18px; }
.tsp-toast.is-ok .tsp-toast-ic { background: var(--tsp-yellow); color: var(--tsp-black); }
.tsp-toast.is-error .tsp-toast-ic { background: #ff6b5b; color: #fff; }
.tsp-toast-x { display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; margin-left: 4px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background-color .2s ease; }
.tsp-toast-x:hover { background: rgba(255, 255, 255, .22); }
.tsp-toast-x .tsh-ico { width: 14px; height: 14px; }
@media (max-width: 650px) {
    .tsp-toast { bottom: 16px; width: calc(100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) {
    .tsp-toast { animation: none; }
}
/* Footer */
/* Footer: black, straight edge, brand + 3 columns, bottom bar */
.tsp-footer { position: relative; overflow: hidden; background: var(--tsp-black); color: #e5e6e8; padding: 48px 0 22px; font-size: .94rem; }
.tsp-foot-glow { position: absolute; width: 520px; height: 520px; right: -200px; top: -260px; border-radius: 50%; filter: blur(80px); background: rgba(255, 222, 0, .12); pointer-events: none; }
.tsp-foot-in { position: relative; }
.tsp-footer a { color: #e5e6e8; text-decoration: none; }
.tsp-footer a:hover { color: var(--tsp-yellow); }
.tsp-foot-grid { display: grid; gap: 34px 20px; grid-template-columns: 1fr 1fr; }
.tsp-foot-brand, .tsp-foot-contact { grid-column: 1 / -1; }
.tsp-foot-logo { display: inline-flex; padding: 10px 16px; border-radius: 18px; background: var(--tsp-yellow); }
.tsp-foot-logo img { height: 44px; width: auto; max-width: 180px; object-fit: contain; }
.tsp-foot-brand p { margin: 18px 0 20px; max-width: 320px; color: #a9a9a0; line-height: 1.6; }
.tsp .tsp-foot-wa { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 11px; background: #25d366; color: #fff; font-weight: 700; font-size: .84rem; transition: transform .2s, box-shadow .2s, background .2s; }
.tsp .tsp-foot-wa:hover { color: #fff; background: #1ebe5b; transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(37, 211, 102, .6); }
.tsp-foot-wa .tsh-ico { width: 16px; height: 16px; }
.tsp-foot-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.tsp .tsp-foot-h { margin: 0 0 10px; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--tsp-yellow); }
.tsp-foot-col > a { display: inline-flex; align-items: center; min-height: 38px; }
.tsp-foot-contact > a, .tsp-foot-addr { display: flex; gap: 10px; align-items: flex-start; min-height: 0; padding: 6px 0; overflow-wrap: anywhere; }
.tsp-foot-contact .tsh-ico { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 3px; color: var(--tsp-yellow); }
.tsp-foot-addr { color: #e5e6e8; line-height: 1.5; }
.tsp-foot-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tsp-foot-badges span { padding: 5px 10px; border-radius: 99px; border: 1px solid #33332e; color: #b9b9b0; font-size: .75rem; font-weight: 700; }
.tsp-foot-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid #26261f; display: flex; flex-direction: column; gap: 12px; color: #8a8a80; font-size: .82rem; }
.tsp .tsp-foot-top { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 36px; font-weight: 700; color: #e5e6e8; }
.tsp-foot-top .tsh-ico { width: 16px; height: 16px; transform: rotate(-90deg); transition: transform .2s; }
.tsp-foot-top:hover .tsh-ico { transform: rotate(-90deg) translateX(3px); }
@media (min-width: 700px) {
    .tsp-foot-grid { grid-template-columns: 1fr 1fr 1.3fr; }
    .tsp-foot-contact { grid-column: auto; }
    .tsp-foot-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1000px) {
    .tsp-footer { padding-top: 72px; }
    .tsp-foot-grid { grid-template-columns: 330px 1fr 1fr 1.3fr; gap: 40px; }
    .tsp-foot-brand { grid-column: auto; padding-right: 24px; }
}
/* ===== Home (modern, animated). Prefix tsh-. Motion is decoration only: everything shows without JS and with reduced motion. ===== */
.tsp-header { transition: box-shadow .25s ease; }
.tsp-header.is-scrolled { box-shadow: 0 6px 24px rgba(12, 12, 12, .10); }
.tsp-js .tsh-pc.is-in { transition: opacity .7s ease var(--d, 0ms), border-color .2s, box-shadow .2s, transform .2s; }
.tsp-main:has(.tsh-hero) + .tsp-footer { margin-top: 64px; }
@media (prefers-reduced-motion: no-preference) {
    /* Reveal on scroll: only when JS is on and motion is allowed (public.js adds .is-in). */
    .tsp-js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
    .tsp-js [data-reveal].is-in { opacity: 1; transform: none; }
}
.tsp-main { overflow-x: clip; }
.tsp-main:has(.tsc-hero) + .tsp-footer { margin-top: 64px; }
.tsp-signin { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 99px; background: var(--tsp-black); color: var(--tsp-yellow) !important; font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.tsp-signin:hover { background: #2a2a28; }
.tsp-me { position: relative; }
/* Signed-in header button: see-through like the cart bag, white on hover / while open; a light-blue avatar (or the photo) and a chevron; the name shows in the menu */
.tsp-me-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 10px 4px 4px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px rgba(12, 12, 12, .08); font: 700 .92rem/1 "Plus Jakarta Sans", system-ui, sans-serif; color: var(--tsp-black); cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.tsp-me-btn:hover, .tsp-me-btn[aria-expanded="true"] { background: #fff; box-shadow: inset 0 0 0 1px rgba(12, 12, 12, .06), 0 8px 18px -8px rgba(12, 12, 12, .35); }
.tsp-me-btn:hover { transform: translateY(-1px); }
.tsp-me-btn .tsh-ico { width: 16px; height: 16px; color: var(--tsp-black); transition: transform .2s ease; }
.tsp-me-btn[aria-expanded="true"] .tsh-ico { transform: rotate(180deg); }
.tsp-av { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #dbeafe; color: #1d4ed8; font-weight: 800; font-size: .82rem; letter-spacing: .02em; flex: 0 0 auto; }
.tsp-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tsp-me-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 270px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--tsp-line); border-radius: 18px; box-shadow: 0 20px 50px rgba(12, 12, 12, .16); padding: 8px; z-index: 20; }
.tsp-me-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px; border-bottom: 1px solid var(--tsp-line); margin-bottom: 6px; min-width: 0; }
.tsp-me-head .tsp-av { width: 42px; height: 42px; font-size: .9rem; }
.tsp-me-who { display: grid; gap: 2px; min-width: 0; }
.tsp-me-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsp-me-head small { color: var(--tsp-muted); overflow-wrap: anywhere; }
.tsp-me-role { justify-self: start; margin-top: 2px; padding: 2px 9px; border-radius: 99px; background: #dbeafe; color: #1d4ed8; font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.tsp-me-menu a, .tsp-me-out button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--tsp-text); font: 600 .95rem/1.2 "Plus Jakarta Sans", system-ui, sans-serif; text-decoration: none; cursor: pointer; text-align: left; }
.tsp-me-menu a:hover, .tsp-me-out button:hover { background: #f4f5f7; }
.tsp-me-out { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--tsp-line); }
.tsp-me-out button { color: var(--tsp-red); }
@media (max-width: 859px) {
    .tsp-signin span { display: none; }
    .tsp-signin { width: 44px; padding: 0; justify-content: center; }
    .tsp-me-btn { padding: 4px 8px 4px 4px; gap: 4px; }
}
