/* ──────────────────────────────────────────────────────────────────────
   Trail / Review / Post page-specific styles
   ────────────────────────────────────────────────────────────────────── */

/* ─── Trail single ─── */
.tdm-trail-hero {
    position: relative;
    color: var(--tdm-cream);
    background-color: var(--tdm-charcoal);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
}
.tdm-trail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.4) 40%,
        rgba(0,0,0,0.85) 100%);
    z-index: 1;
}
.tdm-trail-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}
.tdm-trail-hero-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--tdm-gold);
    margin-bottom: 16px;
}
.tdm-trail-hero-title {
    color: var(--tdm-cream);
    font-size: clamp(2rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin: 0 0 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    max-width: 900px;
}
.tdm-trail-hero-tagline {
    font-family: 'Roboto Slab', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(245, 234, 211, 0.92);
    margin: 0 0 20px;
    max-width: 720px;
}
.tdm-trail-hero-difficulty .tdm-difficulty-pill {
    position: static;
    display: inline-block;
}

/* Trail body */
.tdm-trail-body {
    padding: 64px 0 80px;
}
.tdm-trail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
@media (min-width: 1000px) {
    .tdm-trail-grid {
        grid-template-columns: 1fr 320px;
        gap: 64px;
        align-items: start;
    }
}
.tdm-trail-content { min-width: 0; }

/* Specs sidebar */
.tdm-trail-specs-sidebar {
    background: #fff;
    border: 1px solid var(--tdm-border);
    border-radius: 4px;
    padding: 32px;
    position: sticky;
    top: 100px;
}
.tdm-sidebar-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tdm-gold);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--tdm-gold);
}
.tdm-specs-dl {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
.tdm-specs-dl dt {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tdm-text-muted);
    margin: 0;
    padding: 14px 0 4px;
    border-top: 1px solid var(--tdm-border);
}
.tdm-specs-dl dt:first-child { border-top: none; padding-top: 0; }
.tdm-specs-dl dd {
    margin: 0 0 12px;
    font-weight: 500;
    color: var(--tdm-text);
    font-size: 0.95rem;
}
.tdm-specs-dl dd a {
    color: var(--tdm-text);
    text-decoration: underline;
    text-decoration-color: var(--tdm-gold);
    text-decoration-thickness: 1px;
}
.tdm-specs-dl dd a:hover { color: var(--tdm-gold); }

/* Post byline */
.tdm-post-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.92rem;
    color: var(--tdm-text-muted);
    margin: 0 0 32px;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--tdm-border);
}
.tdm-byline-author { font-weight: 500; color: var(--tdm-text); }
.tdm-byline-sep { opacity: 0.5; }
.tdm-byline-cat {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
    color: var(--tdm-gold);
    font-weight: 500;
}

/* ─── Trail archive ─── */
.tdm-archive-hero {
    padding: 80px 0 56px;
    background: var(--tdm-offwhite);
}
.tdm-trail-archive .tdm-archive-hero,
.tdm-archive-hero.tdm-dark-band {
    background: var(--tdm-dark-band);
    color: var(--tdm-cream);
}
.tdm-archive-hero.tdm-dark-band .tdm-archive-title { color: var(--tdm-cream); }
.tdm-archive-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0 0 12px;
}
.tdm-archive-sub {
    font-size: 1.15rem;
    color: var(--tdm-text-muted);
    max-width: 720px;
    margin: 0;
}
.tdm-dark-band .tdm-archive-sub { color: rgba(245, 234, 211, 0.7); }

.tdm-archive-map {
    width: 100%;
    background: var(--tdm-dark-band);
    padding: 0;
}
.tdm-archive-map > * {
    display: block;
    width: 100%;
}
.tdm-map-full {
    width: 100%;
    margin-top: 32px;
}
.tdm-map-full > * { width: 100%; }

.tdm-archive-grid-section {
    padding: 64px 0 80px;
}

/* ─── Review single ─── */
.tdm-review-hero {
    padding: 64px 0 32px;
    background: var(--tdm-offwhite);
}
.tdm-review-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tdm-gold);
    margin-bottom: 12px;
}
.tdm-review-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    margin: 0 0 16px;
    max-width: 900px;
    line-height: 1.1;
}
.tdm-review-image {
    background: var(--tdm-offwhite);
}
.tdm-review-hero-img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 4px;
}

.tdm-review-body {
    padding: 48px 0 80px;
}
.tdm-review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
@media (min-width: 1000px) {
    .tdm-review-grid {
        grid-template-columns: 1fr 320px;
        gap: 64px;
        align-items: start;
    }
}

.tdm-review-callout {
    background: #fff;
    border-left: 4px solid var(--tdm-gold);
    padding: 28px 32px;
    border-radius: 4px;
    margin: 0 0 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.tdm-review-callout-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.tdm-review-stars {
    color: var(--tdm-gold);
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    line-height: 1;
}
.tdm-review-rating-num {
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--tdm-charcoal);
}
.tdm-review-verdict {
    margin: 0 0 20px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Pros / Cons */
.tdm-review-procon {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px 0;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--tdm-border);
    border-radius: 4px;
}
@media (min-width: 600px) {
    .tdm-review-procon { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.tdm-review-pros h3, .tdm-review-cons h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid;
}
.tdm-review-pros h3 { color: #4a8f3a; border-color: #4a8f3a; }
.tdm-review-cons h3 { color: #c0392b; border-color: #c0392b; }
.tdm-review-pros ul, .tdm-review-cons ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tdm-review-pros li, .tdm-review-cons li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 0.97rem;
}
.tdm-review-pros li::before {
    content: '✓';
    position: absolute;
    left: 0; top: 0;
    color: #4a8f3a;
    font-weight: 700;
    font-size: 1.1em;
}
.tdm-review-cons li::before {
    content: '✕';
    position: absolute;
    left: 0; top: 0;
    color: #c0392b;
    font-weight: 700;
    font-size: 1.1em;
}

/* Review spec card sidebar */
.tdm-review-spec-card {
    background: var(--tdm-charcoal);
    color: var(--tdm-cream);
    padding: 32px;
    border-radius: 4px;
    position: sticky;
    top: 100px;
}
.tdm-review-spec-card h3 {
    color: var(--tdm-gold);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--tdm-gold);
}
.tdm-review-spec-card dl { margin: 0; }
.tdm-review-spec-card dt {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(245, 234, 211, 0.6);
    margin: 0;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(245, 234, 211, 0.15);
}
.tdm-review-spec-card dt:first-child { border-top: none; padding-top: 0; }
.tdm-review-spec-card dd {
    margin: 0 0 8px;
    color: var(--tdm-cream);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ─── Single post (Journal) ─── */
.tdm-post-hero {
    padding: 64px 0 32px;
    background: var(--tdm-offwhite);
}
.tdm-post-hero-narrow {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.tdm-post-hero-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--tdm-gold);
    margin-bottom: 16px;
}
.tdm-post-title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.1;
    margin: 0 0 20px;
    letter-spacing: -0.015em;
}
.tdm-post-deck {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-style: italic;
    line-height: 1.5;
    color: var(--tdm-text-muted);
    margin: 0 auto 28px;
    max-width: 720px;
}
.tdm-post-hero-narrow .tdm-post-byline {
    justify-content: center;
    border-bottom: none;
    padding-bottom: 0;
}
.tdm-post-feature-image {
    margin: 0 auto 48px;
    max-width: 1320px;
    padding: 0 24px;
}
.tdm-post-feature-image img {
    width: 100%;
    max-height: 720px;
    object-fit: cover;
    border-radius: 4px;
}
.tdm-post-body { padding-bottom: 64px; }

.tdm-post-tags {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--tdm-border);
    font-size: 0.92rem;
}
.tdm-post-tags span {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
    color: var(--tdm-text-muted);
    margin-right: 8px;
}
.tdm-post-tags a {
    text-decoration: underline;
    text-decoration-color: var(--tdm-border);
    margin-right: 8px;
}
.tdm-post-tags a:hover {
    text-decoration-color: var(--tdm-gold);
    color: var(--tdm-gold);
}

/* ─── Page ─── */
.tdm-page-header {
    padding: 64px 0 32px;
    background: var(--tdm-offwhite);
}
.tdm-page-header .tdm-post-narrow { text-align: left; }
.tdm-page-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin: 0;
}
.tdm-page-feature-image {
    margin: 0 auto 48px;
    max-width: 1320px;
    padding: 0 24px;
}
.tdm-page-feature-image img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 4px;
}
.tdm-page-body { padding-bottom: 80px; }

/* ─── Featured trails / map sections specifics ─── */
.tdm-section-map { padding: 80px 0 0; }
.tdm-section-map .tdm-section-header { padding: 0 0 32px; }

.tdm-conditions-feed {
    margin-top: 32px;
}

/* Related products / trails on single trail page */
.tdm-trail-products {
    margin-top: 48px;
    padding: 64px 0;
}
.tdm-product-card {
    text-align: center;
}
.tdm-product-price {
    color: var(--tdm-gold);
    font-weight: 600;
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 1.1rem;
    margin-top: 8px;
}

/* ─── WC compatibility tweaks ─── */
.tdm-wc-main { padding: 64px 0; }
.tdm-wc-main .product { margin-bottom: 32px; }
.woocommerce ul.products li.product .button {
    background: var(--tdm-charcoal) !important;
    color: var(--tdm-cream) !important;
    border-radius: 3px !important;
    font-family: 'Inter', sans-serif !important;
}
.woocommerce ul.products li.product .button:hover {
    background: var(--tdm-gold) !important;
    color: var(--tdm-charcoal) !important;
}

/* ─── Responsive niceties ─── */
@media (max-width: 600px) {
    .tdm-section { padding: 56px 0; }
    .tdm-archive-hero { padding: 48px 0 32px; }
    .tdm-trail-hero { padding: 64px 0; }
    .tdm-trail-body { padding: 40px 0 56px; }
    .tdm-trail-specs-sidebar { padding: 24px; }
    .tdm-review-callout { padding: 20px 24px; }
    .tdm-review-procon { padding: 24px; }
    .tdm-review-spec-card { padding: 24px; }
    .tdm-card-body { padding: 20px; }
    .tdm-card-grid { gap: 24px; }
}

/* ──────────────────────────────────────────────────────────────────────
   Trail tile — clean content card
   Light box with content in natural flow. Aspect-ratio locks the height/width
   so every card in the grid is identically sized regardless of content.
   ────────────────────────────────────────────────────────────────────── */

.tdm-trail-tile {
    position: relative;
    border-radius: 4px;
    background: #fff;
    border: 1px solid var(--tdm-border, #e5e0d4);
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    /* No aspect-ratio: content drives the height. The grid's default stretch
       alignment makes every card in a row match the tallest, and min-height
       sets a floor so cards never collapse below readable size. */
    min-height: 260px;
    height: 100%;
    color: var(--tdm-charcoal, #1a1a1a);
}
.tdm-trail-tile.tdm-trail-tile-portrait {
    min-height: 260px;
}
.tdm-trail-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(26, 26, 26, 0.10);
    border-color: var(--tdm-gold, #c8a84b);
}

.tdm-trail-tile-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* Content fills the card and distributes vertically.
   35px top + bottom padding, sides 24px. flex-column with space-between
   pins the meta row to the bottom and the top row to the top, with the
   title/tagline in the middle. */
.tdm-trail-tile-content {
    height: 100%;
    padding: 35px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
}

/* Top row — country eyebrow and difficulty pill on the same line */
.tdm-trail-tile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 1em;
}

.tdm-trail-tile-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--tdm-gold, #c8a84b);
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Difficulty pill flows inline in the top row instead of being absolute */
.tdm-trail-tile .tdm-difficulty-pill {
    position: static;
    flex: 0 0 auto;
    padding: 3px 8px;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
}

/* Middle area — title + tagline */
.tdm-trail-tile-mid {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.tdm-trail-tile-title {
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: var(--tdm-charcoal, #1a1a1a);
    margin: 0;
    /* Cap to two lines so the meta row always has room */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tdm-trail-tile-tagline {
    color: var(--tdm-text-muted, #555);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta row — pinned to the bottom by flex */
.tdm-trail-tile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.82rem;
    color: var(--tdm-text-muted, #555);
    padding-top: 12px;
    border-top: 1px solid var(--tdm-border, #e5e0d4);
    flex: 0 0 auto;
}
.tdm-trail-tile-meta span:not(:last-child)::after {
    content: '·';
    margin-left: 12px;
    opacity: 0.55;
}
.tdm-trail-tile-rating {
    color: var(--tdm-charcoal, #1a1a1a);
    font-weight: 600;
}
.tdm-trail-tile-rating small {
    color: var(--tdm-text-muted, #555);
    font-weight: 400;
}

/* Carousel sizing unchanged so homepage layout doesn't shift */
.tdm-card-grid > .tdm-trail-tile,
.tdm-carousel-track > .tdm-trail-tile {
    min-width: 0;
}
.tdm-carousel-track > .tdm-trail-tile {
    flex: 0 0 280px;
    scroll-snap-align: start;
}
@media (min-width: 768px) {
    .tdm-carousel-track > .tdm-trail-tile { flex: 0 0 320px; }
}

/* Tighter padding on small viewports to avoid crowding */
@media (max-width: 600px) {
    .tdm-trail-tile-content {
        padding: 28px 20px;
        gap: 10px;
    }
    .tdm-trail-tile-title { font-size: 1.05rem; }
    .tdm-trail-tile-tagline { font-size: 0.85rem; }
    .tdm-trail-tile-meta { font-size: 0.78rem; gap: 6px 10px; }
}

/* Atlas grid filter — loading + filtered states */
.tdm-card-grid.is-loading {
    opacity: 0.55;
    transition: opacity 0.15s ease;
    pointer-events: none;
}
.tdm-card-grid.is-filtered + .tdm-pagination {
    display: none;
}

/* ──────────────────────────────────────────────────────────────────────
   Trail archive filter bar — search input + sort select sit above the grid
   ────────────────────────────────────────────────────────────────────── */

.tdm-archive-filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 14px 18px;
    background: #faf6ec;
    border: 1px solid var(--tdm-border, #e5e0d4);
    border-radius: 4px;
}

.tdm-archive-filter-search {
    flex: 1 1 320px;
    min-width: 220px;
}
.tdm-archive-filter-search input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--tdm-border, #d4d0c4);
    border-radius: 3px;
    font-size: 0.95rem;
    font-family: 'Inter', system-ui, sans-serif;
    background: #fff;
    color: var(--tdm-charcoal, #1a1a1a);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}
.tdm-archive-filter-search input:focus {
    outline: none;
    border-color: var(--tdm-gold, #c8a84b);
    box-shadow: 0 0 0 3px rgba(200, 168, 75, 0.15);
}
.tdm-archive-filter-search input::placeholder {
    color: #9a9a8a;
}

.tdm-archive-filter-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.tdm-archive-filter-sort label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tdm-text-muted, #555);
    white-space: nowrap;
}
.tdm-archive-filter-sort select {
    padding: 9px 30px 9px 12px;
    border: 1px solid var(--tdm-border, #d4d0c4);
    border-radius: 3px;
    font-size: 0.92rem;
    font-family: 'Inter', system-ui, sans-serif;
    background: #fff;
    color: var(--tdm-charcoal, #1a1a1a);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%231a1a1a' stroke-width='1.6'><path d='M1 1.5l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
}
.tdm-archive-filter-sort select:focus {
    outline: none;
    border-color: var(--tdm-gold, #c8a84b);
    box-shadow: 0 0 0 3px rgba(200, 168, 75, 0.15);
}

.tdm-archive-filter-status {
    flex: 0 0 auto;
    font-size: 0.85rem;
    color: var(--tdm-text-muted, #555);
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 1em;
}

@media (max-width: 600px) {
    .tdm-archive-filter-bar {
        padding: 12px;
        gap: 12px;
    }
    .tdm-archive-filter-search { flex: 1 1 100%; }
    .tdm-archive-filter-sort   { flex: 1 1 100%; }
    .tdm-archive-filter-sort select { flex: 1; }
    .tdm-archive-filter-status {
        flex: 1 1 100%;
        text-align: right;
    }
}

/* Visually-hidden helper for accessible form labels */
.tdm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ──────────────────────────────────────────────────────────────────────
   Trail body — Trail Specs table (rendered by GATS plugin into the body)
   Themed to match the rest of the trail page rather than the plugin default.
   ────────────────────────────────────────────────────────────────────── */

.tdm-prose .gats-specs-wrap,
.tdm-trail-content .gats-specs-wrap {
    margin: 32px 0 40px;
    padding: 28px 32px;
    background: #fff;
    border: 1px solid var(--tdm-border, #e5e0d4);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.04);
}
.tdm-prose .gats-specs-wrap .gats-section-title,
.tdm-trail-content .gats-specs-wrap .gats-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tdm-gold, #c8a84b);
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--tdm-gold, #c8a84b);
}
.tdm-prose .gats-specs,
.tdm-trail-content .gats-specs {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    margin: 0;
}
.tdm-prose .gats-specs tr,
.tdm-trail-content .gats-specs tr {
    border-bottom: 1px solid var(--tdm-border, #e5e0d4);
}
.tdm-prose .gats-specs tr:last-child,
.tdm-trail-content .gats-specs tr:last-child {
    border-bottom: none;
}
.tdm-prose .gats-specs th,
.tdm-trail-content .gats-specs th {
    text-align: left;
    padding: 12px 16px 12px 0;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tdm-text-muted, #555);
    width: 40%;
    vertical-align: top;
}
.tdm-prose .gats-specs td,
.tdm-trail-content .gats-specs td {
    padding: 12px 0;
    font-size: 0.95rem;
    color: var(--tdm-charcoal, #1a1a1a);
    vertical-align: top;
}
.tdm-prose .gats-specs td a,
.tdm-trail-content .gats-specs td a {
    color: var(--tdm-charcoal, #1a1a1a);
    text-decoration: none;
    border-bottom: 1px solid var(--tdm-gold, #c8a84b);
}
.tdm-prose .gats-specs td a:hover,
.tdm-trail-content .gats-specs td a:hover {
    color: var(--tdm-gold, #c8a84b);
}

@media (max-width: 600px) {
    .tdm-prose .gats-specs-wrap,
    .tdm-trail-content .gats-specs-wrap {
        padding: 20px 22px;
    }
    .tdm-prose .gats-specs th,
    .tdm-trail-content .gats-specs th {
        font-size: 0.72rem;
    }
    .tdm-prose .gats-specs td,
    .tdm-trail-content .gats-specs td {
        font-size: 0.88rem;
    }
}

/* ──────────────────────────────────────────────────────────────────────
   Place tiles — inherit everything from .tdm-trail-tile, customize the
   cost pill (Free = green, Paid = gold). The eyebrow color is also
   muted slightly so the waypoint type doesn't compete visually with the
   gold country eyebrow on trail cards above it in mixed grids.
   ────────────────────────────────────────────────────────────────────── */

.tdm-place-tile .tdm-difficulty-pill.tdm-place-pill-free {
    background: #4a8f3a;
    color: #fff;
}
.tdm-place-tile .tdm-difficulty-pill.tdm-place-pill-paid {
    background: var(--tdm-gold, #c8a84b);
    color: var(--tdm-charcoal, #1a1a1a);
}

/* ── Trip single page ───────────────────────────────────────────────────── */
.tdm-trip-status-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}
.tdm-trip-dates {
    color: var(--tdm-cream);
    font-size: 14px;
    opacity: 0.85;
}
.tdm-trip-actions {
    margin-top: 18px;
}
.tdm-trip-map-section {
    padding: 32px 0 12px;
}
.tdm-trip-body {
    padding: 12px 0 64px;
}
.tdm-trip-narrative {
    margin-bottom: 32px;
}
.tdm-trip-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tdm-gold);
}

/* ── Trip page inline metadata editor ───────────────────────────────────── */
.tdm-trip-summary-empty,
.tdm-trip-dates-empty {
    opacity: 0.65;
}
.tdm-trip-edit-panel {
    margin-top: 22px;
    padding: 22px 24px;
    background: rgba(255, 248, 229, 0.08);
    border: 1px solid rgba(200, 168, 75, 0.35);
    border-radius: 8px;
}
.tdm-trip-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.tdm-trip-edit-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.tdm-trip-edit-field-grow {
    grid-column: 1 / -1;
}
.tdm-trip-edit-field span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tdm-cream, #fff8e5);
    opacity: 0.85;
}
.tdm-trip-edit-field input,
.tdm-trip-edit-field select,
.tdm-trip-edit-field textarea {
    padding: 8px 10px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    border: 1px solid rgba(200, 168, 75, 0.4);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    transition: border-color 0.12s, background 0.12s;
}
.tdm-trip-edit-field input:focus,
.tdm-trip-edit-field select:focus,
.tdm-trip-edit-field textarea:focus {
    border-color: var(--tdm-gold, #c8a84b);
    background: #fff;
    outline: none;
}
.tdm-trip-edit-field textarea {
    resize: vertical;
    min-height: 50px;
}
.tdm-trip-edit-status {
    margin-top: 14px;
    min-height: 18px;
    font-size: 12px;
    transition: color 0.2s;
}
.tdm-trip-edit-status.is-saving { color: var(--tdm-gold, #c8a84b); }
.tdm-trip-edit-status.is-saved  { color: #98c97f; }
.tdm-trip-edit-status.is-error  { color: #ff8a7a; }

@media (max-width: 700px) {
    .tdm-trip-edit-grid { grid-template-columns: 1fr; }
}

/* ── Trip hero action buttons (dark hero context) ───────────────────────── */
.tdm-trip-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.tdm-trip-actions .tdm-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--tdm-cream, #fff8e5) !important;
    border: 1px solid rgba(200, 168, 75, 0.6) !important;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1.2;
}
.tdm-trip-actions .tdm-btn-secondary:hover {
    background: var(--tdm-gold, #c8a84b) !important;
    border-color: var(--tdm-gold, #c8a84b) !important;
    color: #1a1a1a !important;
}
.tdm-trip-actions .tdm-btn-secondary:focus {
    outline: 2px solid var(--tdm-gold, #c8a84b);
    outline-offset: 2px;
}
