/*
 * AlHajjTravels visual and usability refinements.
 * Preserves the existing emerald / ivory / gold palette, wording and page content.
 */
:root {
  --site-shadow: 0 16px 42px rgba(18, 61, 50, .10);
  --site-shadow-hover: 0 22px 52px rgba(18, 61, 50, .16);
  --site-radius: 18px;
}

html { scroll-padding-top: 100px; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }

/* Clearer interactive states without changing the existing theme. */
a, button, .btn, .country-chip, .place-card, .tile {
  -webkit-tap-highlight-color: transparent;
}
button, .btn { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.btn:focus-visible, button:focus-visible, a:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold) !important;
  outline-offset: 3px;
  box-shadow: none;
}

/* Header: stronger hierarchy while retaining the emerald and gold identity. */
.site-header { box-shadow: 0 8px 28px rgba(7, 29, 23, .16); }
.site-header .navbar { gap: .65rem; }
.site-header .navbar-brand { flex-shrink: 0; }
.site-header .nav-link { transition: color .18s ease, background-color .18s ease; }
.site-header .nav-link:focus-visible { outline-color: var(--gold) !important; }

/* Hero: improve image treatment and keep text readable at every width. */
.hero { isolation: isolate; }
.hero-inner { width: min(100% - 2rem, 1240px); }
.hero-visual { box-shadow: 0 30px 76px rgba(0, 0, 0, .30); }
.hero-visual > img { width: 100%; height: 100%; display: block; }
.hero-image-caption { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-search:focus-within { box-shadow: 0 0 0 3px rgba(185, 149, 82, .42), 0 16px 42px rgba(0,0,0,.22); }
.hero-search .btn { flex-shrink: 0; }

/* Destination cards: consistent edges, image crop and hover feedback. */
.place-card {
  border: 1px solid rgba(18, 61, 50, .10);
  border-radius: var(--site-radius);
  box-shadow: 0 5px 18px rgba(18, 61, 50, .045);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.place-card:hover, .place-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(185, 149, 82, .72);
  box-shadow: var(--site-shadow-hover);
}
.place-image-link { overflow: hidden; background: #e9e2d2; }
.place-image { display: block; transition: transform .45s ease; }
.place-card:hover .place-image, .place-card:focus-within .place-image { transform: scale(1.035); }
.place-card h3 { line-height: 1.3; }
.place-card p { line-height: 1.65; }

/* Country and category discovery. */
.country-band { position: relative; }
.country-chip, .country-chip-card {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.country-chip:hover, .country-chip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(18, 61, 50, .09);
}

/* Content pages, filters and forms. */
.content-page { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.content-page > h1 { text-wrap: balance; }
.filters, .note-box, .detail-sidebar, .contact-form-panel {
  box-shadow: 0 8px 26px rgba(18, 61, 50, .055);
}
.form-control, .form-select { min-height: 46px; border-radius: 10px; }
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(185, 149, 82, .18);
}

/* Footer and floating call action. */
.site-footer { position: relative; }
.site-footer a { text-underline-offset: 4px; }
.footer-social-links a { transition: color .18s ease, background .18s ease, border-color .18s ease; }
.footer-social-links a:hover { background: rgba(255,255,255,.09); }
.floating-call-button {
  z-index: 1040;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  padding-bottom: max(.75rem, env(safe-area-inset-bottom));
}

/* Reduce motion for visitors who request it at operating-system level. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 991.98px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { width: 100%; height: clamp(280px, 58vw, 440px); min-height: 0; }
  .site-header .navbar { min-height: 68px; }
}

@media (max-width: 575.98px) {
  .hero-inner { width: min(100% - 1.25rem, 1240px); gap: 1.5rem; }
  .hero { padding-block: 3rem; }
  .hero h1 { font-size: clamp(2.15rem, 10vw, 3.1rem); }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }
  .hero-stats { gap: 1rem 1.4rem; }
  .hero-visual { height: 300px; border-radius: 18px; }
  .section-space { padding-block: 2.4rem; }
  .section-heading { align-items: flex-start; gap: .8rem; }
  .place-card { border-radius: 15px; }
  .floating-call-button { bottom: max(14px, env(safe-area-inset-bottom)); }
}

/* Official Al Hajj Travels logo. Existing green-and-gold theme is unchanged. */
.site-header .navbar-brand { gap: .65rem; }
.brand-logo {
  display: block; width: 62px; height: 62px; object-fit: contain;
  flex: 0 0 auto; border-radius: 8px; background: #fff;
}
.footer-brand-logo { width: 82px; height: 82px; margin-bottom: .5rem; }
.footer-brand { display: inline-flex; align-items: center; }
@media (max-width: 575.98px) {
  .brand-logo { width: 52px; height: 52px; }
  .footer-brand-logo { width: 76px; height: 76px; }
}


/* Brand name displayed directly beneath the supplied logo. */
.site-header .navbar-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  line-height: 1.1;
  text-decoration: none;
}
.site-header .brand-caption {
  display: block;
  color: #0b4b2a;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-align: center;
  white-space: nowrap;
}
.footer-brand {
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}
.footer-brand-caption {
  display: block;
  color: #d9a52e;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
}


/* Small website address directly beneath the brand name/logo lockup. */
.site-header .brand-domain {
  display: block;
  color: #8a6417;
  font-family: Arial, sans-serif;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .025em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.footer-brand-domain {
  display: block;
  color: #e8d8ad;
  font-family: Arial, sans-serif;
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .025em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
