/* TDC cookie consent — hand-rolled banner + preferences modal.
   Brand: navy #0A3352 / blue #006DAC, Montserrat headings / Nunito body. */

:root {
  --tdc-cc-navy: #0A3352;
  --tdc-cc-blue: #006DAC;
}

/* ---------- banner ---------- */
#tdc-cc {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
  max-width: 420px;
  width: calc(100% - 40px);
  font-family: 'Nunito', system-ui, sans-serif;
}
#tdc-cc .tdc-cc__bar {
  background: #fff;
  border: 1px solid #DCE3EB;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(10,51,82,0.22);
  padding: 22px 22px 20px;
}
.tdc-cc__title {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--tdc-cc-navy);
  margin: 0 0 8px;
}
.tdc-cc__text {
  font-size: 0.88rem; line-height: 1.55;
  color: #4A5868; margin: 0 0 16px;
}
.tdc-cc__text a { color: var(--tdc-cc-blue); font-weight: 600; }
.tdc-cc__btns { display: flex; flex-wrap: wrap; gap: 10px; }

.tdc-cc__btn {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 600; font-size: 0.85rem;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.tdc-cc__btn--primary   { background: var(--tdc-cc-navy); color: #fff; border-color: var(--tdc-cc-navy); flex: 1 1 auto; }
.tdc-cc__btn--primary:hover { background: #082945; border-color: #082945; }
.tdc-cc__btn--secondary { background: var(--tdc-cc-blue); color: #fff; border-color: var(--tdc-cc-blue); flex: 1 1 auto; }
.tdc-cc__btn--secondary:hover { background: #005a8f; border-color: #005a8f; }
.tdc-cc__btn--ghost     { background: transparent; color: var(--tdc-cc-navy); border-color: transparent; flex: 1 1 100%; text-decoration: underline; padding: 6px 12px; }
.tdc-cc__btn--ghost:hover { color: var(--tdc-cc-blue); }

/* ---------- preferences modal ---------- */
.tdc-ccm {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(10,51,82,0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  font-family: 'Nunito', system-ui, sans-serif;
}
.tdc-ccm[hidden] { display: none; }
.tdc-ccm__panel {
  background: #fff; border-radius: 18px;
  max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(10,51,82,0.35);
}
.tdc-ccm__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tdc-ccm__title {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 1.25rem; font-weight: 700; color: var(--tdc-cc-navy); margin: 0;
}
.tdc-ccm__close {
  background: none; border: none; font-size: 1.8rem; line-height: 1;
  color: #4A5868; cursor: pointer; padding: 0 4px;
}
.tdc-ccm__close:hover { color: var(--tdc-cc-navy); }
.tdc-ccm__intro { font-size: 0.88rem; line-height: 1.55; color: #4A5868; margin: 8px 0 20px; }
.tdc-ccm__intro a { color: var(--tdc-cc-blue); font-weight: 600; }

.tdc-ccm__row { border: 1px solid #E2E8EE; background: #F4F8FB; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.tdc-ccm__row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.tdc-ccm__row-title { font-family: 'Montserrat', system-ui, sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--tdc-cc-navy); }
.tdc-ccm__always { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tdc-cc-blue); }
.tdc-ccm__row-desc { font-size: 0.82rem; line-height: 1.5; color: #4A5868; margin: 0; }
.tdc-ccm__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* toggle switch */
.tdc-sw { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.tdc-sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tdc-sw__track { position: absolute; inset: 0; background: #9aa7b4; border-radius: 999px; transition: background .2s; }
.tdc-sw__track::before { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s; }
.tdc-sw input:checked + .tdc-sw__track { background: var(--tdc-cc-blue); }
.tdc-sw input:checked + .tdc-sw__track::before { transform: translateX(20px); }
.tdc-sw input:focus-visible + .tdc-sw__track { outline: 2px solid var(--tdc-cc-navy); outline-offset: 2px; }

@media (max-width: 600px) {
  #tdc-cc { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
  .tdc-ccm__panel { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .tdc-cc__btn, .tdc-sw__track, .tdc-sw__track::before { transition: none; }
}

/* ---------- Google Maps placeholder (hand-rolled gate) ---------- */
.tdc-map-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center;
  min-height: 375px; height: 100%;
  padding: 28px 24px;
  background: linear-gradient(160deg, #0A3352 0%, #006DAC 130%);
  color: #fff;
}
.tdc-map-ph__notice {
  font-size: 0.88rem; line-height: 1.55; max-width: 420px; margin: 0;
  color: rgba(255,255,255,0.92);
}
.tdc-map-ph__notice a { color: #C6E9FC; font-weight: 600; }
.tdc-map-ph .tdc-cc__btn--primary {
  background: #fff; color: var(--tdc-cc-navy); border-color: #fff; flex: 0 0 auto;
}
.tdc-map-ph .tdc-cc__btn--primary:hover { background: #C6E9FC; border-color: #C6E9FC; color: var(--tdc-cc-navy); }
