/**
 * Homez - Custom Styles
 * Bootstrap 5 Customizations
 */

/* 1. FONT SETUP */
@font-face {
  font-family: "ArabicFont";
  src: url("../fonts/Droid.Arabic.Kufi_DownloadSoftware.iR_.ttf")
    format("truetype");
  font-display: swap;
}

/* 2. ARABIC TEXT ONLY (Avoids breaking icons) */
[dir="rtl"] body,
[dir="rtl"] p,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] span:not([class*="bi-"]):not([class*="fa-"]),
[dir="rtl"] a:not([class*="bi-"]):not([class*="fa-"]),
[dir="rtl"] div:not([class*="bi-"]):not([class*="fa-"]) {
  font-family: "ArabicFont", sans-serif !important;
}

/* Currency Label - RTL Alignment */
.currency-label {
  direction: ltr;
  display: inline-block;
  unicode-bidi: embed;
}

/* Professional Logo Sizing */
.main-logo {
  height: 50px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

/* Optional: Slight hover effect to make it feel interactive */
.main-logo:hover {
  transform: scale(1.03);
}

/* Mobile Adjustment */
@media (max-width: 768px) {
  .main-logo {
    height: 40px;
    max-width: 120px;
  }
}

/* 3. LIGHTBOX NAVIGATION ARROWS */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  border: none !important;
  width: 60px;
  height: 60px;
  cursor: pointer;
  font-size: 30px;
  border-radius: 50%;
  z-index: 10000 !important; /* Ensure they are above the image */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.5) !important;
}
.prev-btn {
  left: 30px;
}
.next-btn {
  right: 30px;
}

/* ============================================
   CSS Variables
   ============================================ */
:root {
  --primary-color: #001E56;
  --secondary-color: #D9B665;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;

  /* RTL Support */
  --bs-body-bg: #f8f9fa;
  --bs-body-color: #212529;
}

/* ============================================
   Base Styles
   ============================================ */
body {
  font-family:
    "ArabicFont", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  overflow-x: hidden;
}

/* RTL Support for Arabic text */
[lang="ar"] body,
body[dir="rtl"],
.arabic-text {
  font-family: "ArabicFont", "Droid Arabic Kufi", sans-serif !important;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* ============================================
   Navbar Customization
   ============================================ */
.navbar {
  padding: 15px 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.navbar .nav-link.active,
.navbar .nav-link:focus,
.navbar .nav-link:hover {
  color: #001E56 !important;
}

/* Dropdown Active States */
.navbar .nav-item.dropdown.active > .nav-link {
  color: #001E56 !important;
  font-weight: 600;
}

.navbar .nav-item.dropdown.active > .nav-link::after {
  border-color: #001E56 !important;
}

.navbar .dropdown-item.active,
.navbar .dropdown-item:focus,
.navbar .dropdown-item:hover {
  background-color: #e8f0fe;
  color: #001E56;
  font-weight: 500;
}

.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar .nav-link {
  font-weight: 500;
  padding: 8px 15px !important;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  background: rgba(0, 30, 86, 0.1);
  color: var(--primary-color) !important;
}

.navbar .dropdown-menu {
  border: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px;
  z-index: 1050;
}

.navbar .dropdown-item {
  border-radius: 5px;
  padding: 8px 15px;
}

.navbar .dropdown-item:hover {
  background: var(--primary-color);
  color: white;
}

/* Top bar dropdown z-index fix */
.top-bar .dropdown {
  z-index: 1060;
}

.top-bar .dropdown-menu {
  z-index: 1060;
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
  font-size: 0.85rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #001E56 0%, #001540 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 30, 86, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #001540 0%, #000d2e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 30, 86, 0.4);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
}

.btn-outline-gold {
  border: 2px solid #D9B665;
  color: #D9B665;
}

.btn-outline-gold:hover {
  background: #D9B665;
  color: white;
  border-color: #D9B665;
}

.btn-gold {
  background: #D9B665;
  border: 2px solid transparent;
  color: white;
  font-weight: 600;
}

.btn-gold:hover {
  background: white;
  color: #D9B665;
  border-color: #D9B665;
}

.border-gold {
  border-color: #D9B665 !important;
}

.btn-view-all:hover {
  border-color: black !important;
}

.wishlist-btn:hover {
  border-color: black !important;
  color: #001E56 !important;
}

.wishlist-btn:hover .bi {
  color: #001E56 !important;
}

.wishlist-heart-btn:hover {
  border-color: black !important;
  color: white !important;
}

.wishlist-heart-btn:hover .bi {
  color: white !important;
}

.social-btn:hover {
  border-color: #001E56 !important;
  color: #001E56 !important;
}

.wishlist-nav-btn:hover {
  border-color: black !important;
  color: white !important;
}

.wishlist-nav .nav-item {
  border-right: 1px solid #dee2e6;
  padding: 0 8px;
}

.wishlist-nav .nav-item:first-child {
  padding-left: 0;
}

.wishlist-nav .nav-item:last-child {
  border-right: none;
  padding-right: 0;
}

.wishlist-tab-btn {
  color: #001E56;
  background: transparent !important;
  border-radius: 20px !important;
  border: 2px solid transparent !important;
  padding: 8px 16px !important;
  white-space: nowrap;
  box-sizing: border-box;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wishlist-tab-btn.active {
  background: #001E56 !important;
  color: white !important;
  border-color: #001E56 !important;
}

.wishlist-tab-btn .badge {
  background: #001E56;
  color: white;
  transition: all 0.3s ease;
  min-width: 22px;
  text-align: center;
  padding: 2px 6px;
  border: 1px solid transparent;
}

.wishlist-tab-btn.active .badge {
  background: white;
  color: #001E56;
  border: 1px solid #001E56;
}

.wishlist-tab-btn:hover {
  background: #001E56 !important;
  color: white !important;
  border-color: #001E56 !important;
}

.wishlist-tab-btn:hover .badge {
  background: white;
  color: #001E56;
  border-color: #001E56;
}

.nav-pills .nav-item hr.dropdown-divider {
  border-color: #dee2e6;
  margin: 0 4px;
  height: 24px;
  width: 1px;
  display: inline-block;
  vertical-align: middle;
}

.scroll-to-top {
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
  vertical-align: middle;
  margin: 0 !important;
}

.scroll-to-top:hover .bi {
  color: #D9B665 !important;
}

.btn-group .btn-check:checked + .btn {
  color: #D9B665;
}

.btn-group .btn-check:checked + .btn .bi {
  color: #D9B665;
}

.newsletter-form button[type="submit"]:hover .bi {
  color: #D9B665 !important;
}

.section-icon {
  color: #D9B665;
}

.text-gold {
  color: #D9B665 !important;
}

.bg-gold-light {
  background: #fff8e6 !important;
}

.bg-gold-dark {
  background: #c4a050 !important;
}

/* ============================================
   Cards
   ============================================ */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #D9B665;
}

/* ============================================
   Forms
   ============================================ */
.form-control,
.form-select {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 30, 86, 0.1);
}

.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 8px;
}

/* ============================================
   Badges
   ============================================ */
.badge {
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
}

/* ============================================
   Search Section
   ============================================ */
.search-tabs {
  border: none;
}

.search-tabs .nav-link {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 12px 24px;
  margin-right: 5px;
  border-radius: 8px 8px 0 0;
  font-weight: 500;
  color: white;
}

.search-tabs .nav-link.active {
  background: white;
  color: var(--primary-color);
  border-bottom: 3px solid #001E56;
}

.search-card {
  background: white;
  border-radius: 0 12px 12px 12px;
  padding: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Deal Cards
   ============================================ */
.deal-card {
  overflow: hidden;
}

.deal-card .card-img-top {
  height: 180px;
  object-fit: cover;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s ease;
}

.deal-card:hover .card-img-top {
  border-bottom-color: #D9B665;
}

/* Reserve image space before load (prevents collapsed/empty slides) */
.card-img-top {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.deal-badge {
  position: absolute;
  top: 15px;
  right: 15px;
}

[dir="rtl"] .deal-badge {
  right: auto;
  left: 15px;
}

/* ============================================
   Stats Section
   ============================================ */
.stat-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-bottom: 3px solid #D9B665;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 15px;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
  border: 1px solid #f0f0f0;
  border-top: 3px solid #D9B665;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

/* ============================================
   Blog Cards
   ============================================ */
.blog-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.blog-card {
  border: 1px solid #f0f0f0;
  border-top: 3px solid #D9B665;
}

/* ============================================
   Feature Boxes
   ============================================ */
.feature-box {
  text-align: center;
  padding: 30px 20px;
  border-radius: 12px;
  background: white;
  transition: all 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #D9B665;
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff8e6;
  color: #D9B665;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
  border: 2px solid #D9B665;
}

.feature-box:hover .feature-icon {
  background: #D9B665;
  color: #001E56;
}

/* ============================================
   Star Rating
   ============================================ */
.star-rating {
  color: #ffc107;
}

.star-rating .fas,
.star-rating .fa-star {
  color: #ffc107;
}

.star-rating .far,
.star-rating .fa-star-empty {
  color: #dee2e6;
}

/* ============================================
   Social Media Sticky Tabs
   ============================================ */
.social-sticky-tabs {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

[dir="rtl"] .social-sticky-tabs {
  right: auto;
  left: 20px;
}

.social-tabs-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-tab {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.social-tab:hover {
  transform: scale(1.1);
}

.social-tab.instagram {
  background: #e4405f;
}
.social-tab.tiktok {
  background: #000000;
}
.social-tab.facebook {
  background: #1877f2;
}
.social-tab.twitter {
  background: #000000;
}
.social-tab.youtube {
  background: #ff0000;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #1a1a1a;
  color: #ffffff;
}

.footer h5,
.footer h6 {
  color: #ffffff !important;
  font-weight: 600;
}

.footer p {
  color: #e0e0e0;
}

.footer a {
  color: #e0e0e0 !important;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: #ffffff !important;
  padding-left: 5px;
}

.footer .list-unstyled li {
  color: #e0e0e0;
}

.footer .text-muted {
  color: #b0b0b0 !important;
}

[dir="rtl"] .footer a:hover {
  padding-left: 0;
  padding-right: 5px;
}

.footer .social-links {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.footer .list-unstyled {
  display: inline-block;
  text-align: left;
}

[dir="rtl"] .footer .list-unstyled {
  text-align: right;
}

/* Footer Mobile Centering */
@media (max-width: 768px) {
  .footer .footer-col {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .footer .footer-col h5,
  .footer .footer-col h6 {
    text-align: center;
  }

  .footer .social-links {
    justify-content: center;
  }

  .footer .list-unstyled {
    text-align: center !important;
    display: inline-block;
  }

  .footer .list-unstyled li {
    text-align: center !important;
  }

  .footer .list-unstyled li a {
    display: inline-block;
    text-align: center !important;
  }

  .footer .list-unstyled li .bi-arrow-right {
    display: none;
  }

  [dir="rtl"] .footer .list-unstyled li .bi-arrow-right {
    display: none;
  }

  .footer .newsletter-form {
    max-width: 100%;
  }
}

.newsletter-form .form-control {
  border-radius: 8px 0 0 8px;
}

[dir="rtl"] .newsletter-form .form-control {
  border-radius: 0 8px 8px 0;
}

.newsletter-form .btn {
  border-radius: 0 8px 8px 0;
}

[dir="rtl"] .newsletter-form .btn {
  border-radius: 8px 0 0 8px;
}

/* ============================================
   Card Price Styling (Premium Feel)
   ============================================ */
.deal-card .price-display {
  font-size: 1.1rem;
  font-weight: 600;
}

.deal-card .price-currency {
  font-size: 0.85rem;
  opacity: 0.8;
}

.deal-card .view-deal-btn {
  padding: 6px 10px;
  font-size: 0.85rem;
}

.deal-card .view-deal-btn i {
  font-size: 1rem;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
  margin: 0;
}

.page-link {
  border-radius: 8px;
  margin: 0 3px;
  color: var(--primary-color);
}

.page-item.active .page-link {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* ============================================
   Alerts
   ============================================ */
.alert {
  border: none;
  border-radius: 10px;
  padding: 15px 20px;
}

.alert-success {
  background: #d1e7dd;
  color: #0f5132;
}

.alert-danger {
  background: #f8d7da;
  color: #842029;
}

.alert-warning {
  background: #fff3cd;
  color: #664d03;
}

.alert-info {
  background: #cff4fc;
  color: #055160;
}

/* ============================================
   Loading Spinner
   ============================================ */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Newsletter feedback on the blue hero section (green is low-contrast there) */
.bg-primary .newsletter-msg.text-success {
  color: #fff !important;
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #001E56;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #001540;
}

/* ============================================
   Native Scroll Slider (replaces Slick)
   ============================================ */
.deals-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 15px;
    padding: 10px 0;
}
.deals-slider::-webkit-scrollbar {
    display: none;
}
.deals-slider > div {
    flex: 0 0 auto;
    width: 300px;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ccc;
    cursor: pointer;
    padding: 10px 15px;
    z-index: 99;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.left-arrow { left: 0; }
.right-arrow { right: 0; }

.deals-slider-wrap {
  position: relative;
}

.deals-slider-prev,
.deals-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 100;
}

.deals-slider-prev {
  left: 0;
}

.deals-slider-next {
  right: 0;
}

.deals-slider-wrap.not-scrollable .deals-slider-prev,
.deals-slider-wrap.not-scrollable .deals-slider-next {
  display: none;
}

.hotel-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0 100px;
  }

  /* Mobile Search Tabs */
  .search-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
  }

  .search-tab-restaurants {
    margin-top: 10px;
  }

  .search-tabs .nav-link {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .search-card {
    padding: 15px;
  }

  .stat-card {
    padding: 20px;
  }

  .feature-box {
    padding: 20px 15px;
  }

  .social-sticky-tabs {
    bottom: 10px;
    right: 10px;
  }

  .social-tab {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.2rem;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  h1,
  .h1 {
    font-size: 1.8rem;
  }

  h2,
  .h2 {
    font-size: 1.5rem;
  }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   RTL Support Classes
   ============================================ */
[dir="rtl"] .me-2 {
  margin-right: 0;
  margin-left: 0.5rem;
}

[dir="rtl"] .ms-2 {
  margin-left: 0;
  margin-right: 0.5rem;
}

[dir="rtl"] .me-3 {
  margin-right: 0;
  margin-left: 1rem;
}

[dir="rtl"] .ms-3 {
  margin-left: 0;
  margin-right: 1rem;
}

[dir="rtl"] .text-end {
  text-align: left !important;
}

[dir="rtl"] .text-start {
  text-align: right !important;
}

/* ============================================
   Utility Classes
   ============================================ */
.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #001E56 0%, #001540 100%);
}

.text-gradient-primary {
  background: linear-gradient(135deg, #001E56 0%, #001540 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Klook-Style Search Bar
   ============================================ */
div.search-bar-container {
  position: relative !important;
  z-index: 100 !important;
  margin-top: -60px !important;
  padding: 0 20px !important;
  margin-bottom: 40px !important;
}

div.search-bar-wrapper {
  background: #ffffff !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  overflow: visible !important;
}

form.search-form {
  width: 100% !important;
}

div.search-bar {
  display: flex !important;
  align-items: stretch !important;
  background: #ffffff !important;
  border-radius: 50px !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}

/* Search Fields */
div.search-field {
  display: flex !important;
  align-items: center !important;
  padding: 18px 24px !important;
  flex: 1 !important;
  min-width: 150px !important;
  position: relative !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  border: none !important;
  background: transparent !important;
}

div.search-field:hover {
  background: #fafafa !important;
}

div.search-field .field-icon {
  width: 36px !important;
  height: 36px !important;
  background: #f5f5f5 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 14px !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
  border: none !important;
}

div.search-field:hover .field-icon {
  background: #fff5e6 !important;
}

[dir="rtl"] div.search-field .field-icon {
  margin-right: 0 !important;
  margin-left: 14px !important;
}

div.search-field .field-icon i {
  color: #666 !important;
  font-size: 16px !important;
  transition: color 0.2s ease !important;
}

div.search-field:hover .field-icon i {
  color: #ff5b00 !important;
}

div.search-field .field-content {
  flex: 1 !important;
  min-width: 0 !important;
}

div.search-field .field-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #999 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: block !important;
  margin-bottom: 4px !important;
  line-height: 1.2 !important;
}

div.search-field .field-input {
  border: none !important;
  background: transparent !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #222 !important;
  width: 100% !important;
  padding: 0 !important;
  outline: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

div.search-field .field-input::placeholder {
  color: #bbb !important;
}

div.search-field .field-input:focus {
  border: none !important;
  box-shadow: none !important;
}

/* Date picker styling */
div.search-field .date-picker {
  font-family: inherit !important;
}

div.search-field .date-picker::-webkit-calendar-picker-indicator {
  filter: grayscale(100%) opacity(0.3) !important;
  cursor: pointer !important;
}

/* Guest trigger input */
div.search-field .guest-trigger {
  cursor: pointer !important;
}

/* Vertical Divider */
div.search-divider {
  width: 1px !important;
  height: auto !important;
  background: #e8e8e8 !important;
  flex-shrink: 0 !important;
  align-self: stretch !important;
}

/* Search Button - Gold Accent */
button.search-button,
.search-button {
  background: #D9B665 !important;
  color: white !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 20px 36px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  flex-shrink: 0 !important;
  margin: 6px !important;
}

.search-button:hover,
button.search-button:hover {
  background: #c4a050 !important;
  transform: scale(1.02) !important;
  box-shadow: 0 4px 15px rgba(217, 182, 101, 0.4) !important;
}

.search-button i,
button.search-button i {
  font-size: 18px !important;
  margin-right: 8px !important;
}

.search-button .search-text {
  font-weight: 600 !important;
}

[dir="rtl"] .search-button i {
  margin-right: 0 !important;
  margin-left: 8px !important;
}

/* Guest Dropdown */
.guest-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 20px;
  min-width: 300px;
  z-index: 1000;
  display: none;
  margin-top: 10px;
}

.guest-dropdown.show {
  display: block;
  animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.guest-row:last-of-type {
  border-bottom: none;
}

.guest-info {
  display: flex;
  flex-direction: column;
}

.guest-label {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.guest-desc {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.guest-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guest-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 50%;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.guest-btn:hover {
  border-color: #ff5b00;
  color: #ff5b00;
  background: #fff5e6;
}

.guest-count {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  min-width: 24px;
  text-align: center;
}

.guest-done-btn {
  width: 100%;
  background: #ff5b00;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  transition: background 0.2s ease;
}

.guest-done-btn:hover {
  background: #e55000;
}

/* Responsive Design */
@media (max-width: 991px) {
  div.search-bar-container {
    margin-top: -40px !important;
    padding: 0 15px !important;
  }

  div.search-bar-wrapper {
    border-radius: 20px !important;
  }

  div.search-bar {
    flex-direction: column !important;
    border-radius: 16px !important;
  }

  div.search-field {
    width: 100% !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #f0f0f0 !important;
  }

  div.search-field:last-of-type {
    border-bottom: none !important;
  }

  div.search-divider {
    display: none !important;
  }

  button.search-button,
  .search-button {
    width: calc(100% - 12px) !important;
    margin: 6px !important;
    border-radius: 12px !important;
    padding: 16px !important;
  }

  .guest-dropdown {
    left: 0 !important;
    transform: none !important;
    width: calc(100% - 40px) !important;
    margin: 10px 20px !important;
  }

  @keyframes dropdownFade {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 576px) {
  div.search-bar-container {
    margin-top: -30px !important;
  }

  div.search-field {
    padding: 14px 16px !important;
  }

  div.search-field .field-icon {
    width: 32px !important;
    height: 32px !important;
    margin-right: 10px !important;
  }

  [dir="rtl"] div.search-field .field-icon {
    margin-right: 0 !important;
    margin-left: 10px !important;
  }

  div.search-field .field-label {
    font-size: 11px !important;
  }

  div.search-field .field-input {
    font-size: 14px !important;
  }

  button.search-button,
  .search-button {
    padding: 14px !important;
    font-size: 15px !important;
  }
}

/* Animation on load */
.search-bar-wrapper {
  animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus states */
.search-field:focus-within .field-icon {
  background: #ff5b00;
}

.search-field:focus-within .field-icon i {
  color: white;
}

.search-field:focus-within {
  background: #fafafa;
}

/* Guest Picker Dropdown - Klook Style */
.guest-picker-dropdown {
  position: absolute;
  top: 70px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: 280px;
  right: 0;
}

[dir="rtl"] .guest-picker-dropdown {
  right: auto;
  left: 0;
}

.picker-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.picker-row:last-of-type {
  border-bottom: none;
  margin-bottom: 10px;
  padding-bottom: 0;
}

.picker-row span {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.stepper button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #ff5b00;
  background: white;
  color: #ff5b00;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.stepper button:hover {
  background: #ff5b00;
  color: white;
}

.stepper span {
  min-width: 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.done-btn {
  width: 100%;
  background: #ff5b00;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s ease;
}

.done-btn:hover {
  background: #e55000;
}

/* Mobile adjustments for dropdown */
@media (max-width: 991px) {
  .guest-picker-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 25px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
  }

  /* Strictly click-driven submenus on touch devices (no hover reliance).
     Bootstrap toggles .show on the .dropdown-menu; force it visible and
     full-width inside the collapsed navbar. */
  .navbar-collapse .navbar-nav .nav-item.dropdown .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin: 0;
    border: none;
    box-shadow: none;
    background: rgba(0, 30, 86, 0.06);
    display: none;
  }
  .navbar-collapse .navbar-nav .nav-item.dropdown .dropdown-menu.show {
    display: block;
  }
}

/* AWESOMPLETE + BOOTSTRAP INPUT-GROUP ALIGNMENT
 * Awesomplete wraps the <input> in a <div class="awesomplete">, which breaks
 * the Bootstrap .input-group flex row (the input loses flex: 1 1 auto).
 * Make the wrapper behave like a .form-control so the icon stays inline. */
.input-group > .awesomplete {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    position: relative;
    display: flex;
}
.input-group > .awesomplete > input {
    flex: 1 1 auto;
    width: 100%;
}

/* Active Selected Range & Hover Range Styling */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange {
    background: #001E56 !important;
    border-color: #001E56 !important;
    color: #fff !important;
}

/* Days between start and end (Selected Range) OR hovered range */
.flatpickr-day.inRange,
.flatpickr-day.hoverRange,
.flatpickr-day.today.inRange {
    background: rgba(0, 30, 86, 0.15) !important;
    border-color: transparent !important;
    color: #001E56 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Smooth rounded corners for range start and end blocks */
.flatpickr-day.startRange {
    border-top-left-radius: 50% !important;
    border-bottom-left-radius: 50% !important;
}
.flatpickr-day.endRange {
    border-top-right-radius: 50% !important;
    border-bottom-right-radius: 50% !important;
}
