/* France's region pages as where-to-stay marketplaces (the Dordogne, Brittany and Corsica, 28 Nov 2026;
   region_market_page() in gen-pages.py, data/region-market/spec.md §5.2). css/stay-market.css draws the marketplace as on
   the 100 city pages; this sheet, after it and before look.css and tec.css, draws only what a region page adds or holds
   differently: the eyebrow and the town in the hero's search, the town panels' lists and lines, the towns' comparison
   table, the guide sections (things to do, getting there, the seasons, the itinerary), the questions' and closing band's
   headings and the photo credits. Every rule is scoped to .tpl-regionstay. Yellow only on what hands off to book. */

/* ---------- the hero: the eyebrow over the h1, the town first in the search ---------- */
.tpl-regionstay .mk-eyebrow{margin:12px 0 0;font-size:var(--fs-sm);font-weight:600;letter-spacing:var(--track-caps);text-transform:uppercase;color:rgba(255,255,255,.9);text-shadow:0 1px 10px rgba(0,0,0,.3)}
.tpl-regionstay .mk-eyebrow+h1{margin-top:6px}
/* where the photo-lift block of tec.css gives each block of the header's words its own band (860px and below), the
   eyebrow, between the breadcrumb's and the headline's, gets one too, so it keeps AA over the lighter photo */
@media(max-width:860px){
  .tpl-regionstay .mk-hero .mk-eyebrow{--pl-band:rgba(5,25,48,.6);
    border-image:linear-gradient(180deg,transparent,var(--pl-band) var(--pl-f),var(--pl-band) calc(100% - var(--pl-f)),transparent) 0 fill/0/var(--pl-f) 100vw var(--pl-f)}
}
.tpl-regionstay .mk-town select{width:100%;min-height:30px;padding:0 22px 0 0;border:0;border-radius:4px;background-color:transparent;font:500 var(--fs-md)/1.3 var(--sans);color:var(--mk-ink);cursor:pointer}
/* its own chevron, not the browser's: Safari on an iPhone drew its grey box and arrow inside the field, and at 320px
   "Anywhere in the Dordogne" lost its last letters under the arrow (layout review, 28 Nov 2026) */
.tpl-regionstay .mk-town select{-webkit-appearance:none;appearance:none;
  background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312253A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 0 center/18px 18px no-repeat}
@media(forced-colors:active){.tpl-regionstay .mk-town select{-webkit-appearance:menulist;appearance:auto;background-image:none}}
.tpl-regionstay .mk-town select:focus-visible{outline:2px solid var(--tec-blue);outline-offset:4px}
/* a long region name ("Anywhere in Chamonix and Mont Blanc") is wider than the field on a narrow phone: the select keeps
   its words inside its box and ends them with an ellipsis (the open list shows them whole), since Safari counted the
   overflowing words in the page's width and the page scrolled sideways at 320px (29 Nov 2026) */
.tpl-regionstay .mk-town select{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:100%}
.tpl-regionstay .mk-panel .mk-town{min-width:0;overflow:hidden}
/* stay-market.css's narrower rules take the guests control for the third cell; here it is hidden (spec D6) and the town
   is first: the town and check in, then check out and the button */
@media(max-width:1100px){
  .tpl-regionstay .mk-panel .mk-field:nth-child(3){border-top:1px solid var(--mk-line)}
  .tpl-regionstay .mk-panel .mk-field:nth-child(3)~.mk-go{grid-column:2/3}
}
/* on a phone the region's long h1 ("Where to Stay in the Dordogne: Best Towns & Hotels") takes a size smaller than a
   city's short one, so the search's button shows on the first screen at 390x664 and 375x667 (spec §1.1) */
@media(max-width:700px){
  .tpl-regionstay .mk-hero h1{font-size:var(--fs-2xl);line-height:1.12}
  .tpl-regionstay .mk-eyebrow{margin-top:8px}
  .tpl-regionstay .mk-search{margin-top:18px}
}
/* on a phone "Anywhere in the Dordogne" doesn't fit half the panel: the town takes the first row, the dates the second,
   the button the third (as tall as the city pages' three rows) */
@media(max-width:700px){
  .tpl-regionstay .mk-panel .mk-town{grid-column:1/-1;border-right:0;border-bottom:1px solid var(--mk-line)}
  .tpl-regionstay .mk-panel .mk-field:nth-child(2){border-right:1px solid var(--mk-line)}
  .tpl-regionstay .mk-panel .mk-field:nth-child(3){grid-column:auto;border-top:0;border-right:0}
  .tpl-regionstay .mk-panel .mk-go,.tpl-regionstay .mk-panel .mk-field:nth-child(3)~.mk-go{grid-column:1/-1}
}
/* at 360px and below the fields give their words a little more room, so "Anywhere in the Dordogne" clears its chevron */
@media(max-width:360px){.tpl-regionstay .mk-panel .mk-field{padding-inline:10px}}

/* ---------- the cards: the drive or walk, and the season ---------- */
.tpl-regionstay .mk-loc{margin:0;font-size:var(--fs-sm);font-weight:600;line-height:1.4;color:var(--mk-ink)}
.tpl-regionstay .mk-season{margin:0;font-size:var(--fs-sm);line-height:1.4;color:var(--mk-muted)}
.tpl-regionstay .mk-star.mk-kind{text-transform:none;letter-spacing:0}

/* ---------- the towns: the panel's heading, its lists and lines, the comparison table ---------- */
.tpl-regionstay hgroup.mk-at{margin:0}
.tpl-regionstay .mk-at :is(h3,p){margin:0}
.tpl-regionstay .mk-at h3{letter-spacing:0}
.tpl-regionstay .rm-trade{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.tpl-regionstay .rm-trade strong{display:block;margin-bottom:6px;font-size:var(--fs-sm);color:var(--mk-ink)}
.tpl-regionstay .rm-trade ul{margin:0;padding-left:18px;font-size:var(--fs-sm);line-height:var(--lh-body);color:var(--mk-muted)}
.tpl-regionstay .rm-trade li+li{margin-top:2px}
.tpl-regionstay .rm-about{max-width:72ch}
.tpl-regionstay .rm-about p{margin:0 0 8px;font-size:var(--fs-sm);line-height:var(--lh-body);color:var(--mk-muted)}
.tpl-regionstay .rm-about p:last-child{margin-bottom:0}
.tpl-regionstay .rm-about .rm-drives{font-weight:600;color:var(--mk-ink)}
.tpl-regionstay .mk-fbody h4{margin:0;font:600 var(--fs-md)/1.3 var(--sans);color:var(--mk-ink)}
.tpl-regionstay .mk-area-ctas .rm-book{white-space:normal;text-align:left}
.tpl-regionstay .rm-compare{margin-top:22px;overflow-x:auto;border:1px solid var(--mk-line);border-radius:12px;background:var(--white);scrollbar-width:thin;container-type:inline-size;
  /* where the table scrolls sideways, a shadow at the right edge until its end, as the site's other sideways tables
     show (base.css's cue; the hotel lists' comparison): the white "local" cover rides at the table's end and hides it there */
  background:linear-gradient(to left,var(--white) 30%,rgba(255,255,255,0)) 100% 0/40px 100% no-repeat local,
    linear-gradient(to left,rgba(15,43,76,.16),rgba(15,43,76,0)) 100% 0/16px 100% no-repeat scroll,var(--white)}
.tpl-regionstay .rm-compare:focus-visible{outline:2px solid var(--tec-blue);outline-offset:2px}
.tpl-regionstay .rm-table{width:100%;min-width:760px;border-collapse:collapse;font-size:var(--fs-sm);line-height:1.4;color:var(--mk-ink)}
.tpl-regionstay .rm-table caption{caption-side:top;padding:0;text-align:left;color:var(--mk-muted)}
/* the caption's words are as wide as the box that shows them and held at its left, so a phone reads them whole while the
   table under them scrolls (layout review, 28 Nov 2026: they ran on past the edge with the table's 640px) */
.tpl-regionstay .rm-cap{display:block;position:sticky;left:0;box-sizing:border-box;max-width:100cqw;padding:14px 16px 10px}
.tpl-regionstay .rm-table :is(th,td){padding:12px 16px;text-align:left;vertical-align:top;border-top:1px solid var(--mk-line)}
.tpl-regionstay .rm-table thead th{font-size:var(--fs-xs);font-weight:600;letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--mk-muted);background:rgba(11,78,162,.04)}
.tpl-regionstay .rm-table th[scope=row]{font-weight:600}
.tpl-regionstay .rm-table th[scope=row] a{display:inline-flex;align-items:center;min-height:32px;color:var(--tec-blue);text-decoration:underline;text-underline-offset:3px}
/* on a phone the town is held at the left and the rest scrolls, as the tours pages' comparison does */
@media(max-width:700px){
  .tpl-regionstay .rm-table{min-width:640px}
  .tpl-regionstay .rm-table :is(th,td){padding:10px 12px}
  .tpl-regionstay .rm-table :is(th[scope=row],thead th:first-child){position:sticky;left:0;z-index:1;min-width:120px;max-width:150px;background:var(--white);box-shadow:1px 0 0 var(--mk-line)}
  .tpl-regionstay .rm-table thead th:first-child{background:var(--mk-soft)}
  .tpl-regionstay .rm-trade{grid-template-columns:minmax(0,1fr);gap:12px}
}

/* ---------- the guide sections ---------- */
.tpl-regionstay :is(#getting-there,#itinerary){background:var(--mk-soft)}
.tpl-regionstay .rm-sec+.rm-sec{border-top:1px solid var(--tec-rule)}
.tpl-regionstay :is(.rm-things,.rm-gets,.rm-seasons){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:26px}
.tpl-regionstay :is(.rm-thing,.rm-get,.rm-season,.rm-day){display:flex;flex-direction:column;min-width:0;background:var(--white);border:1px solid var(--tec-card-line);border-radius:var(--tec-radius);box-shadow:var(--tec-card-shadow)}
.tpl-regionstay .rm-thing{overflow:hidden}
.tpl-regionstay .rm-ph{aspect-ratio:16/10;overflow:hidden;background:var(--stone)}
.tpl-regionstay .rm-ph :is(picture,img){display:block;width:100%;height:100%}
.tpl-regionstay .rm-ph img{object-fit:cover}
.tpl-regionstay .rm-body{display:flex;flex-direction:column;flex:1;gap:6px;padding:14px 16px 16px}
.tpl-regionstay .rm-town{display:flex;align-items:center;gap:6px;margin:0;font-size:var(--fs-sm);font-weight:600;color:var(--graphite)}
.tpl-regionstay .rm-town svg{width:16px;height:16px;flex:none;color:var(--tec-blue)}
.tpl-regionstay .rm-town a{color:var(--tec-blue);text-decoration:underline;text-underline-offset:3px}
.tpl-regionstay :is(.rm-thing,.rm-get,.rm-season,.rm-day) h3{margin:0;font:600 var(--fs-md)/1.3 var(--sans);letter-spacing:0;color:var(--tec-navy)}
.tpl-regionstay :is(.rm-thing,.rm-get,.rm-season,.rm-day) p{margin:0;font-size:var(--fs-sm);line-height:var(--lh-body);color:var(--mk-muted)}
.tpl-regionstay .rm-thing .rm-drive{font-weight:600;color:var(--mk-ink)}
.tpl-regionstay .rm-acts{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:auto;padding-top:10px}
.tpl-regionstay .rm-acts .pill{width:100%;min-height:44px;justify-content:center;white-space:normal;text-align:center;line-height:1.25}
/* an official ticket page, Trainline and the car hire book like a partner does: yellow (the spec's §1.4, §1.5) */
.tpl-regionstay a.pill[data-external-booking]:not(#tec){background:var(--tec-yellow);border:1px solid var(--tec-yellow-edge);color:var(--tec-on-yellow);box-shadow:none;text-decoration:none}
@media(hover:hover){.tpl-regionstay a.pill[data-external-booking]:not(#tec):hover{background:var(--tec-yellow-hover);border-color:var(--tec-yellow-edge);color:var(--tec-on-yellow)}}
.tpl-regionstay a.pill[data-external-booking]:not(#tec):active{background:var(--tec-yellow-active)}
.tpl-regionstay .rm-tlink{display:inline-flex;align-items:center;gap:4px;min-height:32px;font-size:var(--fs-sm);font-weight:600;color:var(--tec-blue);text-decoration:underline;text-underline-offset:3px}
/* in a column of bookings, a link that wraps keeps its arrow after its last word, not alone at the column's edge */
.tpl-regionstay .rm-acts .rm-tlink{display:block;min-height:32px;padding:5px 0;line-height:1.4}
.tpl-regionstay .rm-get,.tpl-regionstay .rm-season{gap:10px;padding:18px}
.tpl-regionstay .rm-get-t{display:flex;flex-direction:column;flex:1;gap:6px}
.tpl-regionstay .rm-get-t+.rm-acts{padding-top:6px}
.tpl-regionstay .rm-tile{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--mk-pill);color:var(--tec-blue)}
.tpl-regionstay .rm-tile svg{width:22px;height:22px}
.tpl-regionstay .rm-links{display:flex;flex-wrap:wrap;gap:6px 14px}
.tpl-regionstay .rm-links .go{display:inline-flex;align-items:center;min-height:32px;font-weight:600;color:var(--tec-blue)}
.tpl-regionstay .rm-days{display:grid;gap:12px;margin-top:26px}
.tpl-regionstay .rm-day{gap:6px;padding:16px 18px}
.tpl-regionstay .rm-stay a{display:inline-flex;align-items:center;min-height:32px;font-weight:600;color:var(--tec-blue);text-decoration:underline;text-underline-offset:3px}
@media(max-width:1100px){
  .tpl-regionstay :is(.rm-things,.rm-gets,.rm-seasons){grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* getting there on a computer and a tablet: one row a way in, the icon, its words, and its bookings at the right (from
   901px) or under the words, each row as tall as its own words (layout review, 28 Nov 2026: four panels side by side
   stretched to the height of the train's three searches, the air and car panels mostly empty) */
@media(min-width:701px){
  .tpl-regionstay .rm-gets{grid-template-columns:minmax(0,1fr);gap:12px}
  .tpl-regionstay .rm-get{display:grid;grid-template-columns:42px minmax(0,1fr) auto;column-gap:18px;align-items:start;padding:18px 20px}
  .tpl-regionstay .rm-get-t{max-width:68ch}
  .tpl-regionstay .rm-get-t+.rm-acts{width:300px;margin:0;padding-top:0}
}
@media(min-width:701px) and (max-width:900px){
  .tpl-regionstay .rm-get{grid-template-columns:42px minmax(0,1fr)}
  .tpl-regionstay .rm-get-t+.rm-acts{grid-column:2;width:min(100%,320px)}
}
/* phones: the things, the ways in and the seasons are one row that scrolls sideways (js/tec.js) */
@media(max-width:700px){
  .tpl-regionstay :is(.rm-things,.rm-gets,.rm-seasons){grid-template-columns:minmax(0,1fr);gap:12px;margin-top:18px}
  .tpl-regionstay :is(.rm-things,.rm-gets,.rm-seasons).tec-row{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:min(80%,300px);align-items:stretch;padding-top:7px;padding-bottom:14px}
  /* the ways in and the seasons: each card as tall as its own words, so the short ones aren't mostly empty beside the
     tallest (the train's three searches, Corsica's summer) (layout review, 28 Nov 2026; as the tours pages' rows) */
  .tpl-regionstay :is(.rm-gets,.rm-seasons).tec-row{align-items:start}
  .tpl-regionstay .rm-days{margin-top:18px;gap:10px}
}

/* ---------- the trip cards: one sideways row from 821px (js/tec.js), stacked as on the city pages below ---------- */
@media(min-width:821px){
  .tpl-regionstay .mk-trip-grid.tec-row{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(260px,calc((100% - 32px) / 3));
    overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;padding:4px 2px 12px}
  .tpl-regionstay .mk-trip-grid.tec-row::-webkit-scrollbar{display:none}
  .tpl-regionstay .mk-trip-grid.tec-row>*{scroll-snap-align:start;min-width:0}
}
/* below that, as on the city pages: tec.js gives the grid its .tec-row class at every width, and tec.css makes any
   .tec-row a phone's sideways row at 700px and below, so the grid takes back stay-market.css's stacked cards there */
@media(max-width:700px){
  .tpl-regionstay .mk-trip-grid.tec-row{grid-template-columns:minmax(0,1fr);grid-auto-flow:row;grid-auto-columns:auto;overflow:visible;
    scroll-snap-type:none;scroll-padding-inline:0;margin-inline:0;padding:0;align-items:normal}
}
/* its arrows above the row from 821px, as the destinations pages' rows have them; no swipe words under a mouse */
@media(min-width:821px){
  .tpl-regionstay .mk-trip .tec-swipe{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 0 0}
  .tpl-regionstay .mk-trip .tec-swipe[hidden]{display:none}
  .tpl-regionstay .mk-trip .tec-swipe+.mk-trip-grid{margin-top:12px}
  .tpl-regionstay .mk-trip .tec-swipe-hint{display:inline-flex;align-items:center;gap:8px;font-size:var(--fs-sm);font-weight:600;color:var(--graphite)}
  .tpl-regionstay .mk-trip .tec-swipe-hint svg{width:22px;height:22px;flex:none;color:var(--forest)}
  .tpl-regionstay .mk-trip .tec-swipe-btns{display:flex;gap:8px;margin-left:auto}
  .tpl-regionstay .mk-trip .tec-swipe-btns button{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;border:1px solid var(--field-line);background:var(--white);color:var(--navy);cursor:pointer}
  .tpl-regionstay .mk-trip .tec-swipe-btns button:disabled{opacity:.4;cursor:default}
  .tpl-regionstay .mk-trip .tec-swipe-btns button:focus-visible{outline:var(--focus);outline-offset:2px}
}
@media(min-width:821px) and (hover:hover) and (pointer:fine){.tpl-regionstay .mk-trip .tec-swipe-hint{display:none}}

/* ---------- the questions and the closing band ---------- */
.tpl-regionstay .mk-faq summary h3{margin:0;font:inherit;letter-spacing:0;color:inherit}
.tpl-regionstay .mk-final h2.mk-final-t{margin:0;font:400 var(--fs-2xl)/1.2 var(--serif);letter-spacing:var(--track-display);color:var(--white)}
.tpl-regionstay .mk-final .rm-back{margin:10px 0 0;font-size:var(--fs-sm);color:rgba(255,255,255,.84)}
.tpl-regionstay .mk-final .rm-back a{color:var(--white);text-decoration:underline;text-underline-offset:3px}

/* ---------- the photo credits ---------- */
.tpl-regionstay .mk-credits .rm-cmore{margin:10px 0 0;font-size:var(--fs-sm);color:var(--mk-muted)}
.tpl-regionstay .mk-credits .rm-cmore a{color:var(--tec-blue)}
/* a long region name (Chamonix and Mont Blanc) in the closing band's button: on a narrow phone the button takes the
   row and its words wrap, centered, rather than pushing the page sideways (29 Nov 2026) */
@media (max-width:420px){
  .tpl-regionstay .mk-final-acts{width:100%}
  .tpl-regionstay .mk-final-acts .pill{white-space:normal;max-width:100%;text-align:center;justify-content:center;flex:1 1 100%;height:auto;min-height:44px;line-height:1.3;padding-top:10px;padding-bottom:10px}
}
/* on a phone the field is the panel's whole first row: a first option longer than 26 characters takes 14px there, so
   "Anywhere in Chamonix and Mont Blanc" shows whole on an iPhone 13 (gen-pages.py marks the field mk-town-long) */
@media(max-width:700px){.tpl-regionstay .mk-town-long select{font-size:var(--fs-sm)}}
/* on a phone the sticky search bar's place and the booking bar's label keep to one line: a long town chosen in the
   sticky bar ("Mont Blanc · Les Contamines-Montjoie") ends with an ellipsis rather than making the bar taller (the batch
   review, 29 Nov 2026; a long region name has its "short_name" there) */
@media(max-width:700px){.tpl-regionstay .mk-sticky-desc strong,.tpl-regionstay .mk-mbar span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
/* on a computer the search panel is one row: a long first option ("Anywhere in Chamonix and Mont Blanc") gets the wider
   column, so it shows whole instead of ending in an ellipsis (29 Nov 2026) */
@media(min-width:1101px){.tpl-regionstay .mk-panel:has(.mk-town-long){grid-template-columns:1.9fr 1fr 1fr auto}}
