/* ── GUIDES LANDING ──────────────────────────────────────── */
.guides-hero {
  background: var(--dark);
  color: var(--white);
  padding: 3rem var(--gutter) 2rem;
}
.guides-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin: 0 0 .5rem;
}
.guides-hero__sub { color: #aaa; font-size: .95rem; margin: 0; }

.guides-body { padding-top: 1.5rem; padding-bottom: 4rem; }

.guides-toolbar { display: flex; justify-content: flex-end; margin-bottom: 1rem; }

.guides-create-form {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.guides-create-form__title { font-weight: 700; font-size: 1rem; margin-bottom: .85rem; }
.guides-create-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .75rem; }
.guides-create-form__actions { display: flex; gap: .5rem; margin-top: .85rem; }

.guides-list { display: flex; flex-direction: column; gap: .85rem; }

.guides-empty { text-align: center; padding: 4rem 1rem; color: var(--mid); }
.guides-empty__emoji { font-size: 3rem; margin-bottom: 1rem; }
.guides-empty h2 { color: var(--dark); margin-bottom: .5rem; }
.guides-empty p { font-size: .9rem; margin-bottom: 1.25rem; }

/* Guide card on listing page */
.guide-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: box-shadow .15s;
}
.guide-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.guide-card__body {
  flex: 1;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  display: block;
}
.guide-card__name-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-bottom: .25rem; }
.guide-card__name { font-weight: 700; font-size: 1.05rem; color: var(--dark); }
.guide-card__badges { display: flex; gap: .35rem; flex-shrink: 0; }
.guide-card__public-badge {
  display: inline-flex; align-items: center; gap: .2rem;
  background: rgba(42,180,160,.12); color: #2ab4a0;
  font-size: .7rem; font-weight: 700; border-radius: 999px;
  padding: .15rem .5rem;
}
.guide-card__public-badge .material-symbols-rounded { font-size: .8rem; }
.guide-card__anyday-badge {
  display: inline-flex; align-items: center; gap: .2rem;
  background: rgba(90,130,255,.1); color: #3a86ff;
  font-size: .7rem; font-weight: 700; border-radius: 999px;
  padding: .15rem .5rem;
}
.guide-card__anyday-badge .material-symbols-rounded { font-size: .8rem; }
.guide-card__desc { font-size: .85rem; color: var(--mid); margin: .2rem 0 .4rem; }
.guide-card__meta { display: flex; gap: 1rem; font-size: .82rem; color: var(--mid); flex-wrap: wrap; }
.guide-card__meta span { display: flex; align-items: center; gap: .25rem; }
.guide-card__meta .material-symbols-rounded { font-size: .95rem; }

/* Community guides section */
.guides-community { padding: 2.5rem 0 3rem; }
.guides-community__header {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.guides-community__header .material-symbols-rounded { color: var(--teal); font-size: 1.3rem; }
.guides-community__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 900; margin: 0; }
.guides-community__sub { font-size: .85rem; color: var(--mid); margin-left: auto; }
.guides-list--community .guide-card { border-color: rgba(42,180,160,.25); }
.guide-card--community:hover { border-color: var(--teal); }
.guide-card__actions { display: flex; padding: 0 .75rem; gap: .25rem; }
.guide-card__btn {
  background: none; border: none; padding: .5rem;
  cursor: pointer; color: var(--mid); border-radius: .5rem;
  transition: color .15s, background .15s;
}
.guide-card__btn:hover { color: var(--dark); background: var(--cream); }
.guide-card__btn .material-symbols-rounded { font-size: 1.1rem; }

/* ── INDIVIDUAL GUIDE PAGE ───────────────────────────────── */
.guide-hero {
  background: var(--dark);
  color: var(--white);
  padding: 2.5rem var(--gutter) 2rem;
}
.guide-hero__inner { max-width: 680px; }
.guide-hero__name { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; margin: 0 0 .5rem; }
.guide-hero__datestr { color: #aaa; font-size: .9rem; margin-bottom: .75rem; }
.guide-hero__meta { color: #888; font-size: .82rem; margin-top: .5rem; }

.guide-hero__edit-wrap { margin-bottom: .75rem; }
.guide-hero__name-input {
  font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 900; background: transparent; border: none;
  border-bottom: 2px solid rgba(255,255,255,.2); color: var(--white);
  width: 100%; padding: .25rem 0; margin-bottom: .75rem;
  outline: none;
}
.guide-hero__name-input:focus { border-bottom-color: var(--teal); }
.guide-hero__desc-input {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.75);
  font-size: .95rem; font-family: inherit; padding: .2rem 0; margin-bottom: .85rem;
  outline: none;
}
.guide-hero__desc-input:focus { border-bottom-color: var(--teal); }
.guide-hero__desc-input::placeholder { color: rgba(255,255,255,.35); }
.guide-hero__desc { color: rgba(255,255,255,.75); font-size: .95rem; margin: 0 0 .6rem; }
.guide-hero__toggles-row {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .85rem;
}
.guide-hero__actions-row { margin-top: .75rem; }
.guide-hero__public-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(42,180,160,.18); color: var(--teal);
  font-size: .8rem; font-weight: 700; border-radius: 999px;
  padding: .2rem .65rem; margin-top: .4rem;
}
.guide-toggle__hint { font-size: .8rem; color: rgba(255,255,255,.5); }

/* Toggle switch */
.guide-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  cursor: pointer; user-select: none;
}
.guide-toggle input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.guide-toggle__track {
  position: relative; width: 34px; height: 18px;
  background: rgba(255,255,255,.2); border-radius: 999px;
  transition: background .2s;
}
.guide-toggle__track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; transition: left .2s;
}
.guide-toggle input:checked ~ .guide-toggle__track { background: var(--teal); }
.guide-toggle input:checked ~ .guide-toggle__track::after { left: 18px; }
.guide-toggle__label { font-size: .85rem; color: rgba(255,255,255,.8); }
.guide-toggle--public .guide-toggle__label { color: var(--teal); font-weight: 700; }

.guide-hero__dates-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.guide-hero__date-input {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: var(--white); border-radius: .5rem; padding: .35rem .6rem;
  font-size: .85rem; font-family: inherit; outline: none;
}
.guide-hero__date-input:focus { border-color: var(--teal); }

.guide-hero__share { display: flex; align-items: center; gap: .65rem; margin-top: .85rem; flex-wrap: wrap; }
.guide-share-url {
  font-size: .75rem; color: #aaa; background: rgba(255,255,255,.07);
  padding: .35rem .65rem; border-radius: .4rem; word-break: break-all;
  flex: 1; min-width: 0;
}

.guide-body { padding-top: 1.5rem; padding-bottom: 4rem; max-width: 680px; }

.guide-section { margin-bottom: 2rem; }
.guide-section__date {
  font-weight: 700; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--teal); margin-bottom: .75rem;
  padding-bottom: .5rem; border-bottom: 1.5px solid var(--border);
}
.guide-section__date--undated { color: var(--mid); }

.guide-item {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .85rem 0; border-bottom: 1px solid var(--border);
}
.guide-item__icon {
  width: 44px; height: 44px; border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.guide-item__body { flex: 1; min-width: 0; }
.guide-item__title { font-weight: 600; font-size: .95rem; color: var(--dark); }
.guide-item__meta { font-size: .78rem; color: var(--mid); margin-top: .2rem; }
.guide-item__price { font-size: .78rem; font-weight: 600; color: var(--dark); margin-top: .2rem; }
.guide-item__price--free { color: var(--teal); }
.guide-item__date-input {
  margin-top: .4rem; font-size: .78rem; padding: .25rem .5rem;
  border: 1px solid var(--border); border-radius: .4rem;
  font-family: inherit; color: var(--dark); outline: none;
  background: var(--cream);
}
.guide-item__date-input:focus { border-color: var(--teal); }
.guide-item__remove {
  background: none; border: none; cursor: pointer; padding: .35rem;
  color: var(--mid); border-radius: .4rem; transition: color .15s, background .15s;
  flex-shrink: 0;
}
.guide-item__remove:hover { color: #e53e3e; background: #fff5f5; }
.guide-item__remove .material-symbols-rounded { font-size: 1rem; }

.guide-empty { text-align: center; padding: 3rem 1rem; color: var(--mid); }
.guide-empty__emoji { font-size: 2.5rem; margin-bottom: .75rem; }

/* ── GUIDE PICKER MODAL ──────────────────────────────────── */
.guide-picker-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 9000; padding: 1rem;
}
.guide-picker-overlay[hidden] { display: none; }
.guide-picker {
  background: var(--white); border-radius: 1.25rem 1.25rem 0 0;
  width: 100%; max-width: 480px; padding: 1.5rem;
  position: relative; max-height: 80vh; overflow-y: auto;
}
.guide-picker__title { font-weight: 700; font-size: 1.05rem; margin-bottom: 1rem; }
.guide-picker__list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .75rem; }
.guide-picker__item {
  display: flex; justify-content: space-between; align-items: center;
  padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: .75rem;
  background: var(--white); cursor: pointer; text-align: left;
  transition: border-color .15s, background .15s;
}
.guide-picker__item:hover { border-color: var(--teal); background: var(--cream); }
.guide-picker__item-name { font-weight: 600; font-size: .9rem; color: var(--dark); }
.guide-picker__item-meta { font-size: .75rem; color: var(--mid); }
.guide-picker__empty { color: var(--mid); font-size: .85rem; margin-bottom: .5rem; }
.guide-picker__new { margin-top: .5rem; }
.guide-picker__row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .5rem 0; }
.guide-picker__close {
  position: absolute; top: 1rem; right: 1rem; background: var(--cream);
  border: none; border-radius: 50%; width: 2rem; height: 2rem;
  cursor: pointer; font-size: .9rem; color: var(--dark);
  display: flex; align-items: center; justify-content: center;
}

/* ── GUIDE TOAST ─────────────────────────────────────────── */
.guide-toast {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--dark); color: var(--white); padding: .75rem 1.25rem;
  border-radius: .75rem; font-size: .85rem; font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,.25); z-index: 9999;
  transition: transform .3s ease, opacity .3s ease; opacity: 0;
  white-space: nowrap;
}
.guide-toast a { color: var(--teal); text-decoration: none; margin-left: .4rem; }
.guide-toast--show { transform: translateX(-50%) translateY(0); opacity: 1; }


/* ── DAY PLANNER v2 ──────────────────────────────────────── */
.guide-planner {
  max-width: 700px;
  margin: 2.5rem auto 3rem;
  padding: 0 var(--gutter);
}

.gp-header { margin-bottom: 1.5rem; }
.gp-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.35rem; font-weight: 800;
  display: flex; align-items: center; gap: .45rem; margin: 0 0 .35rem;
}
.gp-title .material-symbols-rounded { color: var(--teal); }
.gp-hint { font-size: .8rem; color: #94a3b8; margin: 0; line-height: 1.5; }

/* Grand total bar */
.gp-grand {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  background: linear-gradient(135deg, #f0fdf4, #e8faf8);
  border: 1.5px solid #bbf7d0; border-radius: .75rem;
  padding: .85rem 1.1rem; margin-bottom: 1.75rem;
  align-items: center;
}
.gp-grand__stat {
  display: flex; align-items: center; gap: .35rem;
  font-size: .85rem; color: #374151;
}
.gp-grand__stat .material-symbols-rounded { font-size: 1rem; color: var(--teal); }
.gp-grand__total { margin-left: auto; font-weight: 700; color: var(--teal); }

/* Day sections */
.gp-day {
  border: 1.5px solid var(--border);
  border-radius: .85rem; overflow: hidden;
  margin-bottom: 1.25rem;
}
.gp-day__header {
  background: #f8fafc; padding: .7rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .4rem;
  border-bottom: 1.5px solid var(--border);
}
.gp-day__label {
  display: flex; align-items: center; gap: .35rem;
  font-weight: 700; font-size: .9rem; color: #1a1a2e;
}
.gp-day__label .material-symbols-rounded { font-size: 1rem; color: var(--teal); }
.gp-day__pills { display: flex; flex-wrap: wrap; gap: .3rem; }
.gp-day__pill {
  background: #e2e8f0; color: #475569;
  font-size: .72rem; font-weight: 600;
  border-radius: 999px; padding: .2rem .6rem; white-space: nowrap;
}
.gp-day__pill--walk { background: #dbeafe; color: #2563eb; }
.gp-day__pill--total { background: #dcfce7; color: #16a34a; font-weight: 700; }

.gp-day__stops { padding: .75rem; display: flex; flex-direction: column; gap: 0; }

/* Individual stop */
.gp-stop {
  display: flex; gap: .75rem; align-items: flex-start;
  background: #fff; padding: .85rem;
  border-radius: .6rem; border: 1.5px solid var(--border);
  margin-bottom: 0;
}
.gp-stop__num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .82rem;
}
.gp-stop__body { flex: 1; min-width: 0; }
.gp-stop__name { font-size: .9rem; margin-bottom: .2rem; }
.gp-stop__loc  { font-size: .75rem; color: var(--mid); margin-bottom: .45rem; }
.gp-stop__controls { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.gp-dwell-row, .gp-date-row {
  display: flex; align-items: center; gap: .3rem;
  font-size: .8rem; color: var(--mid);
}
.gp-dwell-row .material-symbols-rounded,
.gp-date-row  .material-symbols-rounded { font-size: .95rem; flex-shrink: 0; }

.gp-dwell-input {
  width: 55px; border: 1.5px solid var(--border); border-radius: .4rem;
  padding: .2rem .35rem; font-size: .8rem; font-family: inherit;
  text-align: center; outline: none;
}
.gp-dwell-input:focus { border-color: var(--teal); }
.gp-dwell-unit { font-size: .75rem; color: var(--mid); }
.gp-dwell-val  { font-weight: 600; color: #374151; }

.gp-date-input {
  border: 1.5px solid var(--border); border-radius: .4rem;
  padding: .2rem .4rem; font-size: .78rem; font-family: inherit;
  outline: none; color: #374151;
}
.gp-date-input:focus { border-color: var(--teal); }

/* Walking leg between stops */
.gp-leg {
  display: flex; align-items: center; gap: .6rem;
  padding: .3rem .85rem;
}
.gp-leg__line {
  width: 2px; min-height: 20px; background: #d1d5db; flex-shrink: 0;
  margin-left: 12px;
}
.gp-leg__info {
  display: flex; align-items: center; gap: .25rem;
  font-size: .75rem; color: #94a3b8; font-style: italic;
}
.gp-leg__info .material-symbols-rounded { font-size: .9rem; color: #cbd5e1; }

/* Map section */
.gp-map-section { margin-top: 2rem; }
.gp-map-header {
  display: flex; align-items: center; gap: .4rem;
  font-family: 'Nunito', sans-serif; font-size: 1.1rem; font-weight: 800;
  margin-bottom: .75rem;
}
.gp-map-header .material-symbols-rounded { color: var(--teal); }
.gp-map {
  height: 420px; border-radius: .85rem; overflow: hidden;
  border: 1.5px solid var(--border);
  background: #f1f5f9;
}
.gp-map-empty {
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .5rem; color: #94a3b8; text-align: center; font-size: .85rem;
}
.gp-map-empty .material-symbols-rounded { font-size: 2rem; }
.gp-map-pin {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: .8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  border: 2.5px solid rgba(255,255,255,.8);
}

@media (max-width: 600px) {
  .gp-stop { flex-direction: column; gap: .4rem; }
  .gp-stop__num { align-self: flex-start; }
  .gp-map { height: 300px; }
}
