:root {
  --primary-color: #0055A4; /* Vivid Blue for buttons and accents */
  --secondary-color: #F4F6F8; /* Light Gray for backgrounds */
  --accent-color: #00A896; /* Teal for highlights */
  --light-color: #FFFFFF; /* White for card backgrounds */
  --dark-color: #1F2A44; /* Dark Navy for text */
  --text-color: #2A2A2A; /* Near Black for body text */
  --text-light: #FFFFFF; /* White for text on dark backgrounds */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #efecec75;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.navbar-brand{
  margin-left: -30px;
}

/* Hero Section */
.hero-section {
  height: 600px;
  background: #222;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  background-image: url('https://koa.com/blog/images/empire-sate-building-new-york-city.jpg?preset=heroimagecropped');
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}
.hero-section .container {
  position: relative;
  z-index: 2;
}
.hero-section h1, .hero-section p {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.hero-search .form-control {
  border-radius: 2rem 0 0 2rem;
  border-right: none;
  font-size: 1.2rem;
  padding: 1rem 1.5rem;
}
.hero-search .btn {
  border-radius: 0 2rem 2rem 0;
  font-size: 1.2rem;
  padding: 0 2rem;
}
.hero-links .btn {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.hero-links .btn:hover {
  background: #fff;
  color: var(--primary-color);
}
.hero-search {
  position: relative;
  z-index: 99999; /* Extremely high to ensure stacking context for suggestions */
}

/* Featured/Trending Carousel */
#featuredCarousel .carousel-item {
  min-height: 320px;
}
.featured-card {
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 1rem;
  overflow: hidden;
}
.featured-card img {
  border-radius: 1rem 1rem 0 0;
  height: 220px;
  object-fit: cover;
}
.featured-card .card-body {
  background: #fff;
  border-radius: 0 0 1rem 1rem;
}
.featured-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* Style for Explore button in trending destinations carousel */
.featured-card .card-body .stretched-link {
  display: inline-block;
  background: var(--primary-color);
  color: #fff !important;
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,85,164,0.10);
  border: 2px solid transparent;
  letter-spacing: 0.01em;
  transition:
    background 0.18s,
    color 0.18s,
    border 0.18s,
    box-shadow 0.18s,
    transform 0.13s;
  position: relative;
  z-index: 2;
}

.featured-card .card-body .stretched-link:hover,
.featured-card .card-body .stretched-link:focus {
  background: var(--accent-color);
  color: #fff !important;
  border: 2px solid var(--accent-color);
  box-shadow: 0 6px 24px rgba(0,168,150,0.18);
  text-decoration: none;
  transform: translateY(-2px) scale(1.05);
}

/* Destinations Grid */
.destination-card {
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.25s, transform 0.18s;
  min-height: 340px;
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(30, 60, 90, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: none;
}
.destination-card .card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 0;
  box-shadow: 0 4px 16px 0 rgba(0,0,0,0.07);
  transition: filter 0.3s, transform 0.18s;
}

/* Change hover effect: zoom in, no blur */
.destination-card:hover .card-img,
.destination-card:focus-within .card-img {
  filter: none;
  transform: scale(1.07);
}

.destination-card .card-img-overlay {
  background: linear-gradient(to top, rgba(32,32,32,0.85) 70%, rgba(32,32,32,0.1) 100%);
  border-radius: 1rem;
  opacity: 1;
  transition: background 0.3s;
}
.destination-card .card-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.destination-card .stretched-link {
  color: #fff;
  text-decoration: underline;
  font-size: 1rem;
}
.destination-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.destination-card .destination-info {
  background: transparent;
  border-radius: 1.25rem 1.25rem 0 0;
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0.5rem;
  padding-top: 1.1rem;
  padding-left: 1.3rem;
  padding-right: 1.3rem;
  z-index: 2;
  position: relative;
}
.destination-card .destination-info .card-title {
  color: var(--primary-color);
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}
.destination-card .destination-info p {
  color: #4a4a4a;
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
  line-height: 1.5;
}
.destination-card .card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem 1.5rem 1.2rem 1.5rem;
  background: transparent;
  border-radius: 0 0 1.25rem 1.25rem;
  border-top: none;
  min-height: 60px;
  margin-top: auto;
  z-index: 2;
  position: relative;
}

.destination-card .discover-btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff !important;
  border-radius: 2rem;
  padding: 0.55rem 1.7rem;
  font-weight: 600;
  font-size: 1.08rem;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,85,164,0.10);
  border: 2px solid transparent;
  letter-spacing: 0.01em;
  transition:
    background 0.18s,
    color 0.18s,
    border 0.18s,
    box-shadow 0.18s,
    transform 0.13s;
  position: relative;
  z-index: 2;
}

.destination-card .discover-btn:hover,
.destination-card .discover-btn:focus {
  background: var(--accent-color);
  color: #fff !important;
  border: 2px solid var(--accent-color);
  box-shadow: 0 6px 24px rgba(0,168,150,0.18);
  text-decoration: none;
  transform: translateY(-2px) scale(1.05);
}

.destination-card:hover,
.destination-card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(0,85,164,0.13), 0 2px 16px 0 rgba(30, 60, 90, 0.10);
  transform: translateY(-4px) scale(1.012);
}

/* Navbar */
.navbar {
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.navbar .navbar-brand {
  color: var(--primary-color) !important;
  font-weight: 700;
  letter-spacing: 1px;
}
.navbar .nav-link {
  color: #222 !important;
  font-weight: 500;
  margin-left: 1rem;
  transition: color 0.2s;
}
.navbar .nav-link:hover, .navbar .nav-link.active {
  color: var(--primary-color) !important;
}

/* Footer */
.footer {
  background: #181a1b;
}
.footer h5, .footer h6 {
  color: #fff;
}
.footer a {
  color: #bbb;
  transition: color 0.2s;
}
.footer a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}
.footer .form-control {
  border-radius: 2rem;
  border: none;
}
.footer .btn {
  border-radius: 2rem;
}

/* Back to Top */
#back-to-top {
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 0 0 1rem 1rem;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 1.05rem;
  border: 1px solid #e0e6ed;
  border-top: none;
  box-shadow: 0 16px 48px 8px rgba(0,0,0,0.28);
  background: #fff;
  z-index: 100000; /* Much higher to guarantee visibility over all page content */
  width: 100%;
  min-width: 220px;
  animation: fadeInSearch 0.18s;
}
.search-suggestions li {
  padding: 14px 22px;
  color: #222;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, padding-left 0.18s;
  border-bottom: 1px solid #f4f6f8;
  position: relative;
}
.search-suggestions li:last-child {
  border-bottom: none;
}
.search-suggestions li.selected,
.search-suggestions li:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding-left: 32px;
}
.search-suggestions li.selected::before,
.search-suggestions li:hover::before {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary-color);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.7;
}
.search-suggestions.d-none {
  display: none;
}
@keyframes fadeInSearch {
  from { opacity: 0; transform: translateY(-8px);}
  to { opacity: 1; transform: translateY(0);}
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: 40vh;
  }
  .destination-card .card-img {
    height: 180px;
  }
  .featured-card img {
    height: 140px;
  }
}
@media (max-width: 576px) {

  .navbar-brand{
    margin-left: 5px;
  }
  .hero-section h1 {
    font-size: 2.5rem;
  }
  .hero-section p {
    font-size: 1rem;
  }
  .card-title{
    font-size: 1.5rem;
  }
  .card-body{
    height: 175px;
  }
  
  .destination-card .card-img{
    height: 250px;
  }

  .destination-card .card-title{
    font-size: 2rem;
  }
}