/* Interactive preview styles for the Dubai Layover Time Checker.
   Colours and fonts come from live site.css (--ink, --sand, --g3–g6).
   No extra libraries. */
.preview-banner{
  background:#9c7322;
  color:#fff;
  text-align:center;
  font-size:13.5px;
  font-weight:600;
  padding:8px 16px;
  letter-spacing:.02em;
}
.preview-banner a{color:#fff;text-decoration:underline}

/* Compact hero so the tool card is the first thing you use */
.hero.checker-hero{
  min-height:0;
  padding:28px 0 64px;
  background-color:#171a20;
  background-size:cover;
  background-position:center 30%;
  color:#fff;
}
.hero.checker-hero .crumbs,
.hero.checker-hero .crumbs a{color:rgba(255,255,255,.82)}
.hero.checker-hero h1{
  margin:8px 0 10px;
  font-size:clamp(28px,4.5vw,42px);
  line-height:1.15;
  color:#fff;
}
.hero.checker-hero .lede{
  max-width:36rem;
  margin:0;
  font-size:16.5px;
  line-height:1.5;
  color:rgba(255,255,255,.92);
}

main.content.checker-main{
  padding-top:0;
  background:var(--sand);
}
.checker-stage{
  margin-top:-44px;
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:14px;
  padding-bottom:8px;
  min-width:0;
  max-width:100%;
}
.checker-stage > *{min-width:0;max-width:100%}
#results,.result-shell{min-width:0;max-width:100%}
.photo-row{min-width:0;max-width:100%}

.tool-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:20px 18px 18px;
  box-shadow:0 16px 40px -24px rgba(23,26,32,.35);
}
@media(min-width:720px){
  .tool-card{padding:26px 26px 22px;border-radius:24px}
}

.card-kicker{
  display:block;
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--g6);
  margin:0 0 6px;
}
.tool-card h2{
  margin:0 0 16px;
  font-size:22px;
  line-height:1.25;
}
.hours-head{margin:0 0 8px}
@media(min-width:720px){
  .hours-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin:0 0 4px;
  }
  .hours-head h2{margin:0 0 8px}
  .hours-head .hours-readout{margin:0}
}

.hours-readout{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:10px;
  margin:4px 0 8px;
  font-family:Poppins,Inter,sans-serif;
}
.hours-readout .num{
  font-size:clamp(52px,10vw,72px);
  font-weight:700;
  letter-spacing:-.03em;
  line-height:1;
  color:var(--ink);
}
.hours-readout .unit{
  font-size:18px;
  font-weight:600;
  color:var(--soft);
}

.hours-slider-wrap{margin:8px 8px 4px}
input[type="range"].hours-slider{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:44px;
  margin:0;
  background:transparent;
  cursor:pointer;
}
input[type="range"].hours-slider:focus-visible{
  outline:2px solid var(--g5);
  outline-offset:4px;
  border-radius:999px;
}
input[type="range"].hours-slider::-webkit-slider-runnable-track{
  height:8px;
  border-radius:999px;
  background:linear-gradient(to right,var(--g5) var(--pct,30.4%),var(--line) var(--pct,30.4%));
}
input[type="range"].hours-slider::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:28px;
  height:28px;
  margin-top:-10px;
  border-radius:50%;
  background:#fff;
  border:3px solid var(--g5);
  box-shadow:0 2px 8px rgba(23,26,32,.2);
}
input[type="range"].hours-slider::-moz-range-track{
  height:8px;
  border-radius:999px;
  background:var(--line);
}
input[type="range"].hours-slider::-moz-range-progress{
  height:8px;
  border-radius:999px;
  background:var(--g5);
}
input[type="range"].hours-slider::-moz-range-thumb{
  width:28px;
  height:28px;
  border-radius:50%;
  background:#fff;
  border:3px solid var(--g5);
  box-shadow:0 2px 8px rgba(23,26,32,.2);
}

.slider-scale{
  display:flex;
  justify-content:space-between;
  font-size:12.5px;
  color:var(--soft);
  padding:0 2px;
  margin-bottom:8px;
}

.mode-switch{
  display:flex;
  justify-content:center;
  margin-top:8px;
}
.mode-switch button{
  font:inherit;
  font-weight:600;
  font-size:14.5px;
  color:var(--g6);
  background:none;
  border:0;
  padding:8px 4px;
  min-height:44px;
  cursor:pointer;
  text-decoration:underline;
  text-underline-offset:3px;
}
.mode-switch button:focus-visible{
  outline:2px solid var(--g5);
  outline-offset:3px;
  border-radius:8px;
}

.times-grid{
  display:grid;
  gap:14px;
  margin-top:8px;
}
@media(min-width:640px){
  .times-grid{grid-template-columns:1fr 1fr;gap:16px}
}
.field > span.label,
.group-label{
  display:block;
  font-weight:600;
  margin:0 0 8px;
  color:var(--ink);
}
.hint{display:block;color:var(--soft);font-size:13.5px;margin:6px 0 0}
.field input[type="datetime-local"]{
  width:100%;
  max-width:100%;
  min-height:48px;
  font:inherit;
  padding:10px 14px;
  border:1.5px solid var(--line);
  border-radius:14px;
  background:#fff;
  color:var(--ink);
}
.field input[type="datetime-local"]:focus-visible{
  outline:2px solid var(--g5);
  outline-offset:2px;
  border-color:var(--g5);
}

.chip-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
@media(max-width:359px){
  .chip-grid{grid-template-columns:1fr}
}
.chip{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:4px;
  min-height:88px;
  min-width:0;
  padding:12px 10px 12px 12px;
  border:1.5px solid var(--line);
  border-radius:16px;
  background:var(--sand);
  cursor:pointer;
  transition:border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.chip input{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
  margin:0;
  pointer-events:none;
}
.chip:focus-within{
  outline:2px solid var(--g5);
  outline-offset:2px;
}
.chip:has(input:checked),
.chip.is-on{
  background:#fff;
  border-color:var(--g5);
  box-shadow:0 0 0 1px var(--g5), 0 8px 20px -12px rgba(185,138,47,.7);
}
.chip .ico{
  width:28px;
  height:28px;
  color:var(--g6);
}
.chip .chip-title{
  font-weight:700;
  font-size:14px;
  line-height:1.25;
  color:var(--ink);
  overflow-wrap:anywhere;
}
.chip .chip-sub{
  font-size:12px;
  line-height:1.35;
  color:var(--soft);
}
@media(min-width:720px){
  .chip{padding:14px 14px 14px 16px;min-height:92px;gap:6px}
  .chip .chip-title{font-size:15px}
  .chip .chip-sub{font-size:13px}
}

.visa-note{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 16px;
  font-size:14.5px;
  margin:0;
}
.form-error{
  color:#7a1d1d;
  background:#fdeeee;
  border:1px solid #f0c4c4;
  border-radius:12px;
  padding:10px 14px;
  margin:0;
}
.form-toolbar{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  margin:0 2px;
}
.form-toolbar button.linkish{
  background:none;
  border:0;
  color:var(--g6);
  font:inherit;
  font-weight:600;
  cursor:pointer;
  text-decoration:underline;
  min-height:44px;
  padding:8px 4px;
  line-height:1.2;
}

#results{scroll-margin-top:96px}
#results[hidden],
[hidden]{display:none !important}

.empty-plan{
  text-align:center;
  color:var(--soft);
  padding:10px 8px 4px;
}
.empty-plan p{margin:0;font-size:15px}

.result-shell{
  background:#fff;
  border:1.5px solid var(--line);
  border-radius:22px;
  padding:18px 16px 16px;
  animation:rise .35s ease;
}
@media(min-width:720px){
  .result-shell{padding:24px}
}
@keyframes rise{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:none}
}
@media(prefers-reduced-motion:reduce){
  .result-shell{animation:none}
  .seg{transition:none}
}

.verdict-badge{
  border-radius:18px;
  padding:16px 16px 14px;
  margin:0 0 16px;
  border:1.5px solid var(--line);
}
.verdict-badge .kicker{
  display:inline-block;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  margin:0 0 6px;
}
.verdict-badge h2{
  margin:0 0 6px;
  font-size:clamp(22px,4vw,28px);
  line-height:1.2;
}
.verdict-badge p{margin:0;font-size:15.5px;line-height:1.45}
.verdict-badge.stay{
  background:#efe4d4;
  border-color:#c4a882;
  color:#2c241c;
}
.verdict-badge.stay .kicker{color:#8a5a32}
.verdict-badge.short{
  background:#fbf4e4;
  border-color:#e2c98a;
  color:#3a2e14;
}
.verdict-badge.short .kicker{color:#9c7322}
.verdict-badge.longer{
  background:#eef6ef;
  border-color:#b7d4bc;
  color:#1d3b24;
}
.verdict-badge.longer .kicker{color:#2b6b3a}

.timeline{margin:4px 0 16px}
.timeline-track{
  display:flex;
  width:100%;
  max-width:100%;
  min-height:76px;
  border-radius:16px;
  overflow:hidden;
  background:var(--sand2);
}
.seg{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:10px 8px;
  min-width:0;
  flex-basis:0;
  overflow:hidden;
  transition:flex-grow .4s ease;
  color:var(--ink);
}
.seg span{
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:inherit;
  opacity:.8;
}
.seg strong{
  font-size:14.5px;
  font-weight:700;
  line-height:1.25;
  margin-top:2px;
}
.seg.exit,
.seg.ret{background:#d4b56a;color:#2a2110}
.seg.city{background:var(--g6);color:#fff}
.seg.city span{color:#fff;opacity:.9}
.seg.all{background:#b89f78;color:#1f1810}

.timeline-clocks{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-top:8px;
  font-size:12.5px;
  color:var(--soft);
  font-weight:600;
}
.timeline-clocks span{flex:1;min-width:0}
.timeline-clocks span:last-child{text-align:right}
.timeline-clocks span:nth-child(2),
.timeline-clocks span:nth-child(3){text-align:center}
.timeline-note{
  font-size:13px;
  color:var(--soft);
  margin:8px 0 0;
}

.metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:0 0 14px;
}
.metric{
  background:var(--sand);
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 8px 10px 10px;
  min-width:0;
}
.metric .k{
  display:block;
  font-size:11px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--soft);
  font-weight:600;
  line-height:1.25;
}
.metric .v{
  display:block;
  font-family:Poppins,Inter,sans-serif;
  font-weight:700;
  font-size:15.5px;
  line-height:1.25;
  margin-top:4px;
  overflow-wrap:anywhere;
}
@media(min-width:720px){
  .metric{padding:12px 14px}
  .metric .k{font-size:12px}
  .metric .v{font-size:20px}
}

.warn{
  background:#fff8e8;
  border-left:4px solid var(--g5);
  padding:8px 12px;
  border-radius:0 12px 12px 0;
  margin:0 0 12px;
  font-size:14px;
  line-height:1.4;
}

.sights-head{
  margin:8px 0 10px;
  font-size:18px;
}
.sights-copy{margin:0 0 12px;font-size:15.5px;line-height:1.5}
.photo-row{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:2px 2px 10px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.photo-card{
  flex:0 0 168px;
  scroll-snap-align:start;
  background:var(--sand);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
}
.photo-card img{
  display:block;
  width:100%;
  height:112px;
  object-fit:cover;
  background:var(--sand2);
}
.photo-card p{
  margin:0;
  padding:8px 10px 10px;
  font-size:13px;
  font-weight:600;
  line-height:1.3;
}

.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:16px 0 4px;
}
.cta-row .btn{
  font:inherit;
  cursor:pointer;
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.cta-row .btn.wa-cta,
#sticky-cta .btn.wa-cta{
  background:#128c4a;
  color:#fff;
  box-shadow:0 8px 24px -8px rgba(18,140,74,.55);
  border:0;
}
.cta-row .btn.book-cta,
#sticky-cta .btn.book-cta{
  background:#c9a227;
  color:#171a20;
  border:0;
  box-shadow:0 8px 24px -8px rgba(201,162,39,.55);
  font-weight:700;
}
.cta-row .btn.book-cta:hover,
#sticky-cta .btn.book-cta:hover{
  background:#b8921f;
  color:#171a20;
}
.cta-row .btn.book-cta{
  min-width:min(100%, 280px);
  font-size:17px;
  padding:12px 20px;
}

.cta-row .btn.wa-cta:hover,
#sticky-cta .btn.wa-cta:hover{background:#0f7a40;color:#fff}
.cta-row .btn.ghost,
#sticky-cta .btn.ghost{
  background:#fff;
  color:var(--ink);
  border:1.5px solid var(--line);
  box-shadow:none;
}
.cta-row .btn.ghost:hover,
#sticky-cta .btn.ghost:hover{border-color:var(--g5);color:var(--ink)}

.related{list-style:none;padding:0;margin:8px 0 0}
.related li{margin:0 0 8px}

.disclaimer{
  font-size:14px;
  color:var(--soft);
  margin:22px 0 0;
  padding-top:16px;
  border-top:1px solid var(--line);
}

.faq-block h2{margin:28px 0 12px}
.faq details{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:0 16px;
  margin:0 0 8px;
}
.faq summary{
  cursor:pointer;
  font-weight:700;
  min-height:48px;
  display:flex;
  align-items:center;
  list-style:none;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:"";
  width:8px;
  height:8px;
  margin-left:auto;
  border-right:2px solid var(--g6);
  border-bottom:2px solid var(--g6);
  transform:rotate(45deg);
  transition:transform .15s ease;
}
.faq details[open] summary::after{transform:rotate(225deg);margin-top:6px}
.faq summary:focus-visible{
  outline:2px solid var(--g5);
  outline-offset:2px;
}
.faq details p{margin:0 0 14px;font-size:15.5px}

/* Sticky mobile CTA: two equal, fully centred buttons, never covering page content */
a.wa{display:none !important}
#sticky-cta{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:40;
  display:flex;
  align-items:stretch;
  justify-content:center;
  gap:8px;
  box-sizing:border-box;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background:rgba(250,248,243,.96);
  border-top:1px solid var(--line);
  box-shadow:0 -8px 24px -12px rgba(23,26,32,.35);
}
#sticky-cta[hidden]{display:none !important}
#sticky-cta .btn{
  flex:1 1 0;
  width:50%;
  min-width:0;
  min-height:52px;
  height:auto;
  margin:0;
  font-size:14.5px;
  font-weight:700;
  padding:8px 10px;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.2;
  white-space:normal;
  box-sizing:border-box;
}
#sticky-cta .btn[hidden]{display:none !important}
#sticky-cta .btn-inner{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  max-width:100%;
  text-align:center;
  line-height:1.2;
}
#sticky-cta .btn-label{
  display:block;
  line-height:1.2;
  text-align:center;
}
#sticky-cta .btn-ico{
  width:18px;
  height:18px;
  flex:0 0 18px;
  display:block;
}
@media(min-width:901px){
  #sticky-cta{display:none !important}
}
@media(max-width:900px){
  main.checker-main{
    padding-bottom:calc(92px + env(safe-area-inset-bottom, 0px));
  }
  .faq-block, .disclaimer, article.prose{
    padding-bottom:8px;
  }
}

/* Passport searchable combobox */
.passport-combo{position:relative;min-width:0}
#passport-search{
  width:100%;
  max-width:100%;
  min-height:52px;
  font:inherit;
  font-size:16px; /* avoids iOS zoom */
  padding:12px 14px;
  border:1.5px solid var(--line);
  border-radius:14px;
  background:#fff;
  color:var(--ink);
  box-sizing:border-box;
}
#passport-search:focus-visible{
  outline:2px solid var(--g5);
  outline-offset:2px;
  border-color:var(--g5);
}
.passport-list{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 4px);
  z-index:8;
  max-height:240px;
  overflow:auto;
  margin:0;
  padding:6px;
  list-style:none;
  background:#fff;
  border:1.5px solid var(--line);
  border-radius:14px;
  box-shadow:0 16px 40px -24px rgba(23,26,32,.5);
}
.passport-list li{
  margin:0;
}
.passport-list button{
  display:block;
  width:100%;
  text-align:left;
  font:inherit;
  font-size:15.5px;
  line-height:1.3;
  padding:12px 12px;
  min-height:44px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--ink);
  cursor:pointer;
}
.passport-list button[aria-selected="true"],
.passport-list button:hover,
.passport-list button:focus{
  background:var(--sand);
  outline:none;
}
.passport-combo.is-chosen #passport-search{
  border-color:var(--g5);
  box-shadow:0 0 0 1px var(--g5);
}

.passport-result{
  display:grid;
  grid-template-rows:0fr;
  opacity:0;
  margin:0;
  transition:grid-template-rows .28s ease, opacity .22s ease, margin .28s ease;
}
.passport-result.is-open{
  grid-template-rows:1fr;
  opacity:1;
  margin-top:12px;
}
.passport-result-inner{
  overflow:hidden;
  min-height:0;
}
.tool-card:has(#passport-result.is-open) #passport-hint{display:none}
@media(prefers-reduced-motion:reduce){
  .passport-result{transition:none}
}
.visa-badge{
  border-radius:18px;
  padding:16px 16px 14px;
  margin:0;
  border:1.5px solid var(--line);
  background:#fff;
}
.visa-badge .kicker{
  display:inline-block;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  margin:0 0 6px;
  color:var(--g6);
}
.visa-badge h3{
  margin:0 0 6px;
  font-size:clamp(18px,3.4vw,22px);
  line-height:1.25;
}
.visa-badge p{margin:0 0 8px;font-size:15px;line-height:1.45}
.visa-badge .checked{
  margin:0;
  font-size:13px;
  color:var(--soft);
  line-height:1.45;
}
.visa-badge .checked a{color:var(--g6);text-decoration:underline;font-weight:600}
.visa-badge.cat-a{background:#eef6ef;border-color:#b7d4bc}
.visa-badge.cat-b{background:#fbf4e4;border-color:#e2c98a}
.visa-badge.cat-c{background:#fdeeee;border-color:#f0c4c4}
.visa-badge.cat-d{background:#f4f1ea;border-color:var(--line)}
.visa-prompt{
  background:#fff;
  border:1.5px dashed var(--line);
  border-radius:16px;
  padding:14px 16px;
  margin:0 0 16px;
  font-size:15px;
}

/* Alignment pass: consistent widths, headings, FAQ, CTAs */
html{box-sizing:border-box}
*,*::before,*::after{box-sizing:inherit}
html,body{overflow-x:hidden}
.checker-stage,.tool-card,.result-shell,.wrap,article.prose{max-width:100%}
.wrap{padding-left:max(16px, env(safe-area-inset-left, 0px));padding-right:max(16px, env(safe-area-inset-right, 0px))}
.tool-card h2,.group-label,h2#hours-question,h2#passport-label,h2#bags-label{
  text-wrap:balance;
}
.cta-row .btn{
  white-space:normal;
  max-width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:8px;
  padding:12px 16px;
}
.cta-row .btn-inner{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center}
.faq-block h2{margin:28px 0 12px;font-size:clamp(22px,4vw,28px);line-height:1.25}
.faq details{padding:0 16px}
.faq summary{padding-right:8px;gap:12px;align-items:center}
.hours-slider-wrap{margin:8px 2px 4px}
.disclaimer{margin:22px 0 0;padding-top:16px}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
