/* Enhanced Trek Nepal Now Styles */
:root {
    --primary-color: #2e7d32;
    --primary-light: #4caf50;
    --primary-dark: #1b5e20;
    --secondary-color: #ff6f00;
    --accent-color: #ff9800;
    --text-primary: #212121;
    --text-secondary: #666666;
    --text-light: #9e9e9e;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 8px 25px rgba(0,0,0,0.15);
    --shadow-heavy: 0 15px 35px rgba(0,0,0,0.2);
    --border-radius: 0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-white);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    min-height: 70vh;
    background: url("/static/trek_app/images/fullhero.jpg") center center/cover no-repeat;
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    z-index: 1;
    left: 0;
    right: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.7), rgba(46, 125, 50, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.25);
    padding: 3rem 1rem;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff 60%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #e3f2fd;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced Package Cards - Photo Centric, No Radius */
.package-card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    position: relative;
    border: 1px solid #e0e0e0;
    max-width: 100%;
    cursor: pointer; /* Make entire card clickable */
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-light);
}

/* Remove text decoration from card links */
a.text-decoration-none {
    text-decoration: none !important;
    color: inherit;
}

a.text-decoration-none:hover {
    text-decoration: none !important;
    color: inherit;
}

.package-image {
    position: relative;
    height: 180px; /* Much smaller photo - reduced from 280px */
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.package-badge {
    position: absolute;
    top: 10px; /* Reduced from 15px */
    right: 10px; /* Reduced from 15px */
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 4px 8px; /* Smaller padding */
    border-radius: var(--border-radius);
    font-size: 0.6rem; /* Smaller font */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-light);
}

.package-content {
    padding: 0.75rem; /* Reduced padding from 1rem */
}

.package-title {
    font-size: 0.9rem; /* Smaller title */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.4rem; /* Reduced margin */
    line-height: 1.2;
    min-height: 2.2rem; /* Reduced height */
    max-height: 2.2rem; /* Fixed height for consistency */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* Single line with ellipsis */
}

.package-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    min-height: 2.6rem;
    max-height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.package-location-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem; /* Reduced margin */
    font-size: 0.75rem; /* Same size for both */
}

.package-location {
    color: var(--text-secondary);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.package-location i {
    color: var(--primary-light);
    font-size: 0.8rem;
}

.package-price {
    font-size: 0.75rem; /* Same size as location */
    font-weight: 700;
    color: var(--primary-color);
}

.package-description {
    color: var(--text-secondary);
    font-size: 0.7rem; /* Smaller font */
    line-height: 1.3;
    margin-bottom: 0.6rem; /* Reduced margin */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Reduced to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.8rem; /* Reduced height */
}

.package-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem; /* Reduced gap */
    margin-bottom: 0.6rem; /* Reduced margin */
}

.feature-tag {
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary-light);
    padding: 2px 6px; /* Smaller padding */
    border-radius: var(--border-radius);
    font-size: 0.6rem; /* Smaller font */
    font-weight: 600;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.package-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem; /* Reduced padding */
    border-top: 1px solid #e0e0e0;
    margin-bottom: 0.5rem; /* Reduced margin */
}

.package-duration {
    color: var(--text-secondary);
    font-size: 0.7rem; /* Smaller font */
    font-weight: 500;
}

.view-details-btn {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    border: none;
    padding: 6px 12px; /* Smaller padding */
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 0.7rem; /* Smaller font */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
    box-shadow: var(--shadow-medium);
}

/* Enhanced Guide Cards */
.guide-card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.guide-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-light);
}

.guide-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    transition: var(--transition);
}

.guide-card:hover .guide-image {
    transform: scale(1.05);
}

.guide-card-body {
    padding: 1.5rem;
}

.guide-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.guide-title {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guide-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.guide-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Similar Packages Section */
.similar-packages-section {
    padding: 4rem 0;
    background: var(--background-light);
}

.similar-packages-header {
    text-align: center;
    margin-bottom: 3rem;
}

.similar-packages-header h3 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.similar-packages-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.similar-packages-container {
    position: relative;
    overflow: hidden;
}

.similar-packages-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.similar-packages-scroll::-webkit-scrollbar {
    display: none;
}

.similar-package-card {
    flex: 0 0 280px;
    background: var(--background-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid #e0e0e0;
}

.similar-package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-light);
}

.similar-package-image {
    height: 160px;
    overflow: hidden;
}

.similar-package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.similar-package-content {
    padding: 1rem;
}

.similar-package-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.similar-package-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.similar-package-duration {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.similar-package-btn {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.similar-package-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.scroll-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.scroll-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.scroll-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.scroll-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Compact grid layout for 2 rows of 3 columns */
.featured-packages-section .row,
.featured-bike-tours-section .row {
    margin: 0 -8px; /* Reduced margins */
}

.featured-packages-section .col-lg-4,
.featured-bike-tours-section .col-lg-4 {
    padding: 0 8px; /* Reduced padding */
    margin-bottom: 16px; /* Reduced margin */
}

/* Ensure cards fit in 2 rows of 3 columns - much smaller height */
@media (min-width: 992px) {
    .featured-packages-section .package-card,
    .featured-bike-tours-section .package-card {
        max-height: 380px; /* Reduced from 520px - about 30% smaller */
    }
}

/* Additional compact styling for listing pages */
.packages-section .row,
.tours-section .row {
    margin: 0 -8px;
}

.packages-section .col-lg-4,
.tours-section .col-lg-4 {
    padding: 0 8px;
    margin-bottom: 16px;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .package-image {
        height: 200px;
    }
    
    .similar-package-card {
        flex: 0 0 250px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .package-image {
        height: 180px;
    }
    
    .package-content {
        padding: 1.25rem;
    }
    
    .package-title {
        font-size: 1.1rem;
    }
    
    .similar-package-card {
        flex: 0 0 220px;
    }
    
    .similar-package-image {
        height: 140px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .package-image {
        height: 160px;
    }
    
    .package-content {
        padding: 1rem;
    }
    
    .package-title {
        font-size: 1rem;
    }
    
    .similar-package-card {
        flex: 0 0 200px;
    }
    
    .similar-package-image {
        height: 120px;
    }
    
    .scroll-controls {
        margin-top: 1.5rem;
    }
    
    .scroll-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-light { background-color: var(--background-light) !important; }
.shadow-light { box-shadow: var(--shadow-light) !important; }
.shadow-medium { box-shadow: var(--shadow-medium) !important; }
.shadow-heavy { box-shadow: var(--shadow-heavy) !important; }
