/* Teapak.co theme: WordPress-context rules only, loaded after site.css (the design). Nothing here changes a
   measurement of the mockup; it adds what a WordPress page needs around it. */

/* WordPress's accessibility helper class (core, plugins and the comment/skip markup use it) */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.screen-reader-text:focus{background:var(--panel,#FFFFFF);color:var(--fg,#0B1B3A);clip:auto!important;clip-path:none;display:block;height:auto;left:8px;top:8px;width:auto;padding:12px 18px;border-radius:999px;font-size:14px;font-weight:600;line-height:normal;text-decoration:none;box-shadow:var(--shadow-s,0 8px 22px rgba(11,27,58,.10));z-index:100000}

/* logged-in admin bar (32 px, 46 px under 783 px): the skip link clears it (1.11.0: the consultant page's sticky booking
   card is gone). In-page anchors need nothing here: core's admin-bar.css already sets
   html{scroll-padding-top:var(--wp-admin--admin-bar--height)}, so site.css section[id]{scroll-margin-top:16px} lands
   targets 16 px below the bar, as visitors get 16 px below the top. */
body.admin-bar .skip:focus{top:44px}
@media (max-width:782px){
  body.admin-bar .skip:focus{top:58px}
}

/* plain pages (page.php: Privacy, Terms, Partners, ...): readable long-form text under the page head.
   site.css resets headings, paragraphs and lists inside #site, so the content gets its rhythm back here. */
#site .page-content{max-width:72ch;margin-inline:auto;padding-block:40px 96px;font-size:17px;line-height:1.7;color:var(--fg)}
#site[data-lang="th"] .page-content{line-height:1.8}
#site .page-content>*+*{margin-top:1.1em}
#site .page-content h1,#site .page-content h2,#site .page-content h3,#site .page-content h4{font-weight:700;line-height:1.25;letter-spacing:-.02em;text-wrap:balance}
#site[data-lang="th"] .page-content :is(h1,h2,h3,h4){font-weight:600;letter-spacing:0;line-height:1.35}
#site .page-content h1{font-size:34px}
#site .page-content h2{font-size:28px;margin-top:2em}
#site .page-content h3{font-size:22px;margin-top:1.6em}
#site .page-content h4{font-size:18px;margin-top:1.4em}
#site .page-content :is(h1,h2,h3,h4):first-child{margin-top:0}
#site .page-content a{color:var(--blue-d);font-weight:600;text-decoration:underline;text-underline-offset:.15em;text-decoration-thickness:1px}
#site .page-content a:hover{color:var(--blue)}
#site .page-content ul,#site .page-content ol{padding-inline-start:1.4em}
#site .page-content ul{list-style:disc}
#site .page-content ol{list-style:decimal}
#site .page-content li{padding-inline-start:.2em}
#site .page-content li+li{margin-top:.45em}
#site .page-content li>ul,#site .page-content li>ol{margin-top:.45em}
#site .page-content blockquote{margin:1.4em 0;padding:4px 0 4px 20px;border-left:3px solid var(--blue-l);color:var(--muted)}
#site .page-content hr{border:0;border-top:1px solid var(--line);margin:2em 0}
#site .page-content strong,#site .page-content b{font-weight:700}
#site .page-content small{font-size:14px;color:var(--muted)}
#site .page-content pre,#site .page-content code{font-size:14px}
#site .page-content pre{overflow:auto;padding:14px 16px;border-radius:12px;background:var(--tile)}
#site .page-content table{width:100%;border-collapse:collapse;font-size:15px}
#site .page-content th,#site .page-content td{text-align:left;vertical-align:top;padding:10px 12px;border-bottom:1px solid var(--line)}
#site .page-content th{font-weight:700}
#site .page-content figure{margin:1.6em 0}
#site .page-content figcaption{margin-top:8px;font-size:14px;color:var(--muted)}
#site .page-content img,#site .page-content video,#site .page-content iframe{max-width:100%;height:auto;border-radius:16px}
#site .page-content iframe{aspect-ratio:16/9;width:100%;border:0}
/* block-editor formatting that block-library's common.css and classic-theme-styles supplied (inc/setup.php dequeues both):
   text alignment, centred and floated images, button blocks. #site sets font-synthesis:none and the theme loads no italic
   faces, so em / i / cite get a synthesized oblique here instead of rendering upright. */
#site .page-content{display:flow-root}
#site .page-content :is(em,i,cite){font-synthesis:style}
#site .page-content .has-text-align-left{text-align:left}
#site .page-content .has-text-align-center{text-align:center}
#site .page-content .has-text-align-right{text-align:right}
#site .page-content .aligncenter{margin-left:auto;margin-right:auto}
#site .page-content img.aligncenter{display:block}
#site .page-content .alignleft{float:left;margin:.3em 1.5em 1em 0}
#site .page-content .alignright{float:right;margin:.3em 0 1em 1.5em}
/* phones are too narrow to wrap text beside an aligned image: it sits centred between the paragraphs instead */
@media (max-width:520px){
  #site .page-content :is(.alignleft,.alignright){float:none;margin:1.6em auto}
}
/* button blocks look like the theme's primary / outline buttons (site.css .btn); the gap matches the .5em that the
   block's width presets subtract */
#site .page-content .wp-block-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:.5em}
#site .page-content a.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 20px;border-radius:999px;background:var(--blue-fill);color:var(--on-blue);font-size:14px;font-weight:600;line-height:1.2;text-decoration:none;transition:background .15s,color .15s}
#site .page-content a.wp-block-button__link:hover{background:var(--btn-hover);color:var(--on-blue)}
#site .page-content .is-style-outline>a.wp-block-button__link{border:0;background:transparent;color:var(--blue-d);box-shadow:inset 0 0 0 1.5px currentColor}
#site .page-content .is-style-outline>a.wp-block-button__link:hover{background:var(--blue-xl);color:var(--blue-d)}
@media (max-width:720px){
  #site .page-content{font-size:16px;padding-block:28px 64px}
  #site .page-content h1{font-size:28px}
  #site .page-content h2{font-size:24px}
  #site .page-content h3{font-size:20px}
}

/* media inside any content block never overflows its column (WordPress sets width/height attributes on images) */
#site .page-content img,#site .page-content video,#site .entry-content img,#site .entry-content video{max-width:100%;height:auto}

/* (1.11.0: .rp-tools is a grid, the chips beside the Categories button, site.css; the 1.x flex-wrap fix for phones is
   gone.) */

/* (1.11.0: the consultant page is the owner's reference, all of it in consult.css; its old booking card and "Other
   consultants" cards, and their fixes here, are gone.) */

/* Plan cards (1.3.0, app.js cardHTML): each card opens its plan page (/reset-plans/<id>/); the cards no longer turn over,
   so the 1.2.0 back faces and their styles are gone (site.css still sets up .card-inner / .face, which the front sits in;
   its .face.back rules match nothing now). A transparent link (.card-hit) lies over the whole front: a
   click or tap anywhere on it, or Enter, opens the plan. The location pill and the frosted panel let clicks through to
   it; only the panel's own link ("View plan" on the tall cards, "Ask us on the consult call" on Deep Recovery) takes
   its clicks. The focus ring sits just inside the card's rounded edge. */
#site .plan-card .card-hit{position:absolute;inset:0;z-index:2;display:block;border-radius:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
#site .plan-card .card-hit:focus-visible{outline:2px solid var(--focus);outline-offset:-4px}
#site .plan-card .loc-pill,#site .plan-card .t-glass{pointer-events:none}
#site .plan-card .t-glass .t-book,#site .plan-card .t-glass .t-cta{pointer-events:auto}   /* 1.5.0: .t-cta is Deep Recovery's call link since 1.4.0 */
/* Nothing turns any more, so the cards stay flat: site.css still makes .card-inner a 3D scene for the 1.2.0 turn and
   hides the backs of the faces, which put every card on a layer of its own and the frosted panel inside a 3D scene for
   nothing. (.plan-card keeps its perspective, so the card's layers still stack inside it.) */
#site .plan-card .card-inner{transform-style:flat}
#site .plan-card .face{-webkit-backface-visibility:visible;backface-visibility:visible}
/* Reset Plans cards (1.3.0): the photo and the title link to the plan page */
#site a.rp-photo{display:block;color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}
#site .rp-title{color:inherit;text-decoration:none}
#site .rp-title:hover{color:var(--blue-d)}
/* Reset Plans notes (1.3.0): the "Not sure where to go?" helper's "Book a consult" (the consultant page) keeps its words
   on one line */
#site .rp-notes .helper a{white-space:nowrap}
/* Reset Plans without JavaScript (1.3.0, page-reset-plans.php): the plan pages as a row of links where the grid would be */
#site .rp-noscript{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0 0;padding:0;list-style:none}
#site .rp-noscript a{display:inline-block;padding:10px 16px;border-radius:999px;background:var(--blue-l);color:var(--blue-d);font-weight:600;text-decoration:none}
#site .rp-noscript a:hover{text-decoration:underline}
/* Reset Plans cards (1.2.0): the foot holds the price and the plan's buttons (Buy now, Consult agent and, with a link,
   Self-fill information), which move under the price when they do not fit beside it */
#site .rp-foot{flex-wrap:wrap;row-gap:12px}
#site .rp-acts{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-left:auto}
#site .rp-acts .btn{min-height:40px;padding:9px 14px;font-size:13px}
@media (max-width:720px){
  #site .rp-acts{width:100%;margin-left:0}
  #site .rp-acts .btn{flex:1 1 auto}
}


/* placeholder legal pages (inc/pages.php) carry each paragraph in both languages with lang="th" / lang="en": show only the
   visitor's language, and flip live with the language menu (app.js sets #site[data-lang]). Scoped to the plain-page keys
   that tp_page_key() gives page.php (privacy, terms, partners, and "page" for any other plain page) so the 404 page
   (data-page="404"), which shows both languages on purpose, is not affected. */
#site:is([data-page="privacy"],[data-page="terms"],[data-page="partners"],[data-page="page"])[data-lang="en"] .page-content [lang="th"],
#site:is([data-page="privacy"],[data-page="terms"],[data-page="partners"],[data-page="page"])[data-lang="th"] .page-content [lang="en"]{display:none}
/* paragraphs the owner added in Arabic (lang="ar", shown on the Arabic pages of 1.4.0 to 1.15.0) stay hidden in Thai
   and English, as before */
#site:is([data-page="privacy"],[data-page="terms"],[data-page="partners"],[data-page="page"]) .page-content [lang="ar"]{display:none}

/* Home hero over real footage. 1.15.0 (13 Nov, the owner's EasyTravel reference): the texts sit on the start side, so
   above 720 px the white wash comes from there, as on the mock-up he approved: .66 at the card's edge, .34 at 38 % of
   its width, gone at 66 %. On phones the texts run across nearly the whole width of the
   card's top third, so the wash comes from the top instead (below). (Until 13 Nov: a top wash held at about .5 to just
   below the centred copy, measured on the Media Kit clips at 3.4:1 or better for the subheadline on desktop and iPad,
   4.9:1 on phones.) It also covers the poster while the video loads or cannot play (blocked autoplay, Low Power Mode),
   which site.css leaves unwashed. The painted placeholder (no poster, no video) keeps the mockup look. */
#site .hero{--hero-wash:linear-gradient(to right,rgba(255,255,255,.66),rgba(255,255,255,.34) 38%,rgba(255,255,255,0) 66%)}
#site .hero.has-video .hero-media::after{background:var(--hero-wash)}
#site .hero-media:has(>.photo.has-photo)::after{content:"";position:absolute;inset:0;pointer-events:none;background:var(--hero-wash)}
/* the same wash from the first paint: app.js marks the still with has-photo only when it runs, but the still is preloaded
   and can be on screen well before that on a slow connection; front-page.php's state classes say a still is set
   (has-poster: at every width; has-poster-phone: the phone still at 720 px or less) */
#site .hero.has-poster .hero-media::after{content:"";position:absolute;inset:0;pointer-events:none;background:var(--hero-wash)}
@media (max-width:720px){
  /* phones: from the top, over the texts of the 300 px card (1.16.0, 20 Nov: pixel stops, since the card was 600 px in
     1.15.0 and its percentages left the title's last line and the Discover link on the bare footage), gone at the search
     panel's top (260 px) */
  #site .hero{--hero-wash:linear-gradient(to bottom,rgba(255,255,255,.66),rgba(255,255,255,.56) 216px,rgba(255,255,255,0) 260px)}
  #site .hero.has-poster-phone .hero-media::after{content:"";position:absolute;inset:0;pointer-events:none;background:var(--hero-wash)}
}

/* Hero while its video loads when there is no still for this width (state classes from front-page.php): a calm plain
   background instead of the painted placeholder scene, which would otherwise read as the site's real picture until the
   video's first frame is in (a large file can take seconds on a phone). Wider screens play hero_video only and show
   hero_poster (has-video-wide, has-poster); phones play hero_video_portrait, else hero_video (has-video-src), and show
   hero_poster_portrait when it matches the clip (has-poster-phone), else hero_poster. app.js heroNeutral() skips painting
   the canvas in the same state. The video then fades in over it as before (site.css .hero.has-video). With no hero
   video at all, the painted placeholder or the poster shows, as designed. The hero stays daylight in the dark theme. */
#site .hero{--hero-calm:linear-gradient(180deg,#EAF4FC,#CFE3F4)}
@media not all and (max-width:720px){
  #site .hero.has-video-wide:not(.has-poster) .hero-media>.photo{background:var(--hero-calm)}
  #site .hero.has-video-wide:not(.has-poster) .hero-media>.photo>canvas{display:none}
  #site .hero.has-video-wide:not(.has-poster):not(.has-video) .hero-media>.photo::after{content:""}
}
@media (max-width:720px){
  #site .hero.has-video-src:not(.has-poster):not(.has-poster-phone) .hero-media>.photo{background:var(--hero-calm)}
  #site .hero.has-video-src:not(.has-poster):not(.has-poster-phone) .hero-media>.photo>canvas{display:none}
  #site .hero.has-video-src:not(.has-poster):not(.has-poster-phone):not(.has-video) .hero-media>.photo::after{content:""}
}
/* With a still for the width, the same calm background sits under it, so the moment before the still is in (it is
   preloaded with high priority, inc/setup.php tp_hero_preload) matches the state above instead of site.css's deeper
   placeholder blue. */
#site .hero.has-poster .hero-media>.photo{background:var(--photo) center/cover no-repeat,var(--hero-calm)}
@media (max-width:720px){
  #site .hero.has-poster-phone .hero-media>.photo{background:var(--photo) center/cover no-repeat,var(--hero-calm)}
}
/* a very gentle light sweep over that background until the video is in (the rules above give it content); none for
   visitors who prefer reduced motion */
#site .hero-media>.photo::after{position:absolute;top:0;bottom:0;left:-50%;width:50%;pointer-events:none;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.38),rgba(255,255,255,0));opacity:0}
@media (prefers-reduced-motion:no-preference){
  #site .hero-media>.photo::after{opacity:1;animation:tp-calm 3.2s ease-in-out .6s infinite}
}
@keyframes tp-calm{0%{transform:translateX(0)}65%,100%{transform:translateX(300%)}}
/* The hero video's pause button is for keyboard users only (handoff change 2, the mockup's .hero-pause): mouse and touch
   visitors never see or hit it, so no play / pause symbol sits on the hero (the video plays by itself for every visitor,
   reduced motion too, since the owner's 8 Nov request); it shows while it has keyboard focus, where Enter / Space pause
   and play the video (app.js setHeroPaused) */
#site .hero.has-video .hero-pause{opacity:0;pointer-events:none}
#site .hero.has-video .hero-pause:focus-visible{opacity:1;pointer-events:auto}
@supports not selector(:focus-visible){
  #site .hero.has-video .hero-pause:focus{opacity:1;pointer-events:auto}
}

/* Travel dates are a free range (app.js renderCal, previewTo): any check-in day, then any later check-out day. A check-in
   day with no check-out yet (r-open) has no band. While the check-out day is being chosen, the days up to the one under
   the pointer or the keyboard focus get the in-range band in a lighter tint (in-preview), continuous across the row and
   rounded off at both ends like the chosen range (p-on on the check-in day, p-end on the candidate day, which also gets
   a ring). The tint is the in-range blue at 55%, so it stays lighter on the white panel and on the phones' grey one. */
#site .cday.r-start.r-open{background:none}
#site .cday{--preview:var(--blue-xl)}
@supports (background:color-mix(in srgb,red 50%,transparent)){
  #site .cday{--preview:color-mix(in srgb,var(--blue-l) 55%,transparent)}
}
#site .cday.in-preview{background:var(--preview)}
#site .cday.r-start.r-open.p-on{background:linear-gradient(to right,transparent 50%,var(--preview) 50%)}
#site .cday.p-end{background:linear-gradient(to left,transparent 50%,var(--preview) 50%)}
#site .cday.p-end>span{box-shadow:inset 0 0 0 1.5px var(--blue)}
/* the check-out day is clicked now, so the pointer is on it right after: keep its filled circle under the hover, as
   site.css does for the check-in day (its .cday:hover tile would otherwise put the white number on a near-white circle) */
#site .cday.r-end:hover>span{background:var(--blue-fill);color:var(--on-blue)}
/* phones: the date panel sits on the grey tile colour there, the same as its chip, so the one quick choice left
   ("I'm flexible") gets the white panel colour to read as a button, like the options' hover state there */
@media (max-width:720px){
  #site .sp-date .qchip{background:var(--panel)}
  #site .sp-date .qchip:hover{background:var(--blue-xl)}
  #site .sp-date .qchip[aria-pressed="true"]{background:var(--blue-fill)}
}

/* The one-time intro animations of site.css (header drop, hero media settle, hero texts unveil, link rise, video pill,
   search bar rise, page heads, the plan pages' breadcrumb, the sign-in cards) are keyed on #site.motion, which app.js adds
   when it runs. app.js is deferred, so on a slow connection the page is painted seconds earlier, and adding .motion then
   started them from opacity 0: the title, header and search bar vanished and came back. The same animations, with the
   same values, run here from the first paint; when .motion arrives, site.css's rules give the same animations, so
   nothing restarts. Scroll reveals stay with app.js, which needs IntersectionObserver for them. */
@media (prefers-reduced-motion:no-preference){
  #site .hdr-in{animation:tp-drop .8s var(--ease-out) backwards}
  #site .hero-media{animation:tp-zoom 2s var(--ease-out) backwards}
  #site .hero-sub{animation:tp-unveil 1.05s var(--ease-out) .2s backwards}
  #site .hero-title{animation:tp-unveil 1.05s var(--ease-out) .3s backwards}
  #site .hero-go{animation:tp-rise .9s var(--ease-out) .46s backwards}
  #site .video-tag{animation:tp-fade .9s ease .9s backwards}
  #site .search{animation:tp-rise 1s var(--ease-out) .5s backwards}
  #site .ph-pill{animation:tp-rise .7s var(--ease-out) .05s backwards}
  #site .ph-title{animation:tp-unveil 1.05s var(--ease-out) .14s backwards}
  #site .ph-sub{animation:tp-rise .9s var(--ease-out) .3s backwards}
  #site .ph-actions{animation:tp-rise .9s var(--ease-out) .42s backwards}
  #site .crumbs{animation:tp-fade .6s ease backwards}
  #site .auth-art{animation:tp-rise .95s var(--ease-out) .05s backwards}
  #site .auth-card{animation:tp-rise .95s var(--ease-out) .18s backwards}
  #site .auth-art>.photo{animation:tp-zoom 1.8s var(--ease-out) backwards}
  #site .auth-panel:not([hidden]){animation:tp-fade .35s ease backwards}
}

/* Search bar (1.1.0): each cell is a label over a real text input (app.js "search cells"), so visitors can type a
   destination, a category or their dates (1.16.0: only the dates take typing, in template-parts/search-bar.php; every
   other cell is a list cell, the 1.16.0 block below). The look stays the mockup's: the bold label and its chevron on the
   top line, the input as the bottom line (13.5 px, grey placeholder, dark text once it holds a value, semibold for a
   chosen one) with no border or outline of its own. The cell is no longer a button, so the open pill (site.css
   .cell[aria-expanded]) follows .is-open, and the cell's focus ring follows the input's focus, drawn on the pill's own
   outline (2 px, the focus colour) rather than as a second ring inside it. Phones keep the stacked caps label, without
   the chevron, as before. A small clear button (x) sits at the cell's right while the input holds text and the cell is
   in use (focused, or its panel open); a filled cell at rest keeps its whole text, as before 1.1.0. */
#site .cell{cursor:text}
#site .cell .cl label{cursor:pointer}
#site .cell .cs{width:100%;height:1.25em;margin-top:0;margin-left:0;margin-right:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;-webkit-appearance:none;appearance:none;color:var(--fg);caret-color:var(--blue-d);cursor:text}
#site .cell .cs::placeholder{color:var(--muted-2);opacity:1}
#site .cell .cs:focus,#site .cell .cs:focus-visible{outline:none}
#site .cell.is-open::before,#site .cell:focus-within::before{background:var(--blue-xl);box-shadow:inset 0 0 0 1.5px var(--blue-l)}
#site .cell:focus-within::before{box-shadow:inset 0 0 0 2px var(--focus)}
#site .cell.has-text:is(:focus-within,.is-open) .cs{padding-right:32px}
#site .cell:not(:focus-within):not(.is-open) .cell-clear{display:none}
/* forced colours (Windows High Contrast) drop box shadows, so the focused cell also gets an outline there, as the
   1.0.1 button cell had */
@media (forced-colors:active){
  #site .cell:focus-within::before{outline:2px solid Highlight;outline-offset:-2px}
}
/* typed dates that cannot be read stay in the input (app.js typedDate): an error colour and an underline say so once
   the date panel, with its hint, is closed (solid and close to the text: the input's line box clips anything lower) */
:root{--err-ink:#B3261E}
#site .cell .cs[aria-invalid="true"]{color:var(--err-ink);text-decoration:underline solid var(--err-ink) 1.5px;text-underline-offset:1px}
#site .cell-clear{position:absolute;top:50%;right:4px;width:24px;height:24px;margin-top:-12px;display:grid;place-items:center;border-radius:50%;background:var(--line);color:var(--fg);cursor:pointer;transition:background .15s}
#site .cell-clear:hover{background:var(--line-2)}
#site .cell-clear svg{width:12px;height:12px;stroke-width:2.6}
@media (max-width:720px){
  #site .cell .cs::placeholder{color:var(--faint)}
}
/* at 13.5 px (wider screens) an input sets its text 1 px lower than the span it replaced (its 16.875 px line is centred
   and rounded); 1 px of bottom padding puts it back on the mockup's line. Thai text in the input (a chosen or typed
   value; not the placeholder) already sits on that line, so it keeps no padding. Phones (16 / 20 px) need nothing. */
@media not all and (max-width:720px){
  #site .cell .cs{padding-bottom:1px}
  #site[data-lang="th"] .cell .cs:not(:placeholder-shown){padding-bottom:0}
}
/* the option lists are listboxes: aria-selected marks the chosen options (site.css styled aria-checked), is-active the
   one the arrow keys highlight (the focus stays on the cell) */
#site .copt[aria-selected="true"]{background:var(--blue-xl);box-shadow:inset 0 0 0 1.5px var(--blue)}
#site [aria-selected="true"]>.opt-ck{visibility:visible}
#site .copt[aria-selected="true"] .ci{background:var(--blue-fill);color:var(--on-blue)}
#site .copt.is-active{outline:2px solid var(--focus);outline-offset:-2px}
#site .copt.is-active:not([aria-selected="true"]){background:var(--tile)}
@media (max-width:720px){
  #site .copt.is-active:not([aria-selected="true"]){background:var(--panel)}
}

/* ---------- 19 Nov 2026 (1.16.0): the search bar after the owner's pictures ----------
   template-parts/search-bar.php; "เดสก์ท็อป 1 · หน้าแรก" (computers) and "1 · หน้าแรก วิดีโอเดิม + ช่องค้นหา" (phones).
   Computers: one white row inside the video card (its place: site.css "hero + search"), 88 px tall: What kind of rest |
   Budget per person | Departure ⇄ Return | Who's going, divided by short thin lines, then the blue button "Search"
   (search.button_short) with its icon. Each cell is a small grey label (14 px) over its value (17 px, 600), its prompt
   500 in --muted until the visitor chooses (4.5:1 on white). Who's going is one cell from 721 px: #cell-pax is hidden and
   #in-party shows "Friends · 2 people" (.pv-w). iPads: two rows inside the card from 901 px (What kind of rest | Budget |
   the dates across two; Who's going across two | the button across two, "Find my reset"), three below that (What kind
   of rest | Budget; the dates; Who's going | the button), so no prompt is cut at 768 or 1024 px. Phones: the white card
   over the card's bottom: What kind of rest, Budget, Departure ⇄ Return, Who's going | Number of guests side by side
   (.pv-n), then the button across. The open or focused cell keeps 1.1.0's soft pill and focus ring; the panels open
   under the bar (computers, iPads) and inside the card (phones). The compact bar (.is-compact) is the results page's:
   one row under the header, 78 px, its button dark ("Search again"); on phones it shows only once page-find.php opens
   it (.is-open), as the phone card. Every side is logical (inset-inline, padding-inline, border-inline). English pages
   set the bar in Poppins (--font-pop, the decision of 13 Nov); Thai pages keep Inter with Noto Sans Thai. Light only. */
#site .search{height:88px;padding:0;padding-inline:6px 14px;border-radius:24px;background:var(--panel);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:0 0 0 1px var(--line-2),0 12px 34px rgba(12,22,44,.10);display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.9fr) minmax(0,1.1fr) minmax(0,1fr) auto;align-items:center}
#site[data-lang="en"] .search{font-family:var(--font-pop)}
#site .search .cell{height:auto;justify-content:center;gap:5px;padding:0;padding-inline:24px 10px;border:0;cursor:pointer}
#site .search .cell-rest{padding-inline-start:22px}
#site .search .cell-pax{display:none}
/* the short lines between the cells (the pictures': 38 px, centred) */
#site .search :is(.cell-budget,.cell-date,.cell-party)::after{content:"";position:absolute;inset-inline-start:0;top:50%;width:1px;height:38px;margin-top:-19px;background:var(--line-2);pointer-events:none}
#site .search .cell::before{top:-14px;bottom:-14px;inset-inline:10px 0;border-radius:16px}
#site .search .cell-rest::before{inset-inline-start:2px}
#site .search .cell .cl{display:flex;max-width:100%;margin:0;font-size:14px;line-height:1.25;font-weight:400;letter-spacing:0;text-transform:none;color:var(--muted);white-space:nowrap}
#site .search .cell .cl :is(label,.cl-t){min-width:0;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
#site .search .cell .cs{height:1.3em;margin:0;padding-block:0;font-size:17px;line-height:1.3;font-weight:600;color:var(--fg)}
#site .search .cell .cs::placeholder{color:var(--muted);font-weight:500;opacity:1}
#site .search .cell .cs-pick{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
#site .search .cell .cs-pick .is-hint{color:var(--muted);font-weight:500}
#site .search .cell .cs-pick:focus,#site .search .cell .cs-pick:focus-visible{outline:none}
#site .search .pv-n{display:none}
/* Thai marks reach above and below the Latin line: a taller line, so nothing is clipped */
#site[data-lang="th"] .search .cell .cs{height:1.5em;line-height:1.5}
#site[data-lang="th"] .search .cell .cl{line-height:1.45}
#site .search .cell.has-text:is(:focus-within,.is-open) .cs{padding-inline:0 32px}
#site .search .cell-clear{inset-inline:auto 4px}
/* the dates: two halves, Departure and Return, with the swap arrows between them (one calendar for both) */
#site .search .cell-date{flex-direction:row;align-items:center;gap:8px}
#site .search .cell-date .half{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:5px}
#site .search .cell-date .sw{flex:none;width:18px;height:18px;color:var(--muted)}
#site .search .cell-date.has-text:is(:focus-within,.is-open) .half-a .cs{padding-inline:0}
/* the button: blue, the icon and "Search" (the site's filled blue, --blue-fill: white on it is 6:1) */
#site .search .find{height:58px;padding:0 22px;border-radius:16px;justify-self:end;gap:9px;background:var(--blue-fill);color:var(--on-blue);font-size:17px;font-weight:600}
#site .search .find:hover{background:var(--btn-hover)}
#site .search .find svg{width:20px;height:20px;stroke-width:2.4}
#site .search .find-l{display:none}
#site[data-lang="en"] .search .cday{font-family:inherit}
/* the option lists: the goals and the types of traveller two to a row, the guests three, the budgets two (Any budget
   across). The goals' list takes several: each has a check box, filled when chosen. */
#site :is(.rest-opts,.party-opts){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
#site :is(.rest-opts,.party-opts) .cmeta small{white-space:normal}   /* two to a row: a description takes a second line rather than "…" (20 Nov) */
#site .budget-opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#site .budget-opts .is-any{grid-column:1/-1}
#site .pax-opts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#site .popt{display:flex;align-items:center;justify-content:center;min-height:48px;padding:6px 8px;border-radius:14px;background:var(--tile);color:var(--fg);font-size:15px;font-weight:500;line-height:1.25;text-align:center;transition:background .15s,box-shadow .15s}
#site .popt:hover{background:var(--blue-xl)}
#site .popt[aria-selected="true"]{background:var(--blue-xl);box-shadow:inset 0 0 0 1.5px var(--blue);color:var(--blue-d);font-weight:600}
#site .popt.is-active{outline:2px solid var(--focus);outline-offset:-2px}
#site .rest-opts .opt-ck{visibility:visible;width:22px;height:22px;padding:3px;border-radius:7px;box-shadow:inset 0 0 0 1.5px var(--muted-2);color:transparent;transition:background .15s,color .15s,box-shadow .15s}
#site .rest-opts [aria-selected="true"]>.opt-ck{background:var(--blue-fill);box-shadow:none;color:var(--on-blue)}
#site .sp-sub{margin:16px 0 10px}
#site .pax-note{margin-top:12px;font-size:12.5px;line-height:1.4;color:var(--muted)}
#site .sp-foot .pax-note{margin:0;flex:1 1 200px}
/* the amount typed in the budget panel (digits; 1,000-1,000,000 baht), and the line that says so when it is out of range */
#site .bud-custom{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:12px;padding:10px 12px;border-radius:14px;background:var(--tile)}
#site .bud-k{font-size:14px;font-weight:500;line-height:1.3;color:var(--fg)}
#site .bud-in{flex:1 1 150px;min-width:0;height:42px;margin:0;padding:0 14px;border:1px solid var(--line-2);border-radius:12px;background:var(--panel);color:var(--fg);font-size:16px;font-weight:500;font-variant-numeric:tabular-nums}
#site .bud-in::placeholder{color:var(--muted);opacity:1}
#site .bud-in:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
#site .bud-in[aria-invalid="true"]{border-color:var(--err-ink);color:var(--err-ink)}
#site .bud-err{margin-top:8px;font-size:13px;line-height:1.4;color:var(--err-ink)}
#site .bud-err:empty{margin:0}   /* stays in the accessibility tree (aria-live) while it is empty, as #search-live does */
@media (forced-colors:active){
  #site .popt[aria-selected="true"]{outline:2px solid CanvasText;outline-offset:-2px}
  #site .rest-opts .opt-ck{border:1px solid CanvasText}
  #site .search .find{border:1px solid ButtonText}
}
/* the panels under the bar (computers and iPads): each near its own cell */
@media not all and (max-width:720px){
  #site .search .sp-rest{inset-inline:0 auto;width:min(560px,100%)}
  #site .search .sp-budget{inset-inline:0 auto;width:min(440px,100%)}
  #site .search .sp-date{inset-inline:0;margin-inline:auto}
  #site .search .sp-people{inset-inline:auto 0;width:min(480px,100%)}
}
@media not all and (max-width:1100px){
  #site .search .sp-budget{inset-inline:26% auto}
  #site .search .sp-date{inset-inline:28% auto;margin-inline:0}
}
/* small laptops: a little less room around the values, so the prompts keep to one line */
@media (min-width:1101px) and (max-width:1280px){
  #site .search .cell{padding-inline:18px 6px}
  #site .search .cell-rest{padding-inline-start:18px}
  #site .search .cell .cl{font-size:13px}
  #site .search .cell .cs{font-size:16px}
  #site .search .find{padding:0 18px;font-size:16px}
}
/* iPads: two rows (the dates across two columns; Who's going and the button across two each), the button with its
   words, "Find my reset" */
@media (max-width:1100px){
  #site .search{height:auto;padding:6px 16px 16px;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}
  #site .search .cell,#site .search .cell-rest{padding:14px 10px 12px;padding-inline:14px 8px}
  #site .search .cell-date{grid-column:span 2}
  #site .search .cell-party{grid-column:span 2;border-top:1px solid var(--line)}
  #site .search .cell-party::after{display:none}
  #site .search .cell::before,#site .search .cell-rest::before{top:6px;bottom:6px;inset-inline:6px}
  #site .search .find{grid-column:span 2;width:100%;height:56px;margin-top:12px;align-self:center;justify-self:stretch}
  #site .search .find svg{width:22px;height:22px}
  #site .search .find-l{display:inline}
  #site .search .find-s{display:none}
  /* the lists under their own cells here (20 Nov): Who's going is the left half of its row, the dates the right half */
  #site .search .sp-people{inset-inline:0 auto}
  #site .search .sp-date{inset-inline:auto 0;margin-inline:0}
}
/* small iPads (900 px and less): three rows, two cells to a row (the dates across both) */
@media (min-width:721px) and (max-width:900px){
  #site .search{grid-template-columns:repeat(2,minmax(0,1fr))}
  #site .search .cell-party{grid-column:auto}
  #site .search .cell-date{border-top:1px solid var(--line)}
  #site .search .cell-date::after{display:none}
  #site .search .find{grid-column:auto}
  #site .search .sp-budget{inset-inline:auto 0}   /* the budget is the right column here (20 Nov) */
  #site .search .sp-date{inset-inline:0;margin-inline:auto}   /* the dates span both columns: the calendar centred */
}
/* phones: the stacked card of the owner's phone picture */
@media (max-width:720px){
  #site .search{padding:4px 6px 12px;border-radius:24px;grid-template-columns:repeat(2,minmax(0,1fr))}
  #site .search .cell,#site .search .cell-rest{padding:12px 14px;border:0;border-bottom:1px solid var(--line)}
  #site .search :is(.cell-rest,.cell-budget,.cell-date){grid-column:1/-1}
  #site .search .cell-party{grid-column:auto}   /* the iPad rule above spans it; on phones the type and the guests share a row */
  #site .search .cell::after{display:none}
  #site .search .cell-pax{display:flex;border-inline-start:1px solid var(--line)}
  #site .search .pv-w{display:none}
  #site .search .pv-n{display:inline}
  #site .search .cell-date{gap:6px}
  #site .search .cell::before,#site .search .cell-rest::before{top:4px;bottom:4px;inset-inline:2px;border-radius:14px}
  #site .search .sp{grid-column:1/-1}
  #site .search .find{grid-column:1/-1;width:100%;height:56px;margin-top:12px;justify-self:stretch}
  #site .search .find svg{width:22px;height:22px}
  #site .popt,#site .popt:hover{background:var(--panel)}
  #site :is(.rest-opts,.party-opts){grid-template-columns:minmax(0,1fr)}
  #site .bud-custom{background:var(--panel)}
}
/* the narrowest phones (360 px and less): a little more room in the half cells ("Number of guests" and the prompts whole
   at 320 px; the values stay 16 px, so iPhones do not zoom into them) */
@media (max-width:360px){
  #site .search{padding-inline:4px}
  #site .search .cell,#site .search .cell-rest{padding-inline:10px}
  #site .search .cell .cl{font-size:13px}
  #site .search .cell .cs{font-size:16px}
  /* a label too long for its half takes two lines; the pair keeps one height and its values one line, at the bottom */
  #site .search{align-items:stretch}
  #site .search .cell,#site .search .cell-date .half{justify-content:flex-end}
  #site .search .cell .cl{white-space:normal}
  #site .search .cell .cl :is(label,.cl-t){overflow:visible;text-overflow:clip}
}
/* the results page's compact bar (page-find.php; the owner's results picture): the same bar out of the video card, so
   none of the card's offsets or its first-paint rise; 78 px on computers, the button dark navy with its words only
   ("Search again"); on phones hidden until page-find.php opens it from its summary card (.is-open) */
#site .search.is-compact{margin:0;align-self:auto;animation:none;height:78px;border-radius:26px;box-shadow:0 0 0 1px var(--line-2),0 10px 28px rgba(12,22,44,.08)}
#site .search.is-compact .find{padding:0 24px;background:var(--find-bg);color:var(--find-ink)}
#site .search.is-compact .find:hover{background:var(--find-hover)}
@media (max-width:1100px){
  #site .search.is-compact{height:auto}
}
@media (max-width:720px){
  #site .search.is-compact{border-radius:24px}
  #site .search.is-compact:not(.is-open){display:none}
}

/* ---------- Plan page (1.3.0, docs/FEATURES-1.3.md §B; 1.17.0, docs/FEATURES-1.17.md section 3: the owner's "each plan"
   reference and his consult-first workflow) ----------
   plan-page.php / inc/plan.php tp_plan_page_html / app.js renderPlanPage: one page per plan at /reset-plans/<id>/, in
   the site's container and bento cards. #plan-root holds the gallery (the mosaic: one wide photo; two side by side;
   three: the big one left with two beside it; four and five: the big one in the CENTRE, one photo the whole height on
   the left and two stacked on the right, or two stacked each side), then #plan-main (div.pp-cols): one column in DOM
   order on phones and tablets (the head with its tags, title, summary and a compact from-price line; the card; the four
   fact tiles; "Why this trip"; "Your stay" / "Spa & massage"; what's included and the extras box; the days as an
   accordion; the price levels; the related plans) and from 1024 px two columns, the left one those sections and the
   right one the sticky card aside#plan-card (printed right after the head, placed by the grid); then #plan-actions, the
   bar of the narrow layouts (hidden from 1024 px, where the card has the same buttons). The Reset Plans link of the
   header carries aria-current="true" here (tp_aria_current) and looks current. */
#site .plan-page{--pp-ink:#1E3A70;--pp-note:#FFF1C2;--pp-note-ink:#76500A;--pp-rose:#FCE8EE;--pp-rose-ink:#A8204A;--pp-amber:#FDF0DC;--pp-amber-ink:#8F4D0E;display:grid;gap:28px;padding-top:14px}
#site .nav a[aria-current="true"]{font-weight:700;color:var(--fg)}
#site[data-lang="en"] .nav a[aria-current="true"]{font-weight:600}   /* 1.15.0: English pages' header is Poppins, its current page 600 (site.css) */
@media (prefers-reduced-motion:no-preference){ #site .hdr-in>.nav a[aria-current="true"]::after{transform:scaleX(1)} }
#site[data-page="plan"] .crumbs [aria-current]{overflow-wrap:anywhere}

/* gallery, phones first: the big photo 260 px across the row, the other photos a strip of small ones under it (one, two,
   three or four across, by data-count); from 721 px the mosaic (below) */
#site .pp-gallery{display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:260px;grid-auto-rows:84px}
#site .pp-shot{position:relative;min-width:0;min-height:0;border-radius:18px;overflow:hidden;isolation:isolate;background:var(--tile)}
#site .pp-shot>.photo{position:absolute;inset:0}
#site .pp-main{grid-column:1/-1;border-radius:24px}
#site .pp-main .hot{right:12px;top:12px}
#site .pp-main .loc-pill{right:auto;top:auto;left:12px;bottom:12px;max-width:calc(100% - 24px)}
#site .pp-gallery[data-count="2"]{grid-template-columns:minmax(0,1fr)}
#site .pp-gallery[data-count="4"]{grid-template-columns:repeat(3,minmax(0,1fr))}
#site .pp-gallery[data-count="5"]{grid-template-columns:repeat(4,minmax(0,1fr))}
@media not all and (max-width:720px){
  #site .pp-gallery{gap:12px;height:clamp(320px,30vw,420px);grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);grid-auto-rows:auto}
  #site .pp-shot{border-radius:24px}
  #site .pp-main{grid-column:auto;border-radius:30px}
  #site .pp-main .hot{right:16px;top:16px}
  #site .pp-main .loc-pill{left:16px;bottom:16px;max-width:calc(100% - 32px)}
  #site .pp-gallery[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
  #site .pp-gallery[data-count="3"]{grid-template-columns:minmax(0,2fr) minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr))}
  #site .pp-gallery[data-count="3"] .pp-main{grid-row:1/3}
  /* 1.17.0: four and five photos, the big one in the centre (the owner's reference): one photo the whole height on the
     left and two stacked on the right with four; two stacked each side with five */
  #site .pp-gallery:is([data-count="4"],[data-count="5"]){grid-template-columns:minmax(0,1fr) minmax(0,2.2fr) minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr))}
  #site .pp-gallery:is([data-count="4"],[data-count="5"]) .pp-main{grid-column:2;grid-row:1/3}
  #site .pp-gallery[data-count="4"] .pp-shot:nth-child(2){grid-column:1;grid-row:1/3}
  #site .pp-gallery[data-count="4"] .pp-shot:nth-child(n+3){grid-column:3}
  #site .pp-gallery[data-count="5"] .pp-shot:is(:nth-child(2),:nth-child(3)){grid-column:1}
  #site .pp-gallery[data-count="5"] .pp-shot:is(:nth-child(4),:nth-child(5)){grid-column:3}
}

/* 1.17.0: the sections under the gallery (div.pp-cols): one column in DOM order (head, card, facts, why, stay, included,
   days, levels, related); from 1024 px the two columns (at the end of this block) */
#site .pp-cols{display:grid;gap:28px;min-width:0}
#site .pp-cols>*{min-width:0}

/* head: the tags (the length; the best months), the city and plan, the summary; the compact from-price line of phones and
   tablets (hidden from 1024 px, where the card is the price) */
#site .pp-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
#site .pp-tag{display:inline-flex;align-items:center;gap:7px;border-radius:999px;background:var(--tile);padding:7px 12px 7px 10px;font-size:13px;line-height:1.3}
#site .pp-tag svg{width:16px;height:16px;flex:none;color:var(--blue)}
#site .pp-tag-k{color:var(--muted)}
#site .pp-title{display:flex;flex-direction:column;gap:8px;font-size:34px;font-weight:800;line-height:1.08;letter-spacing:-.035em;text-wrap:balance}
#site[data-lang="en"] .pp-title{font-family:var(--font-title)}
#site .pp-city{font-size:13px;font-weight:700;line-height:1.3;letter-spacing:.12em;text-transform:uppercase;color:var(--blue-d)}
#site .pp-line{margin-top:14px;max-width:62ch;font-size:16px;line-height:1.55;color:var(--muted);text-wrap:pretty}
#site .pp-from{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin-top:18px;padding:14px 18px;border-radius:20px;background:var(--blue-xl);box-shadow:inset 0 0 0 1px var(--blue-l)}
#site .pp-from small{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);line-height:1.3}
#site .pp-from b{font-size:24px;font-weight:800;line-height:1.2;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap}
#site .pp-from span{font-size:13px;color:var(--muted);line-height:1.3}
/* 1.16.1 (20 Nov 2026): the regular price crossed out after the price to pay */
#site .pp-from .fee-was-w{font-size:15px}

/* 1.17.0: the four fact tiles (the length, getting there, the stay, the spa): two across, four from 721 px */
#site .pp-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}
#site .pp-tile{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:2px;align-items:center;min-width:0;padding:14px 16px;border-radius:18px;background:var(--panel);border:1px solid var(--line)}
#site .pp-tile-ic{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--blue-xl);color:var(--blue-d)}
#site .pp-tile-ic svg{width:20px;height:20px}
#site .pp-tile-k{font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);line-height:1.3}
#site .pp-tile-v{font-size:15px;font-weight:600;line-height:1.35}

/* cards: your stay, treatments, what's included */
#site .pp-info,#site .pp-incl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
#site .pp-info>:only-child,#site .pp-incl>:only-child{grid-column:1/-1}
#site .pp-card{min-width:0;padding:26px 28px 28px;border-radius:30px;background:var(--panel);border:1px solid var(--line)}
#site .pp-card-h{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;font-size:18px;font-weight:700;line-height:1.3;letter-spacing:-.01em}
#site .pp-ic{align-self:center;display:grid;place-items:center;width:34px;height:34px;margin-right:2px;border-radius:11px;background:var(--blue-xl);color:var(--blue-d)}
#site .pp-ic svg{width:19px;height:19px}
#site .pp-k2{display:inline-block;font-size:15px;font-weight:400;color:var(--muted);letter-spacing:0}
#site .pp-info-text{margin-top:16px;font-size:clamp(19px,1.75vw,24px);font-weight:500;line-height:1.4;letter-spacing:-.01em;text-wrap:pretty}
#site .pp-info-note{margin-top:8px;font-size:16px;line-height:1.55}
#site .pp-info-note mark{padding:2px 7px;border-radius:7px;background:var(--pp-note);color:var(--pp-note-ink);-webkit-box-decoration-break:clone;box-decoration-break:clone}
#site .pp-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
#site .pp-chip{padding:6px 13px;border-radius:10px;background:var(--mint);color:var(--mint-ink);font-size:14.5px;line-height:1.4}
#site .pp-treat .pp-chip:nth-child(odd){background:var(--pp-rose);color:var(--pp-rose-ink)}
#site .pp-treat .pp-chip:nth-child(even){background:var(--pp-amber);color:var(--pp-amber-ink)}
#site .pp-list{display:grid;gap:11px;margin-top:16px}
#site .pp-list li{display:flex;align-items:flex-start;gap:10px;font-size:15.5px;line-height:1.5}
#site .pp-list svg{flex:none;width:18px;height:18px;margin-top:3px}
#site .pp-inc svg{color:var(--mint-ink);stroke-width:2.4}
#site .pp-exc li{color:var(--muted)}
#site .pp-exc svg{color:var(--muted-2)}
/* 1.17.0: the extras box under the lists (the plan's detail lines, only when you book with Teapak): the whole row, a
   light blue panel, the lines as a row of three from 721 px */
#site .pp-extras{grid-column:1/-1;background:var(--blue-xl);border-color:var(--blue-l)}
#site .pp-extras-list{display:grid;gap:10px;margin:16px 0 0;padding:0;list-style:none}
#site .pp-extra{display:flex;align-items:flex-start;gap:10px;font-size:15.5px;line-height:1.5}
#site .pp-extra svg{flex:none;width:18px;height:18px;margin-top:3px;color:var(--blue-d)}
#site .pp-extras-note{margin-top:14px;font-size:13.5px;line-height:1.5;color:var(--muted)}

/* 1.17.0: "Why this trip", a panel of short blocks (who it suits, what you get, the best time, where you save, how we
   look after you); two across from 721 px */
#site .pp-h2{font-size:clamp(24px,2.4vw,30px);font-weight:700;line-height:1.25;letter-spacing:-.025em}
#site .pp-why-panel{display:grid;gap:22px;margin-top:18px}
#site .pp-why-b{min-width:0}
#site .pp-why-k{font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--blue-d);line-height:1.3}
#site .pp-why-t{margin-top:8px;font-size:16px;line-height:1.55;text-wrap:pretty}
#site .pp-why-t+.pp-why-t{margin-top:4px}
#site .pp-why-n{margin-top:6px;font-size:14px;line-height:1.5;color:var(--muted)}
#site .pp-why-list{display:grid;gap:6px;margin:10px 0 0;padding:0;list-style:none}
#site .pp-why-list li{position:relative;padding-left:22px;font-size:15px;line-height:1.5}
#site .pp-why-list li::before{content:"";position:absolute;left:0;top:.5em;width:12px;height:12px;border-radius:50%;background:var(--mint);box-shadow:inset 0 0 0 3px var(--mint-ink)}
#site .pp-why-b .fee-pill{margin-top:10px}

/* 1.17.0: the sticky card (aside#plan-card.pp-card.pp-side), after the .pp-card base above so its own spacing wins */
#site .pp-side{display:grid;gap:14px;padding:22px 22px 24px;border-radius:26px;box-shadow:var(--shadow-s)}
#site .pp-side>*{margin:0;min-width:0}
#site .pp-badge{justify-self:start;display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 10px 0 8px;border-radius:9px;font-family:var(--font-en);font-size:11.5px;font-weight:800;letter-spacing:.1em;line-height:1;text-transform:uppercase}
#site .pp-badge svg{width:13px;height:13px}
#site .pp-badge.is-hot{background:var(--hot);color:var(--hot-ink)}
#site .pp-badge.is-new{background:var(--blue-fill);color:var(--on-blue)}
#site .pp-card-k{font-size:14px;font-weight:600;line-height:1.4;color:var(--muted)}
#site .pp-card-p{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;font-size:14px;color:var(--muted)}
#site .pp-card-p b{font-size:32px;font-weight:800;line-height:1.1;letter-spacing:-.025em;color:var(--fg);font-variant-numeric:tabular-nums;white-space:nowrap}
#site .pp-card-p .fee-was-w{font-size:14px}
#site .pp-card-fee{margin-top:-6px}
#site .pp-card-note{font-size:13.5px;line-height:1.5;color:var(--muted)}
#site .pp-card-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
#site .pp-ct{display:grid;gap:3px;align-content:start;min-width:0;padding:12px 10px;border-radius:14px;background:var(--tile);font-size:12.5px;line-height:1.35}
#site .pp-ct>svg{width:18px;height:18px;margin-bottom:4px;color:var(--blue-d)}
#site .pp-ct-k{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
#site .pp-ct-v{font-weight:600;color:var(--fg)}
#site .pp-ct-s{color:var(--muted)}
#site .pp-card-acts{display:grid;gap:10px}
#site .pp-card-acts .btn{width:100%;min-height:50px;padding:12px 22px;font-size:15px}
#site .pp-card-line{font-size:13.5px;line-height:1.5}
#site .pp-card-fine{font-size:12.5px;line-height:1.5;color:var(--muted)}
#site .pp-perks{display:grid;gap:8px;padding:14px 16px;border:2px dashed var(--line-2);border-radius:18px}
#site .pp-perks-h{font-size:13.5px;font-weight:700;line-height:1.4;letter-spacing:0}
#site .pp-perks-list{display:grid;gap:6px;margin:0;padding:0;list-style:none}
#site .pp-perk{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 10px;font-size:13.5px;line-height:1.45}
#site .pp-perk-k{color:var(--muted)}
#site .pp-perk-v{font-weight:700;color:var(--mint-ink)}
#site .pp-perk-left{flex-basis:100%;font-size:12.5px;color:var(--muted)}
#site .pp-perks-note{font-size:12.5px;line-height:1.45;color:var(--muted)}

/* day by day, 1.17.0 an accordion of <details> (three open columns up to 1.16.1): the first day open, the summary the
   day's number, its title (the other language after it) and a chevron that turns; the timed rows inside, dashed lines
   between them, each row in the page language with the other under it */
#site .pp-days{display:grid;gap:12px;margin-top:18px}
#site .pp-day{min-width:0;border-radius:22px;background:var(--panel);border:1px solid var(--line);overflow:hidden}
#site .pp-day-sum{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px 18px;cursor:pointer;list-style:none;-webkit-tap-highlight-color:transparent}
#site .pp-day-sum::-webkit-details-marker{display:none}
#site .pp-day-sum::marker{content:""}
#site .pp-day-sum:hover{background:var(--tile)}
#site .pp-day-sum:focus-visible{outline:2px solid var(--focus);outline-offset:-4px;border-radius:22px}
#site .pp-day-n{font-family:var(--font-title);font-size:30px;font-weight:800;line-height:1;letter-spacing:-.04em;color:var(--pp-ink);font-variant-numeric:tabular-nums}
#site .pp-day-title{min-width:0;font-size:18px;font-weight:700;line-height:1.3;letter-spacing:-.01em}
#site .pp-day-k{display:block;margin-bottom:2px;font-size:13.5px;font-weight:400;color:var(--muted);letter-spacing:0}
#site .pp-t2{display:inline-block;font-size:15px;font-weight:400;color:var(--muted);letter-spacing:0}
#site .pp-day-chev{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--tile);color:var(--fg)}
#site .pp-day-chev svg{width:18px;height:18px;transition:transform .25s var(--ease-out)}
#site .pp-day[open] .pp-day-chev svg{transform:rotate(90deg)}
#site .pp-rows{display:grid;padding:0 18px 10px}
#site .pp-row{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;padding:13px 0;border-top:1px dashed var(--line-2)}
#site .pp-row.no-time{grid-template-columns:minmax(0,1fr)}
#site .pp-row.no-time .pp-time{display:none}
#site .pp-rows:has(.pp-row:not(.no-time)) .pp-row.no-time{grid-template-columns:52px minmax(0,1fr)}   /* a row without a time in a timed day keeps the text column */
#site .pp-rows:has(.pp-row:not(.no-time)) .pp-row.no-time .pp-time{display:block}
#site .pp-time{font-size:16px;font-weight:700;line-height:1.5;color:var(--pp-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
#site .pp-txt{min-width:0}
#site .pp-x1{font-size:16px;line-height:1.5}
#site .pp-x2{margin-top:3px;font-size:14px;line-height:1.5;color:var(--muted)}

/* price levels */
#site .pp-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:18px 0 0;padding:0;list-style:none}
#site .pp-level{display:grid;align-content:start;gap:6px;min-width:0;padding:22px 24px 24px;border-radius:26px;background:var(--panel);border:1px solid var(--line)}
#site .pp-level.is-from{border-color:var(--blue-l);background:linear-gradient(160deg,var(--blue-xl),var(--panel) 62%)}
#site .pp-prices>.usd-note{margin-top:14px}
#site .pp-lv-k{font-size:11.5px;font-weight:700;line-height:1.3;letter-spacing:.12em;text-transform:uppercase;color:var(--blue-d)}
#site .pp-lv-p{font-size:13px;color:var(--muted)}
#site .pp-lv-p b{margin-right:2px;font-size:24px;font-weight:800;letter-spacing:-.02em;color:var(--fg);font-variant-numeric:tabular-nums;white-space:nowrap}
#site .pp-lv-p .fee-was-w{margin-inline:2px 4px;font-size:14px}   /* 1.16.1: the level's regular price, crossed out */
#site .pp-lv-d{font-size:14.5px;line-height:1.5;color:var(--muted)}

/* 1.17.0: the related plans ("You may also like"): PHP's links as pills until app.js draws the Reset Plans cards into the
   grid; one card across here, two from 721 px, three from 1280 px */
#site .pp-related-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin-top:18px}
#site .pp-related-links{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none;grid-column:1/-1}
#site .pp-related-links a{display:inline-flex;align-items:center;min-height:44px;padding:10px 18px;border-radius:999px;background:var(--blue-l);color:var(--blue-d);font-weight:600;text-decoration:none}
#site .pp-related-links a:hover{background:var(--blue-xl)}

/* actions, the bar of phones and tablets (hidden from 1024 px) */
#site .pp-cta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px 32px;padding:24px 28px;border-radius:30px;background:linear-gradient(135deg,var(--blue-xl),var(--panel) 70%);border:1px solid var(--line)}
#site .pp-cta-t{min-width:0}
#site .pp-cta-k{font-size:20px;font-weight:800;line-height:1.3;letter-spacing:-.02em}
#site .pp-cta-p{margin-top:2px;font-size:14.5px;color:var(--muted)}
#site .pp-cta-p b{color:var(--fg);font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
/* 1.16.1: the picked level's regular price crossed out, and its fee pill under the line (both follow a pick) */
#site .pp-cta-p .fee-was-w{margin-inline:6px 2px;font-size:13.5px}
#site .pp-cta-fee{margin-top:8px}
#site .pp-acts{display:flex;flex-wrap:wrap;gap:10px}
#site .pp-acts .btn{min-height:48px;padding:12px 22px;font-size:15px}

/* Thai */
#site[data-lang="th"] .pp-title{font-weight:700;line-height:1.25;letter-spacing:0}
#site[data-lang="th"] :is(.pp-city,.pp-lv-k,.pp-from small,.pp-tile-k,.pp-ct-k,.pp-why-k){letter-spacing:0;text-transform:none;font-size:13px}
#site[data-lang="th"] .pp-badge.is-new{font-family:inherit;font-weight:700;letter-spacing:.02em;text-transform:none}
#site[data-lang="th"] :is(.pp-h2,.pp-card-h,.pp-day-title,.pp-cta-k,.pp-perks-h){font-weight:600;letter-spacing:0}
#site[data-lang="th"] .pp-info-text{font-weight:400;letter-spacing:0}

@media (prefers-reduced-motion:no-preference){
  #site .pp-gallery{animation:tp-rise .9s var(--ease-out) .05s backwards}
  #site .pp-head{animation:tp-rise .9s var(--ease-out) .16s backwards}
}
@media (prefers-reduced-motion:reduce){
  #site .pp-day-chev svg{transition:none}
}

/* phones: the cards and the lists one across, the bar's buttons the whole width */
@media (max-width:720px){
  #site .pp-info,#site .pp-incl,#site .pp-levels{grid-template-columns:minmax(0,1fr);gap:14px}
  #site .pp-card{padding:20px 18px 22px;border-radius:26px}
  #site .pp-info-text{font-size:19px}
  #site .pp-chip{font-size:14px}
  #site .pp-level{padding:18px 18px 20px;border-radius:22px}
  #site .pp-cta{padding:20px 18px;border-radius:26px}
  #site .pp-acts{width:100%;flex-direction:column}
  #site .pp-acts .btn{width:100%}
}
/* tablets and up: more air, the four tiles across, "Why this trip" two across, the extras three across, the related
   plans two across */
@media (min-width:721px){
  #site .plan-page{gap:36px;padding-top:20px}
  #site .pp-cols{gap:36px}
  #site .pp-tag{padding:8px 14px 8px 11px;font-size:14px}
  #site .pp-title{font-size:clamp(34px,4vw,50px)}
  #site .pp-line{font-size:18px}
  #site .pp-from b{font-size:26px}
  #site .pp-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
  #site .pp-why-panel{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 32px}
  #site .pp-extras-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  #site .pp-related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  #site .pp-day-sum{gap:16px;padding:18px 22px}
  #site .pp-rows{padding:0 22px 10px}
  #site .pp-row{grid-template-columns:58px minmax(0,1fr);gap:14px;padding:14px 0}
  #site .pp-x1{font-size:16.5px}
}
@media (max-width:900px){
  #site .pp-levels{gap:14px}
  #site .pp-level{padding:20px 18px 22px}
}
/* 1.17.0: from 1024 px the two columns: the sections 1fr, the card 380 px, 32 px between; the card in the right column
   over every row (grid-row spans more rows than the left column has; the rows' gaps are the sections' margins, so the
   empty rows at the end add nothing), sticky 88 px under the top. The head's price line and the bar go: the card has them. */
@media (min-width:1024px){
  #site .pp-cols{grid-template-columns:minmax(0,1fr) 380px;column-gap:32px;row-gap:0;align-items:start}
  #site .pp-cols>*{grid-column:1}
  #site .pp-cols>*:not(#plan-card):not(:last-child){margin-bottom:40px}
  #site .pp-cols>#plan-card{grid-column:2;grid-row:1/span 40;align-self:start;position:sticky;top:88px;max-height:calc(100dvh - 104px);overflow-y:auto;overscroll-behavior:contain}
  #site .pp-head .pp-from{display:none}
  #site #plan-actions{display:none}
}
/* the two columns while the left one is narrow (1024 to 1279 px): the fact tiles two across, the levels one under the other */
@media (min-width:1024px) and (max-width:1279px){
  #site .pp-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  #site .pp-levels{grid-template-columns:minmax(0,1fr);gap:14px}
}
@media (min-width:1280px){
  #site .pp-related-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
}

/* ---------- 1.4.0 (docs/FEATURES-1.4.md) ---------- */
/* Hero video (change 2): never a play button. The video shows once it plays (app.js); some WebKit builds still draw
   their start-playback button over a video that has no controls and is not playing (iOS Low Power Mode), so it is
   hidden here too. */
#site .hero-video::-webkit-media-controls,
#site .hero-video::-webkit-media-controls-panel,
#site .hero-video::-webkit-media-controls-overlay-play-button,
#site .hero-video::-webkit-media-controls-start-playback-button{display:none!important;-webkit-appearance:none;appearance:none}

/* Deep Recovery tall card (change 8): the place ("Chiang Mai or Samui") wraps instead of being cut off, and the call
   button is a one-line white pill (.t-cta, app.js soonHTML) */
.is-soon .loc-pill{white-space:normal;max-width:calc(100% - 24px);right:12px;top:12px;font-size:13.5px;line-height:1.3;padding:7px 12px 7px 10px;align-items:flex-start}
.is-soon .loc-pill svg{width:15px;height:15px;margin-top:1px}
.t-cta{display:inline-flex;align-items:center;justify-content:center;gap:6px;align-self:stretch;margin-top:4px;min-height:38px;padding:8px 10px;border-radius:999px;background:var(--white);color:var(--blue-on-white);font-size:13px;font-weight:700;line-height:1.2;text-decoration:none;white-space:nowrap;transition:background .15s}
.t-cta svg{width:15px;height:15px;color:var(--orange-ink);flex:none}
.t-cta:hover{background:var(--blue-l)}
.rp-deep .loc-pill{white-space:normal}
/* the compact button starts where the tall card narrows to 160 px (site.css .plan-card.is-t, max-width 900px): on iPad
   widths (721-900 px) the 13 px one is wider than its pill in Thai */
@media (max-width:900px){
  .t-cta{font-size:11.5px;min-height:34px;padding:6px 8px;gap:5px}
  .t-cta svg{width:13px;height:13px}
}
@media (max-width:720px){
  .is-soon .loc-pill{font-size:12px;padding:6px 10px 6px 8px;right:8px;top:8px;max-width:calc(100% - 16px)}
}
.is-soon .loc-pill{font-size:12.5px}

/* Top activities (change 3): the home band (template-parts/activities-band.php) and the cards the Activities page
   shares (inc/activities.php; the Activities page grid and the chips / slider behaviour are assets/css/pages-v10.css and
   assets/js/pages-v10.js). As the mockup's "Home: Top activities" section. */
.acts-band>.wrap{padding-top:92px}
.acts-head .intro{max-width:600px}
@media (max-width:900px){ .acts-band>.wrap{padding-top:72px} }
@media (max-width:720px){ .acts-band>.wrap{padding-top:60px} }
/* (1.13.0: the 1.4.0 activity slider and chips, .act-chips / .act-track / .ax* / .act-bar / .act-arrows, are gone: the
   cards of the owner's "Activity cards v2" are assets/css/pages-v10.css .tp-*) */

