/* ==========================================================================
   NearStay — Front page (home) styles.
   A section-for-section reproduction of the HotelsNearPOI homepage, but every
   colour is bound to the theme's --col-* Customizer variables (see
   nearstay_dynamic_css) so the whole page rebrands with the rest of the site.
   Only loaded on the front page (see functions.php).
   ========================================================================== */

.hx{
  /* Local aliases → theme tokens. Rebranding the theme rebrands the homepage. */
  --hx-navy: var(--col-primary, #0E2049);
  --hx-navy2: var(--col-primary, #0E2049);          /* hover, lightened just below */
  --hx-cream: var(--col-beige, #f8f7f3);
  --hx-ink: #111;
  --hx-gray: #f1f1f1;
  font-family: var(--font-family, "DM Sans", Helvetica, Arial, sans-serif);
  color: var(--hx-ink);
}
/* Lighten the primary for hover states where the browser supports color-mix
   (falls back to the plain primary above otherwise). */
@supports (background: color-mix(in srgb, red, blue)){
  .hx{ --hx-navy2: color-mix(in srgb, var(--col-primary, #0E2049) 84%, #fff); }
}
.hx h1,.hx h2,.hx h3{font-family:inherit;margin:0;line-height:1.2}
/* never underline homepage links, even though they are clickable */
.hx a,.hx a:hover,.hx a:focus,.hx-card b,.hx-card:hover b,.hx-split-aside h2 a,.hx-split-aside h2 a:hover,.hx-sec-link,.hx-sec-link:hover{text-decoration:none!important}
.hx-full{width:100vw;position:relative;left:50%;margin-left:-50vw}
.hx-wrap{max-width:1180px;margin:0 auto;padding:0 24px}

/* ---------- HERO ---------- */
.hx-hero{position:relative;min-height:560px;display:flex;align-items:flex-start;overflow:hidden;background:var(--hx-navy)}
.hx-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;transition:opacity .6s ease;opacity:1}
.hx-hero-bg.hx-fadeout{opacity:0}
.hx-hero-shade{position:absolute;inset:0;background:linear-gradient(100deg,rgba(0,0,0,.55) 0%,rgba(0,0,0,.28) 55%,rgba(0,0,0,.12) 100%)}
.hx-hero-inner{position:relative;z-index:2;width:100%;padding-top:74px;padding-bottom:110px}
.hx-hero h1{color:#fff!important;font-weight:600;font-size:30px;text-shadow:0 2px 14px rgba(0,0,0,.35);margin-bottom:24px}
.hx-searchbar{display:flex;background:#fff;overflow:visible;max-width:1020px;box-shadow:0 10px 30px rgba(0,0,0,.28);position:relative}
.hx-searchbar .hx-cell{display:flex;align-items:center;gap:10px;padding:14px 18px;border-right:1px solid #e5e7ee;background:#fff}
.hx-cell-dest{flex:1.6;min-width:0;position:relative}
.hx-cell-date{flex:1}
.hx-cell svg{flex:none}
.hx-cell-label{font-size:12px;font-weight:700;color:var(--hx-ink);display:block;margin-bottom:1px}
.hx-searchbar input[type=text]{border:0;outline:0;width:100%;font-size:16px;font-family:inherit;color:var(--hx-ink);background:transparent;padding:6px 0}
.hx-searchbar input[type=date]{border:0;outline:0;width:100%;font-size:15px;font-family:inherit;color:var(--hx-ink);background:transparent;padding:0}
.hx-searchbar input::placeholder{color:#8a90a3}
.hx-btn-search{flex:0 0 200px;background:var(--hx-navy);color:#fff;border:0;font-size:16px;font-weight:600;font-family:inherit;cursor:pointer;transition:background .2s;padding:15px 16px}
.hx-btn-search:hover{background:var(--hx-navy2)}
/* autocomplete suggestions */
.hx-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}
.hx-suggest a{display:block;padding:11px 16px;text-decoration:none;color:var(--hx-ink);font-size:15px;border-bottom:1px solid #eef0f5}
.hx-suggest a small{display:block;color:#7a8095;font-size:12px;text-transform:uppercase;letter-spacing:.03em}
.hx-suggest a:hover,.hx-suggest a.hx-act{background:var(--hx-gray)}
.hx-compare{display:flex;align-items:center;gap:9px;margin-top:14px;color:#fff;font-size:15px;font-weight:500;text-shadow:0 1px 6px rgba(0,0,0,.4)}
.hx-compare input{width:18px;height:18px;accent-color:var(--hx-navy)}
.hx-recent{margin-top:26px;display:none}
.hx-recent h2{color:#fff!important;font-size:22px;font-weight:600;background:rgba(0,0,0,.4);display:inline-block;padding:3px 10px;margin-bottom:16px}
.hx-recent-row{display:flex;gap:22px;flex-wrap:wrap}
.hx-recent-card{background:#fff;min-width:230px;max-width:320px;flex:1;padding:16px 20px;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.22);transition:transform .15s}
.hx-recent-card:hover{transform:translateY(-2px)}
.hx-recent-card b{display:block;font-size:16px;margin-bottom:4px}
.hx-recent-card span{display:block;font-size:14px;color:#3c4257}
.hx-recent-card small{color:#7a8095}
.hx-hero-caption{position:absolute;left:0;bottom:0;z-index:5;background:rgba(6,12,28,.66);color:#fff!important;padding:11px 20px;font-size:14.5px;font-weight:500;letter-spacing:.01em;text-decoration:none;display:block;max-width:70%}
.hx-hero-caption:hover{background:rgba(6,12,28,.85);color:#fff!important;text-decoration:underline}
.hx-hero-arrows{position:absolute;right:18px;bottom:14px;z-index:3;display:flex;gap:10px}
.hx-hero-arrows button{width:40px;height:40px;border:1.5px solid rgba(255,255,255,.85);background:rgba(0,0,0,.3);color:#fff;font-size:18px;cursor:pointer;line-height:1}
.hx-hero-arrows button:hover{background:rgba(0,0,0,.6)}
/* ---------- SECTIONS ---------- */
.hx-sec{padding:56px 0}
.hx-sec-head{display:flex;align-items:center;justify-content:space-between;gap:26px;margin-bottom:28px;flex-wrap:wrap}
.hx-sec-head h2{font-size:24px;font-weight:600;color:var(--hx-navy)}
.hx-sec-link{color:var(--hx-navy)!important;text-decoration:none}
.hx-sec-link:hover{text-decoration:underline}
/* ---------- SPLIT SECTION : heading + View all in LEFT rail, cards RIGHT ---------- */
.hx-splitsec{padding:56px 0}
.hx-split{display:grid;grid-template-columns:minmax(200px,1fr) 3fr;gap:26px 46px;align-items:start}
.hx-split-aside h2{font-size:26px;font-weight:700;color:var(--hx-navy);line-height:1.3;margin-bottom:24px}
.hx-split-aside h2 a{color:var(--hx-navy)!important;text-decoration:none}
.hx-split-aside h2 a:hover{text-decoration:underline}
@media(max-width:900px){.hx-split{grid-template-columns:1fr;gap:20px}.hx-split-aside h2{margin-bottom:14px;font-size:23px}}
.hx-btn{display:inline-block;background:var(--hx-navy);color:#fff!important;font-size:15px;font-weight:600;padding:12px 24px;text-decoration:none;transition:background .2s}
.hx-btn:hover{background:var(--hx-navy2)}
.hx-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:26px 26px}
.hx-card{text-decoration:none;color:var(--hx-ink);display:block}
.hx-card img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block;margin-bottom:10px}
.hx-card b{font-size:16px;font-weight:600;color:var(--hx-navy);line-height:1.35}
.hx-card:hover b{text-decoration:underline}
.hx-card small{display:block;color:#7a8095;font-weight:600;font-size:12.5px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px}
/* ---------- TESTIMONIAL (image + card) ---------- */
.hx-testiwrap{background:var(--hx-cream)}
.hx-testi{display:flex;align-items:stretch;gap:0;min-height:340px}
.hx-testi-img{flex:1;background-size:cover;background-position:center;min-height:300px;background-color:var(--hx-navy)}
.hx-testi-card{flex:1.15;background:#fff;box-shadow:0 18px 46px rgba(0,0,0,.14);padding:44px 48px;margin:36px 0 36px -70px;position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center}
.hx-testi-card h3{color:var(--hx-navy)!important;font-size:22px;font-weight:600;margin-bottom:20px}
.hx-testi-card blockquote{margin:0;font-size:19px;line-height:1.6;font-weight:400;color:#2a2f3d;min-height:120px}
.hx-testi-card cite{display:block;margin-top:16px;font-style:normal;font-weight:700;font-size:15px;color:var(--hx-navy)}
.hx-testi-card cite span{display:block;font-weight:400;font-size:13.5px;color:#7a8095;margin-top:2px}
.hx-qdots{margin-top:22px;display:flex;gap:8px}
.hx-qdots button{width:10px;height:10px;border-radius:50%;border:1px solid var(--hx-navy);background:transparent;cursor:pointer;padding:0}
.hx-qdots button.hx-on{background:var(--hx-navy)}
/* ---------- BEST HOTELS IN : destination image tiles ---------- */
.hx-citytile{position:relative;display:block;text-decoration:none;overflow:hidden;background:var(--hx-navy)}
.hx-citytile img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;transition:transform .45s ease}
.hx-citytile:hover img{transform:scale(1.06)}
.hx-citytile span{position:absolute;left:0;right:0;bottom:0;padding:34px 18px 15px;background:linear-gradient(transparent,rgba(0,0,0,.82));color:#fff!important;font-size:18px;font-weight:600;letter-spacing:.01em}
/* ---------- EXPERTS BAND ---------- */
.hx-experts{padding:64px 0;background:#fff}
.hx-exp-flex{display:flex;align-items:center;gap:44px}
.hx-exp-card{flex:1;background:var(--hx-navy);color:#fff;padding:38px 40px}
.hx-exp-card h2{color:#fff!important;font-size:24px;font-weight:600;margin-bottom:12px}
.hx-exp-card p{color:#d7ddeb;line-height:1.6;margin:0 0 20px;font-size:16px}
.hx-exp-card .hx-btn{background:#fff;color:var(--hx-navy)!important}
.hx-exp-card .hx-btn:hover{background:#e9edf5}
.hx-exp-photos{flex:1.2;display:flex;align-items:center;justify-content:center;flex-wrap:wrap}
.hx-exp-photos > *{margin-left:-26px;display:inline-flex}
.hx-exp-photos > *:first-child{margin-left:0}
.hx-exp-photos > *:nth-child(odd){transform:rotate(-4deg)}
.hx-exp-photos > *:nth-child(even){transform:rotate(3deg) translateY(-10px)}
.hx-exp-photos img{width:132px;height:132px;object-fit:cover;border:5px solid #fff;border-radius:50%;box-shadow:0 8px 22px rgba(0,0,0,.25);display:block}
/* ---------- NEWSLETTER ---------- */
.hx-news{background:var(--hx-navy);padding:52px 0}
.hx-news .hx-wrap{display:flex;align-items:center;gap:44px;flex-wrap:wrap}
.hx-news-txt{flex:1;min-width:280px}
.hx-news h2{font-size:23px;font-weight:600;color:#fff!important;margin-bottom:10px}
.hx-news p{color:#c7cede;margin:0;max-width:560px;font-size:15px;line-height:1.6}
.hx-news form{flex:0 0 auto;display:flex;gap:0;min-height:52px}
.hx-news input{padding:14px 16px;border:0;font-family:inherit;font-size:15px;width:300px;max-width:66vw;border-radius:0;background:#fff;color:var(--hx-ink)}
.hx-news button{border:0;cursor:pointer;font-family:inherit;background:#fff;color:var(--hx-navy);font-weight:700;font-size:15px;padding:14px 28px}
.hx-news button:hover{background:#e9edf5}
/* ---------- MOBILE ---------- */
@media(max-width:900px){
 .hx-hero{min-height:520px}
 .hx-hero-inner{padding-top:44px;padding-bottom:130px}
 .hx-hero h1{font-size:24px}
 .hx-searchbar{flex-wrap:wrap}
 .hx-cell-dest{flex:1 1 100%;border-bottom:1px solid #e5e7ee;border-right:0}
 .hx-cell-date{flex:1}
 .hx-btn-search{flex:1 1 100%;padding:15px}
 .hx-grid3{grid-template-columns:repeat(2,1fr)}
 .hx-exp-flex{flex-direction:column}
 .hx-exp-photos img{width:96px;height:96px}
 .hx-testi{flex-direction:column}
 .hx-testi-card{margin:-40px 16px 0;padding:32px 26px}
 .hx-testi-card blockquote{font-size:17px}
}
@media(max-width:560px){
 .hx-grid3{grid-template-columns:1fr}
 .hx-sec{padding:42px 0}
 .hx-cell-date{padding:12px 14px}
 .hx-recent-card{min-width:100%}
}
