/* ========================================
   CUSTOM STYLES FOR BEAUTIFUL BANGLADESH
   Add your custom CSS here!
   ======================================== */

/* === COLOR VARIABLES === */
:root {
    --brand-green: #006a4e;
    --brand-red: #f42a41;
    --brand-gold: #D4AF37;
    --light-cream: #f9f9f9;
    --dark-gray: #333;
}

/* === EXAMPLE CUSTOMIZATIONS === */

/* Change button hover effect */
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(244, 42, 65, 0.4);
}

/* Change destination card hover */
.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-green);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #005239;
}

/* Add your custom styles below this line */
/* ========================================= */

/* === MOBILE RESPONSIVE SEARCH BAR === */
@media (max-width: 768px) {
    /* Adjust hero section for mobile */
    .hero-bg {
        padding-bottom: 180px; /* More space for search bar */
    }
    
    /* Search bar mobile optimization */
    #hero-search-form input,
    #hero-search-form select {
        font-size: 14px;
        height: 42px;
    }
    
    #hero-search-form button {
        height: 42px;
        font-size: 13px;
    }
    
    /* Better touch targets for mobile */
    #hero-search-form input,
    #hero-search-form select,
    #hero-search-form button {
        min-height: 44px; /* iOS recommended touch target */
    }
}

@media (max-width: 640px) {
    /* Extra small screens */
    .hero-bg {
        padding-bottom: 200px;
    }
    
    #hero-search-form {
        gap: 8px;
    }
    #srarch-bar{
        width: 70%;
        height: auto;
    }
}
@media (max-width: 768px) {
    #hero-search-form input, #hero-search-form select, #hero-search-form button {
        min-height: 44px;
        border-radius: 0 !IMPORTANT;
    }
}
@media (max-width: 640px) {
    #srarch-bar{
        border-radius: 0 !IMPORTANT;
    }
}

/* Search bar focus states */
#hero-search-form input:focus,
#hero-search-form select:focus {
    box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.1);
}

/* Better select dropdown styling */
#hero-search-form select {
    background-color: #f9fafb;
}

#hero-search-form select:hover {
    background-color: #f3f4f6;
}

/* Search button hover effect */
#hero-search-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 42, 65, 0.3);
}

#hero-search-form button:active {
    transform: translateY(0);
}

/* Smooth transitions */
#hero-search-form input,
#hero-search-form select,
#hero-search-form button {
    transition: all 0.2s ease;
}

#srarch-bar{
    background-color: rgba(255, 255, 255, 0.81);
    width: 40%;
   /* height: 70px;*/
    padding: 0;
    margin-bottom: 6%;
    border-radius: 50px;
}
#hero-search-form{
  background-color: rgba(255, 255, 255, 0);
  border: none;
  color: #0d2b0d;
  outline: none;
  gap: 1.5px;
 /* height: 70px;*/
}
#srarch-bar-bg{
  background-color: rgba(255, 255, 255, 0);
  border: none;
}
#search-keywords{
  background-color: rgba(255, 255, 255, 0);
  border: none;
} 
#search-category{
  background-color: rgba(255, 255, 255, 0);
  border: none;
} 
#search-location{
  background-color: rgba(255, 255, 255, 0);
  border: none;
}

#srarch-bar-bg{
  background-color: rgba(255, 255, 255, 0);
  border: none;
}
#s-button{
    padding: 23px;
    border-radius: 0 50px 50px 0px;
}
#hero-search-form select {
    background-color: #f3f4f600;
}
#hero-search-form select:hover {
    background-color: #f3f4f600;
    border: none;
    outline-color:transparent;
}
#hero-search-form input:focus{
    border: none;
    outline-color:transparent;
}
#btnh{
    display: none;
}

/* ========================================
   OUR RECOMMENDATIONS - SCATTERED COLLAGE LAYOUT
   ======================================== */

/* Container for scattered cards */
.rec-collage-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    height: 550px;
}

/* Base card styling */
.rec-collage-card {
    position: absolute;
    width: 240px;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.4s ease;
}

/* Card image */
.rec-collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Dark gradient overlay */
.rec-collage-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.65) 100%);
    z-index: 1;
}

/* Card title */
.rec-collage-title {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    z-index: 2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    text-align: center;
}

/* Specific positioning for each card - matching the reference image */

/* Card 1: Waterfalls (Top Left) */
.rec-card-1 {
    top: 20px;
    left: 80px;
    z-index: 5;
    transform: rotate(-8deg);
}

/* Card 2: Beach (Center - most prominent) */
.rec-card-2 {
    top: 115px;
    left: 50%;
    margin-left: -120px;
    z-index: 7;
    width: 260px;
    height: 340px;
    transform: rotate(3deg);
}

/* Card 3: Food (Top Right) */
.rec-card-3 {
    top: 10px;
    right: 80px;
    z-index: 6;
    transform: rotate(5deg);
}

/* Card 4: Hill (Bottom Left) */
.rec-card-4 {
    bottom: 20px;
    left: 20px;
    z-index: 4;
    transform: rotate(-5deg);
    width: 220px;
    height: 300px;
}

/* Card 5: Heritage Tour (Bottom Center) */
.rec-card-5 {
    bottom: 0;
    left: 50%;
    margin-left: -120px;
    z-index: 3;
    transform: rotate(-3deg);
}

/* Card 6: Luxury (Bottom Right) */
.rec-card-6 {
    bottom: 30px;
    right: 30px;
    z-index: 5;
    transform: rotate(6deg);
}

/* Hover effects */
.rec-collage-card:hover {
    transform: translateY(-12px) rotate(0deg) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    z-index: 10 !important;
}

.rec-collage-card:hover .rec-collage-img {
    transform: scale(1.1);
}

.rec-collage-card:hover .rec-collage-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 100%);
}

/* Tablet responsive (2x3 grid) */
@media (max-width: 1100px) {
    .rec-collage-container {
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 20px;
        max-width: 700px;
    }
    
    .rec-collage-card {
        position: relative !important;
        width: 100% !important;
        height: 380px !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 !important;
    }
    
    .rec-collage-card:hover {
        transform: translateY(-10px) scale(1.03) !important;
    }
}

/* Mobile responsive (single column) */
@media (max-width: 640px) {
    .rec-collage-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
        max-width: 100%;
    }
    
    .rec-collage-card {
        height: 340px !important;
    }
    
    .rec-collage-title {
        font-size: 1.5rem;
        bottom: 18px;
    }
    
    .rec-collage-card:hover {
        transform: translateY(-8px) scale(1.02) !important;
    }
}


/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ======================================== */

/* Mobile Navigation */
@media (max-width: 1024px) {
    /* Show mobile menu button */
    #mobile-menu-btn {
        display: block !important;
        position: relative;
        z-index: 60;
    }
    
    /* Mobile menu styling */
    #mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #006a4e;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 50;
        transition: all 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }
    
    #mobile-menu.hidden {
        max-height: 0;
        opacity: 0;
    }
    
    #mobile-menu:not(.hidden) {
        max-height: 500px;
        opacity: 1;
    }
    
    /* Mobile menu links */
    #mobile-menu a {
        display: block;
        padding: 15px 20px;
        color: white;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: background-color 0.2s ease;
    }
    
    #mobile-menu a:hover,
    #mobile-menu a:active {
        background-color: #f42a41;
    }
    
    #mobile-menu a:last-child {
        border-bottom: none;
    }
}

/* Hero Section Mobile */
@media (max-width: 768px) {
    .hero-bg {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 250px;
    }
    
    .hero-bg h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .hero-bg p {
        font-size: 1.125rem !important;
    }
    
    #srarch-bar {
        width: 90% !important;
        margin-bottom: 10%;
    }
}

@media (max-width: 640px) {
    .hero-bg h1 {
        font-size: 2rem !important;
    }
    
    .hero-bg p {
        font-size: 1rem !important;
    }
    
    #srarch-bar {
        width: 95% !important;
        padding: 10px;
    }
}

/* Megamenu Mobile */
@media (max-width: 1024px) {
    .group .absolute {
        display: none !important;
    }
}

/* Destination Cards Mobile */
@media (max-width: 768px) {
    #destination-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .destination-card {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    #destination-grid {
        gap: 15px;
    }
}

/* Statistics Section Mobile */
@media (max-width: 768px) {
    .grid.grid-cols-2.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .grid.grid-cols-2.md\:grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
}

/* About Section Mobile */
@media (max-width: 768px) {
    .flex.flex-col.md\:flex-row {
        flex-direction: column !important;
    }
    
    .md\:w-1\/2 {
        width: 100% !important;
    }
}

/* Footer Mobile */
@media (max-width: 768px) {
    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
}

/* Contact Page Mobile */
@media (max-width: 1024px) {
    .lg\:col-span-1,
    .lg\:col-span-2 {
        grid-column: span 1 !important;
    }
}

@media (max-width: 768px) {
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

/* Destination Single Page Mobile */
@media (max-width: 1024px) {
    .lg\:col-span-3 {
        grid-column: span 1 !important;
    }
}

/* Blog Page Mobile */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Modal Mobile */
@media (max-width: 768px) {
    .modal-container {
        width: 95% !important;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-content {
        padding: 20px !important;
    }
}

/* Typography Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    .text-5xl {
        font-size: 2.5rem !important;
    }
    
    .text-4xl {
        font-size: 2rem !important;
    }
    
    .text-3xl {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    .text-5xl {
        font-size: 2rem !important;
    }
    
    .text-4xl {
        font-size: 1.75rem !important;
    }
}

/* Spacing Mobile */
@media (max-width: 768px) {
    .py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-16 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Buttons Mobile */
@media (max-width: 640px) {
    .px-8 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .py-3 {
        padding-top: 0.625rem !important;
        padding-bottom: 0.625rem !important;
    }
    
    button,
    .btn {
        min-height: 44px; /* iOS touch target */
    }
}

/* Images Mobile */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

* {
    max-width: 100%;
}

/* Touch-friendly elements */
@media (max-width: 768px) {
    a,
    button,
    input,
    select,
    textarea {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    /* Larger touch targets */
    .filter-btn {
        min-height: 44px;
        padding: 10px 20px;
    }
}

/* Fix for iOS Safari */
@media (max-width: 768px) {
    input,
    select,
    textarea {
        font-size: 16px !important; /* Prevents auto-zoom */
    }
}

/* Landscape mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-bg {
        height: auto;
        min-height: 100vh;
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    .text-2xl {
        font-size: 1.25rem !important;
    }
    
    .text-xl {
        font-size: 1.125rem !important;
    }
    
    .px-4 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* Admin Panel Mobile */
@media (max-width: 1024px) {
    .admin-sidebar {
        position: fixed;
        left: -100%;
        transition: left 0.3s ease;
        z-index: 100;
    }
    
    .admin-sidebar.active {
        left: 0;
    }
}

/* Table Mobile */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
}

/* Grid Mobile */
@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .gap-8 {
        gap: 1rem !important;
    }
    
    .gap-6 {
        gap: 0.75rem !important;
    }
    
    .gap-4 {
        gap: 0.5rem !important;
    }
}

/* Fix video responsiveness */
video {
    max-width: 100%;
    height: auto;
}

/* Smooth scrolling on mobile */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
