/* ============================================================
   ATLAS GUIDE — SHARED TOOL PAGE SHELL
   tool-page.css  |  included on every individual tool page
   ============================================================ */

:root {
  --teal:         #1A6B5F;
  --teal-light:   #2A8C7D;
  --teal-dim:     #E8F4F2;
  --teal-dark:    #0D4A40;
  --coral:        #C76A4A;
  --coral-dim:    #FAEEE9;
  --ink:          #1C1C1C;
  --ink-mid:      #3D3D3D;
  --ink-soft:     #6B6B6B;
  --sand:         #F5F0E8;
  --sand-dark:    #EDE5D6;
  --white:        #FFFFFF;
  --border:       rgba(28,28,28,.10);
  --border-soft:  rgba(28,28,28,.06);
  --shadow-sm:    0 2px 8px rgba(26,107,95,.08);
  --shadow-md:    0 8px 32px rgba(26,107,95,.12);
  --shadow-lg:    0 20px 60px rgba(26,107,95,.16);
  --radius:       14px;
  --radius-sm:    8px;
  --radius-xs:    4px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Season rating colours */
  --rating-peak:  #1A6B5F;
  --rating-great: #2D6A4F;
  --rating-good:  #8B6A1A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
img   { display: block; max-width: 100%; }
a     { color: inherit; }
button { font-family: var(--font-body); cursor: pointer; }

.container        { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px;  margin: 0 auto; padding: 0 24px; }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute; top: -48px; left: 0;
  background: var(--teal); color: var(--white);
  padding: 8px 16px; font-size: 14px; font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0; text-decoration: none;
  transition: top .2s; z-index: 10000;
}
.skip-link:focus { top: 0; }

/* ===== PROGRESS BAR ===== */
.page-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  z-index: 9999; pointer-events: none;
}

/* ===== BREADCRUMB ===== */
.tool-breadcrumb { background: var(--white); border-bottom: 1px solid var(--border-soft); padding: 14px 0; }
.tool-breadcrumb__inner {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-soft); flex-wrap: wrap;
}
.tool-breadcrumb__inner a { color: var(--teal); text-decoration: none; transition: color .15s; }
.tool-breadcrumb__inner a:hover { color: var(--teal-light); text-decoration: underline; }
.tool-breadcrumb__sep { opacity: .45; user-select: none; }

/* ===== TOOL HEADER BAND ===== */
.tool-header { position: relative; overflow: hidden; padding: 52px 0 44px; }

/* dot-grid texture */
.tool-header::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px; pointer-events: none;
}

.tool-header__inner {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}

.tool-header__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.60); text-decoration: none;
  margin-bottom: 16px; transition: color .15s;
  letter-spacing: .02em;
}
.tool-header__back:hover { color: rgba(255,255,255,.90); }

.tool-header__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.60); margin-bottom: 10px;
}

.tool-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 12px;
}
.tool-header h1 em { font-style: italic; opacity: .85; }

.tool-header__sub {
  font-size: 1rem; color: rgba(255,255,255,.72);
  max-width: 540px; line-height: 1.65;
}

.tool-header__stats { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

.tool-header__stat {
  background: rgba(255,255,255,.11);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-sm);
  padding: 12px 18px; text-align: center; min-width: 80px;
}
.tool-header__stat-val {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 700; color: var(--white); line-height: 1;
}
.tool-header__stat-label {
  font-size: 10px; color: rgba(255,255,255,.55);
  text-transform: uppercase; letter-spacing: .08em; margin-top: 4px;
}

/* Header colour themes per tool */
.tool-header--btv      { background: linear-gradient(135deg,#0d4a40,#1A6B5F 55%,#2A8C7D); padding: 150px 0px 40px; }
.tool-header--currency { background: linear-gradient(135deg,#0f3320,#1B5E35 55%,#2D7A4A); padding: 150px 0px 40px;}
.tool-header--packing  { background: linear-gradient(135deg,#4a1a08,#C76A4A 55%,#e8845f); padding: 150px 0px 40px;}
.tool-header--budget   { background: linear-gradient(135deg,#0f1e40,#1E3A7A 55%,#3A5FC0); padding: 150px 0px 40px;}
.tool-header--visa     { background: linear-gradient(135deg,#22103a,#5C2D91 55%,#8A52CC); padding: 150px 0px 40px; }

/* ===== TOOL BODY ===== */
.tool-body { padding: 48px 0 88px; }

/* ===== SHARED FORM ELEMENTS ===== */
.field-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink-mid); margin-bottom: 7px; letter-spacing: .02em;
}
.field-select,
.field-input {
  width: 100%; background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 14px;
  font-family: var(--font-body); color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
.field-select {
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B6B6B'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px; cursor: pointer;
}
.field-select:focus,
.field-input:focus  { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,107,95,.12); }
.field-select:hover,
.field-input:hover  { border-color: rgba(26,107,95,.4); }

/* ===== SHARED BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; background: var(--teal); color: var(--white);
  border: none; border-radius: var(--radius-sm);
  padding: 13px 24px; font-size: 15px; font-weight: 600;
  font-family: var(--font-body); cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,107,95,.25); }
.btn-primary:active { transform: translateY(0); }

/* ===== TOOL MSG ===== */
.tool-msg { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; }
.tool-msg--warn { background: #FFF8E1; color: #7A5C00; border: 1px solid #F0D060; }
.tool-msg--info { background: var(--teal-dim); color: var(--teal-dark); border: 1px solid rgba(26,107,95,.2); }

/* ===== OTHER TOOLS STRIP ===== */
.other-tools { background: var(--sand); padding: 44px 0; border-top: 1px solid var(--sand-dark); }
.other-tools__title {
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 700; color: var(--ink); margin-bottom: 18px;
}
.other-tools__grid { display: flex; gap: 10px; flex-wrap: wrap; }

.other-tool-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 16px;
  font-size: 13px; font-weight: 600; color: var(--ink-mid);
  text-decoration: none; transition: all .18s;
}
.other-tool-link:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-dim); transform: translateY(-1px); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .48s ease, transform .48s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher-bottom {
  position: fixed; bottom: 20px; right: 20px; z-index: 800; transition: opacity .3s;
}
body.lang-hidden .language-switcher-bottom { opacity: 0; pointer-events: none; }
.language-switcher-bottom select {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px;
  font-size: 13px; font-family: var(--font-body);
  color: var(--ink-mid); cursor: pointer; box-shadow: var(--shadow-sm);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .tool-header { padding: 80px 0 36px; }
  .tool-header__inner { flex-direction: column; align-items: flex-start; }
  .tool-header__stats { width: 100%; }
  .tool-body { padding: 32px 0 64px; }
  .container, .container--narrow { padding: 0 16px; }
}
@media (max-width: 480px) {
  .tool-header h1 { font-size: 1.7rem; }
  .tool-header__stats { gap: 8px; }
  .tool-header__stat { padding: 10px 14px; min-width: 70px; }
  .tool-header__stat-val { font-size: 1.25rem; }

}