/* ============================================================
   TripCabinet — Attraction Card (tc-attr- prefix)
   Professional-grade cards with trust signals & mobile-first
   ============================================================ */

/* --- Card Shell --- */
.tc-attr-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    position: relative;
}

.tc-attr-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(77, 64, 202, 0.10), 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(77, 64, 202, 0.12);
}

.tc-attr-card:focus-within {
    outline: 2px solid var(--theme-color, #4D40CA);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .tc-attr-card,
    .tc-attr-card__img,
    .tc-attr-card__cta i {
        transition: none !important;
    }
}

/* --- Image Section --- */
.tc-attr-card__media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}

.tc-attr-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.tc-attr-card:hover .tc-attr-card__img {
    transform: scale(1.06);
}

/* Gradient overlay */
.tc-attr-card__media::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* --- Badges --- */
.tc-attr-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
    pointer-events: none;
}

.tc-attr-card__badges-left,
.tc-attr-card__badges-right {
    display: flex;
    gap: 6px;
}

.tc-attr-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1.4;
    pointer-events: auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.tc-attr-card__badge--featured {
    background: rgba(77, 64, 202, 0.9);
    color: #fff;
}

.tc-attr-card__badge--bestseller {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
}

.tc-attr-card__badge--discount {
    background: rgba(220, 38, 38, 0.9);
    color: #fff;
    font-weight: 800;
}

/* Gallery action */
.tc-attr-card__gallery {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
    pointer-events: auto;
}

.tc-attr-card__gallery:hover {
    background: var(--theme-color, #4D40CA);
    color: #fff;
    transform: scale(1.1);
}

/* --- Card Body --- */
.tc-attr-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 18px;
}

/* Location */
.tc-attr-card__loc {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--theme-color, #4D40CA);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.tc-attr-card__loc i { font-size: 11px; }

/* Title */
.tc-attr-card__title {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
    color: var(--header, #1a1a2e);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tc-attr-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tc-attr-card__title a:hover {
    color: var(--theme-color, #4D40CA);
}

/* Trust signal pills */
.tc-attr-card__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tc-attr-card__pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.5;
}

.tc-attr-card__pill--confirm {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
}

.tc-attr-card__pill--cancel {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
}

.tc-attr-card__pill--duration {
    background: rgba(107, 114, 128, 0.08);
    color: #4b5563;
}

.tc-attr-card__pill--category {
    background: rgba(77, 64, 202, 0.06);
    color: var(--theme-color, #4D40CA);
}

.tc-attr-card__pill i {
    font-size: 9px;
}

/* Meta row (rating) */
.tc-attr-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.tc-attr-card__rating i {
    color: #f59e0b;
    font-size: 12px;
}

.tc-attr-card__rating small {
    font-weight: 400;
    color: #9ca3af;
    font-size: 12px;
}

/* Divider */
.tc-attr-card__sep {
    height: 1px;
    background: #f0f0f5;
    margin-bottom: 14px;
    flex-shrink: 0;
}

/* --- Footer --- */
.tc-attr-card__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

/* Pricing */
.tc-attr-card__pricing {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tc-attr-card__price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.tc-attr-card__label {
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tc-attr-card__price {
    font-size: 22px;
    font-weight: 800;
    color: var(--header, #1a1a2e);
    line-height: 1.2;
}

.tc-attr-card__was {
    font-size: 13px;
    font-weight: 500;
    color: #c0bfbf;
    text-decoration: line-through;
}

.tc-attr-card__per {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
}

/* CTA Button */
.tc-attr-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 10px;
    background: var(--theme-color, #4D40CA);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s ease, transform 0.2s ease, gap 0.25s ease;
    flex-shrink: 0;
}

.tc-attr-card__cta:hover {
    background: var(--header, #1a1a2e);
    color: #fff;
    gap: 10px;
}

.tc-attr-card__cta i {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.tc-attr-card__cta:hover i {
    transform: translateX(2px);
}

/* --- Grid helper --- */
.tc-attr-grid .col-xl-4,
.tc-attr-grid .col-lg-6,
.tc-attr-grid .col-md-6 {
    display: flex;
}

/* ============================================================
   Responsive
   ============================================================ */

/* XL screens */
@media (max-width: 1399px) {
    .tc-attr-card__title { font-size: 14.5px; }
    .tc-attr-card__price { font-size: 20px; }
    .tc-attr-card__cta { padding: 8px 14px; font-size: 12.5px; }
}

/* Large screens */
@media (max-width: 1199px) {
    .tc-attr-card__body { padding: 14px 16px 16px; }
    .tc-attr-card__price { font-size: 18px; }
    .tc-attr-card__pill { font-size: 10px; padding: 2px 7px; }
}

/* Tablets */
@media (max-width: 991px) {
    .tc-attr-card__foot {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .tc-attr-card__cta {
        width: 100%;
        justify-content: center;
        padding: 11px 18px;
    }
}

/* ---- Mobile Horizontal Cards (<768px) ---- */
@media (max-width: 767px) {
    .tc-attr-grid .col-xl-4,
    .tc-attr-grid .col-lg-6,
    .tc-attr-grid .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .tc-attr-card {
        flex-direction: row;
        height: auto;
        border-radius: 14px;
    }

    .tc-attr-card__media {
        flex: 0 0 140px;
        width: 140px;
        aspect-ratio: auto;
        min-height: 100%;
        border-radius: 14px 0 0 14px;
    }

    .tc-attr-card__media::after {
        height: 100%;
        background: linear-gradient(to left, rgba(0, 0, 0, 0.08) 0%, transparent 50%);
    }

    .tc-attr-card__badges {
        top: 8px;
        left: 8px;
        right: auto;
        flex-direction: column;
        gap: 4px;
    }

    .tc-attr-card__badges-right {
        display: none;
    }

    .tc-attr-card__gallery { display: none; }

    .tc-attr-card__body {
        padding: 12px 14px;
        justify-content: center;
    }

    .tc-attr-card__loc { font-size: 10.5px; margin-bottom: 3px; }
    .tc-attr-card__title { font-size: 14px; margin-bottom: 6px; -webkit-line-clamp: 2; }

    .tc-attr-card__pills { margin-bottom: 8px; gap: 4px; }
    .tc-attr-card__pill { font-size: 9.5px; padding: 2px 6px; }

    .tc-attr-card__sep { display: none; }

    .tc-attr-card__foot {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .tc-attr-card__label { display: none; }
    .tc-attr-card__price { font-size: 17px; }
    .tc-attr-card__per { font-size: 11px; }

    .tc-attr-card__cta {
        width: auto;
        padding: 7px 14px;
        font-size: 12px;
        border-radius: 8px;
    }

    .tc-attr-card__rating { margin-bottom: 6px; font-size: 12px; }
}

/* Small phones */
@media (max-width: 420px) {
    .tc-attr-card__media {
        flex: 0 0 115px;
        width: 115px;
    }

    .tc-attr-card__title { font-size: 13px; }
    .tc-attr-card__price { font-size: 15px; }
    .tc-attr-card__cta { padding: 6px 12px; font-size: 11px; }
    .tc-attr-card__pills { display: none; }
}
