/**
 * Via Turquia - Page-specific Styles
 * Extracted from inline <style> blocks in views
 * Sections: Homepage, Tour Listing
 */

/* ===========================
   SHARED STYLES
   =========================== */

/* Spanish Agency Style */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* ===========================
   HOMEPAGE STYLES
   =========================== */

/* Hero Section */
.hero-section-circuits {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
    background-size: cover;
    background-position: center center;
}

.hero-section-circuits .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-section-circuits .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.quick-search-bar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.quick-search-bar .form-select,
.quick-search-bar .form-control {
    border: 1px solid #ddd;
    height: 45px;
}

/* Trust Badges */
.trust-badges {
    background: #f8f9fa;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}

.trust-item i {
    font-size: 1.5rem;
}

/* Modern Tour Cards */
.tour-card-modern {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tour-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* Tour Card Image Section */
.tour-card-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tour-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-card-modern:hover .tour-card-image {
    transform: scale(1.1);
}

.tour-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

/* Tour Card Badges */
.tour-card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 2;
}

.badge-discount {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.3);
    animation: pulse 2s infinite;
}

.tour-card-badges .badge-featured {
    background: linear-gradient(135deg, #ffd93d, #ffb142);
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255, 193, 61, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Tour Card Duration Badge */
.tour-card-duration {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.tour-card-duration i {
    color: #4a90e2;
}

/* Tour Card Category Label (legacy) */
.tour-card-category {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(74, 144, 226, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Tour Card Category Icons */
.tour-card-category-icons {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.cat-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    color: #2c6fbb;
    border-radius: 50%;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.cat-icon-badge:hover {
    transform: scale(1.15);
    background: #2c6fbb;
    color: white;
}

/* Tour Card Content Section */
.tour-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tour-card-header {
    margin-bottom: 12px;
}

.tour-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.tour-card-title a:hover {
    color: #4a90e2;
}

.tour-card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.tour-card-location i {
    color: #e74c3c;
    font-size: 0.8rem;
}

.tour-card-description {
    color: #5a6c7d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-card-route {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #495057;
}

.tour-card-route i {
    color: #4a90e2;
    font-size: 1rem;
}

/* Tour Card Features Grid */
.tour-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.tour-card-features .feature-item {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
    color: #6c757d;
    position: relative;
    cursor: help;
}

.tour-card-features .feature-item i {
    font-size: 0.85rem;
    color: #4a90e2;
    transition: color 0.3s;
}

.tour-card-features .feature-item span {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 500;
}

.tour-card-features .feature-item:hover i {
    color: #ffc107;
}

/* Tour Card Feature Tooltip */
.tour-card-features .feature-item::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, bottom 0.3s;
}

.tour-card-features .feature-item:hover::before {
    opacity: 1;
    bottom: calc(100% + 5px);
}

/* Tour Card Footer Section */
.tour-card-footer {
    padding: 20px;
    padding-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e9ecef;
}

.tour-card-price {
    flex: 1;
}

.tour-card-price .price-label {
    font-size: 0.75rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 2px;
}

.price-group {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.tour-card-price .price-original {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 1rem;
    font-weight: 500;
}

.tour-card-price .price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: #27ae60;
}

.price-person {
    font-size: 0.75rem;
    color: #95a5a6;
}

/* Tour Card Action Buttons */
.tour-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-view-tour {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.btn-view-tour:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* View details button styling */
.btn-view-details {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-view-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
}

/* Old circuit CSS - keeping for compatibility */
.circuit-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-from {
    font-size: 0.75rem;
    color: #666;
}

.circuit-footer .price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.circuit-footer .price-current {
    color: #ff6b35;
    font-size: 1.5rem;
    font-weight: 700;
}

.price-per {
    font-size: 0.75rem;
    color: #666;
}

/* Tour Types */
.tour-type-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.tour-type-card:hover {
    transform: translateY(-5px);
}

.tour-type-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tour-type-content {
    padding: 20px;
}

.tour-type-content h4 {
    color: #333;
    margin-bottom: 10px;
}

.tour-type-content p {
    color: #666;
    margin-bottom: 15px;
}

.btn-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
}

.btn-link:hover {
    color: #ff4444;
}

/* Why Us Section */
.feature-list {
    margin-top: 30px;
}

.feature-list .feature-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.feature-list .feature-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-list .feature-item h5 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.feature-list .feature-item p {
    color: #666;
    margin: 0;
}

.agency-stats {
    padding: 30px;
}

.stat-box {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-number {
    color: #ff6b35;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    margin: 0;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-text {
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-footer {
    display: flex;
    flex-direction: column;
}

.testimonial-footer strong {
    color: #333;
    margin-bottom: 5px;
}

.testimonial-footer span {
    font-size: 0.85rem;
}

/* CTA Section */
.cta-box {
    background: linear-gradient(135deg, #ff6b35 0%, #ff4444 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
}

.cta-box h3 {
    margin-bottom: 10px;
}

/* Newsletter */
.newsletter-form .input-group {
    max-width: 400px;
    margin-left: auto;
}

/* Homepage Buttons */
.hero-section-circuits .btn-warning {
    background: #ffc107;
    border: none;
    color: #333;
    font-weight: 600;
}

.hero-section-circuits .btn-warning:hover {
    background: #ffb300;
    color: #333;
}

.cta-box .btn-primary,
.hero-section-circuits .btn-primary {
    background: #ff6b35;
    border: none;
}

.cta-box .btn-primary:hover,
.hero-section-circuits .btn-primary:hover {
    background: #ff4444;
}

/* Homepage Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .circuit-footer {
        flex-direction: column;
        gap: 15px;
    }

    .price-box {
        align-items: center;
    }

    .cta-box {
        text-align: center;
    }

    .newsletter-form .input-group {
        max-width: 100%;
    }

    .tour-card-features {
        gap: 6px;
    }

    .tour-card-footer {
        flex-direction: column;
        gap: 15px;
    }

    .tour-card-price {
        width: 100%;
        text-align: center;
    }

    .tour-card-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================
   TOUR LISTING PAGE STYLES
   =========================== */

/* Tours Hero Section */
.tours-hero-section {
    position: relative;
    min-height: 400px;
    margin-bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.tours-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(102, 126, 234, 0.4) 70%,
        rgba(118, 75, 162, 0.6) 85%,
        rgba(118, 75, 162, 0.8) 100%);
    z-index: 2;
}

.tours-hero-section .container {
    position: relative;
    z-index: 3;
    min-height: 400px;
}

.hero-content {
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.hero-content h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content .lead {
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
}

/* Tours Hero Mobile Responsive */
@media (max-width: 991px) {
    .tours-hero-section {
        min-height: 350px;
    }

    .hero-bg-image {
        left: 0;
        width: 100%;
    }

    .tours-hero-section .hero-overlay {
        background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.5) 100%);
    }

    .hero-content {
        text-align: center;
        padding: 30px;
    }

    .tours-hero-section .row {
        justify-content: center;
    }

    .tours-hero-section .col-lg-4 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .tours-hero-section h1 {
        font-size: 2rem;
    }

    .tours-hero-section .lead {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .tours-hero-section {
        min-height: 300px;
    }

    .hero-content {
        padding: 20px;
        background: rgba(0, 0, 0, 0.5);
    }

    .tours-hero-section h1 {
        font-size: 1.5rem;
    }

    .tours-hero-section .lead {
        font-size: 0.9rem;
    }
}

/* Filter Card */
.filter-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.filter-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-subtitle {
    color: #555;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.experience-filters .form-check {
    margin-bottom: 12px;
}

.experience-filters .form-check-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s;
}

.experience-filters .form-check-label:hover {
    color: #667eea;
}

.budget-slider {
    padding: 10px 0;
}

/* Experience List Cards */
.experience-list-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.experience-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.experience-image {
    position: relative;
    height: 100%;
    min-height: 300px;
}

.experience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-image .badge-featured {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    padding: 20px;
}

.duration-badge {
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.experience-details {
    padding: 30px;
}

.experience-header {
    margin-bottom: 15px;
}

.category-label {
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.experience-title {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 10px 0;
}

.experience-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.experience-highlights {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.experience-highlights h6 {
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.highlights-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.inclusions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.inclusion-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 12px;
    white-space: nowrap;
}

.inclusion-item i {
    font-size: 0.8rem;
}

.inclusion-item.included {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.inclusion-item.included i {
    color: #4caf50;
}

.inclusion-item.not-included {
    background: #fafafa;
    color: #999;
    border: 1px solid #e0e0e0;
    opacity: 0.7;
}

.inclusion-item.not-included i {
    color: #bdbdbd;
}

.highlight-item {
    color: #555;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.highlight-item i {
    margin-right: 5px;
}

.experience-info-row {
    display: flex;
    gap: 25px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.rating-compact {
    display: flex;
    align-items: center;
}

.experience-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.price-section {
    display: flex;
    flex-direction: column;
}

.price-section .price-label {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.original-price {
    color: #999;
    font-size: 1rem;
}

.current-price {
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
}

.price-section .price-per {
    color: #666;
    font-size: 0.85rem;
}

.action-buttons .btn {
    padding: 10px 25px;
    font-weight: 600;
}

/* Sort Options */
.sort-options .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 0.95rem;
}

/* Benefits Section */
.benefit-item {
    padding: 20px;
}

.benefit-item h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Tour Listing Responsive */
@media (max-width: 768px) {
    .experience-list-card .row {
        flex-direction: column;
    }

    .experience-image {
        min-height: 200px;
    }

    .experience-details {
        padding: 20px;
    }

    .experience-info-row {
        flex-direction: column;
        gap: 10px;
    }

    .experience-action-row {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .action-buttons .btn {
        width: 100%;
    }
}

/* Budget range slider */
.range-slider-container {
    position: relative;
    height: 35px;
}

.range-slider-container input[type="range"] {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-slider-container input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.range-slider-container input[type="range"]::-moz-range-thumb {
    pointer-events: all;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

#minRange {
    z-index: 2;
}

#maxRange {
    z-index: 1;
}

.price-inputs input {
    font-size: 0.875rem;
}

#budgetRange::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}
