/* trail-discovery-card.css â prefix: tdc- */

.tdc-card--anim-0 { animation-delay: 0ms; }
.tdc-card--anim-1 { animation-delay: 70ms; }
.tdc-card--anim-2 { animation-delay: 140ms; }
.tdc-card--anim-3 { animation-delay: 210ms; }
.tdc-card--anim-4 { animation-delay: 280ms; }
.tdc-card--anim-5 { animation-delay: 350ms; }

.tdc-card {
    display: flex;
    flex-direction: column;
    background: var(--antologa-paper);
    border-radius: 1.5rem;
    border: 1px solid var(--antologa-light-gray);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.2s ease;
    animation: tdcFadeUp 0.45s ease both;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.tdc-card--interactive {
    cursor: pointer;
}

@media (hover: hover) {
    .tdc-card--interactive:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
    }

    .tdc-card--interactive:hover .tdc-card__img {
        transform: scale(1.04);
    }
}

.tdc-card--active {
    border-color: var(--antologa-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--antologa-primary) 35%, transparent);
}

.tdc-card__hero {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    flex-shrink: 0;
}

.tdc-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.tdc-card__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 35%, rgba(0, 0, 0, 0.78) 100%);
    pointer-events: none;
}

.tdc-card__titles {
    min-width: 0;
    flex: 1;
}

.tdc-card__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.tdc-card__type-icon {
    flex-shrink: 0;
    font-size: 1.55rem !important;
    width: 1.55rem !important;
    height: 1.55rem !important;
    color: var(--antologa-primary) !important;
}

.tdc-card__avatars {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.tdc-card__avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--antologa-pure-white, #fff);
    background: color-mix(in srgb, var(--antologa-primary, #078282) 16%, #e8eef1);
    margin-left: -0.45rem;
    box-shadow: 0 1px 4px rgba(0, 79, 113, 0.18);
}

.tdc-card__avatar:last-child {
    margin-left: 0;
}

.tdc-card__loc-icon {
    font-size: 1rem !important;
    color: var(--antologa-gray) !important;
    flex-shrink: 0;
}

.tdc-card__fact-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.tdc-card__fact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    background: var(--antologa-surface-cool, #f3f4f6);
    color: var(--antologa-secondary, #004F71);
}

.tdc-card__fact-glyph {
    font-size: 1.05rem !important;
    width: 1.05rem !important;
    height: 1.05rem !important;
}

.tdc-card__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--fs-subtitle1, 1.125rem);
    font-weight: 700;
    line-height: var(--lh-heading, 1.25);
    letter-spacing: var(--ls-normal, 0);
    color: var(--antologa-dark);
}

.tdc-card__title--body {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tdc-card__subtitle {
    display: block;
    margin-top: 0.2rem;
    font-size: var(--fs-body2, 0.875rem);
    line-height: var(--lh-ui, 1.4);
    color: var(--antologa-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tdc-card__subtitle--body {
    color: var(--antologa-gray);
}

.tdc-card__desc {
    margin: 0.15rem 0 0.1rem;
    font-family: var(--font-body);
    font-size: var(--fs-body2, 0.875rem);
    line-height: var(--lh-prose, 1.7);
    letter-spacing: var(--ls-normal, 0);
    color: var(--antologa-gray);
    text-wrap: pretty;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tdc-card__desc--single {
    -webkit-line-clamp: 1;
}

.tdc-card__read-more {
    display: inline;
    margin-left: 0.2rem;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    color: var(--antologa-primary);
    cursor: pointer;
}

.tdc-card__directions {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--antologa-primary);
    text-decoration: none;
    white-space: nowrap;
}

.tdc-card__directions--text:hover {
    color: var(--antologa-heading-ink);
    text-decoration: underline;
}

.tdc-card__cta {
    width: 100%;
    font-family: var(--font-body) !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: var(--antologa-ink) !important;
    background: var(--antologa-secondary) !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 0.55em 1.2em !important;
    text-transform: none !important;
}

.tdc-card__cta:hover {
    background: var(--antologa-primary) !important;
}

.tdc-card__cta--list {
    width: auto;
    min-width: 7.5rem;
}

.tdc-card__overlay-row {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tdc-card__price {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: var(--antologa-ink);
    font-size: 0.72rem;
    font-weight: 700;
}

.tdc-card__heart {
    width: 2rem !important;
    height: 2rem !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--antologa-gray) !important;
}

.tdc-card__heart--on {
    color: var(--antologa-tertiary) !important;
}

.tdc-card__body {
    position: relative;
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.tdc-card__meta-head {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tdc-card__difficulty {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--antologa-dark);
}

.tdc-card__difficulty--easy     { color: var(--antologa-primary); }
.tdc-card__difficulty--moderate { color: var(--antologa-gold-700, #9a6b1a); }
.tdc-card__difficulty--hard     { color: var(--antologa-tertiary); }
.tdc-card__difficulty--expert   { color: var(--antologa-heading-ink); }

.tdc-card__attribution {
    font-size: 0.72rem;
    color: var(--antologa-gray);
    line-height: 1.35;
}

.tdc-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    align-items: center;
}

.tdc-fact {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    max-width: 100%;
}

.tdc-fact--link {
    color: var(--antologa-primary);
    text-decoration: none;
    font-weight: 700;
}

.tdc-fact--link:hover .tdc-fact__value {
    text-decoration: underline;
}

.tdc-fact__dot {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tdc-fact__dot svg {
    width: 0.75rem;
    height: 0.75rem;
}

.tdc-fact__icon {
    font-size: 1.05rem !important;
    width: 1.05rem !important;
    height: 1.05rem !important;
    flex-shrink: 0;
    color: var(--antologa-heading-ink) !important;
}

.tdc-fact__icon--easy     { color: var(--antologa-primary) !important; }
.tdc-fact__icon--moderate { color: var(--antologa-gold-700, #9a6b1a) !important; }
.tdc-fact__icon--hard     { color: var(--antologa-tertiary) !important; }
.tdc-fact__icon--expert   { color: var(--antologa-heading-ink) !important; }

.tdc-fact__value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--antologa-dark);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 10rem;
}

.tdc-fact--link .tdc-fact__value {
    color: var(--antologa-primary);
    font-weight: 700;
}

.tdc-fact .tdc-card__difficulty {
    font-size: 0.8rem;
}

.tdc-card__stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.tdc-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.tdc-stat__value {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--antologa-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tdc-stat__label {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--antologa-gray);
}

.tdc-card__map-inset {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--antologa-light-gray);
    background: var(--antologa-surface-cool, #f3f4f6);
    align-self: flex-end;
}

.tdc-card__price-block {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.tdc-card__from {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--antologa-gray);
}

.tdc-card__price-lg {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--antologa-primary);
    letter-spacing: -0.02em;
}

.tdc-card__comfort-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}

.tdc-card__map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tdc-card__hero--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tdc-type-color, var(--antologa-border));
}

.tdc-card__type-glyph {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.tdc-card__type-glyph svg {
    width: 2.75rem;
    height: 2.75rem;
}

/* List layout (tour browse list view / map sidebars) */
.tdc-card--list {
    flex-direction: row;
    height: 7rem;
    min-height: 7rem;
    max-height: 7rem;
    flex-shrink: 0;
    border-radius: 0.875rem;
    overflow: hidden;
}

.tdc-card--list .tdc-card__hero {
    width: 7rem;
    min-width: 7rem;
    max-width: 7rem;
    height: 7rem;
    aspect-ratio: auto;
    align-self: stretch;
    flex-shrink: 0;
}

.tdc-card--list .tdc-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tdc-card--list .tdc-card__hero--placeholder .tdc-card__type-glyph svg {
    width: 2.25rem;
    height: 2.25rem;
}

.tdc-card--list .tdc-card__body {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0.55rem 0.7rem 0.55rem;
    gap: 0.3rem;
    justify-content: center;
    overflow: hidden;
}

.tdc-card--list .tdc-card__list-head {
    display: flex;
    align-items: flex-start;
    min-width: 0;
}

.tdc-card--list .tdc-card__list-titles {
    min-width: 0;
    flex: 1;
}

.tdc-card--list .tdc-card__title--list {
    color: var(--antologa-slate-900, var(--antologa-dark));
    font-size: 0.8125rem;
    font-weight: 800;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

.tdc-card--list .tdc-card__location {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--antologa-slate-500, var(--antologa-gray));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tdc-card--list .tdc-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.tdc-card__meta-icons {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    overflow: hidden;
}

.tdc-card__meta-sep {
    flex-shrink: 0;
    width: 1px;
    height: 1rem;
    background: var(--antologa-border, #d1d5db);
}

.tdc-card__pack,
.tdc-card__go {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}

.tdc-card__pack-item,
.tdc-card__go-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: var(--antologa-surface-cool, #f3f4f6);
    color: var(--antologa-heading-ink);
    flex-shrink: 0;
}

.tdc-card__pack-icon {
    font-size: 0.85rem !important;
    width: 0.85rem !important;
    height: 0.85rem !important;
}

.tdc-signal {
    display: flex;
    align-items: flex-end;
    gap: 1.5px;
    height: 0.85rem;
    flex-shrink: 0;
}

.tdc-signal__bar {
    width: 2.5px;
    border-radius: 1px;
    background: var(--antologa-slate-300, #d1d5db);
}

.tdc-signal__bar:nth-child(1) { height: 3px; }
.tdc-signal__bar:nth-child(2) { height: 5px; }
.tdc-signal__bar:nth-child(3) { height: 7px; }
.tdc-signal__bar:nth-child(4) { height: 9px; }

.tdc-signal--spotty .tdc-signal__bar:nth-child(1),
.tdc-signal--fair .tdc-signal__bar:nth-child(-n+2),
.tdc-signal--good .tdc-signal__bar {
    background: var(--antologa-primary);
}

.tdc-signal--none .tdc-signal__bar {
    background: var(--antologa-slate-300, #d1d5db);
}

.tdc-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    background: var(--antologa-surface-cool, #f3f4f6);
    color: var(--antologa-slate-700, #374151);
}

.tdc-chip--difficulty {
    background: color-mix(in srgb, var(--antologa-primary) 12%, var(--antologa-paper));
    color: var(--antologa-primary);
}

.tdc-chip--easy {
    background: color-mix(in srgb, var(--antologa-primary) 12%, var(--antologa-paper));
    color: var(--antologa-primary);
}

.tdc-chip--moderate {
    background: color-mix(in srgb, var(--antologa-gold-700, #9a6b1a) 14%, var(--antologa-paper));
    color: var(--antologa-gold-700, #9a6b1a);
}

.tdc-chip--hard,
.tdc-chip--expert {
    background: color-mix(in srgb, var(--antologa-tertiary) 12%, var(--antologa-paper));
    color: var(--antologa-tertiary);
}

.tdc-chip--type {
    background: var(--antologa-surface-cool2, #e8eef2);
    color: var(--antologa-heading-ink);
}

.tdc-card--list.tdc-card--comfort {
    height: auto;
    min-height: 12rem;
    max-height: none;
    padding: 0.65rem;
    gap: 0;
    border-radius: 1.5rem;
}

.tdc-card--comfort .tdc-card__hero {
    width: 14rem;
    min-width: 14rem;
    max-width: 14rem;
    height: auto;
    min-height: 11rem;
    align-self: stretch;
    border-radius: 1.1rem;
    overflow: hidden;
}

.tdc-card--comfort .tdc-card__body {
    padding: 0.85rem 1rem 1rem;
    gap: 0.55rem;
    justify-content: flex-start;
}

.tdc-card--comfort .tdc-card__title--list {
    font-size: 1.05rem;
    -webkit-line-clamp: 1;
}

@media (hover: hover) {
    .tdc-card--list.tdc-card--interactive:hover {
        transform: none;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .tdc-card--list.tdc-card--interactive:hover .tdc-card__img {
        transform: none;
    }

    .tdc-card--comfort.tdc-card--interactive:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 32px color-mix(in srgb, var(--antologa-primary) 11%, transparent), 0 3px 10px rgba(0, 0, 0, 0.05);
    }

    .tdc-card--comfort.tdc-card--interactive:hover .tdc-card__img {
        transform: scale(1.04);
    }
}

@keyframes tdcFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .tdc-card__title {
        font-size: 0.95rem;
    }

    .tdc-card--list .tdc-card__title--list {
        font-size: 0.8125rem;
    }

    .tdc-card--comfort {
        flex-direction: column;
        min-height: 0;
    }

    .tdc-card--comfort .tdc-card__hero {
        width: 100%;
        min-width: unset;
        max-width: none;
        min-height: 0;
        aspect-ratio: 16 / 10;
        height: auto;
    }

    .tdc-card--comfort .tdc-card__cta--list {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tdc-card,
    .tdc-card__img {
        animation: none !important;
        transition: none !important;
    }
}

/* Map peek carousel — vertical photo cards */
.tdc-card--carousel {
    flex-direction: column;
    width: clamp(13rem, 44vw, 16.5rem);
    min-width: clamp(13rem, 44vw, 16.5rem);
    max-width: 16.5rem;
    height: auto;
    min-height: 0;
    max-height: none;
    flex-shrink: 0;
    scroll-snap-align: center;
    border-radius: 0.875rem;
    overflow: hidden;
}

.tdc-card--carousel .tdc-card__hero {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: clamp(7rem, 24vw, 9.5rem);
    aspect-ratio: auto;
}

.tdc-card--carousel .tdc-card__body {
    padding: 0.6rem 0.7rem 0.75rem;
    gap: 0.3rem;
}

.tdc-card__title--carousel {
    margin: 0;
    font-size: clamp(0.8125rem, 2.2vw, 0.9375rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--antologa-slate-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tdc-card--carousel .tdc-card__location {
    font-size: clamp(0.6875rem, 1.8vw, 0.75rem);
    color: var(--antologa-slate-500);
}

.tdc-card--carousel .tdc-card__chips {
    margin-top: 0.25rem;
}

.tdc-card--carousel .tdc-chip {
    font-size: clamp(0.625rem, 1.7vw, 0.7rem);
}

.tdc-card--carousel.tdc-card--active {
    outline: 2px solid var(--antologa-primary);
    outline-offset: 1px;
    box-shadow: 0 6px 20px rgba(7, 130, 130, 0.22);
}
