/* ================================
   TOUR CARDS - BASE STYLES
   Used across Home, Slider, Archive
   ================================ */

/* BASE CARD STYLES - APPLY EVERYWHERE */
.tour-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.06);
    height: 100%;
}

.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    text-decoration: none !important;
    border-color: #203264;
}

.tour-card * {
    text-decoration: none !important;
}

/* Card Image Wrapper */
.tour-card .card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    flex: 0 0 200px;
    overflow: hidden;
}

.tour-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.8s ease;
}

.tour-card:hover .card-image {
    transform: scale(1.15) rotate(2deg);
}

.tour-card .card-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
    z-index: 1;
}

/* Card Content */
.tour-card .card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tour-card .card-header {
    flex: 1;
    margin-bottom: 12px;
}

.tour-card .card-category {
    background: #e0f2fe;
    color: #0c4a6e;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    display: inline-block;
    width: fit-content;
}

.tour-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.tour-card .card-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.tour-card .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.tour-card .meta-icon {
    width: 16px;
    height: 16px;
    stroke: #203264;
    stroke-width: 2.5;
    fill: none;
}

.tour-card .card-footer {
    padding-top: 16px;
    border-top: 2px solid #e5e7eb;
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    /* Align price to right since button is moved */
    align-items: center;
}

.tour-card .card-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}

.tour-card .price-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: #203264;
}

.tour-card .price-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

/* View Details Button - Positioned on Top Right of Image */
.tour-card .card-action {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #203264;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
}

.tour-card:hover .card-action {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   HOME PAGE SPECIFIC STYLES
   ================================ */

/* HOME PAGE LAYOUT */
.home-layout {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 24px;
    margin-bottom: 60px;
}

.home-layout .featured-section {
    position: relative;
    width: 100%;
}

.home-layout .other-tours-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* FEATURED CARD OVERRIDES */
.home-layout .featured-card {
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(32, 50, 100, 0.12);
    border: 1px solid rgba(32, 50, 100, 0.08);
}

.home-layout .featured-card:hover {
    box-shadow: 0 20px 50px rgba(32, 50, 100, 0.2);
}

/* Featured Card Image - 70% Height */
.home-layout .featured-card .card-image-wrapper {
    height: 70%;
    flex: 0 0 70%;
}

/* Season Badge */
.home-layout .season-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    color: #203264;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid rgba(32, 50, 100, 0.2);
}

.home-layout .season-badge::before {
    content: '⭐';
    font-size: 0.9rem;
}

/* Featured Card Content */
.home-layout .featured-card .card-content {
    padding: 18px 24px 24px 24px;
}

.home-layout .featured-card .card-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.home-layout .featured-card .card-footer {
    padding-top: 14px;
}

.home-layout .featured-card .price-amount {
    font-size: 1.7rem;
}

.home-layout .featured-card .card-action {
    padding: 11px 24px;
    box-shadow: 0 4px 20px rgba(32, 50, 100, 0.25);
}

.home-layout .featured-card:hover .card-action {
    box-shadow: 0 6px 30px rgba(32, 50, 100, 0.35);
}

/* REGULAR CARDS IN HOME */
.home-layout .regular-card {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.home-layout .regular-card:hover {
    box-shadow: 0 12px 35px rgba(32, 50, 100, 0.15);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1200px) {
    .home-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .home-layout .other-tours-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-layout {
        gap: 24px;
    }

    .home-layout .other-tours-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-layout .featured-card .card-content {
        padding: 16px 20px 20px 20px;
    }

    .home-layout .featured-card .card-title {
        font-size: 1.4rem;
    }

    .home-layout .season-badge {
        top: 16px;
        left: 16px;
        padding: 7px 16px;
        font-size: 0.65rem;
    }

    .tour-card .card-image-wrapper {
        height: 180px;
        flex: 0 0 180px;
    }
}

@media (max-width: 480px) {
    .home-layout .featured-card .card-content {
        padding: 14px 18px 18px 18px;
    }

    .home-layout .featured-card .card-title {
        font-size: 1.25rem;
    }

    .home-layout .featured-card .price-amount {
        font-size: 1.5rem;
    }

    .home-layout .featured-card .card-action {
        padding: 10px 20px;
        font-size: 0.75rem;
    }

    .home-layout .season-badge {
        top: 14px;
        left: 14px;
        padding: 6px 14px;
        font-size: 0.6rem;
    }

    .tour-card .card-content {
        padding: 16px;
    }
}

/* ================================
   LOCATION TEXT - LIMIT TO 2 LINES
   ================================ */
.tour-card .meta-item.location-item {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}

/* Ensure card footer always visible */
.tour-card .card-footer {
    flex-shrink: 0;
}

/* ================================
   MOBILE: VIEW DETAILS ON IMAGE
   ================================ */
@media (max-width: 768px) {

    /* Make tour card the positioning context */
    .tour-card {
        position: relative;
    }

    /* Position View Details button on the image area */
    .tour-card .card-action {
        position: absolute;
        top: 145px;
        right: 15px;
        z-index: 10;
        padding: 10px 20px;
        font-size: 0.8rem;
        background: linear-gradient(135deg, #203264 0%, #1e40af 100%);
        color: #ffffff !important;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }

    /* Adjust card content */
    .tour-card .card-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 1rem;
    }

    .tour-card .meta-item.location-item {
        -webkit-line-clamp: 1;
        line-clamp: 1;
        font-size: 0.75rem;
    }

    /* Simpler footer without button */
    .tour-card .card-footer {
        padding-top: 12px;
        justify-content: flex-start;
    }

    .tour-card .price-amount {
        font-size: 1.2rem;
    }
}