/**
 * Trek & Tour Specific Styles
 * Mountain Mingle Tours and Treks
 */

/* Trek Card Styles */
.trek-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.trek-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.trek-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.trek-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trek-card:hover .trek-card-image img {
    transform: scale(1.1);
}

.trek-difficulty-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.trek-discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #10b981;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.trek-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.trek-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.trek-meta-item {
    font-size: 13px;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trek-meta-item i {
    color: #2563eb;
    font-size: 14px;
}

.trek-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.trek-card-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s;
}

.trek-card-title a:hover {
    color: #2563eb;
}

.trek-card-features {
    margin-bottom: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #6b7280;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item i {
    color: #2563eb;
    font-size: 16px;
    width: 20px;
}

.trek-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid #f3f4f6;
}

.trek-price {
    display: flex;
    flex-direction: column;
}

.trek-price .original-price {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.trek-price .current-price {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
}

.trek-price .price-label {
    font-size: 12px;
    color: #4b5563;
}

/* Difficulty Pills */
.veh-pill[style*="--pill-color"] {
    border-color: var(--pill-color);
}

.veh-pill[style*="--pill-color"].active {
    background-color: var(--pill-color);
    color: #ffffff;
}

/* Trek Detail Page Styles */
.trek-detail-header {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: #ffffff;
    padding: 60px 0 40px;
}

.trek-hero-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.trek-hero-image img {
    width: 100%;
    height: auto;
}

.trek-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-box i {
    font-size: 28px;
    color: #2563eb;
    margin-bottom: 10px;
}

.stat-box .stat-value {
    font-size: 24px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.stat-box .stat-label {
    font-size: 13px;
    opacity: 0.9;
}

/* Itinerary Timeline */
.itinerary-timeline {
    position: relative;
    padding-left: 40px;
}

.itinerary-day {
    position: relative;
    padding: 25px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #2563eb;
}

.itinerary-day::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 30px;
    width: 20px;
    height: 20px;
    background: #2563eb;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.itinerary-day::after {
    content: '';
    position: absolute;
    left: -31px;
    top: 50px;
    width: 2px;
    height: calc(100% + 20px);
    background: #d1d5db;
}

.itinerary-day:last-child::after {
    display: none;
}

.itinerary-day-number {
    display: inline-block;
    background: #2563eb;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.itinerary-day-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2937;
}

.itinerary-day-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.itinerary-meta-item {
    font-size: 13px;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 6px;
}

.itinerary-meta-item i {
    color: #2563eb;
}

.itinerary-day-description {
    color: #6b7280;
    line-height: 1.7;
}

.acclimatization-badge {
    display: inline-block;
    background: #2563eb;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
}

/* Equipment List */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.equipment-item {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
}

.equipment-item:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
}

.equipment-item.included {
    border-color: #10b981;
    background: #d1fae5;
}

.equipment-item.rental {
    border-color: #2563eb;
    background: #dbeafe;
}

.equipment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.equipment-item-title {
    font-weight: 600;
    color: #1f2937;
}

.equipment-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.equipment-badge.included {
    background: #10b981;
    color: #ffffff;
}

.equipment-badge.rental {
    background: #2563eb;
    color: #111827;
}

.equipment-price {
    font-size: 14px;
    color: #2563eb;
    font-weight: 600;
    margin-top: 8px;
}

/* Region Cards */
.region-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.region-card:hover {
    transform: translateY(-5px);
}

.region-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.region-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px 20px;
    color: #ffffff;
}

.region-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.region-trek-count {
    font-size: 14px;
    opacity: 0.9;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .trek-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .itinerary-timeline {
        padding-left: 30px;
    }

    .itinerary-day::before {
        left: -30px;
    }

    .itinerary-day::after {
        left: -21px;
    }
}

@media (max-width: 767px) {
    .trek-card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .trek-price {
        text-align: center;
    }

    .trek-stats-grid {
        grid-template-columns: 1fr;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Trek Attributes for Dynamic Pages
   ======================================== */

/* Trek Attributes Wrapper */
.trek-attributes-wrapper {
    margin-bottom: 1.5rem;
}

/* Trek Attributes Badges Container */
.trek-attributes-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Trek Difficulty Badge (standalone, not in card) */
.trek-attributes-badges .trek-difficulty-badge {
    position: static;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Trek Region Badge */
.trek-region-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background-color: #2563eb;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Trek Seasons Section */
.trek-seasons-section {
    margin-bottom: 1.5rem;
}

.trek-seasons-section h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* Trek Season Badge */
.trek-season-badge {
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Trek Equipment Section */
.trek-equipment-section {
    margin-bottom: 1.5rem;
}

.trek-equipment-section h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* Equipment Grid - Ensure it's defined (already exists above, but added for clarity) */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

/* Equipment Item - Enhanced for dynamic pages */
.equipment-item {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.equipment-item:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.equipment-item.included {
    border-color: #10b981;
    background: #d1fae5;
}

.equipment-item.rental {
    border-color: #2563eb;
    background: #dbeafe;
}

.equipment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.equipment-item-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.equipment-badge {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.equipment-badge.included {
    background: #10b981;
    color: #ffffff;
}

.equipment-badge.rental {
    background: #2563eb;
    color: #ffffff;
}

.equipment-price {
    font-size: 15px;
    color: #2563eb;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Responsive Adjustments for Dynamic Pages */

/* Tablet (portrait) and below - max-width: 991px */
@media (max-width: 991px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trek-seasons-section h4,
    .trek-equipment-section h4 {
        font-size: 1.15rem;
    }
    
    .trek-attributes-wrapper {
        margin-bottom: 1.25rem;
    }
}

/* Mobile landscape and below - max-width: 767px */
@media (max-width: 767px) {
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .trek-season-badge {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .trek-attributes-badges .trek-difficulty-badge,
    .trek-region-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .trek-attributes-badges {
        gap: 0.375rem;
    }
    
    .equipment-item {
        padding: 12px;
    }
    
    .equipment-item-title {
        font-size: 13px;
    }
    
    .equipment-price {
        font-size: 14px;
    }
}

/* Mobile portrait - max-width: 576px */
@media (max-width: 576px) {
    .trek-seasons-section h4,
    .trek-equipment-section h4 {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
    }
    
    .trek-season-badge {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .trek-attributes-badges .trek-difficulty-badge,
    .trek-region-badge {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .equipment-item {
        padding: 10px;
    }
    
    .equipment-badge {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .trek-attributes-wrapper {
        margin-bottom: 1rem;
    }
}

/* Extra small devices - max-width: 375px */
@media (max-width: 375px) {
    .trek-season-badge,
    .trek-attributes-badges .trek-difficulty-badge,
    .trek-region-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .trek-seasons-section h4,
    .trek-equipment-section h4 {
        font-size: 1rem;
    }
    
    .equipment-item-title {
        font-size: 12px;
    }
}

