/* ============================================================
   Tourfic Card Style – Immersive Tour Card Slider
   ============================================================ */

/* ── Slider ── */
.tfc-slider-wrapper {
    position: relative;
}

.tfc-slider .slick-slide {
    margin: 0 10px;
    height: auto !important;
    float: none !important;
}

.tfc-slider .slick-list {
    margin: 0 -10px;
}

.tfc-slider .slick-track {
    display: flex !important;
}

.tfc-slider .slick-slide > div {
    height: 100%;
}

.tfc-slide {
    height: 100%;
}

/* ── Card ── */
.tfc-card {
    position: relative;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.tfc-card-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fff;
}

/* ── Image ── */
img.tfc-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tfc-card:hover img.tfc-card-img {
    transform: scale(1.05);
}

/* ── Overlay ── */
.tfc-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.70) 0%,
        rgba(0,0,0,0.45) 45%,
        rgba(0,0,0,0.10) 75%,
        transparent 100%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tfc-card:hover .tfc-card-overlay {
    opacity: 1;
}

/* ── Content ── */
.tfc-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tfc-card:hover .tfc-card-content {
    opacity: 1;
    transform: translateY(0);
}

/* ── Meta row ── */
.tfc-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tfc-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #fff;
    font-weight: 500;
}

.tfc-location span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.tfc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #fff;
    font-weight: 500;
}

/* ── Title ── */
.tfc-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 4px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Footer ── */
.tfc-footer {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 6px;
}

.tfc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background-color: #5CD4C0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.tfc-btn:hover {
    background-color: #4ac4b0;
}

.tfc-price {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.tfc-price .woocommerce-Price-amount {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.tfc-price del { opacity: 0.5; font-size: 13px; }
.tfc-price ins { text-decoration: none; }

/* ── Arrows ── */
.tfc-slider-wrapper .tfc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #1a1a2e;
    box-shadow: 0 3px 12px rgba(0,0,0,0.10);
    transition: all 0.3s ease;
    padding: 0;
    line-height: 0;
}

.tfc-slider-wrapper .tfc-arrow:hover {
    background: #fff;
    color: #5CD4C0;
    transform: translateY(-50%) scale(1.06);
}

.tfc-slider-wrapper .tfc-arrow.slick-prev { left: 8px; }
.tfc-slider-wrapper .tfc-arrow.slick-next { right: 8px; }

.tfc-slider-wrapper .slick-prev:before,
.tfc-slider-wrapper .slick-next:before {
    content: none !important;
}

/* ── Dots ── */
.tfc-slider-wrapper .slick-dots {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    position: relative;
    bottom: auto !important;
}

.tfc-slider-wrapper .slick-dots li button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    font-size: 0;
    transition: all 0.3s ease;
}

.tfc-slider-wrapper .slick-dots li button:before { content: none !important; }

.tfc-slider-wrapper .slick-dots li.slick-active button {
    background: #5CD4C0;
    width: 28px;
    border-radius: 14px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .tfc-card { height: 360px; }
    .tfc-title { font-size: 14px; }
}

@media (max-width: 480px) {
    .tfc-card { height: 320px; }
}
