/* Trip builder ("Chalk out your India") */
.planner-head { padding-top: calc(clamp(110px, 12vw, 150px) + 30px); padding-bottom: 24px; }
.planner-head h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.4rem); }
.planner { display: grid; gap: 40px; padding-bottom: 120px; align-items: start; }
.planner > * { min-width: 0; }
@media (min-width: 1040px) { .planner { grid-template-columns: minmax(0, 1fr) 420px; } }

.tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tab { border: 0; background: none; padding: 14px 18px; font-weight: 500; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; color: var(--ink-soft); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.cat-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.cat-item { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1.5px solid var(--line); transition: border-color .2s, transform .3s var(--ease); }
.cat-item:hover { border-color: var(--ink); }
.cat-item__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bone); }
.cat-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-item__media .card__chip { font-size: .75rem; }
.cat-item__body { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; }
.cat-item h3 { font-size: 1.2rem; margin: 0; line-height: 1.15; }
.cat-item p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.cat-item .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.cat-item .count { font-size: .8rem; color: var(--ink-soft); }
.add-btn { min-height: 38px; padding: 6px 14px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 500; font-size: .88rem; cursor: pointer; }
.add-btn.is-added { background: var(--paper); color: var(--ink); }
.add-btn:hover { background: var(--paper); color: var(--ink); }

.classic-list { display: grid; gap: 16px; }
.classic { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; padding: 14px; border: 1.5px solid var(--line); }
.classic h3 { margin: 0 0 4px; font-size: 1.3rem; }
.classic p { margin: 0 0 10px; font-size: .9rem; color: var(--ink-soft); }
.classic .denom-mini { aspect-ratio: 1; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--display); text-align: center; line-height: 1; transform: rotate(var(--tilt)); }
.classic .denom-mini b { font-size: 2.4rem; display: block; }

/* Album */
.album-panel { position: sticky; top: 96px; background: var(--bone); }
.album-body { padding: 24px; max-height: calc(100vh - 120px); overflow: auto; }
.album-head h2 { font-size: 2rem; margin-bottom: 4px; }
.album-toggle { display: none; }
.plan { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 18px; counter-reset: stop; }
.plan-stop { --stamp-bg: var(--paper); --hole: 5px; --pitch: 16px; --pad: 9px; transition: transform .25s var(--ease), opacity .2s; }
.plan-stop.is-dragging { opacity: .4; }
.plan-stop.drop-above { box-shadow: 0 -3px 0 var(--ink); }
.plan-stop .stamp__inner { outline-color: var(--c); display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px; }
.plan-stop__img { width: 76px; height: 96px; object-fit: cover; }
.plan-stop__top { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.plan-stop h3 { margin: 0; font-size: 1.25rem; }
.plan-stop .days { font-size: .8rem; color: var(--ink-soft); }
.plan-stop .days b { display: inline-block; width: 10px; height: 10px; background: var(--c); margin-right: 6px; transform: rotate(var(--tilt)); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); margin-top: 8px; }
.stepper button { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 74px; text-align: center; font-size: .85rem; font-weight: 500; }
.stop-tools { display: flex; gap: 2px; }
.icon-btn { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; color: var(--ink-soft); display: grid; place-items: center; font-size: 1rem; }
.icon-btn:hover { color: var(--ink); background: var(--bone); }
.icon-btn:disabled { opacity: .25; cursor: default; }
.stop-exps { grid-column: 1 / -1; display: grid; gap: 6px; margin-top: 4px; }
.stop-exp { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 4px 6px 10px; background: var(--bone); font-size: .85rem; }
.stop-suggest { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; }
.stop-suggest span { color: var(--ink-soft); align-self: center; }
.stop-suggest button { border: 1px dashed var(--ink-soft); background: none; padding: 4px 10px; cursor: pointer; font-size: .8rem; }
.stop-suggest button:hover { border-style: solid; border-color: var(--ink); }

.plan-empty { display: grid; gap: 12px; margin: 20px 0; }
.ghost-stamp { --stamp-bg: var(--paper); aspect-ratio: 5 / 2; }
.ghost-stamp .stamp__inner { outline-style: dashed; outline-color: var(--ink-soft); display: grid; place-items: center; color: var(--ink-soft); font-size: .9rem; }
.album-actions { display: grid; gap: 12px; border-top: 1.5px solid var(--line); padding-top: 20px; }
.album-links { display: flex; gap: 18px; flex-wrap: wrap; }
.text-btn { border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; font-size: .9rem; }
.text-btn:disabled { opacity: .4; cursor: default; }
.small { font-size: .82rem; margin: 0; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 12px 18px; font-size: .9rem; opacity: 0; transition: opacity .25s, transform .3s var(--ease); z-index: 95; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1039px) {
  .album-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 55; box-shadow: 0 -8px 30px rgba(28, 27, 23, .18); }
  .album-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 14px var(--gutter); min-height: 60px; border: 0; background: var(--ink); color: var(--paper); font-weight: 500; cursor: pointer; }
  .album-body { display: none; max-height: 72vh; }
  .album-panel.is-open .album-body { display: block; }
  .is-planner .float-wa { bottom: 76px; }
}

.plan-stop .stamp__inner, .ghost-stamp .stamp__inner { background: var(--paper); }
