/* ============================================
   Popular Tours Section — Vibrant Caribbean Orange with Light Luxury Cards
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.popular-tours {
    position: relative;
    padding: var(--space-section) 0;
    background-image: url('../images/tours/tours-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Hide legacy SVG palm decorations */
.palm-leaf-bg {
    display: none;
}

.popular-tours .container {
    position: relative;
    z-index: 2;
}

.popular-tours-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.popular-tours-header .section-tag.tours-tag {
    color: rgba(255, 255, 255, 0.9);
}

.popular-tours-header .section-tag.tours-tag::before,
.popular-tours-header .section-tag.tours-tag::after {
    background-color: rgba(255, 255, 255, 0.85);
}

.popular-tours-header .section-heading.tours-heading {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.tours-page-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ---- Light Luxury Tour Card (Matching Luxury VIP Aesthetic) ---- */
.tour-card {
    background: #FFFFFF;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 3px 10px rgba(15, 23, 42, 0.04);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px -10px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(243, 112, 33, 0.3);
    border-color: rgba(243, 112, 33, 0.35);
}

.tour-card-image {
    width: 100%;
    height: 215px;
    overflow: hidden;
    position: relative;
    background: #0F172A;
    border-radius: 22px 22px 0 0;
}

.tour-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.tour-card:hover .tour-card-image img {
    transform: scale(1.08);
}

.tour-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.45) 0%, transparent 100%);
    pointer-events: none;
}

/* Glassmorphism Badges on Image */
.tour-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.85rem;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tour-card-badge svg {
    flex-shrink: 0;
}

.tour-card-duration-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.85rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 100px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tour-card-duration-badge svg {
    flex-shrink: 0;
}

/* Tour Card Body */
.tour-card-body {
    padding: 1.5rem 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #FFFFFF;
    border-radius: 0 0 22px 22px;
}

.tour-card-category {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 800;
    color: #F37021;
    margin-bottom: 0.35rem;
    display: block;
}

.tour-card-body .tour-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', var(--font-heading), sans-serif;
    font-size: 1.30rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    letter-spacing: -0.2px;
    transition: color 0.3s ease;
}

.tour-card:hover .tour-card-body .tour-title {
    color: #F37021;
}

.tour-card-body .tour-desc {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 1.15rem;
    min-height: 48px;
}

/* Feature Highlights Box (Matching Luxury Specs) */
.tour-highlights-box {
    background: #F8FAFC;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.tour-card:hover .tour-highlights-box {
    background: #FFFDFB;
    border-color: rgba(243, 112, 33, 0.22);
}

.tour-highlights-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.tour-highlights-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748B;
}

.tour-highlights-count {
    font-size: 0.70rem;
    font-weight: 700;
    color: #F37021;
    background: rgba(243, 112, 33, 0.1);
    padding: 2px 7px;
    border-radius: 100px;
}

.tour-highlights-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tour-highlights-list li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #1E293B;
    font-size: 0.80rem;
    font-weight: 600;
    line-height: 1.3;
    min-width: 0;
}

.tour-highlights-list li span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tour-highlights-list li svg {
    flex-shrink: 0;
    fill: #F37021;
}

/* Card Footer with Pricing & Booking CTA */
.tour-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1.05rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.tour-footer-pricing {
    display: flex;
    flex-direction: column;
}

.tour-price-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 2px;
}

.tour-price-value {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1;
}

.tour-price-value span {
    color: #F37021;
}

.tour-price-unit {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94A3B8;
}

/* CTA Book Button */
.btn-tour-book {
    padding: 0.65rem 1.15rem;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-tour-book:hover {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(243, 112, 33, 0.35);
}

.btn-tour-book svg {
    transition: transform 0.25s ease;
}

.btn-tour-book:hover svg {
    transform: translateX(3px);
}

/* Fallback & Legacy Footer Compatibility */
.tour-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
}

.tour-duration svg {
    width: 15px;
    height: 15px;
    fill: #F37021;
}

.tour-price {
    font-size: 0.84rem;
    font-weight: 600;
    color: #64748B;
}

.tour-price span {
    font-size: 1.35rem;
    font-weight: 800;
    color: #F37021;
}

/* View All Button */
.tours-cta {
    text-align: center;
}

.tours-cta .btn {
    padding: 13px 36px;
    font-size: 0.85rem;
    border-radius: var(--radius-xl);
    letter-spacing: 1.2px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Responsive Card Adjustments */
@media (max-width: 1024px) {
    .tour-card-body .tour-title {
        font-size: 1.20rem;
    }
    .tour-price-value {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .tour-highlights-list {
        grid-template-columns: 1fr;
    }
    .tour-card-footer {
        flex-wrap: wrap;
        gap: 0.85rem;
    }
    .btn-tour-book {
        width: 100%;
        justify-content: center;
    }
}

