/* ============================================
   TOURS LAYOUT
   ============================================ */

.tours-layout {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.tours-main {
    flex: 1;
    min-width: 0;
    margin: 0 auto;
    max-width: 1200px;
}

.results-info {
    margin-bottom: 30px;
    text-align: center;
    padding: 0;
}

#results-count {
    color: #7f8c8d;
    font-size: 1rem;
    font-weight: 500;
}

/* ============================================
   TOURS CONTAINER - VERTICAL STACK
   ============================================ */

.tours-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Loading and error states */
.tours-loading,
.tours-error,
.tours-empty {
    text-align: center;
    padding: 80px 20px;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.tours-error {
    color: #e74c3c;
}

.tours-empty {
    font-size: 1.2rem;
    color: #95a5a6;
}

/* ============================================
   TOUR CARD - HORIZONTAL LAYOUT
   ============================================ */

.tour-card {
    position: relative;
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    min-height: 280px;
}

.tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* Background Image - Left Side */
.tour-card-image {
    position: relative;
    width: 40%;
    min-width: 350px;
    height: auto;
    overflow: hidden;
    flex-shrink: 0;
}

.tour-card-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-card-bg {
    transform: scale(1.08);
}

/* Overlay sobre imagen */
.tour-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* Badge de duración */
.tour-card-duration {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(99, 81, 79, 0.95);
    backdrop-filter: blur(8px);
    color: white;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tour-card-duration svg {
    width: 16px;
    height: 16px;
}

/* Contenido de la card - Right Side */
.tour-card-content {
    flex: 1;
    padding: 32px 36px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tour-card-header {
    flex: 1;
}

.tour-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #63514f;
    margin: 0 0 14px 0;
    line-height: 1.3;
    font-family: var(--font-title), serif;
}

.tour-card-description {
    font-size: 0.98rem;
    color: #666;
    margin: 0;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: auto;
}

.tour-card-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tour-price-label {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tour-price-value {
    font-size: 2rem;
    font-weight: 700;
    color: #3b6e40;
    font-family: var(--font-text), sans-serif;
}

.tour-price-value small {
    font-size: 1.1rem;
    font-weight: 400;
    color: #666;
}

.tour-card-btn {
    background: #ee7326;
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(238, 115, 38, 0.3);
}

.tour-card-btn:hover {
    background: #d6631e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 115, 38, 0.4);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 968px) {
    .tours-layout {
        padding: 40px 20px;
    }
    
    .tours-container {
        gap: 25px;
    }
    
    .tour-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .tour-card-image {
        width: 100%;
        height: 250px;
        min-width: 0;
    }
    
    .tour-card-content {
        padding: 24px;
    }
}

/* Móvil */
@media (max-width: 640px) {
    .tour-card-title {
        font-size: 1.4rem;
    }
    
    .tour-card-image {
        height: 200px;
    }
    
    .tour-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .tour-card-btn {
        width: 100%;
        text-align: center;
    }
    
    .tour-card-image {
        height: 220px;
    }
    
    .tour-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .tour-card-btn {
        width: 100%;
        text-align: center;
    }
}
