/* Bike Page Styles */

/* Reset and Base Styles */
.bike-hero-section,
.how-it-works-section,
.why-choose-us-section,
.popular-destinations-section {
    width: 100%;
    margin: 0;
    padding: 80px 0;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.bike-hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 100px 0;
    position: relative;
}

.bike-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.bike-hero-search {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.bike-hero-content {
    color: #fff;
    padding: 20px;
}

/* Hero Title - Using CSS variables */
.bike-hero-content .bike-hero-title,
.bike-hero-content h1 {
    --title-color: #ffffff; /* Default fallback */
    font-size: 3rem !important;
    margin: 0 0 25px 0 !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    z-index: 2 !important;
    color: var(--title-color) !important;
    max-width: 90%;
}

/* Hero Subtitle & Bullet Points */
.bike-hero-content .bike-hero-subtitle,
.bike-hero-content p {
    --subtitle-color: #f5f5f5; /* Default fallback */
    font-size: 1.1rem !important;
    margin: 0 0 20px 0 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    z-index: 2 !important;
    color: var(--subtitle-color) !important;
    line-height: 1.6 !important;
}

/* Bullet Points Styling */
.bike-bullet-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bike-bullet-points li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.bike-bullet-points li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--title-color, #fff);
    font-size: 1.5rem;
    line-height: 1;
    top: 0.1em;
}

/* Reset any theme styles that might be overriding our colors */
.bike-hero-title,
.bike-hero-subtitle {
    all: initial !important; /* Reset all properties */
    font-family: inherit !important;
    display: block !important;
}

/* Reapply our styles after reset */
.bike-hero-title {
    font-size: 3.5rem !important;
    margin: 0 0 20px 0 !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: var(--title-color, #ffffff) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.bike-hero-subtitle {
    font-size: 1.5rem !important;
    margin: 0 0 40px 0 !important;
    color: var(--subtitle-color, #f5f5f5) !important;
    line-height: 1.5 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.bike-search-container {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

/* Section Headings */
body.page-template-template-bike-php .how-it-works-section .section-title,
body.page-template-template-bike-php .why-choose-us-section .section-title,
body.page-template-template-bike-php .popular-destinations-section .section-title {
    text-align: center !important;
    font-size: 2.5rem !important;
    margin: 60px auto 40px !important;
    color: #333 !important;
    position: relative !important;
    padding-bottom: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
    max-width: 90% !important;
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    text-align: center !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
}

body.page-template-template-bike-php .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #007bff;
}

/* How It Works Section */
.how-it-works-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.step {
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: #4CAF50;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    color: #333;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.3px;
}

.step p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Why Choose Us Section */
.why-choose-us-section {
    background-color: #fff;
    padding: 80px 0;
}

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

.feature {
    background: #f9f9f9;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.feature:hover .feature-icon {
    background: #4CAF50;
    color: #fff;
    transform: rotateY(180deg);
}

.feature h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    color: #333;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.3px;
}

.feature p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Popular Destinations Section */
.popular-destinations-section {
    background-color: #fff;
    padding: 80px 0;
    position: relative;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.destination-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 300px;
}

.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.destination-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: all 0.5s ease;
}

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

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 100%);
    padding: 25px 20px;
    color: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 45%;
}

.destination-overlay h3 {
    margin: 5px 0 0 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-transform: none;
}

.destination-overlay .price {
    margin: 0;
    font-size: 1.1rem;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    font-weight: 500;
    opacity: 0.95;
    display: block;
    letter-spacing: 0.3px;
}

/* Ensure text is always white and visible */
.destination-overlay * {
    color: #ffffff !important;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .destinations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .destination-card {
        height: 250px;
    }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .bike-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .bike-hero-search {
        order: 2;
        margin-top: 30px;
    }
    
    .bike-hero-content {
        order: 1;
        text-align: center;
    }
    
    .bike-hero-content .bike-hero-title,
    .bike-hero-content h1 {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        font-size: 2.2rem !important;
    }
    
    .bike-bullet-points {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .steps-container, 
    .features-grid,
    .destinations-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .bike-search-container {
        margin: 0 20px;
        padding: 20px;
    }
}
