/* ==========================================================================
   NearStay — hub page templates (Where to stay / Best hotels in / Destinations).
   Reproduces the HotelsNearPOI dx- hub layouts as self-contained theme styles,
   with every colour bound to the theme's --col-* Customizer variables.
   Loaded only on those pages (see functions.php).
   ========================================================================== */
.dx{
  --dx-navy: var(--col-primary, #0E2049);
  --dx-navy2: var(--col-primary, #0E2049);
  --dx-cream: var(--col-beige, #f8f7f3);
  --dx-ink: #111;
  --dx-gray: #f1f1f1;
  font-family: var(--font-family, "DM Sans", Helvetica, Arial, sans-serif);
  color: var(--dx-ink);
}
@supports (background: color-mix(in srgb, red, blue)){
  .dx{ --dx-navy2: color-mix(in srgb, var(--col-primary, #0E2049) 84%, #fff); }
}
/* `font-family:inherit` was here to shake off base.css's heading face. It also
   outranks brand.css's `h1,h2,h3{font-family:var(--font-heading)}` (0,1,1 vs
   0,0,1), which is why every heading inside .dx rendered in the body face while
   the rest of the site used Manrope — and why the Styles rail here did not
   match the identical rail on a taxonomy page. Naming the token keeps the
   original intent and restores the brand face; without brand.css it still
   falls back to inheriting. */
.dx h1,.dx h2,.dx h3{font-family:var(--font-heading,inherit);margin:0;line-height:1.2}
.dx a{text-decoration:none}
.dx-full{width:100%;position:relative;left:auto;margin-left:0}
.dx-wrap{max-width:1180px;margin:0 auto;padding:0 24px}
/* ---------- SEARCH BAND ----------
   One visual language across all discovery hubs: a quiet sky field and the
   elevated white search card used on Destinations. */
.dx-searchband{background:var(--brand-sky,var(--col-secondary,#cbe7ff));padding:38px 0}
.dx-searchcard{max-width:980px;margin:0 auto;padding:10px 12px 12px;background:#fff;border:1px solid rgba(16,24,40,.06);border-radius:14px;box-shadow:0 10px 26px rgba(16,24,40,.12);box-sizing:border-box}
.dx-searchband h2{color:var(--dx-navy)!important;font-size:19px;font-weight:600;margin-bottom:14px}
.dx-searchbar{display:flex;background:#fff;overflow:visible;border:1px solid #dfe4ec;border-radius:9px;position:relative}
.dx-searchbar .dx-cell{display:flex;align-items:center;gap:10px;padding:12px 16px;border-right:1px solid #e5e7ee;background:#fff}
.dx-cell-dest{flex:1.6;min-width:0;position:relative}
.dx-cell-date{flex:1}
.dx-cell-guests{flex:1.15;min-width:0}
.dx-cell svg{flex:none;stroke:var(--dx-navy)}
.dx-cell-label{font-size:12px;font-weight:700;color:var(--dx-ink);display:block;margin-bottom:1px}
.dx-searchbar input[type=text]{border:0;outline:0;width:100%;font-size:16px;font-family:inherit;color:var(--dx-ink);background:transparent;padding:5px 0}
.dx-searchbar input[type=date]{border:0;outline:0;width:100%;font-size:15px;font-family:inherit;color:var(--dx-ink);background:transparent;padding:0}
.dx-cell-guests>div{min-width:0;width:100%}
.dx-cell-guests select{appearance:none;-webkit-appearance:none;border:0;outline:0;width:100%;min-width:0;padding:0 18px 0 0;background:transparent;color:var(--dx-ink);font-family:inherit;font-size:14px;font-weight:600;line-height:20px;white-space:nowrap;text-overflow:ellipsis;cursor:pointer}
.dx-searchbar input::placeholder{color:#8a90a3}
.dx-searchband .dx-btn-search{flex:0 0 170px;background:var(--brand-coral,var(--col-red,#ff5656));color:#fff;border:0;border-radius:8px;font-size:16px;font-weight:700;font-family:inherit;cursor:pointer;transition:background .2s,transform .2s;padding:14px 16px;margin:-1px}
.dx-searchband .dx-btn-search:hover{background:var(--brand-coral-dark,#e54848);color:#fff;transform:translateY(-1px)}
.dx-suggest{position:absolute;top:100%;left:0;right:0;background:#fff;z-index:30;box-shadow:0 14px 30px rgba(0,0,0,.25);display:none;max-height:290px;overflow:auto}
.dx-suggest a{display:block;padding:11px 16px;text-decoration:none;color:var(--dx-ink);font-size:15px;border-bottom:1px solid #eef0f5}
.dx-suggest a small{display:block;color:#7a8095;font-size:12px;text-transform:uppercase;letter-spacing:.03em}
.dx-suggest a:hover,.dx-suggest a.dx-act{background:var(--dx-gray)}
.dx-compare{display:flex;align-items:center;gap:9px;margin:10px 2px 0;color:var(--dx-navy);font-size:14px;font-weight:600}
.dx-compare input{width:17px;height:17px;accent-color:var(--brand-blue,#2563eb)}
/* ---------- BREADCRUMB ---------- */
.dx-crumb{padding:16px 0 0;font-size:13px;color:#7a8095}
.dx-crumb a{color:var(--dx-navy);text-decoration:none}
.dx-crumb a:hover{opacity:.7}
/* ---------- SHARED CARD ---------- */
.dx-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:30px 26px;align-items:stretch}
.dx-hub-map{margin-top:34px}
.dx-hub-map--bottom{margin-top:46px}
.dx-hub-map .map_container{border-radius:8px;overflow:hidden}
.dx-card{text-decoration:none;color:var(--dx-ink);display:flex;flex-direction:column}
.dx-card img{width:100%;aspect-ratio:16/11;object-fit:cover;display:block;margin-bottom:12px;background:var(--dx-navy)}
.dx-card small{display:block;min-height:1.4em;max-height:1.4em;overflow:hidden;color:#7a8095;font-weight:600;font-size:12px;line-height:1.4;text-transform:uppercase;letter-spacing:.04em;margin-bottom:3px;white-space:nowrap;text-overflow:ellipsis}
.dx-card > b{font-size:17px;font-weight:600;color:var(--dx-navy);line-height:1.35;margin-bottom:8px;display:-webkit-box;min-height:2.7em;max-height:2.7em;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.dx-card > p{margin:0 0 10px;font-size:14.5px;line-height:1.55;color:#3c4257;display:-webkit-box;min-height:7.75em;max-height:7.75em;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:5}
.dx-card .dx-read{margin-top:auto;color:var(--dx-navy);font-weight:600;font-size:14.5px}
.dx-card:hover b{text-decoration:underline}
.dx-card:hover .dx-read{text-decoration:underline}
/* ---------- WHERE TO STAY : intro rail + grid ---------- */
.dx-wts-split{display:grid;grid-template-columns:minmax(200px,1fr) 3fr;gap:34px 54px;align-items:start;padding:22px 0 64px}
.dx-wts-aside h1{font-size:clamp(1.8rem,3vw,2rem);font-weight:700;color:var(--dx-navy);line-height:1.2;margin:0 0 16px}
.dx-wts-aside p{margin:0;font-size:15px;line-height:1.65;color:#3c4257}
.dx-wts-split .dx-grid3{gap:34px 26px}
/* ---------- BEST HOTELS IN : top title + full-width directory + popular ---------- */
.dx-bhi-head{padding:22px 0 30px}
.dx-bhi-head h1{font-size:clamp(1.8rem,3vw,2rem);font-weight:700;color:var(--dx-navy);line-height:1.2;margin:0}
.dx-bhi-main{width:100%}
.dx-bhi-main .dx-grid3{grid-template-columns:repeat(4,minmax(0,1fr))}
.dx-tabs{display:flex;flex-wrap:wrap;gap:28px;border-bottom:1px solid #d9d7ce;margin:0}
.dx-tab{background:none;border:0;padding:0 0 12px;font-family:inherit;font-size:15.5px;font-weight:500;color:var(--dx-navy);cursor:pointer;position:relative;opacity:.7;white-space:nowrap}
.dx-tab:hover{opacity:1}
.dx-tab.dx-on{opacity:1;font-weight:700}
.dx-tab.dx-on::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--dx-navy)}
.dx-region{display:none;padding:28px 0 0}
.dx-region.dx-on{display:block}
.dx-region h2{font-size:22px;font-weight:700;color:var(--dx-navy);margin-bottom:18px}
.dx-region h2 a{color:var(--dx-navy);text-decoration:none}
.dx-region h2 a:hover{text-decoration:underline;text-underline-offset:3px}
.dx-dir{display:grid;grid-template-columns:repeat(3,1fr);gap:6px 40px}
.dx-dir a{display:flex;justify-content:space-between;gap:10px;text-decoration:none;color:#20304f;font-size:15.5px;font-weight:500;padding:8px 0}
.dx-dir a:hover{color:var(--dx-navy);opacity:.72}
.dx-dir a span{color:#b7bccb;font-weight:400}
.dx-tree-grid,.dx-country-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 42px;align-items:start}
.dx-country-block{min-width:0;padding:0 0 22px;border-bottom:1px solid #dfe4ec}
.dx-country-block h2{font-size:20px;margin:0 0 10px}
.dx-country-places{display:grid;gap:2px}
.dx-tree-leaf,.dx-tree-item summary{min-height:34px;box-sizing:border-box}
.dx-tree-leaf,.dx-tree-item summary a{color:var(--dx-navy);font-size:15px;font-weight:500;text-decoration:none}
.dx-tree-leaf{display:flex;align-items:center;padding:7px 0}
.dx-tree-leaf:hover,.dx-tree-item summary a:hover{text-decoration:underline;text-underline-offset:3px}
.dx-tree-item{border-bottom:1px solid #e9edf2}
.dx-tree-item summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;cursor:pointer;list-style:none}
.dx-tree-item summary::-webkit-details-marker{display:none}
.dx-tree-plus{flex:0 0 auto;font-size:19px;font-weight:400;line-height:1;color:var(--brand-blue,#2563eb);transition:transform .16s ease}
.dx-tree-item[open] .dx-tree-plus{transform:rotate(45deg)}
/* The country row is a fold of its own: same affordance as a state row, one
   level up. Closed by default so a continent tab opens as a list of countries
   rather than several hundred place rows. */
.dx-country-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:2px 0}
.dx-country-fold>summary::-webkit-details-marker{display:none}
.dx-country-fold>summary h2{margin:0}
.dx-country-fold>summary:hover h2 a{text-decoration:underline;text-underline-offset:3px}
.dx-country-fold>summary .dx-tree-plus{font-size:22px}
.dx-country-fold[open]>summary .dx-tree-plus{transform:rotate(45deg)}
.dx-country-fold[open]>summary{margin-bottom:8px}
.dx-tree-children{display:grid;gap:1px;padding:0 0 9px 14px;border-left:2px solid var(--brand-sky,#cbe7ff)}
.dx-tree-children a{padding:5px 8px;color:#475467;font-size:14px;text-decoration:none}
.dx-tree-children a:hover{color:var(--brand-blue,#2563eb);text-decoration:underline}
.dx-pop{padding:46px 0 64px}
.dx-pop>h2{font-size:22px;font-weight:700;color:var(--dx-navy);margin-bottom:22px}
/* ---------- DESTINATIONS : sidebar + grid ---------- */
.dx-body{display:flex;gap:44px;padding:26px 0 64px;align-items:flex-start}
.dx-side{flex:0 0 240px}
.dx-side h1{font-size:clamp(1.7rem,3vw,1.95rem);font-weight:700;color:var(--dx-navy);line-height:1.2;margin:0 0 20px}
/* .dx-side h2 is the rail heading — also shared (see theme.css). Restating it
   here would win on source order and re-fork the design, same as .dx-cats. */
.dx-side ul{list-style:none;margin:0;padding:0}
.dx-side li a{display:flex;justify-content:space-between;gap:10px;text-decoration:none;color:var(--dx-navy);font-size:15.5px;font-weight:500;padding:9px 0;border-bottom:1px solid #e3e1d8}
.dx-side li a:hover{opacity:.68}
.dx-side li.is-active a{font-weight:700}
.dx-side li a span{color:#8a90a3;font-weight:400}
.dx-side h2.dx-cat-h{margin-top:34px}
/* .dx-cats itself is styled by the shared STYLES RAIL block in theme.css — the
   one definition all three markups of this menu consume. Nothing about the pill
   may be restated here: hubs.css loads AFTER theme.css, so any property named
   again below would win on source order and silently un-share this rail. */
.dx-main{flex:1;min-width:0}
.dx-main>h1{font-size:26px;font-weight:700;color:var(--dx-navy);margin-bottom:24px}
/* ---------- MOBILE ---------- */
@media(max-width:900px){
 .dx-wts-split{grid-template-columns:1fr;gap:20px}
 .dx-grid3{grid-template-columns:repeat(2,1fr)}
 .dx-dir,.dx-tree-grid,.dx-country-grid{grid-template-columns:repeat(2,1fr)}
 .dx-body{flex-direction:column;gap:26px}
 .dx-side{flex:1 1 auto;width:100%}
 /* Destinations + Styles always sit AFTER the results on a phone. Stacked in DOM
    order the rail is the whole first screen — on /best-hotels/ it pushed the
    first hotel card past 2000px — so the reader met a filter menu instead of
    the hotels it filters. */
 .dx-body>.dx-side{order:2}
 .dx-body>.dx-main{order:1}
 .dx-searchbar{flex-wrap:wrap}
 .dx-cell-dest{flex:1 1 100%;border-bottom:1px solid #e5e7ee;border-right:0}
 .dx-cell-date{flex:1 1 30%}
 .dx-cell-guests{flex:1 1 34%;border-right:0}
 .dx-searchband .dx-btn-search{flex:1 1 100%;padding:14px;margin:-1px}
 .dx-tabs{gap:18px}
}
@media(max-width:560px){
 .dx-grid3{grid-template-columns:1fr}.dx-dir,.dx-tree-grid,.dx-country-grid{grid-template-columns:1fr}
	.dx-searchband{padding:22px 0}
	.dx-searchcard{padding:8px;border-radius:12px}
 .dx-cell-date{flex:1 1 50%}
 .dx-cell-guests{flex:1 1 100%;border-top:1px solid #e5e7ee}
}
