/* ========== ALL TOURS SECTION STYLES ========== */
.all-tours-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== SECTION HEADER ========== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    background: #eef2ff;
    color: #02A19C;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.section-title span {
    color: #ff9933;
}

.section-subtitle {
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

/* ========== CATEGORY TITLE ========== */
.tour-category {
    margin-bottom: 3.5rem;
}

.category-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    position: relative;
    color: #1e293b;
}

.category-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #02A19C;
    margin: 0.75rem auto 0;
    border-radius: 4px;
}

/* ========== FLOATING GRID ========== */
.tours-floating-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.8rem;
}

@media (min-width: 640px) {
    .tours-floating-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 880px) {
    .tours-floating-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .tours-floating-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .tours-floating-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ========== FLOATING CARD ========== */
.floating-tour-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.floating-tour-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
}

/* Card Image */
.card-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.floating-tour-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.floating-tour-card:hover .card-overlay {
    opacity: 1;
}

.card-link {
    color: white;
    background: #02A19C;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}

.card-link:hover {
    background: #01807c;
}

/* Card Content */
.card-info {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4rem;
}

/* Card Meta Info - Only Book Now button */
.card-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.25rem;
}

/* ========== BOOK NOW BUTTON (ACTIVE - CAN CLICK) ========== */
.book-link {
    background: #ff0080;
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    cursor: pointer;
    letter-spacing: 0.3px;
    width: 100%;
    max-width: 130px;
}

.book-link i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.book-link:hover {
    background: #cc0066;
    color: white;
    transform: translateY(-1px);
}

.book-link:hover i {
    transform: translateX(3px);
}

.book-link:active {
    transform: translateY(1px);
}

/* ========== CATEGORY SEPARATOR ========== */
.category-separator {
    margin: 2rem 0 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ========== TABLET (≤1200px) ========== */
@media (max-width: 1200px) {
    .all-tours-section {
        padding: 8rem 0 4rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* ========== MOBILE (≤1024px) ========== */
@media (max-width: 1024px) {
    .all-tours-section {
        padding: 8rem 0 3rem;
    }
}

/* ========== MOBILE (≤768px) ========== */
@media (max-width: 768px) {
    .all-tours-section {
        padding: 6rem 0 2.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
}

/* ========== MOBILE (≤640px) ========== */
@media (max-width: 640px) {
    .all-tours-section {
        padding: 5rem 0 2rem;
        padding-top: 120px; /* Padding extra para compensar el header fijo */
    }
    
    .container {
        padding: 0 0.8rem;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    .category-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .category-title:after {
        width: 60px;
        height: 2px;
    }
    
    .tours-floating-grid {
        gap: 1.2rem;
    }
    
    .card-image-wrapper {
        height: 150px;
    }
    
    .card-info {
        padding: 0.65rem;
    }
    
    .card-info h4 {
        font-size: 0.8rem;
        min-height: auto;
    }
    
    .book-link {
        font-size: 0.7rem;
        padding: 0.35rem 0.8rem;
        max-width: 110px;
    }
    
    .tour-category {
        margin-bottom: 2.5rem;
    }
    
    .category-separator {
        margin: 1.5rem 0 2rem;
    }
}

/* ========== MOBILE MUY PEQUEÑO (≤480px) ========== */
@media (max-width: 480px) {
    .all-tours-section {
        padding: 3rem 0 1.5rem;
        padding-top: 100px;
    }
    
    .container {
        padding: 0 0.6rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .section-subtitle {
        font-size: 0.8rem;
    }
    
    .category-title {
        font-size: 1.1rem;
    }
    
    .tours-floating-grid {
        gap: 1rem;
    }
    
    .card-image-wrapper {
        height: 130px;
    }
    
    .card-info h4 {
        font-size: 0.75rem;
    }
    
    .book-link {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        max-width: 100px;
    }
}

/* ========== MOBILE EXTRA PEQUEÑO (≤360px) ========== */
@media (max-width: 360px) {
    .all-tours-section {
        padding: 2.5rem 0 1rem;
        padding-top: 90px;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .card-image-wrapper {
        height: 110px;
    }
    
    .card-info h4 {
        font-size: 0.7rem;
    }
}