/* ═══════════════════════════════════════════════════════════════════
   What kind of trip
   ═══════════════════════════════════════════════════════════════════
   Six cards, in the same language as the rest of the homepage: hairline
   edges, --hub-elev grounds, the accent used once per card and nowhere
   else. Not six coloured tiles — the colour would be the loudest thing
   on a page whose job is to let a season map and a search bar speak.
   ═══════════════════════════════════════════════════════════════════ */

.tc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.tc-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.35rem 1.1rem;
    border: 1px solid var(--hub-hairline);
    border-radius: var(--hub-radius);
    background: var(--hub-elev);
    transition: border-color var(--hub-transition), transform var(--hub-transition);
}

.tc-card:hover {
    border-color: rgb(var(--hub-accent-rgb) / 0.45);
    transform: translateY(-2px);
}

/* The whole heading block is the link, so the target is the card's
   substance rather than four words of it. */
.tc-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tc-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 0.85rem;
    border-radius: 12px;
    background: rgb(var(--hub-accent-rgb) / 0.1);
    color: var(--hub-accent-strong);
}

.tc-icon svg { width: 24px; height: 24px; display: block; }

.tc-name {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.tc-link:hover .tc-name { color: var(--hub-accent-strong); }

.tc-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--hub-ink-muted);
}

/* ── Where and how many ─────────────────────────────────────────── */

.tc-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1rem 0 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--hub-hairline);
    font-size: 0.78rem;
}

.tc-regions {
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--hub-ink-muted);
}

.tc-count {
    color: var(--hub-ink-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ── The places behind the label ────────────────────────────────── */

.tc-places {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tc-places a,
.tc-more {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.6rem;
    border: 1px solid var(--hub-hairline);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--hub-ink-muted);
    text-decoration: none;
    white-space: nowrap;
}

.tc-places a:hover {
    border-color: rgb(var(--hub-accent-rgb) / 0.5);
    color: var(--hub-accent-strong);
}

.tc-more { border-style: dashed; }

@media (hover: none) and (pointer: coarse) {
    /* 44px like every other control on the site. The cards grow, but on a
       phone they are a single column and the height is not precious. */
    .tc-places a,
    .tc-more { min-height: 44px; }
    .tc-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .tc-card { transition: none; }
    .tc-card:hover { transform: none; }
}

/* The planner above ends with 72px of its own padding and .td-section adds
   another 72 on top, so 170px of white space sat between the last thing you
   read and this heading. These two sections are one thought — the region
   decides when, the category decides where — so they close up. */
#trip-categories-wrap { padding-top: 0; }

/* The planner's own bottom padding is the other half of that gap. It keeps
   its full spacing everywhere else; only where these two meet does it close
   up, because the category grid is the answer to the map above it. */
#personal-cockpit { padding-bottom: clamp(1.5rem, 3vw, 2.25rem); }
