/* General Body Styles */
:root {
    --primary-bg: #0D1117;
    --secondary-bg: #161B22;
    --header-bg: rgba(22, 27, 34, 0.85); 
    --text-primary: #FFFFFF;
    --text-secondary: #CDD5E0;
    --accent-green: #A3BF6B;
    --accent-teal: #1A3A3A;
    --border-color: #30363D;
    --success-color: #28a745;
    --error-color: #dc3545;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden; /* Prevents horizontal scroll */
}
a { text-decoration: none; color: inherit; }
ul { list-style-type: none; }


/* ===== HEADER STYLING (UNIFIED) ===== */
.desktop-header {
    position: sticky; top: 0; width: 100%; z-index: 100;
    background-color: var(--primary-bg); padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}
.navbar {
    width: 90%; max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
body.home-page .desktop-header {
    position: absolute; top: 20px; left: 50%;
    transform: translateX(-50%); width: 90%; max-width: 1200px;
    background: none; border-bottom: none; padding: 0;
    z-index: 10; /* <-- დაამატეთ ეს ხაზი */
}
body.home-page .navbar {
    background-color: var(--header-bg); border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: 12px; padding: 15px 30px; width: 100%;
}
.logo { font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; gap: 10px; letter-spacing: 1px; }
.logo i { color: var(--accent-green); font-size: 1.2rem; }
.nav-links { display: flex; gap: 30px; margin-right: auto; padding-left: 40px; }
.nav-links a { font-weight: 500; color: var(--text-secondary); position: relative; padding-bottom: 5px; transition: color 0.3s; }
.nav-links a.active, .nav-links a:hover { color: var(--text-primary); }
.nav-links a.active::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 100%; height: 2px; background-color: var(--text-primary);
}
.nav-right { display: flex; align-items: center; gap: 20px; font-size: 1.1rem; }
.language-selector { position: relative; cursor: pointer; margin-left: 10px; }
.current-lang, .lang-dropdown li a { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 500; }
.current-lang { padding: 5px 10px; border-radius: 6px; transition: background-color 0.2s; }
.current-lang span, .lang-dropdown li a span { font-size: 1.2rem; } 
.language-selector:hover .current-lang { background-color: rgba(255, 255, 255, 0.1); }
.lang-dropdown {
    position: absolute; top: 120%; right: 0; background-color: var(--secondary-bg);
    border: 1px solid var(--border-color); border-radius: 8px; padding: 5px;
    width: 140px; opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.3s ease; z-index: 10;
}
.language-selector:hover .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown li a { padding: 8px 12px; border-radius: 6px; width: 100%;}
.lang-dropdown li a:hover { background-color: rgba(255, 255, 255, 0.05); }


/* ===== MOBILE APP UI ===== */
.mobile-header {
    display: none;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: var(--header-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
}
.mobile-header-container { padding: 15px; }
.mobile-header-container .logo { font-size: 1.5rem; }
.mobile-nav {
    display: none; position: fixed; bottom: 0; left: 0;
    width: 100%; background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color); z-index: 1000;
}
.nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 8px 0; color: var(--text-secondary); transition: color 0.3s ease;
}
.nav-item i { font-size: 1.4rem; margin-bottom: 4px; }
.nav-item span { font-size: 0.7rem; font-weight: 500; }
.nav-item.active { color: var(--accent-green); }


/* ===== INDEX PAGE & GENERAL SECTIONS ===== */
.hero-slider { position: relative; height: 100vh; min-height: 650px; overflow: hidden; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; transform: scale(1.1); }
.slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)); }
.slide.active { opacity: 1; transform: scale(1); transition: opacity 1.5s ease-in-out, transform 8s linear; }
.hero-content { position: absolute; z-index: 5; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; height: 100%; padding: 0 5%; max-width: 650px; opacity: 0; transition: opacity 0.8s ease 0.5s; }
.slide.active .hero-content { opacity: 1; }
.hero-content h1 { font-size: 4rem; font-weight: 700; line-height: 1.2; }
.hero-content p { font-size: 1.1rem; margin: 20px 0; color: var(--text-secondary); max-width: 80%; }
.cta-button { background-color: var(--accent-green); color: var(--primary-bg); border: none; padding: 15px 35px; border-radius: 50px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: transform 0.2s, background-color 0.2s; }
.cta-button:hover { transform: scale(1.05); }
.categories { width: 90%; max-width: 1200px; margin: -100px auto 50px auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; position: relative; z-index: 10; }
.card { background: var(--secondary-bg); border-radius: 15px; overflow: hidden; position: relative; min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; transition: transform 0.3s ease; }
.card-no-image { align-items: flex-start; }
.card:hover { transform: translateY(-5px); }
.card img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: opacity 0.3s, transform 0.3s; }
.card:hover img { transform: scale(1.05); }
.card-title { position: relative; z-index: 2; font-size: 1.2rem; font-weight: 600; }
.card-icon { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.5); width: 35px; height: 35px; border-radius: 50%; display: flex; justify-content: center; align-items: center; z-index: 2; }
.special-card { background: var(--accent-teal); display: flex; align-items: center; justify-content: center; text-align: center; }
.section-header { width: 90%; max-width: 1200px; margin: 0 auto 30px auto; display: flex; justify-content: space-between; align-items: center; }
.section-header h2 { font-size: 2.5rem; }
.section-header a { font-weight: 600; letter-spacing: 1px; }
.tours-section, .listings, .car-gallery, .contact-section, .listing-page-section { padding: 80px 0; }
.tours-grid, .listings-grid, .car-grid { width: 90%; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.car-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-bottom: 50px; }
.tour-card, .listing-card, .car-card { background: var(--secondary-bg); border-radius: 15px; overflow: hidden; transition: transform 0.3s ease; }
.tour-card:hover, .listing-card:hover, .car-card:hover { transform: translateY(-5px); }
.tour-image { height: 220px; background-size: cover; background-position: center; transition: transform 0.4s ease; }
.tour-card:hover .tour-image { transform: scale(1.05); }
.tour-content { padding: 25px; }
.tour-content h3 { font-size: 1.3rem; margin-bottom: 15px; }
.tour-meta { display: flex; justify-content: space-between; align-items: center; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.tour-meta span { display: flex; align-items: center; gap: 8px; }
.tour-link { color: var(--accent-green); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; }
.tour-link i { transition: transform 0.3s; }
.tour-link:hover i { transform: translateX(5px); }
.listing-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.listing-info { padding: 20px; }
.car-image-wrapper { height: 180px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: #e9e9e9; }
.car-info { padding: 20px; }
.car-info .rating, .details-info-column .rating { color: #c5a560; }
.filters { margin-bottom: 40px; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.filter-btn { background: none; border: 1px solid var(--border-color); color: var(--text-secondary); padding: 10px 25px; border-radius: 50px; cursor: pointer; font-weight: 500; transition: all 0.2s; }
.filter-btn.active, .filter-btn:hover { background-color: var(--text-primary); color: var(--primary-bg); border-color: var(--text-primary); }
.load-more-container { text-align: center; }
.load-more-btn { background: none; border: 1px solid var(--border-color); color: var(--text-secondary); padding: 15px 40px; border-radius: 5px; cursor: pointer; font-weight: 600; }
.contact-container { width: 90%; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 60px; align-items: center; }
.contact-info h2 { font-size: 2.5rem; margin-bottom: 15px; }
.contact-info p { color: var(--text-secondary); margin-bottom: 30px; line-height: 1.7; }
.info-list li { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.info-list i { font-size: 1.8rem; color: var(--accent-green); }
.info-list h4 { font-size: 1.1rem; margin-bottom: 5px; }
.info-list span { color: var(--text-secondary); }
.form-group { margin-bottom: 20px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; background-color: var(--primary-bg); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-size: 1rem; font-family: 'Poppins', sans-serif; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-green); box-shadow: 0 0 0 3px rgba(163, 191, 107, 0.2); }
.contact-form .cta-button { width: 100%; font-size: 1.1rem; }
footer { padding: 40px 0; }
.footer-container { width: 90%; max-width: 1200px; margin: 0 auto; }
.footer-main { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }
.footer-main .logo { font-size: 1.8rem; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 50%; transition: all 0.3s ease; }
.social-icons a:hover { background-color: var(--accent-green); border-color: var(--accent-green); color: var(--primary-bg); transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; padding-top: 30px; border-top: 1px solid var(--border-color); color: var(--text-secondary); font-size: 0.9rem; }
.footer-legal a { margin-left: 20px; transition: color 0.3s; }
.footer-legal a:hover { color: var(--accent-green); }


/* ===== LISTING & DETAIL PAGES ===== */
.page-hero { height: 35vh; min-height: 200px; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; background-size: cover; background-position: center; }
.page-hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)); }
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { font-size: 3.5rem; font-weight: 700; }
.page-hero p { font-size: 1.2rem; color: var(--text-secondary); }
.tours-grid-full, .listings-grid-full, .car-grid-full, .search-results-grid { width: 90%; max-width: 1200px; margin: 0 auto; display: grid; gap: 25px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.details-container-universal { height: 50vh; min-height: 400px; position: relative; display: flex; align-items: flex-end; padding: 40px; background-size: cover; background-position: center; }
.details-hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
.details-container-universal h1 { position: relative; z-index: 2; font-size: 3.5rem; }
.details-content { width: 90%; max-width: 1200px; margin: 0 auto; padding: 60px 0; }
.details-main-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: flex-start; }
.details-info { position: sticky; top: 120px; }
.details-price { font-size: 1.8rem; color: var(--accent-green); font-weight: 600; margin-bottom: 30px; }
.details-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; border-top: 1px solid var(--border-color); padding-top: 30px; }
.spec-item { display: flex; align-items: center; gap: 12px; }
.spec-item i { font-size: 1.5rem; color: var(--accent-green); }
.spec-item span { color: var(--text-secondary); }
.details-description h3 { font-size: 1.5rem; margin-bottom: 15px; border-left: 3px solid var(--accent-green); padding-left: 10px; }
.details-description p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 30px; }
.details-description ul { list-style: none; margin-bottom: 30px; padding-left: 0; }
.details-description ul li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--text-secondary); }
.details-description ul li i { color: var(--accent-green); }
.booking-actions { display: flex; gap: 15px; align-items: center; }
.booking-actions .cta-button { flex: 1; }
.whatsapp-button { padding: 15px 20px; background: none; border: 1px solid #25D366; color: #25D366; border-radius: 50px; font-weight: 600; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.whatsapp-button:hover { background: #25D366; color: var(--text-primary); }
.mini-gallery, .thumbnail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 30px; }
.mini-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; border: 2px solid var(--border-color); cursor: pointer; transition: all 0.3s ease; }
.mini-gallery a:hover img { transform: scale(1.05); border-color: var(--accent-green); }
.lightbox { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.85); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; }
.lightbox:target { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90%; max-height: 80%; border: 3px solid white; border-radius: 12px; }
.details-page-main { padding-top: 50px; }
.details-container { width: 90%; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: flex-start; }
.main-image { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; }
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail { width: 100%; border-radius: 8px; cursor: pointer; opacity: 0.6; transition: opacity 0.3s, transform 0.3s; aspect-ratio: 4 / 3; object-fit: cover; }
.thumbnail:hover { opacity: 1; transform: scale(1.05); }
.thumbnail.active { opacity: 1; border: 2px solid var(--accent-green); }
.details-info-column .details-title { font-size: 2rem; margin-bottom: 10px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.feature-tags span { background: var(--secondary-bg); padding: 8px 15px; border-radius: 50px; font-size: 0.8rem; border: 1px solid var(--border-color); }
.price-section { border-top: 1px solid var(--border-color); padding-top: 20px; margin-bottom: 30px; }
.price-section h3 { margin-bottom: 15px; font-weight: 600; }
.price-item { display: flex; justify-content: space-between; align-items: center; color: var(--text-secondary); padding: 10px 0; }
.price-item .price-value { color: var(--text-primary); font-size: 1.5rem; font-weight: 600; }
.overview-section { width: 90%; max-width: 1200px; margin: 80px auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.overview-section h2 { font-size: 1.8rem; margin-bottom: 20px; }
.overview-section p, .services-list li { color: var(--text-secondary); line-height: 1.8; }
.services-list { list-style: none; padding: 0; }
.services-list li { display: flex; gap: 10px; margin-bottom: 10px; align-items: center;}
.services-list i { color: var(--accent-green); }
.about-container { width: 90%; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.about-image img { width: 100%; border-radius: 12px; }
.about-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.about-text h3 { font-size: 1.8rem; margin-top: 30px; margin-bottom: 15px; }
.about-text p, .about-text li { color: var(--text-secondary); line-height: 1.8; }
.about-text p { margin-bottom: 15px; }
.about-text ul { list-style: none; padding: 0; }
.about-text li { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 10px; }
.about-text li i { color: var(--accent-green); font-size: 1.2rem; margin-top: 5px; }
.error-page-container { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 70vh; padding: 40px 15px; }
.error-code { font-size: clamp(6rem, 25vw, 12rem); font-weight: 700; color: var(--accent-green); line-height: 1; margin: 0; }
.error-title { font-size: 2.5rem; margin: 0 0 15px 0; }
.error-message { color: var(--text-secondary); max-width: 500px; margin: 0 auto 30px auto; line-height: 1.7; }
.error-actions { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.secondary-button { background: none; border: 1px solid var(--border-color); color: var(--text-secondary); padding: 15px 35px; border-radius: 50px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.secondary-button:hover { background-color: var(--secondary-bg); border-color: var(--accent-green); color: var(--accent-green); }


/* ===== HEADER ICON BUTTONS ===== */
.search-icon-btn, .user-icon-btn { background: none; border: none; color: var(--text-secondary); font-size: 1.1rem; cursor: pointer; padding: 5px; transition: color 0.3s; }
.search-icon-btn:hover, .user-icon-btn:hover { color: var(--text-primary); }


/* ===== MODAL (POP-UP) STYLES ===== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.8); z-index: 2000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease-in-out; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { background-color: var(--secondary-bg); padding: 30px; border-radius: 12px; width: 90%; max-width: 500px; position: relative; transform: scale(0.95); transition: transform 0.3s ease-in-out; }
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-close { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 2rem; color: var(--text-secondary); cursor: pointer; }
.modal-header { text-align: center; margin-bottom: 20px; }
.modal-tabs { display: flex; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.tab-link { flex: 1; background: none; border: none; color: var(--text-secondary); padding: 15px; font-size: 1rem; font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.2s; }
.tab-link.active, .tab-link:hover { color: var(--accent-green); border-bottom-color: var(--accent-green); }
.modal-tab-content { display: none; }
.modal-tab-content.active { display: block; }
.modal-body .form-group { margin-bottom: 20px; }
.modal-body label { display: block; margin-bottom: 8px; font-weight: 500; }
.modal-body input { width: 100%; padding: 12px; background-color: var(--primary-bg); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-size: 1rem; }
.modal-body .cta-button { width: 100%; }
.form-response { margin-top: 15px; padding: 10px; border-radius: 6px; text-align: center; font-weight: 500; display: none; }
.form-response.show { display: block; }
.form-response.success { color: #fff; background-color: var(--success-color); }
.form-response.error { color: #fff; background-color: var(--error-color); }


/* ===== SEARCH MODAL STYLES ===== */
.search-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(13, 17, 23, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 3000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.search-modal-overlay.active { display: flex; opacity: 1; }
.search-modal-close { position: absolute; top: 30px; right: 40px; font-size: 2.5rem; color: var(--text-secondary); }
.search-modal-content { width: 90%; max-width: 700px; }
.search-modal-form { position: relative; width: 100%; }
#search-modal-input { width: 100%; background: none; border: none; border-bottom: 2px solid var(--border-color); padding: 15px 50px 15px 0; font-size: 2.5rem; font-weight: 500; color: var(--text-primary); outline: none; transition: border-color 0.3s; }
#search-modal-input::placeholder { color: #555; }
#search-modal-input:focus { border-bottom-color: var(--accent-green); }
.search-modal-submit { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 2rem; color: var(--text-secondary); cursor: pointer; }


/* ===== PAGINATION STYLES ===== */
.pagination { margin-top: 50px; display: flex; justify-content: center; }
.pagination ul { display: flex; list-style-type: none; padding: 0; gap: 10px; }
.pagination a { display: block; padding: 10px 15px; background-color: var(--secondary-bg); color: var(--text-secondary); border: 1px solid var(--border-color); border-radius: 8px; font-weight: 500; transition: all 0.2s ease-in-out; }
.pagination a:hover { background-color: var(--accent-green); color: var(--primary-bg); border-color: var(--accent-green); }
.pagination a.active { background-color: var(--accent-green); color: var(--primary-bg); border-color: var(--accent-green); cursor: default; }


/* --- HOMEPAGE LISTINGS & CATEGORIES UPDATES --- */


/* ===== RESPONSIVE & MOBILE FIXES ===== */
@media (max-width: 992px) {
    .desktop-header { display: none; }
    .mobile-header, .mobile-nav { display: flex; }
    body { padding-top: 0; padding-bottom: 70px; }
    .mobile-header-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
    .mobile-header-actions { display: flex; align-items: center; gap: 15px; }
    .mobile-header .current-lang { padding: 5px; }
    .mobile-header .language-selector .current-lang > span:not(:first-child) { display: none; }
    .details-container, .overview-section, .details-main-grid, .contact-container, .about-container { grid-template-columns: 1fr; }
    .about-image { grid-row: 1; }
    .details-page-main { padding-top: 20px; }
    .details-info { position: static; }
}

@media (max-width: 768px) {
    .hero-content h1, .page-hero h1, .details-container-universal h1, #search-modal-input { font-size: 2rem; }
    .footer-main, .footer-bottom { justify-content: center; text-align: center; }
    .details-info-column .details-title { font-size: 1.8rem; }
    .details-specs { grid-template-columns: 1fr; }
    .booking-actions { flex-direction: column; align-items: stretch; }

    .categories {
        display: grid;
        grid-template-columns: none; 
        grid-auto-flow: column; 
        grid-auto-columns: 240px; 
        overflow-x: auto; 
        justify-content: flex-start;
        padding-left: 5%;
        padding-right: 5%;
        margin-left: -5%;
        width: 100vw;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .categories::-webkit-scrollbar { display: none; }
    
    .tours-grid, .listings-grid, .car-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .tour-card, .listing-card, .car-card {
        font-size: 0.9rem;
    }
    .tour-content, .listing-info, .car-info {
        padding: 15px;
    }
    .tour-content h3, .listing-info h3, .car-info h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    
    .section-header h2, .contact-info h2 {
        font-size: 2rem;
    }
    .info-list h4 {
        word-break: break-word;
    }
    .hero-content p {
        max-width: 100%;
    }
}

@media (min-width: 993px) {
    .mobile-header, .mobile-nav { display: none; }
    body { padding-top: 0; padding-bottom: 0; }
}
/* ====================================================== */
/* ===== MY BOOKINGS PAGE STYLES ====================== */
/* ====================================================== */

.bookings-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.bookings-table-wrapper {
    overflow-x: auto; /* ჰორიზონტალური სქროლი მცირე ეკრანებზე */
    background-color: var(--secondary-bg);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid var(--border-color);
}

.bookings-table {
    width: 100%;
    border-collapse: collapse;
}

.bookings-table th,
.bookings-table td {
    padding: 15px 20px;
    text-align: left;
    white-space: nowrap; /* ხელს უშლის ტექსტის გადანაწილებას */
}

.bookings-table thead {
    border-bottom: 2px solid var(--border-color);
}

.bookings-table th {
    font-weight: 600;
    color: var(--text-secondary);
}

.bookings-table tbody tr:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-cell img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.product-cell .product-name {
    font-weight: 500;
    transition: color 0.3s;
}

.product-cell .product-name:hover {
    color: var(--accent-green);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-transform: capitalize;
}

.status-badge.status-confirmed { background-color: #28a745; }
.status-badge.status-pending { background-color: #ffc107; color: var(--primary-bg); }
.status-badge.status-cancelled { background-color: #dc3545; }
.status-badge.status-completed { background-color: #17a2b8; }

.btn-details {
    padding: 8px 15px;
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-details:hover {
    background-color: var(--accent-green);
    color: var(--primary-bg);
    border-color: var(--accent-green);
}

.no-bookings-found {
    text-align: center;
    padding: 50px;
    background-color: var(--secondary-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.no-bookings-found p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* Responsive Table for my-bookings.php */
@media (max-width: 768px) {
    .bookings-table thead {
        display: none;
    }
    .bookings-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 10px;
    }
    .bookings-table td {
        display: block;
        text-align: right;
        padding: 10px;
        border-bottom: 1px solid var(--border-color);
    }
    .bookings-table td:last-child {
        border-bottom: none;
    }
    .bookings-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
        color: var(--text-secondary);
    }
    .product-cell {
        justify-content: flex-end;
    }
}
/* ====================================================== */
/* ===== PROFILE PAGE STYLES ========================== */
/* ====================================================== */

.profile-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.messages-container {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    color: #fff;
}

.message.success {
    background-color: var(--success-color);
}

.message.error {
    background-color: var(--error-color);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.profile-card {
    background-color: var(--secondary-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.profile-card h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.profile-card .form-group {
    margin-bottom: 20px;
}

.profile-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.profile-card input {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.profile-card input:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(163, 191, 107, 0.2);
}

.profile-card .cta-button {
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}
/* ====================================================== */
/* ===== USER DASHBOARD PAGE STYLES =================== */
/* ====================================================== */

.dashboard-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--secondary-bg);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-color);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--accent-green);
}

.stat-info .stat-number {
    font-size: 2rem;
    font-weight: 600;
    display: block;
}

.stat-info .stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.dashboard-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.nav-card {
    background-color: var(--secondary-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.nav-card i {
    font-size: 2rem;
    color: var(--accent-green);
    margin-bottom: 15px;
}

.nav-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.nav-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.nav-card-logout:hover {
    border-color: var(--error-color);
}

.nav-card-logout:hover i,
.nav-card-logout:hover h3 {
    color: var(--error-color);
}

/* --- Booking Details Page --- */
.booking-details-container { width: 90%; max-width: 900px; margin: 0 auto; }
.back-to-list-btn { display: inline-block; margin-bottom: 20px; color: var(--accent-green); font-weight: 500; }
.booking-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.booking-details-grid .product-card { grid-column: 1 / -1; }
.booking-details-grid .card-header { display: flex; justify-content: space-between; align-items: center; background: var(--secondary-bg); padding: 15px 20px; border-bottom: 1px solid var(--border-color); }
.booking-details-grid .card { border-radius: 12px; overflow: hidden; background: var(--secondary-bg); border: 1px solid var(--border-color); }
.details-list { padding: 20px; }
.details-list dt { font-weight: 600; color: var(--text-secondary); float: left; width: 30%; clear: left; margin-bottom: 10px; }
.details-list dd { margin-left: 35%; margin-bottom: 10px; }

@media (max-width: 768px) {
    .booking-details-grid { grid-template-columns: 1fr; }
}
/* Add to the end of admin-style.css */
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.alert {
    transition: opacity 0.3s ease-in-out;
}
/* Card Price and Rating Styles (Updated) */
.car-info-header, .tour-info-header, .listing-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 5px; /* შემცირდა დაშორება */
}

.car-info h4, .tour-info-header h3, .listing-info-header h3 {
    margin-bottom: 0; /* სათაურს მოვაშორეთ ქვედა დაშორება */
}

.card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-green);
    text-align: right;
    flex-shrink: 0;
    line-height: 1.2; /* ხაზებს შორის დაშორების კორექტირება */
}

.card-price span {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.card-rating {
    color: #ffc107; /* ვარსკვლავების ფერი (ყვითელი) */
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Specific adjustments */
.tour-card .tour-meta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}
/* ===== LISTING & DETAIL PAGES (UPDATED) ===== */

/* ეს კლასი დაამატეთ page-hero სექციას, როდესაც ის დეტალურ გვერდზეა */
.page-hero.details-hero {
    height: 25vh; /* ქავერის სიმაღლეს ვამცირებთ ეკრანის ნახევარზე */
    min-height: 200px; /* მინიმალური სიმაღლე მცირე ეკრანებისთვის */
}

/* ეს სტილი გააძლიერებს ტექსტის ფონს და უფრო კითხვადს გახდის */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)); /* ფენის გამუქება */
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2; /* ტექსტი ფენის ზემოთ რომ იყოს */
}

.page-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    /* ტექსტზე ჩრდილის დამატება უკეთესი ხილვადობისთვის */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* ეს არის JavaScript-ის Lightbox-ის შესწორება */
.lightbox:target {
    opacity: 1;
    visibility: visible;
}
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}

/* Thumbnail-ების შესწორება */
.thumbnail-link {
    display: block;
}
.thumbnail {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    border: 2px solid transparent;
}
.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}
.thumbnail.active {
    opacity: 1;
    border-color: var(--accent-green);
}

/* ატრიბუტების ბლოკის სტილი */
.details-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin: 25px 0;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}
.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.spec-item i {
    font-size: 1.4rem;
    color: var(--accent-green);
    width: 25px;
    text-align: center;
}
.spec-item span {
    color: var(--text-secondary);
}
/* ====================================================== */
/* === 11. HERO BOOKING FORM STYLES (NEW) ============= */
/* ====================================================== */

.hero-booking-section {
    position: relative;
    height: 90vh; /* ეკრანის სიმაღლის 90% */
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.hero-slides-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slides-background .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.1);
}

.hero-slides-background .slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
}

.hero-slides-background .slide.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out, transform 8s linear;
}

.booking-form-overlay {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
    max-width: 1200px; /* ფორმის კონტეინერის მაქს. სიგანე */
}

.booking-form-container h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0;
}

.booking-form-container h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.booking-form-container p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-booking-form .form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr auto; /* 5 სვეტი */
    gap: 1px;
    background-color: rgba(255, 255, 255, 0.2); /* ხაზების ფერი */
    padding: 1px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-booking-form .form-group {
    background-color: #0d111742;
    margin-bottom: 0;
}

.hero-booking-form .form-group:first-child { border-radius: 8px 0 0 8px; }

.hero-booking-form input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    padding: 20px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.hero-booking-form input::placeholder {
    color: var(--text-secondary);
}

.hero-booking-form input:focus {
    outline: none;
}

.hero-submit-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 20px 30px;
    cursor: pointer;
    height: 100%;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 8px 8px 0;
    transition: background-color 0.3s;
}

.hero-submit-btn:hover {
    background-color: var(--accent-green);
    color: var(--primary-bg);
}

/* Datepicker styles need to be added for calendar icon */
.datepicker {
    background: url('path-to-calendar-icon.svg') no-repeat right 15px center;
    background-size: 20px;
}

@media (max-width: 992px) {
    .hero-booking-form .form-row {
        grid-template-columns: 1fr;
        gap: 1px;
    }
    .hero-booking-form .form-group,
    .hero-booking-form .form-group:first-child {
        border-radius: 8px;
        margin-bottom: 15px;
    }
    .hero-submit-btn {
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}
/* Tour Details Page Layout */
.tour-details-container {
    grid-template-columns: 2fr 1fr; /* მარცხენა სვეტი უფრო ფართო */
}
.sticky-sidebar {
    position: sticky;
    top: 120px;
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 12px;
}
.price-value-wrapper {
    text-align: right;
}
.price-value-wrapper sub {
    color: var(--text-secondary);
    font-weight: 500;
}
.itinerary-section h2, .overview-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.itinerary-day {
    margin-bottom: 25px;
    padding-left: 25px;
    border-left: 3px solid var(--accent-green);
}
.itinerary-day h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.itinerary-day p {
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 992px) {
    .tour-details-container {
        grid-template-columns: 1fr;
    }
    .sticky-sidebar {
        position: static;
    }
}
/* ====================================================== */
/* ===== DETAILS PAGE GALLERY STYLES (CORRECTED) ====== */
/* ====================================================== */

.gallery-section {
    margin-top: 40px;
}

.gallery-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.thumbnail-grid.details-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 სვეტი */
    gap: 15px;
}

.thumbnail-grid.details-gallery .thumbnail-link {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.thumbnail-grid.details-gallery .thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3; /* ვინარჩუნებთ პროპორციას */
    transition: transform 0.3s ease;
    opacity: 1; /* ვაბრუნებთ სრულ ხილვადობას */
    border: none; /* ვაშორებთ ჩარჩოს, რადგან აღარ გვჭირდება active კლასი */
}

.thumbnail-grid.details-gallery .thumbnail-link:hover .thumbnail {
    transform: scale(1.05);
}
/* ====================================================== */
/* ===== DETAILS PAGE STICKY SIDEBAR (NEW) ============ */
/* ====================================================== */

.details-info-column .sticky-sidebar {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 120px; /* დაშორება ჰედერიდან */
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 12px;
}
.listing-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure all cards in a row have the same height */
}
.listing-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.listing-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows the content to fill the card height */
}
.listing-info p {
    margin-top: auto; /* Pushes the paragraph to the bottom */
    padding-top: 10px;
    color: var(--text-secondary);
}
/* Find this existing rule */
.hero-booking-form input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    padding: 20px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

/* Add this new rule right after it */
.hero-booking-form select {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    padding: 20px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    -webkit-appearance: none; /* Removes default OS styling */
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CDD5E0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 1.2em;
}
.hero-booking-form select option {
    background-color: var(--primary-bg);
}
/* ====================================================== */
/* ===== FLATPCIKR CUSTOM DARK THEME ================== */
/* ====================================================== */

.flatpickr-calendar {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.flatpickr-months .flatpickr-month,
.flatpickr-weekdays,
.flatpickr-time {
    background: var(--primary-bg);
    border-bottom: 1px solid var(--border-color);
}
span.flatpickr-weekday {
    color: var(--text-secondary);
}
.flatpickr-day {
    color: var(--text-primary);
}
.flatpickr-day:hover, .flatpickr-day.focus {
    background: var(--border-color);
    border-color: var(--border-color);
}
.flatpickr-day.today {
    border-color: var(--accent-green);
}
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange {
    background: var(--accent-green);
    color: var(--primary-bg);
    border-color: var(--accent-green);
}
.flatpickr-day.disabled, .flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay {
    color: rgba(255, 255, 255, 0.2);
}
.flatpickr-months .flatpickr-prev-month, 
.flatpickr-months .flatpickr-next-month {
    color: var(--text-primary);
    fill: var(--text-primary);
}
.flatpickr-months .flatpickr-prev-month:hover svg, 
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--accent-green);
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: var(--text-primary);
    background: transparent;
    font-weight: 600;
}
.numInputWrapper span:hover {
    background: var(--border-color);
}
.flatpickr-time .numInputWrapper span.arrowUp:after {
    border-bottom-color: var(--text-primary);
}
.flatpickr-time .numInputWrapper span.arrowDown:after {
    border-top-color: var(--text-primary);
}
.flatpickr-time input.flatpickr-hour,
.flatpickr-time input.flatpickr-minute,
.flatpickr-time .flatpickr-am-pm {
    color: var(--text-primary);
}
.flatpickr-time .flatpickr-time-separator {
    color: var(--text-primary);
}
/* ====================================================== */
/* ===== UNIFIED DETAILS PAGE LAYOUT (NEW) ============ */
/* ====================================================== */

.details-page-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    align-items: flex-start;
}

.details-gallery-container { width: 100%; }

#product-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
#product-gallery .gallery-item {
    display: block;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}
#product-gallery .gallery-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s;
}
#product-gallery .gallery-item:hover::after {
    opacity: 1;
}
#product-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
#product-gallery .gallery-item:hover img {
    transform: scale(1.05);
}
#product-gallery .gallery-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
}
#product-gallery .gallery-item:not(:first-child) {
    aspect-ratio: 1 / 1;
}

.sticky-sidebar-details {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
}
.details-info-panel {
    background-color: var(--secondary-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.details-info-panel .details-title { font-size: 2.2rem; margin-bottom: 10px; }
.details-info-panel .card-rating { margin-bottom: 20px; font-size: 1rem; }
.details-info-panel .price-section { padding: 20px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); margin-bottom: 25px; }
.price-item .price-value { font-size: 2rem; font-weight: 700; color: var(--accent-green); }
.price-item .price-value sub { font-size: 1rem; font-weight: 500; color: var(--text-secondary); }
.details-info-panel .details-specs { display: grid; grid-template-columns: 1fr; gap: 15px; margin: 25px 0; }
.details-info-panel .spec-item { gap: 15px; }

.details-page-description {
    grid-column: 1 / -1;
    margin-top: 40px;
}
.details-page-description h2 { font-size: 1.8rem; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.details-page-description .description-content { color: var(--text-secondary); line-height: 1.8; }
.details-page-description .description-content p,
.details-page-description .description-content ul,
.details-page-description .description-content h3 { margin-bottom: 1.2em; }
.itinerary-day { margin-bottom: 25px; padding-left: 25px; border-left: 3px solid var(--accent-green); }

@media (max-width: 992px) {
    .details-page-grid { grid-template-columns: 1fr; }
    .sticky-sidebar-details { position: static; margin-top: 30px; }
}
@media (max-width: 768px) {
    #product-gallery { grid-template-columns: repeat(2, 1fr); }
}
/* ====================================================== */
/* ===== MOBILE VISUAL & SCROLL FIXES ================= */
/* ====================================================== */

/* --- Homepage Hero Booking Form on Mobile --- */
@media (max-width: 992px) {
    .hero-booking-form .form-row {
        /* ვშლით Grid-ს და ვაკეთებთ ერთ სვეტს */
        grid-template-columns: 1fr;
        gap: 15px; /* ვამატებთ დაშორებას ველებს შორის */
        background-color: transparent;
        border: none;
        padding: 0;
    }
    .hero-booking-form .form-group {
        background-color: rgba(13, 17, 23, 0.8); /* ველებს ვუმატებთ ფონს */
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        margin-bottom: 0; /* ვაშორებთ დამატებით დაშორებას */
    }
    .hero-booking-form .form-group:first-child {
        border-radius: 8px; /* ვასწორებთ border-radius-ს */
    }
    .hero-submit-btn {
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background-color: var(--accent-green);
        color: var(--primary-bg);
    }
    .hero-booking-form input,
    .hero-booking-form select {
        padding: 18px 20px;
    }
    .booking-form-container h1,
    .booking-form-container h2 {
        font-size: 1.7rem; /* ვამცირებთ სათაურებს */
        line-height: 0.9; /* ვამცირებთ ხაზებს შორის დაშორებას */
        margin-bottom: 10px;
    }
    .booking-form-container p {
        margin-bottom: 25px;
    }
}

/* --- Modal Scroll Fix on Mobile --- */
@media (max-width: 768px) {
    .modal-overlay {
        /* ეს საშუალებას გვაძლევს, რომ მოდალმა დაიკავოს მთელი სიმაღლე */
        align-items: flex-start;
        padding-top: 5vh;
        padding-bottom: 5vh;
    }
    .modal-content {
        /* ვამატებთ სქროლვის შესაძლებლობას */
        max-height: 90vh;
        overflow-y: auto;
    }
}
/* ====================================================== */
/* ===== MOBILE VISUAL & SCROLL FIXES (IMPROVED) ====== */
/* ====================================================== */

/* --- Homepage Hero Booking Form on Mobile --- */
@media (max-width: 992px) {
    /* *** მთავარი შესწორება #1: ფორმის კონტეინერის ზომის კორექტირება *** */
    .booking-form-container h1,
    .booking-form-container h2 {
        font-size: 2.2rem; /* ვამცირებთ სათაურებს */
        margin-bottom: 10px;
    }
    .booking-form-container p {
        margin-bottom: 25px;
    }

    .hero-booking-form .form-row {
        grid-template-columns: 1fr;
        gap: 10px; /* ვამცირებთ დაშორებას */
        background-color: transparent;
        border: none;
        padding: 0;
    }
    .hero-booking-form .form-group {
        background-color: rgba(13, 17, 23, 0.75);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        margin-bottom: 0;
    }
    .hero-booking-form .form-group:first-child {
        border-radius: 8px;
    }

    /* *** მთავარი შესწორება #2: ველების შიდა დაშორების (padding) შემცირება *** */
    .hero-booking-form input,
    .hero-booking-form select {
        padding: 15px 20px; /* ვამცირებთ padding-ს */
        font-size: 0.9rem; /* ვამცირებთ ტექსტის ზომას */
    }

    .hero-submit-btn {
        border-radius: 8px;
        border: none;
        background-color: var(--accent-green);
        color: var(--primary-bg);
        padding: 16px 20px; /* ვუთანაბრებთ სხვა ველებს */
        font-weight: 700;
        width: 100%; /* ვაკეთებთ სრულ სიგანეზე */
    }
}

/* --- Modal Scroll Fix on Mobile --- */
@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-start;
        padding-top: 5vh;
        padding-bottom: 5vh;
    }
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* ====================================================== */
/* ===== BOOKING MODAL FORM ROW STYLES ================ */
/* ====================================================== */

#booking-modal .form-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

#booking-modal .form-row .form-group {
    flex: 1 1 100%;
    padding-left: 10px;
    padding-right: 10px;
}

@media (min-width: 768px) {
    #booking-modal .form-row .form-group.col-md-6 {
        flex-basis: 50%;
        max-width: 50%;
    }
}

/* Ensure all inputs inside the booking form are full-width */
#booking-form input.form-control,
#booking-form input[type="text"],
#booking-form input[type="email"],
#booking-form input[type="tel"],
#booking-form input[type="number"] {
    width: 100%;
}