/* Homepage Specific Styles */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

:root {
    --primary-color: #4a9782; /* Green color from main stylesheet */
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --card-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

body {
    font-family: 'Cairo', sans-serif;
}

.btn-accent {
    background: var(--primary-color) !important;
    color: white;
}

.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
}

/* Hero Section */
.hero-section {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-section .hero-content {
    z-index: 1;
}

.hero-section .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-section .hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Search Form */
.search-form-container {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.search-tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.search-tab {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #6c757d;
}

.search-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.search-form-content {
    display: none;
}

.search-form-content.active {
    display: block;
}

.search-form-container .search-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.search-form-container .search-group {
    flex: 1;
}

/* Services Section */
.services-section .section-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: #eef2ff;
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eef2ff;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
}

/* Modern Card Styles with Background Images */
.service-card.modern-card {
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    padding: 0;
    border: none;
    overflow: hidden;
    position: relative;
}

.service-card.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
    z-index: 1;
}

.service-card.modern-card .card-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 100%;
}

.service-card.modern-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-card.modern-card:hover::before {
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.35) 100%);
}

.modern-tag {
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.modern-link {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.modern-link:hover {
    color: #fff !important;
    text-decoration: none;
    transform: translateX(-5px);
}

.modern-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255,255,255,0.8);
    transition: width 0.3s ease;
}

.modern-link:hover::after {
    width: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.service-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card p {
    color: #6c757d;
    margin-bottom: 15px;
}

.service-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: #eef2ff;
    color: #4A90E2;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.service-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--primary-color);
}

.service-link i {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(-5px);
}


/* Featured Hotels */
.section .hotel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Single hotel display - keep original size */
.section .hotel-grid:has(.hotel-card-link:only-child) {
    grid-template-columns: minmax(300px, 400px);
    justify-content: center;
}

/* Fallback for browsers that don't support :has() */
@supports not (selector(:has(*))) {
    .section .hotel-grid.single-hotel {
        grid-template-columns: minmax(300px, 400px);
        justify-content: center;
    }
}

.section .hotel-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.section .hotel-card:hover {
    transform: translateY(-5px);
}

.section .hotel-card .hotel-image {
    position: relative;
}

.section .hotel-card .hotel-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.section .hotel-card .hotel-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FFD700; /* Golden color */
    color: #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    text-align: center;
    line-height: 1;
}

.section .hotel-card .hotel-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.section .hotel-card .hotel-info {
    padding: 20px;
}

.section .hotel-card .hotel-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.section .hotel-card .hotel-location {
    color: #6c757d;
    margin-bottom: 10px;
}

.section .hotel-card .hotel-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.section .hotel-card .hotel-rating .stars {
    color: #ffc107;
}

.section .hotel-card .hotel-amenities {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #6c757d;
}

.section .hotel-card .hotel-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section .hotel-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Popular Destinations */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.destination-card {
    position: relative;
    color: white;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    display: block; /* To make the link cover the whole card */
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.destination-card:hover img {
    transform: scale(1.05);
}

.destination-card .destination-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.destination-card .destination-info h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.features-grid .feature-card {
    padding: 20px;
}

.features-grid .feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section .hero-content h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }

    .hero-section .hero-content p {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem;
    }

    .hero-section .btn.btn-lg {
        width: auto !important;
        display: inline-flex !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
        height: auto !important;
        min-height: auto !important;
        border-radius: 10px !important;
    }

    .search-form-container .search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section .hero-content h1 {
        font-size: 1.8rem !important;
    }

    .hero-section .hero-content p {
        font-size: 0.85rem !important;
    }

    .hero-section .btn.btn-lg {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.8rem !important;
    }
}

/* Swiper Navigation Arrows */
.swiper-button-next,
.swiper-button-prev {
    color: #000 !important; /* Changed to black */
    background-color: rgba(255, 255, 255, 0.7); /* Light background */
    border-radius: 50%;
    width: 50px !important;
    height: 50px !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 1); /* Solid white on hover */
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: 900;
}

/* Events Section */
.events-grid {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    margin-top: 30px;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.events-grid::-webkit-scrollbar {
    height: 8px;
}

.events-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.events-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.events-grid::-webkit-scrollbar-thumb:hover {
    background: #3a7a68;
}

.event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.event-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 280px;
    min-width: 300px;
    flex-shrink: 0;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.event-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.event-card:hover .event-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.9) 100%);
}

.event-content {
    color: white !important;
    text-align: center;
    width: 100%;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    color: white !important;
}

.event-description {
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    color: white !important;
    opacity: 1;
}

.event-content .btn {
    background: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-content .btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 151, 130, 0.4);
}

/* Responsive Events Grid */
@media (max-width: 768px) {
    .events-grid {
        gap: 20px;
    }
    
    .event-card {
        height: 250px;
        min-width: 280px;
    }
    
    .event-title {
        font-size: 1.2rem;
    }
    
    .event-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .events-grid {
        gap: 15px;
    }
    
    .event-card {
        height: 220px;
        min-width: 250px;
    }
    
    .event-overlay {
        padding: 20px;
    }
}
