/* ============================================
   Rfts Custom Components
   ============================================ */

/* Typography */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* ============================================
   Hero Section with Background Carousel
   ============================================ */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
    padding: 4rem 0;
}

/* Background Carousel */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Light overlay for bright images */
.hero-section::before {
    background: rgba(0, 0, 0, 0.4);
}

/* Or use gradient overlay for better text readability */
.hero-section::before {
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}



/* Content Layer */
.hero-content {
    position: relative;
    z-index: 2;
}



/* Carousel Dots Navigation */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    border-color: rgba(255, 127, 80, 0.8);
    width: 30px;
    border-radius: 6px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-dots {
        bottom: 20px;
    }
    
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .animate-fade-in {
        transition: none;
        animation: none;
        opacity: 1;
    }
}


/* ============================================
   Cards
   ============================================ */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-hover {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

/* ============================================
   Trip Components
   ============================================ */
.tour-card-img {
    height: 200px;
    object-fit: cover;
}

.price-tag {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.star-rating {
    color: #ffc107;
    font-size: 0.9rem;
}

/* ============================================
   Agency Components
   ============================================ */
.agency-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.verified-badge {
    background-color: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background-color: var(--dark-color);
    color: white;
    margin-top: 4rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--secondary-color);
}


/* Style Agency badges */

.verified-badge {
    background-color: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.star-rating {
    color: #ffc107;
}

.price-tag {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.overlay-contrast {
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.text-contrast {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}


/* Carousel Container */
.tour-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0 50px; /* Space for scroll buttons */
}

.tour-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 10px 0 20px 0; /* Bottom padding for shadows */
}

.tour-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.tour-carousel-item {
    flex: 0 0 auto;
    width: 280px; /* Card width */
}

/* Scroll Buttons */
.carousel-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.carousel-scroll-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.carousel-scroll-left {
    left: 10px;
}

.carousel-scroll-right {
    right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tour-carousel-item {
        width: 240px; /* Smaller on mobile */
    }
    
    .tour-carousel-container {
        padding: 0 10px;
    }
    
    .carousel-scroll-btn {
        display: none; /* Hide buttons on mobile, use native scroll */
    }
}


/* ============================================
   Z-Index Fixes
   ============================================ */

/* Ensure the entire search/filter card stacks above content below it (like tour cards) */
#agency-filter-form > .card, 
#filter-form > .card {
    position: relative; 
    z-index: 100; 
}

/* You already had this, keep it for good measure */
.dropdown-menu {
    z-index: 1050; 
    width: auto !important;
    max-width: 90vw;
}