/* Teapak.co 1.16.0 (assets/css/find.css, 19 Nov 2026): Trips that fit you, the search results page /find/ (page-find.php,
   assets/js/find.js), after the owner's pictures of it ("ค้นหา · เดสก์ท็อป ผลค้นหา 3 ตัวเลือก" on a computer, "ค้นหา ·
   มือถือ ผลค้นหา" on a phone). inc/setup.php loads it on that page only, after wp.css. Light only: the tokens of site.css
   :root. The compact search bar's own look is the bar's (site.css / wp.css .search.is-compact); this file places it
   (.find-top: a white band under the header, with a line under it; no overflow:hidden there, the bar's lists open below
   it, over the results) and styles the phone's summary card, the head, the chips, the note, the results (the Reset Plans
   card .rp-card with .is-find and its .fd-* parts), the "Not quite right?" box and the notes.
   Widths: the theme's steps: phones up to 720 px, tablets 721-1100 px (the Reset Plans grid's step), computers from
   1101 px. A card a row: the photo on the start side, on phones on top.
   1.19.0 (22 Nov 2026, the owner: "after searching, I need extend card fit as on reset plan page ... make it with exactly
   reference file on desktop"): the head, the results, the "Not quite right?" box and the notes stand the site's
   container, as the Reset Plans page (1.16.0: a column of 1000 px); the long card is proportioned as his computer picture
   at 1280 px (the photo 29 % of the card, the body's padding, type and spacing measured from it) and his phone picture
   (the photo about 15:8, no "You'll get" label, smaller pills); and inc/setup.php loads this file on the Reset Plans
   page too, where every plan is the same card in its browse form (.is-browse, app.js #rp-grid.is-long: one a row).
   After the review (22 Nov): the sizes measured again from the pictures' letters (the first build read them from line
   heights, which take in the Thai marks): the card's type a step smaller (the computer: the title 21 px, the price 23 px,
   the texts 12.5-13.5 px; the phone: 19 px, 20 px, 12-12.5 px), the extras box and the foot as tight as the pictures,
   20 px corners, 20 px between the cards, no shadow on phones, and the head's title and line at the picture's size. */

/* ---------- the top: the compact bar (computers and tablets), the summary card (phones) ---------- */
#site .find-top{position:relative;z-index:5;background:var(--page);border-bottom:1px solid var(--line)}
#site .find-top>.wrap{padding-block:10px 20px}
#site .find-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 10px 13px 18px;border-radius:18px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--line-2)}
#site .fs-text{min-width:0;display:flex;flex-direction:column;gap:3px}
#site .fs-rest{font-size:15.5px;font-weight:700;line-height:1.35;color:var(--fg)}
#site .fs-line{font-size:13.5px;line-height:1.45;color:var(--muted)}
#site .fs-edit{flex:none;min-height:44px;min-width:44px;padding:0 10px;border-radius:12px;color:var(--blue-d);font-size:15px;font-weight:700;line-height:1.2}
#site .fs-edit:hover{background:var(--blue-xl)}
@media not all and (max-width:720px){   /* the exact complement of the phone block: no width shows both the card and the bar */
  #site .find-summary{display:none}
}

/* ---------- the head and the band (one grey page under the white top, as the pictures) ---------- */
/* 1.19.0: the site's container (site.css .wrap, --container), the one the Reset Plans page's sections stand in, so the
   title, the chips, the cards, the "Not quite right?" box and the notes line up with the search bar and the header (the
   1000 px column of 1.16.0 is gone); after the review the title and the line under it at the computer picture's size
   (30 px and 14.5 px at 1280; 1.16.0: 40 px and 16.5 px) and the phone picture's (24 px and 14 px) */
#site .find-head,#site .find-band{background:var(--bg)}
#site .find-head>.wrap{padding-top:44px;align-items:flex-start;text-align:start}
#site .find-head .ph-title{margin-top:0;max-width:none;font-size:clamp(24px,2.4vw,30px);letter-spacing:-.02em}
#site[data-lang="th"] .find-head .ph-title{font-weight:700;letter-spacing:0}
#site .find-head .ph-sub{margin-top:10px;max-width:none;font-size:14.5px;line-height:1.55}
#site .fd-sub-short{display:none}
#site .find-band>.wrap{padding-top:24px;padding-bottom:72px}

/* ---------- the chips: white pills with a thin line, the select inside them borderless ---------- */
#site .find-chips{display:flex;flex-wrap:wrap;gap:10px}
#site .fd-chip{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:46px;padding:0 20px;border-radius:999px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg);font-size:15px;line-height:1.2;white-space:nowrap;cursor:pointer;transition:background .15s,box-shadow .15s}
#site .fd-chip:hover{background:var(--blue-xl)}
#site .fd-chip select{-webkit-appearance:none;appearance:none;margin:0;padding:0 20px 0 0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;line-height:inherit;cursor:pointer;min-width:0;max-width:15em;text-overflow:ellipsis}
#site .fd-chip .fd-chev{position:absolute;right:17px;top:50%;width:14px;height:14px;margin-top:-7px;color:var(--muted);pointer-events:none}
#site .fd-chip.fd-sort{background:var(--tile);box-shadow:none}
#site .fd-chip.fd-sort:hover{background:var(--blue-xl)}
#site .fd-nofly[aria-pressed="true"]{background:var(--blue-xl);box-shadow:inset 0 0 0 1.5px var(--blue-l);color:var(--blue-d);font-weight:600}
@supports selector(:has(*)){
  /* the focus ring around the whole pill, not the bare select inside it */
  #site .fd-chip select:focus-visible{outline:none}
  #site .fd-chip:has(select:focus-visible){outline:2px solid var(--focus);outline-offset:2px}
}

/* ---------- the note above the cards: nothing within the budget yet, or nothing left by the chips ---------- */
#site .find-note{margin-top:18px;padding:12px 16px;border-radius:14px;background:var(--blue-xl);color:var(--blue-d);font-size:14.5px;font-weight:500;line-height:1.5}
#site .find-note.is-empty{background:var(--panel);color:var(--fg);box-shadow:inset 0 0 0 1px var(--line)}

/* ---------- the long card: the results, one a row; 1.19.0: every plan of the Reset Plans page too ---------- */
/* 1.19.0 (review): 20 px between the cards and from the chips to the first one, as the computer picture (22 and 24
   before) */
#site .rp-grid.find-grid{grid-template-columns:minmax(0,1fr);gap:20px;margin-top:20px}
#site .find-grid:empty{display:none}
/* 1.19.0: the Reset Plans page's All trips while app.js draws the long cards in it (rpGridDraw): one a row, the
   container's width, Deep Recovery's wide card at the end as before; after the review its photo column as wide as the
   long cards' and their corners (site.css: 42 % of the card, 16 px), so the column's edge runs straight down the list */
#site .rp-grid.is-long{grid-template-columns:minmax(0,1fr);gap:20px}
#site .rp-grid.is-long .rp-deep{border-radius:20px}
#site .rp-grid.is-long .rp-deep .rp-photo{width:clamp(300px,29%,400px)}
/* 1.17.0 (21 Nov 2026): the base card is the new white panel (site.css .rp-card: 16 px radius, a soft shadow, the photo
   flush at 5:4); the long card keeps its own two-column anatomy, so its photo column must not take the card's 5:4 ratio
   (a grid item with an aspect ratio would stop stretching to the row) and keeps its radius with the panel's.
   1.19.0: the photo column is the picture's share of the card, 29 % (300-400 px: 362 px of the 1248 px card at 1280,
   369 px at 1440 and wider); after the review 20 px corners at every width (both pictures: about 21 px) */
#site .rp-card.is-find{--fd-pill:var(--fee-pill,#FCE99A);--fd-pill-ink:var(--fee-pill-ink,#5A3E00);display:grid;grid-template-columns:clamp(300px,29%,400px) minmax(0,1fr);border-radius:20px;box-shadow:var(--shadow-s)}
#site .rp-card.is-find .rp-photo{height:auto;max-height:none;min-height:260px;aspect-ratio:auto;margin:0;border-radius:0}
/* no lift and no zoom under the mouse: a card that moves away from a mouse resting near its edge flickers (the owner saw
   it on the Activities page, 19 Nov) */
#site .rp-card.is-find:hover{transform:none}
#site .rp-card.is-find:hover .rp-photo>.photo{transform:none}
/* the rank: dark for the first, white for the others; phones add the reason (.fd-rank-why). The browse form has none.
   After the review the picture's 13 px text in a 34 px pill (14 px before) */
#site .fd-rank{position:absolute;left:14px;top:14px;z-index:3;display:block;max-width:calc(100% - 28px);padding:8px 13px;border-radius:999px;background:var(--fg);color:var(--white);font-size:13px;font-weight:700;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:var(--shadow-xs);pointer-events:none}
#site .fd-rank.is-alt{background:var(--panel);color:var(--fg)}
#site .rp-card.is-find:is(.is-hot,.is-new) .fd-rank{max-width:calc(100% - 118px)}
#site .fd-rank-why{display:none}
/* 1.19.0: the body as the picture at 1280 px, its sizes measured from the letters (review, 22 Nov; every line of the
   card then within 2 px of the picture's and the card 527 px tall against its 526): 24 px in from the card's edges, 12
   px between its parts, the title 21 px, the price 23 px, the texts 12.5-13.5 px; the line above the title (the
   reason; the browse form's best months) close to it: it follows the title in the markup (find.js cardMarkup, for
   screen readers) and is shown above it here (order) */
#site .rp-card.is-find .rp-body{padding:24px;gap:12px}
#site .fd-reason{order:-1;margin-bottom:-2px;font-size:13px;font-weight:700;line-height:1.4;color:var(--blue-d)}
#site .rp-card.is-find h3{font-size:21px;font-weight:800;line-height:1.3}   /* 1.17.0: the base card's title is 700 now; this one keeps its weight */
#site .rp-card.is-find .rp-line{font-size:13.5px;line-height:1.6}
/* the checks: green ticks, the over-budget and too-long ones (and the browse form's season note) in the HOT tag's orange
   (readable on white) */
#site .fd-checks{display:flex;flex-wrap:wrap;gap:6px 22px;font-size:13px;line-height:1.6}
#site .fd-checks li{display:inline-flex;align-items:flex-start;gap:7px;color:var(--fg)}
#site .fd-checks svg{flex:none;width:16px;height:16px;margin-top:2px;color:var(--mint-ink)}
#site .fd-checks .is-warn,#site .fd-checks .is-warn svg{color:var(--hot)}
/* "You'll get" (medium weight, as the picture): mint pills; the details: plain bullets (24 px a line, as the picture) */
#site .fd-gains-label{margin-top:3px;font-size:12.5px;font-weight:600;line-height:1.4;color:var(--muted)}
#site .fd-gains{display:flex;flex-wrap:wrap;gap:8px;margin-top:-5px}
#site .fd-gains li{padding:8px 13px;border-radius:999px;background:var(--mint);color:var(--mint-ink);font-size:13px;font-weight:700;line-height:1.4}
#site .fd-details{display:flex;flex-direction:column;gap:2px;padding-inline-start:20px;list-style:disc;font-size:13.5px;line-height:22px;color:var(--nav-ink)}
#site .fd-details li::marker{color:var(--fg)}
/* the extras only Teapak gives, and the planning fee's yellow pill (after the review: the box 80 px tall with its 30 px
   pill, as the picture; 90 px before) */
#site .fd-perk{display:flex;flex-direction:column;align-items:flex-start;gap:9px;margin-top:2px;padding:11px 14px 10px;border-radius:14px;background:var(--blue-xl);font-size:13px;line-height:1.5;color:var(--fg)}
#site .fd-perk b{font-weight:700}
#site .fd-fee{display:inline-block;padding:6px 13px;border-radius:999px;background:var(--fd-pill);color:var(--fd-pill-ink);font-size:12.5px;font-weight:700;line-height:1.4}
/* the foot: the total (or the price a person; the browse form: "from", the Eco price a person) and the two buttons
   (1.17.0: the filled consult button first, the white "View this plan" second; the base card's foot is a column of price
   and buttons, so the row is set again here). 1.19.0: the label, the price and the line under it 9 px apart and 16 px
   under the hairline, as the picture (review; 6 and 18 px before); the crossed-out regular price stays right under the
   price */
#site .rp-card.is-find .fd-foot{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;padding-top:16px;border-top:1px solid var(--line);align-items:flex-end;gap:16px}
#site .rp-card.is-find .fd-foot .rp-acts{margin-left:auto}
#site .fd-total{min-width:0;display:flex;flex-direction:column;gap:9px}
#site .fd-total small{font-size:12.5px;line-height:1.4;color:var(--muted)}
#site .fd-total b{font-size:23px;font-weight:800;letter-spacing:-.02em;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}
#site .fd-total .fee-was-w{margin-top:-8px;font-size:13px;line-height:1.35}   /* 1.16.1: the total before the discount, crossed out (site.css .fee-was-w s) */
#site .fd-pp{font-size:12px;line-height:1.5;color:var(--muted)}
/* 1.19.0 (review): English "from" stands on a line of its own over the price here, so it starts with a capital (the copy
   plans.from_label is lower case for the 1.17.0 card's one phrase "from THB 23,000 per person"); Thai เริ่มต้น as written */
#site[data-lang="en"] .rp-card.is-browse .fd-total small::first-letter{text-transform:uppercase}
#site .fd-foot .rp-acts{gap:10px}
#site .fd-foot .rp-acts .btn{min-height:48px;padding:12px 18px;border-radius:12px;font-size:14px}
#site .fd-foot .rp-acts .btn-secondary{background:var(--panel);color:var(--blue-d);box-shadow:inset 0 0 0 1.5px var(--line-2)}
#site .fd-foot .rp-acts .btn-secondary:hover{background:var(--blue-xl)}

/* ---------- "Not quite right?" and the notes ---------- */
/* 1.19.0 (review): the box as the computer picture, 63 px tall with 15 px text and 20 px corners (71 px, 16 px and 24 px
   before) */
#site .find-none{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 24px;margin-top:22px;padding:18px 24px;border-radius:20px;background:var(--panel);border:1.5px dashed var(--line-2);font-size:15px;line-height:1.5}
#site .find-none b{font-weight:600}
#site .find-all{color:var(--blue-d);font-weight:700;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
#site .find-all:hover{color:var(--fg)}
#site .find-notes{margin-top:22px}

/* ---------- tablets ---------- */
@media (max-width:1100px){
  #site .rp-card.is-find{grid-template-columns:clamp(240px,30%,300px) minmax(0,1fr)}   /* 1.19.0: 240-300 px (260 px before) */
  #site .rp-grid.is-long .rp-deep .rp-photo{width:clamp(240px,30%,300px)}   /* Deep Recovery's photo column as the long cards' */
  #site .rp-card.is-find .rp-body{padding:22px 22px 20px}
  #site .rp-card.is-find h3{font-size:20px}   /* 1.19.0 (review): under the computer's 21 px */
}

/* ---------- phones ---------- */
@media (max-width:720px){
  #site .find-top>.wrap{display:flex;flex-direction:column;padding-block:12px 16px}
  #site .find-summary{order:-1}   /* Edit stays where the finger is: the bar opens under the card */
  /* the bar's contract (spec 2.6), kept here too so the summary card and the bar never show at once whichever rule
     loads: on phones the compact bar shows only once Edit opens it, under the summary card */
  #site .find-top .search.is-compact:not(.is-open){display:none}
  #site .find-top .search.is-compact.is-open{margin:12px 0 0}
  #site .find-head>.wrap{padding-top:26px}
  #site .find-head .ph-sub{margin-top:6px;font-size:14px}   /* 1.19.0 (review): the title is the clamp's 24 px here (27 px before) */
  #site .fd-sub-long{display:none}
  #site .fd-sub-short{display:inline}
  #site .find-band>.wrap{padding-top:18px;padding-bottom:48px}
  /* the chips scroll sideways from the screen's edge, fading out at the end, as the Reset Plans chips */
  #site .find-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-top:-3px;margin-inline:calc(-1*var(--gutter)) calc(-1*var(--gutter-r));padding:5px var(--gutter-r) 4px var(--gutter);-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 26px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 26px),transparent)}
  #site .find-chips::-webkit-scrollbar{display:none}
  #site .fd-chip{flex:none;min-height:42px;padding:0 16px;font-size:16px}   /* 16 px: iOS Safari zooms into a focused select set smaller (20 Nov) */
  #site .fd-chip .fd-chev{right:14px}
  /* the long card stacked: the photo on top, then the body; 1.19.0 as the phone picture: the photo about 15:8 (191 px on
     its 356 px card; 16:10 before), the body 16 px in, no "You'll get" label (kept for screen readers), smaller pills, the
     details 22 px a line; the two buttons under the total, consult first. After the review (22 Nov) the picture's sizes,
     measured from its letters: the title 19 px, the price 20 px, the texts 12-12.5 px, the extras box 86 px tall with
     its 24 px pill, the foot as tight (every line within about 2 px of the picture's down to the line under the price;
     the first build of 1.19.0 ran 26 px longer by the hairline), and the card drawn by its line only, no shadow (the
     picture); Deep Recovery's card at the end of the long cards the same, its photo on top across the card as before */
  #site .rp-grid.find-grid,#site .rp-grid.is-long{gap:16px;margin-top:18px}
  #site .rp-card.is-find{display:flex;flex-direction:column}
  #site .rp-card.is-find,#site .rp-grid.is-long .rp-deep{box-shadow:none}
  #site .rp-grid.is-long .rp-deep .rp-photo{width:auto}
  #site .rp-card.is-find .rp-photo{min-height:0;aspect-ratio:15/8}
  #site .fd-rank{left:12px;top:12px;padding:6px 12px;font-size:12.5px;white-space:normal;text-overflow:clip;border-radius:14px}   /* a long reason wraps instead of "…" (20 Nov); 29 px tall, as the picture */
  #site .fd-rank-why{display:inline}
  /* the reason rides in the rank pill here; the line stays for screen readers (the photo link is hidden from them).
     1.19.0: a browse card has no rank pill, so its line (the best months) stays in sight */
  #site .rp-card.is-find:not(.is-browse) .fd-reason{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
  #site .rp-card.is-find .rp-body{padding:18px 16px 16px;gap:11px}
  #site .rp-card.is-find h3{font-size:19px}
  #site .rp-card.is-find .rp-line{font-size:12.5px;line-height:1.5}
  /* the checks: one green line, "·" between them, no ticks (the picture) */
  #site .fd-checks{display:block;color:var(--mint-ink);font-weight:600;font-size:12.5px;line-height:1.6}
  #site .fd-checks li{display:inline;color:inherit}
  #site .fd-checks li+li::before{content:" · ";color:var(--mint-ink)}
  #site .fd-checks svg{display:none}
  #site .fd-checks .is-warn{color:var(--hot)}
  #site .fd-gains-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
  #site .fd-gains{gap:6px;margin-top:0}
  #site .fd-gains li{padding:6px 10px;font-size:12px}
  #site .fd-details{gap:1px;font-size:12.5px;line-height:21px}
  #site .fd-perk{margin-top:0;padding:9px 12px;gap:8px;font-size:12.5px;line-height:1.45}
  #site .fd-fee{padding:3px 10px;font-size:12px;line-height:1.5}
  #site .rp-card.is-find .fd-foot{align-items:stretch;padding-top:13px;gap:14px}
  #site .fd-total{gap:6px}
  #site .fd-total small{font-size:12px}
  #site .fd-total b{font-size:20px}
  #site .fd-total .fee-was-w{margin-top:-5px}
  #site .fd-foot .rp-acts .btn{flex:1 1 0;min-width:0;min-height:46px;padding-inline:12px;white-space:normal;text-align:center}
  #site .find-none{padding:18px}
}

/* ---------- touch screens and forced colours (20 Nov) ---------- */
/* 16 px in the chips on every touch screen (iPads too), so iOS Safari does not zoom into a tapped select */
@media (pointer:coarse){
  #site .fd-chip{font-size:16px}
}
/* Windows contrast themes drop box shadows: the pills, the summary card, the cards and the rank and fee pills keep an
   edge, and the pressed No flight chip an outline */
@media (forced-colors:active){
  #site .fd-chip,#site .find-summary,#site .rp-card.is-find,#site .fd-rank,#site .fd-fee{border:1px solid CanvasText}
  #site .fd-nofly[aria-pressed="true"]{outline:2px solid Highlight;outline-offset:-2px}
}
