:root {
  --brand: #0a6cff;
  --brand-dark: #064bb0;
  --brand-soft: #e8f1ff;
  --accent: #ff8a00;
  --umrah: #0f7a5a;
  --umrah-soft: #e6f5f0;
  --dark: #0f172a;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.55;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; }
a { text-decoration: none; }

.bg-light { background: var(--bg-soft) !important; }

/* ===== BUTTONS ===== */
.btn-brand {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 10px;
  padding: .6rem 1.2rem;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-brand:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(10, 108, 255, .35); filter: brightness(1.05); }
.btn-outline-brand {
  border: 1.5px solid var(--brand);
  color: var(--brand);
  background: transparent;
  font-weight: 600;
  border-radius: 10px;
  padding: .45rem 1rem;
}
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--dark);
  color: #cbd5e1;
  font-size: .85rem;
  padding: 8px 0;
}
.top-bar a { color: #cbd5e1; margin-left: 10px; transition: color .15s; }
.top-bar a:hover { color: #fff; }

/* ===== NAVBAR ===== */
.main-nav {
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 6px 0;
  z-index: 1030;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  margin-right: 8px;
}
.brand-text { font-weight: 800; font-size: 1.3rem; color: var(--dark); letter-spacing: -.5px; }
.brand-text span { color: var(--brand); }
.navbar-brand { display: flex; align-items: center; }
.brand-logo { height: 38px; width: auto; display: block; }

/* ===== AIRPORT AUTOCOMPLETE ===== */
.aac-wrap { position: relative; }
.aac-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1080;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  max-height: 320px;
  overflow-y: auto;
  min-width: 260px;
}
.aac-item {
  padding: 10px 14px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "city code" "country country";
  column-gap: 10px;
  row-gap: 2px;
  font-size: 0.92rem;
  border-bottom: 1px solid #f1f5f9;
}
.aac-item:last-child { border-bottom: none; }
.aac-item:hover,
.aac-item.active {
  background: var(--brand-soft);
}
.aac-city { grid-area: city; font-weight: 600; color: var(--dark); }
.aac-code {
  grid-area: code;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 2px 6px;
  border-radius: 4px;
  align-self: center;
}
.aac-country { grid-area: country; font-size: 0.78rem; color: var(--muted); }
.aac-item strong { background: rgba(255, 217, 102, 0.4); font-weight: 700; padding: 0 1px; }
.aac-tag-city { background: #e8f1ff !important; color: var(--brand) !important; font-family: inherit !important; font-size: 0.7rem !important; font-weight: 600 !important; }
.aac-tag-country { background: #e6f5f0 !important; color: var(--umrah) !important; font-family: inherit !important; font-size: 0.7rem !important; font-weight: 600 !important; }
.aac-tag-city i, .aac-tag-country i { margin-right: 3px; }

/* Lighter placeholder text across all form inputs */
.form-control::placeholder,
.form-select::placeholder,
textarea::placeholder {
  color: #b0b8c4 !important;
  opacity: 1 !important;
  font-weight: 300;
}
.form-control::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: #b0b8c4 !important;
}
.form-control::-moz-placeholder,
textarea::-moz-placeholder {
  color: #b0b8c4 !important;
  opacity: 1 !important;
}
.brand-logo-footer {
  height: 64px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}
@media (max-width: 575px) {
  .brand-logo { height: 38px; }
}

.main-nav .nav-link {
  color: var(--dark);
  font-weight: 500;
  padding: .5rem .9rem !important;
  position: relative;
}
.main-nav .nav-link.active,
.main-nav .nav-link:hover { color: var(--brand); }
.main-nav .nav-link.active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 24px; height: 3px;
  border-radius: 3px;
  background: var(--brand);
}

/* ===== HERO ===== */
.hero { position: relative; }
.hero .carousel-item {
  height: 52vh;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-overlay {
  position: absolute; inset: 0;
  /* Very light fade: image stays vivid, just a soft tint behind the text */
  background: linear-gradient(90deg, rgba(10, 36, 81, .35) 0%, rgba(10, 36, 81, .1) 35%, rgba(10, 36, 81, 0) 65%);
}
.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  max-width: 700px;
}
.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  width: fit-content;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .7), 0 1px 4px rgba(0, 0, 0, .6);
}
.hero p { text-shadow: 0 1px 10px rgba(0, 0, 0, .65), 0 1px 3px rgba(0, 0, 0, .5); }
.hero p { font-size: 1.1rem; opacity: .95; margin-bottom: 22px; max-width: 540px; }
.carousel-control-prev, .carousel-control-next { width: 5%; }

/* ===== SEARCH PANEL ===== */
.search-section {
  margin-top: -60px;
  position: relative;
  z-index: 5;
  padding-bottom: 20px;
}
.search-card {
  background: #fff;
  border-radius: var(--radius);
  /* No overflow:hidden — the autocomplete dropdown needs to escape this container */
  position: relative;
}
.search-tabs {
  border: none;
  background: var(--bg-soft);
  padding: 0 .5rem;
  flex-wrap: wrap;
  /* Preserve rounded top corners since the card no longer clips */
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  overflow: hidden;
}
.search-tabs .nav-link {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  padding: .5rem .95rem;
  border-radius: 0;
  position: relative;
}
.search-tabs .nav-link i { margin-right: 6px; }
.search-tabs .nav-link.active {
  color: var(--brand);
  background: #fff;
  border-bottom: 3px solid var(--brand);
}
.search-card .form-label { font-size: .75rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.search-card .form-control,
.search-card .form-select {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: .2rem .55rem;
  font-size: .85rem;
  min-height: 32px;
  line-height: 1.3;
}
.search-card .form-check-label { font-size: .85rem; }
.search-card .row { --bs-gutter-y: .5rem; }
.search-card .form-check { padding-top: 0; }
.search-card .search-submit-btn {
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .9rem;
  letter-spacing: .2px;
}
.search-card .search-submit-btn i { font-size: .85rem; }
.search-card .nav-tabs .nav-link { font-size: .85rem; }
.search-card .form-control:focus,
.search-card .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10, 108, 255, .15);
}

/* ===== CATEGORY SECTION ===== */
.category-section { padding: 40px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin: 6px 0 8px;
}
.section-head p { color: var(--muted); margin: 0; max-width: 560px; }
.eyebrow {
  color: var(--brand);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Umrah accent */
.umrah-section { background: linear-gradient(180deg, #fff, var(--umrah-soft) 80%); }
.umrah-section .eyebrow { color: var(--umrah); }
.umrah-section .btn-outline-brand { border-color: var(--umrah); color: var(--umrah); }
.umrah-section .btn-outline-brand:hover { background: var(--umrah); color: #fff; }

/* ===== TRAVEL CARD ===== */
.travel-card,
.flight-card,
.visa-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.travel-card:hover,
.flight-card:hover,
.visa-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card-media {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.travel-card .card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.travel-card h5 { font-size: 1.1rem; margin-bottom: 4px; }

.badge-ribbon {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255, 255, 255, .95);
  color: var(--dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.badge-ribbon.hot { background: var(--accent); color: #fff; }

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
  color: var(--muted);
}
.meta-list li i { color: var(--brand); margin-right: 4px; }

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
  margin-top: auto;
}
.price-row small { display: block; color: var(--muted); font-size: .72rem; }
.price-row strong { font-size: 1.05rem; color: var(--dark); }

.stars { color: var(--accent); font-size: .85rem; margin-bottom: 10px; }

/* ===== FLIGHT CARD ===== */
.flight-card { padding: 22px; }
.flight-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.flight-route > div:not(.flight-line) {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.flight-route strong { font-size: 1.4rem; color: var(--dark); }
.flight-route span { font-size: .8rem; color: var(--muted); }
.flight-line {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, #cbd5e1 0 6px, transparent 6px 12px);
  position: relative;
  margin: 0 12px;
}
.flight-line i {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  background: #fff;
  color: var(--brand);
  padding: 0 6px;
  font-size: 1.1rem;
}
.flight-info {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px dashed #e5e7eb;
  margin-bottom: 12px;
}
.flight-info .airline { font-weight: 600; color: var(--brand); }

/* ===== VISA CARD ===== */
.visa-flag {
  height: 130px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.visa-flag::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .25));
}
.visa-card .card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.visa-card h5 { font-size: 1.1rem; margin-bottom: 2px; }

/* ===== WHY US ===== */
.why-us { padding: 40px 0; background: var(--bg-soft); }
.why-box {
  background: #fff;
  padding: 30px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform .2s ease;
}
.why-box:hover { transform: translateY(-4px); }
.why-box i {
  font-size: 2.2rem;
  color: var(--brand);
  background: var(--brand-soft);
  width: 64px; height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 14px;
}
.why-box h6 { font-weight: 700; }
.why-box p { color: var(--muted); margin: 0; font-size: .9rem; }

/* ===== NEWSLETTER ===== */
.newsletter { padding: 30px 0; background: #fff; }
.newsletter-card {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.newsletter-card h3 { margin: 0 0 6px; }
.newsletter-card p { opacity: .9; }
.newsletter-card .form-control { border: none; min-width: 220px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 60px 0 25px;
}
.site-footer h6 { color: #fff; margin-bottom: 16px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: #cbd5e1; transition: color .15s; }
.site-footer a:hover { color: var(--brand); }
.site-footer .contact-list i { color: var(--brand); margin-right: 8px; }
.site-footer .brand-text { color: #fff; }
.site-footer hr { border-color: rgba(255, 255, 255, .08); margin: 30px 0 16px; }
.socials { margin-top: 14px; display: flex; gap: 10px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, .08);
  border-radius: 50%;
}
.socials a:hover { background: var(--brand); color: #fff; }

/* ===== WHATSAPP FAB ===== */
.whatsapp-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 56px; height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .45);
  z-index: 1000;
  transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.08); color: #fff; }

/* ===== INNER PAGE BANNER ===== */
.page-banner {
  padding: 70px 0 90px;
  color: #fff;
  background-size: cover;
  background-position: center;
  position: relative;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  /* Soft left-side tint only — keeps the image vivid */
  background: linear-gradient(90deg, rgba(10, 36, 81, .35) 0%, rgba(10, 36, 81, .1) 35%, rgba(10, 36, 81, 0) 65%);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 6px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .65), 0 1px 4px rgba(0, 0, 0, .55);
}
.page-banner .breadcrumb {
  margin: 0;
  background: transparent;
  padding: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.page-banner .breadcrumb a { color: #cbd5e1; }
.page-banner .breadcrumb-item.active { color: #fff; }
.page-banner .lead { text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .main-nav .nav-link.active::after { display: none; }
  .navbar-collapse { padding-top: 12px; }
  .search-section { margin-top: -30px; }
  .hero .carousel-item { height: 44vh; min-height: 300px; }
  .category-section { padding: 28px 0; }
  .why-us { padding: 28px 0; }
  .newsletter { padding: 22px 0; }
}
@media (max-width: 575px) {
  .search-tabs .nav-link { padding: .75rem .8rem; font-size: .85rem; }
  .newsletter-card { padding: 24px; }
  .newsletter-card form { width: 100%; }
}
