/* ICELAVI Guides Explorer v3 — collection-first navigation, editorial discovery UI. */
.guides-explorer-page{--gx-navy:#081b22;--gx-navy-2:#0f3039;--gx-ink:#102b33;--gx-muted:#66787c;--gx-gold:#d6b47a;--gx-paper:#f6f3ec;--gx-line:#d9d5cc;background:var(--gx-paper);color:var(--gx-ink)}
.guides-explorer-page .site-header{background:#0b181d;border-bottom:1px solid rgba(255,255,255,.08)}
.guides-explorer-page .site-header .nav{min-height:72px}
.guides-explorer-page .site-header a{color:rgba(255,255,255,.76)}
.guides-explorer-page .site-header .brand{color:#fff}
.guides-explorer-page .nav-links{gap:26px}
.guides-explorer-page .nav-links a{font-size:14px;font-weight:650;letter-spacing:.01em}
.guides-explorer-page .nav-links a:hover{color:#fff}

.guides-hero{position:relative;min-height:520px;display:flex;align-items:center;overflow:hidden;background:var(--gx-navy);color:#fff}
.guides-hero__media{position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(5,22,29,.9) 0%,rgba(5,22,29,.72) 36%,rgba(5,22,29,.22) 70%,rgba(5,22,29,.08) 100%),url('/assets/images/drive/iceland-route-1-vik-hofn.webp');background-size:cover;background-position:center 48%}
.guides-hero__media::after{content:"";position:absolute;inset:auto 0 0;height:120px;background:linear-gradient(to top,rgba(8,27,34,.78),transparent)}
.guides-hero__content{position:relative;z-index:1;padding:82px 0 74px}
.guides-hero h1{font-family:var(--font-display,serif);font-size:clamp(54px,6.2vw,88px);line-height:.96;letter-spacing:-.035em;margin:0 0 18px;max-width:7ch}
.guides-hero__lead{font-family:var(--font-display,serif);font-size:clamp(24px,2.2vw,34px);line-height:1.2;margin:0 0 12px;color:#fff;max-width:760px}
.guides-hero__copy{font-size:17px;line-height:1.75;max-width:670px;margin:0;color:rgba(255,255,255,.76)}
.guides-hero-search{display:flex;max-width:760px;margin-top:30px;background:#fff;border-radius:16px;padding:7px;box-shadow:0 18px 42px rgba(0,0,0,.18)}
.guides-hero-search input{flex:1;min-width:0;border:0;background:transparent;padding:0 18px;font:inherit;color:#17343b;outline:0;min-height:52px}
.guides-hero-search button{border:0;border-radius:11px;background:var(--gx-gold);color:#10262d;font-weight:800;padding:0 28px;cursor:pointer;font:inherit}
.guides-hero-shortcuts{display:flex;gap:14px;flex-wrap:wrap;align-items:center;margin-top:16px;font-size:13px}
.guides-hero-shortcuts span{color:rgba(255,255,255,.5)}
.guides-hero-shortcuts a{color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.34);padding-bottom:2px}
.guides-hero-shortcuts a:hover{border-color:#fff}

.guides-discovery,.guides-topics{background:#fff;padding:48px 0 52px}
.guides-topics{padding-top:6px;padding-bottom:58px}
.guides-section-head{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:20px}
.guides-section-head h2{font-family:var(--font-display,serif);font-size:34px;line-height:1.12;margin:0 0 6px;color:#0f3540}
.guides-section-head p{margin:0;color:var(--gx-muted);font-size:15px}
.guides-section-head>a{color:#755b39;text-decoration:none;font-weight:750;font-size:14px;white-space:nowrap}

.guide-region-rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(205px,1fr);gap:12px;overflow-x:auto;overscroll-behavior-inline:contain;padding:2px 2px 8px;scrollbar-width:none}
.guide-region-rail::-webkit-scrollbar{display:none}
.guide-region-card{position:relative;display:block;height:176px;border:0;border-radius:16px;overflow:hidden;background:#163c46;color:inherit;cursor:pointer;text-align:left;text-decoration:none;padding:0;isolation:isolate;box-shadow:0 1px 0 rgba(13,44,52,.08);transition:transform .18s ease,box-shadow .18s ease}
.guide-region-card::before{content:"";position:absolute;inset:0;background-image:var(--guide-photo);background-size:cover;background-position:center;z-index:-2;transition:transform .25s ease}
.guide-region-card::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(5,25,31,.88),rgba(5,25,31,.05) 68%);z-index:-1}
.guide-region-card:hover{transform:translateY(-3px);box-shadow:0 16px 30px rgba(8,31,38,.15)}
.guide-region-card:hover::before{transform:scale(1.025)}
.guide-region-card.is-active{outline:3px solid #d9b779;outline-offset:2px}
.guide-region-card span,.guide-region-card small{position:absolute;left:16px;color:#fff}
.guide-region-card span{bottom:34px;font-family:var(--font-display,serif);font-size:22px;font-weight:750;line-height:1.05}
.guide-region-card small{bottom:14px;color:rgba(255,255,255,.72);font-size:12px}

.guide-topic-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));border:1px solid #e1ddd5;border-radius:16px;overflow:hidden;background:#fff}
.guide-topic-card{position:relative;min-height:118px;border:0;border-right:1px solid #e7e2d9;background:#fff;padding:18px 15px;text-align:left;cursor:pointer;transition:background .16s ease,color .16s ease}
.guide-topic-card:last-child{border-right:0}
.guide-topic-card:hover{background:#f3f5f2}
.guide-topic-card.is-active{background:#123640;color:#fff}
.guide-topic-card b{display:block;font-size:11px;letter-spacing:.12em;color:#b58b4e;margin-bottom:18px}
.guide-topic-card span{display:block;font-family:var(--font-display,serif);font-size:17px;font-weight:750;line-height:1.15}
.guide-topic-card small{display:block;margin-top:8px;color:#7b8a8d;font-size:11px}
.guide-topic-card.is-active small{color:rgba(255,255,255,.65)}

.guides-explorer{padding:46px 0 82px;background:var(--gx-paper)}
.guides-explorer__layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:34px;align-items:start}
.guides-sidebar{position:sticky;top:18px;background:#fff;border:1px solid #dfdad0;border-radius:18px;padding:20px 18px;box-shadow:0 12px 34px rgba(21,45,50,.055)}
.guides-sidebar__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.guides-sidebar__head h2{font-family:var(--font-display,serif);font-size:24px;margin:0;color:#123843}
.guides-sidebar__head button{border:0;background:transparent;color:#8c7049;font-weight:750;cursor:pointer;padding:4px}
.guide-filter{display:grid;gap:7px;margin-top:15px}
.guide-filter:first-of-type{margin-top:0}
.guide-filter label{font-size:12px;font-weight:750;color:#50676c;letter-spacing:.025em}
.guide-filter select,.guide-filter input{width:100%;min-height:46px;border:1px solid #d5cfc3;border-radius:11px;background:#fbfaf7;color:#173239;padding:0 12px;font:inherit;outline:0}
.guide-filter select:focus,.guide-filter input:focus{border-color:#9f7d4d;box-shadow:0 0 0 3px rgba(159,125,77,.12)}
.guides-sidebar__tip{border-top:1px solid #ece8df;margin-top:20px;padding-top:17px}
.guides-sidebar__tip strong{font-size:13px;color:#173a43}
.guides-sidebar__tip p{font-size:12px;line-height:1.55;color:#78878a;margin:6px 0 0}

.guides-results{min-width:0}
.guides-results-head{display:flex;justify-content:space-between;align-items:end;gap:24px;padding:0 2px 18px}
.guides-results-head h2{font-family:var(--font-display,serif);font-size:30px;margin:0 0 5px;color:#123843}
.guides-results-head p{margin:0;color:#78878a;font-size:13px}
.guides-results-head>strong{font-size:14px;color:#4b6267;background:#ebe8e1;border-radius:999px;padding:9px 12px;white-space:nowrap}
.guides-active-filters{display:flex;gap:8px;flex-wrap:wrap;margin:-2px 0 16px}
.guides-active-filters:empty{display:none}
.guides-active-filters button{border:1px solid #d2c9b9;background:#fff;border-radius:999px;padding:7px 10px;font-size:12px;color:#5e6f73;cursor:pointer}
.guides-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.guide-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #ded8ce;border-radius:16px;overflow:hidden;text-decoration:none;color:inherit;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.guide-card:hover{transform:translateY(-3px);border-color:#b99764;box-shadow:0 15px 34px rgba(9,34,41,.10)}
.guide-card__media{aspect-ratio:16/9;background:#163943;overflow:hidden;position:relative}
.guide-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.guide-card__fallback{position:absolute;inset:0;display:grid;align-items:end;padding:18px;color:#fff;font-family:var(--font-display,serif);font-size:24px;background:linear-gradient(135deg,#113541,#28535b)}

.guide-card__body{display:flex;flex-direction:column;gap:9px;padding:17px 17px 19px;min-height:206px}
.guide-card__meta{display:flex;gap:6px;flex-wrap:wrap}
.guide-card__tag{font-size:10px;font-weight:800;letter-spacing:.03em;padding:5px 8px;border-radius:999px;background:#edf1ee;color:#36555b}
.guide-card h3{font-family:var(--font-display,serif);font-size:21px;line-height:1.24;margin:0;color:#102f38}
.guide-card p{margin:0;color:#6a797c;line-height:1.58;font-size:13px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.guide-card__open{margin-top:auto;font-size:12px;font-weight:800;color:#82623b}
.guides-empty{grid-column:1/-1;padding:58px 24px;text-align:center;border:1px dashed #c9c0b2;border-radius:18px;background:#fff;color:#637579}
.guides-load-more{display:flex;justify-content:center;padding-top:28px}
.guides-load-more button{min-width:180px;min-height:48px;border:1px solid #123843;background:#123843;color:#fff;border-radius:11px;font-weight:800;cursor:pointer}
.guides-explorer-page .site-footer{background:#09191f;color:#fff}
.guides-explorer-page .site-footer a{color:rgba(255,255,255,.72)}
.guides-explorer-page .site-footer p{color:rgba(255,255,255,.56)}

@media(max-width:1100px){
  .guide-topic-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .guide-topic-card:nth-child(4n){border-right:0}.guide-topic-card{border-bottom:1px solid #e7e2d9}
  .guides-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  .guides-explorer-page .nav-links{gap:16px;overflow-x:auto;scrollbar-width:none}.guides-explorer-page .nav-links::-webkit-scrollbar{display:none}
  .guides-hero{min-height:490px}.guides-hero__content{padding:70px 0 60px}.guides-hero h1{font-size:clamp(48px,10vw,70px)}
  .guides-explorer__layout{grid-template-columns:1fr;gap:24px}.guides-sidebar{position:relative;top:0;display:grid;grid-template-columns:1fr 1fr;gap:12px}.guides-sidebar__head,.guides-sidebar__tip{grid-column:1/-1}.guide-filter{margin-top:0}.guide-filter:last-of-type{grid-column:1/-1}
}
@media(max-width:640px){
  .guides-explorer-page .site-header .nav{min-height:auto;padding-top:14px;padding-bottom:12px;display:grid;gap:13px}.guides-explorer-page .site-header .brand{justify-self:start}.guides-explorer-page .nav-links{width:100%;gap:22px;padding-bottom:1px}
  .guides-hero{min-height:0}.guides-hero__media{background-position:62% center;background-image:linear-gradient(180deg,rgba(5,22,29,.48),rgba(5,22,29,.95) 74%),url('/assets/images/drive/iceland-route-1-vik-hofn.webp')}.guides-hero__content{padding:62px 0 48px}.guides-hero h1{font-size:48px;max-width:none}.guides-hero__lead{font-size:25px}.guides-hero__copy{font-size:15px}.guides-hero-search{margin-top:24px;border-radius:13px}.guides-hero-search input{min-height:48px;padding:0 12px}.guides-hero-search button{padding:0 18px}.guides-hero-shortcuts{gap:10px}
  .guides-discovery{padding:34px 0 38px}.guides-topics{padding:0 0 40px}.guides-section-head{align-items:start}.guides-section-head h2{font-size:28px}.guides-section-head p{font-size:14px}.guide-region-rail{grid-auto-columns:78%;margin-right:calc((100vw - 100%) / -2);padding-right:18px}.guide-region-card{height:166px}
  .guide-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));border-radius:14px}.guide-topic-card{min-height:102px}.guide-topic-card:nth-child(2n){border-right:0}.guide-topic-card b{margin-bottom:12px}.guide-topic-card span{font-size:16px}
  .guides-explorer{padding:30px 0 60px}.guides-sidebar{grid-template-columns:1fr;border-radius:14px;padding:16px}.guides-sidebar__head,.guides-sidebar__tip,.guide-filter:last-of-type{grid-column:auto}.guides-results-head{align-items:start}.guides-results-head h2{font-size:27px}.guides-results-head>strong{font-size:12px}.guides-card-grid{grid-template-columns:1fr;gap:13px}.guide-card{display:grid;grid-template-columns:120px minmax(0,1fr);border-radius:13px}.guide-card__media{aspect-ratio:auto;height:100%;min-height:174px}.guide-card__body{min-height:0;padding:14px}.guide-card h3{font-size:18px}.guide-card p{-webkit-line-clamp:2;font-size:12px}.guide-card__open{display:none}
}

/* Mobile overflow guard: global input sizing must not force the hero form wider than the viewport. */
@media(max-width:640px){
  .guides-hero__content,.guides-hero__lead,.guides-hero__copy{max-width:100%;min-width:0;overflow-wrap:anywhere}
  .guides-hero-search{width:100%;max-width:100%;box-sizing:border-box}
  .guides-hero-search input{width:0;min-width:0}
  .guides-section-head{display:block}.guides-section-head>a{display:none}
}

@media(max-width:640px){
  .guides-explorer-page{overflow-x:hidden}
  .guides-hero__lead{width:100%;white-space:normal!important;word-break:break-word;font-size:23px;line-height:1.28}
  .guides-hero-search{display:grid;grid-template-columns:minmax(0,1fr) 74px;gap:0;overflow:hidden}
  .guides-hero-search input{width:100%!important;max-width:100%;min-width:0!important;padding:0 11px!important}
  .guides-hero-search button{width:74px;min-width:74px;padding:0!important;border-radius:10px}
}

@media(max-width:640px){
  .guides-hero-search{display:block;overflow:hidden;padding:7px}
  .guides-hero-search input{display:block;width:100%!important;min-height:50px!important;padding:0 12px!important}
  .guides-hero-search button{display:none}
}

@media(max-width:640px){
  .guides-hero__lead{font-size:21px;line-height:1.35}
  .guides-sidebar{grid-template-columns:1fr 1fr;gap:10px}
  .guides-sidebar__head{grid-column:1/-1;margin-bottom:4px}
  .guides-sidebar__tip{display:none}
  .guides-sidebar .guide-filter:last-of-type{grid-column:1/-1}
}

.guides-hero-shortcuts button{appearance:none;border:0;border-bottom:1px solid rgba(255,255,255,.34);background:transparent;color:#fff;padding:0 0 2px;font:inherit;cursor:pointer}
.guides-hero-shortcuts button:hover{border-color:#fff}
.guides-section-head>button{appearance:none;border:0;background:transparent;color:#755b39;font:inherit;font-weight:750;cursor:pointer;padding:0;white-space:nowrap}
.guides-featured{background:#fff;padding:0 0 54px}
.guide-featured-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #e7e1d8;border-bottom:1px solid #e7e1d8}
.guide-featured-row a{padding:19px 18px;border-right:1px solid #e7e1d8;display:grid;gap:7px;min-width:0}
.guide-featured-row a:last-child{border-right:0}
.guide-featured-row a:hover{background:#f7f7f3}
.guide-featured-row span{font-size:11px;color:#a57840;font-weight:800;letter-spacing:.05em}
.guide-featured-row strong{font-family:var(--font-display,serif);font-size:18px;line-height:1.28;color:#123843}
@media(max-width:820px){.guide-featured-row{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-featured-row a:nth-child(2){border-right:0}.guide-featured-row a:nth-child(-n+2){border-bottom:1px solid #e7e1d8}}
@media(max-width:640px){.guides-section-head>button{display:none}.guides-featured{padding-bottom:40px}.guide-featured-row{display:flex;overflow-x:auto;scrollbar-width:none}.guide-featured-row::-webkit-scrollbar{display:none}.guide-featured-row a{flex:0 0 72%;border-bottom:0!important}.guide-featured-row a:nth-child(2){border-right:1px solid #e7e1d8}}

/* Homepage navigation is now an in-page filter bar, not seven separate section pages. */
.guides-explorer-page .site-header .nav-links button{appearance:none;border:0;background:transparent;color:rgba(255,255,255,.76);font:inherit;font-size:14px;font-weight:650;letter-spacing:.01em;padding:0;cursor:pointer;white-space:nowrap}
.guides-explorer-page .site-header .nav-links button:hover,.guides-explorer-page .site-header .nav-links button.is-active{color:#fff}
.guides-explorer-page .site-header .nav-links button.is-active{box-shadow:inset 0 -2px 0 #d6b47a}

/* Region cards are a real swipe rail on touch and drag rail on desktop. */
.guide-region-rail{scroll-snap-type:x proximity;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;touch-action:pan-x;cursor:grab;user-select:none}
.guide-region-rail.is-dragging{cursor:grabbing;scroll-behavior:auto}
.guide-region-card{scroll-snap-align:start;user-select:none;-webkit-user-drag:none}
.guide-region-card *{pointer-events:none}
@media(max-width:640px){.guide-region-rail{scroll-snap-type:x mandatory;padding-bottom:10px}}

@media(max-width:900px){
  .guides-explorer-page .site-header .nav-links{display:flex!important;order:3;width:100%;margin-left:0;gap:0;overflow-x:auto;overscroll-behavior-inline:contain;border-top:1px solid rgba(255,255,255,.09);scrollbar-width:none;scroll-snap-type:x proximity}
  .guides-explorer-page .site-header .nav-links button{min-height:48px;flex:0 0 auto;padding:0 12px;font-size:12px;white-space:nowrap;scroll-snap-align:start}
  .guides-explorer-page .site-header .nav-links button:first-child{padding-left:0}
  .guides-explorer-page .site-header .nav-links button.is-active{box-shadow:inset 0 -2px 0 #d6b47a}
}

/* Desktop rail controls: explicit arrows + swipe/drag affordance. */
.guide-region-rail-shell{position:relative}
.guide-region-arrow{position:absolute;top:50%;z-index:8;width:44px;height:64px;border:0;background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer;transform:translateY(-50%);transition:opacity .16s ease,transform .16s ease;filter:drop-shadow(0 2px 3px rgba(0,0,0,.58));padding:0}
.guide-region-arrow:hover{transform:translateY(-50%) scale(1.12)}
.guide-region-arrow svg{width:30px;height:30px;display:block;stroke-width:2.4}
.guide-region-arrow--prev{left:2px}.guide-region-arrow--next{right:2px}
.guide-region-arrow[disabled]{opacity:0;pointer-events:none}
.guide-region-rail{scroll-padding-inline:4px}
.guide-region-rail::after{content:"";flex:0 0 8px}
@media(max-width:700px){.guide-region-arrow{display:none}}
