@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Karla:ital,wght@0,200..800;1,200..800&display=swap');

:root {
  --background: #f6f0e6;
  --foreground: #54301c;
  --card: #fffdfa;
  --card-foreground: #54301c;
  --popover: #fffdfa;
  --popover-foreground: #54301c;
  --primary: #704a2f;
  --primary-foreground: #ffffff;
  --secondary: #efe3d1;
  --secondary-foreground: #54301c;
  --muted: #f2e8dc;
  --muted-foreground: #7b6658;
  --accent: #e8a303;
  --accent-foreground: #ffffff;
  --border: rgba(84, 48, 28, 0.12);
  --input-background: #fff8ef;
  --ring: #e8a303;
  --chart-1: #e8a303;
  --chart-2: #704a2f;
  --chart-3: #986e51;
  --chart-4: #b7dfe5;
  --chart-5: #efe3d1;
  --sidebar: #efe3d1;
  --sidebar-foreground: #54301c;
  --sidebar-primary: #704a2f;
  --sidebar-primary-foreground: #fffdfa;
  --sidebar-accent: #fffdfa;
  --sidebar-accent-foreground: #54301c;
  --sidebar-border: rgba(84, 48, 28, 0.12);
  --sidebar-ring: #e8a303;

  --ink: #160e0a;
  --brown: #54301c;
  --golden: #e8a303;
  --terracotta: #986e51;
  --sand: #efe3d1;
  --beige: #b28969;
  --paper: #f6f0e6;
  --stamp: #b7dfe5;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Karla', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  font-family: var(--font-sans) !important;
}

body {
  background: var(--paper);
  color: var(--brown);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#root, button, input, select, textarea {
  font-family: var(--font-sans) !important;
}

.font-serif,
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.trip-title,
.card-title,
.navbar-brand {
  font-family: var(--font-serif) !important;
}

p, li, span, a, label, small, strong, em {
  font-family: var(--font-sans);
}

img {
  max-width: 100%;
}

@media (max-width: 1024px) {
  header.sticky {
    backdrop-filter: none !important;
  }
}

@media (max-width: 768px) {
  .trip-detail-grid,
  .tour-detail-grid {
    grid-template-columns: 1fr !important;
  }

  body {
    overflow-x: hidden;
  }
}


/* --- homepage + whatsapp patch --- */
:root {
  --brand-blue: #8a5a3b;
  --brand-blue-deep: #6d3f23;
  --brand-blue-soft: #efe6d8;
  --vintage-brown: #6b3a1f;
  --vintage-brown-soft: #8d5b3a;
  --vintage-cream: #f5eee1;
  --vintage-sand: #e7d7bf;
  --vintage-gold: #d9a11d;
  --whatsapp: #25D366;
}

body { line-height: 1.68; background: linear-gradient(180deg, #f7f1e6 0%, #efe4d2 100%); }

header nav a,
header button,
header .text-sm,
button,
[role="button"] {
  font-weight: 700 !important;
}

section.home-hero-patch,
.home-hero-patch {
  position: relative;
}

.hero-custom-panel {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0,0,0,.18);
}

.hero-custom-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 0.9fr auto;
  gap: 0;
  overflow: hidden;
}

.hero-custom-grid > div,
.hero-custom-grid > button,
.hero-custom-grid > a {
  min-height: 64px;
}

.hero-custom-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.16);
  font-size: 15px;
  font-weight: 600;
}

.hero-custom-field span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-custom-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, #ff7b30 0%, #f36a1d 100%);
  color: #fff;
  font-weight: 800;
  padding: 0 26px;
  border: 0;
  cursor: pointer;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-cta-primary,
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.hero-cta-primary {
  background: linear-gradient(180deg, #ff7b30 0%, #f36a1d 100%);
  color: #fff;
}

.hero-cta-secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
  backdrop-filter: blur(10px);
}

.hero-subtitle-label {
  color: rgba(255,255,255,.92);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

body .hero-title-override {
  font-family: var(--font-serif) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.06 !important;
  text-shadow: 0 2px 24px rgba(0,0,0,.18);
  max-width: 820px;
  margin-inline: auto;
}

body .hero-copy-override {
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
  text-shadow: 0 1px 14px rgba(0,0,0,.14);
  max-width: 900px;
  margin-inline: auto;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: white;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(37,211,102,.35);
}

.whatsapp-float:hover { transform: translateY(-1px); }
.whatsapp-float svg { width: 18px; height: 18px; display:block; }

footer { background: linear-gradient(180deg, var(--vintage-brown-soft), var(--vintage-brown)) !important; border-top: 1px solid rgba(255,248,239,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
footer * { font-family: var(--font-sans) !important; }
footer h2, footer h3, footer h4, footer .font-serif { font-family: var(--font-serif) !important; }
footer .text-gray-300, footer .text-gray-400 { color: rgba(255,245,234,.82) !important; }
footer .text-\[var\(--golden\)\] { color: #f7d56c !important; }

@media (max-width: 900px) {
  .hero-custom-grid { grid-template-columns: 1fr; }
  .hero-custom-field { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); min-height: 56px !important; }
  .hero-custom-search { min-height: 56px; width: 100%; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-primary, .hero-cta-secondary { width: 100%; }
  .whatsapp-float { right: 12px; bottom: 12px; padding: 12px 14px; }
  .whatsapp-float span { display: none; }
}


/* vintage atmosphere patch */
header, .site-header { background: rgba(247,241,230,.92) !important; }
header nav a { color: var(--brown) !important; letter-spacing: .04em; }
header nav a:hover { color: var(--vintage-gold) !important; }
button, .button, a.button { letter-spacing: .01em; }
section, main { position: relative; }
main section:nth-of-type(even) { background-color: rgba(255,250,244,.45); }
.card, .rounded-2xl, .rounded-3xl { box-shadow: 0 12px 30px rgba(84,48,28,.08); }

/* specific fix: remove decorative glyph styling for FAQ/category tiles like Payment & Pricing */
.faq-card h3,
.faq-card h4,
[class*="faq"] h3,
[class*="faq"] h4,
[class*="pricing"] h3,
[class*="pricing"] h4 {
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  font-feature-settings: normal !important;
  font-variant-ligatures: none !important;
}


/* exact home-top patch */
.home-top-exact {
  position: relative;
  min-height: 540px !important;
  background: #0a0a0a;
  overflow: hidden;
}
.home-top-exact > img {
  display: none !important;
}
.home-top-exact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('./assets/home-top-exact.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}
.home-top-exact .relative.z-20 {
  position: relative;
  z-index: 2;
  min-height: 540px;
}
.home-top-exact .hero-title-override,
.home-top-exact .hero-copy-override,
.home-top-exact .hero-subtitle-label,
.home-top-exact .hero-custom-panel,
.home-top-exact .hero-cta-row {
  display: none !important;
}
.home-top-exact div.absolute.inset-0 {
  background: transparent !important;
}
@media (max-width: 768px) {
  .home-top-exact,
  .home-top-exact .relative.z-20 {
    min-height: 300px !important;
  }
  .home-top-exact::before {
    background-size: cover;
    background-position: center top;
  }
}


/* --- continued vintage home styling --- */
body.home-vintage-page {
  background: linear-gradient(180deg, #f7f2e8 0%, #efe2cf 52%, #e7d8c4 100%);
}

body.home-vintage-page main {
  position: relative;
}

body.home-vintage-page main > section:not(.home-top-exact) {
  position: relative;
}

.home-vintage-section {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

.home-vintage-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(255,255,255,.45), transparent 26%), radial-gradient(circle at bottom right, rgba(84,48,28,.04), transparent 28%);
}

.home-vintage-cream {
  background: linear-gradient(180deg, #f8f2e9 0%, #f1e5d4 100%) !important;
}

.home-vintage-paper {
  background: linear-gradient(180deg, #f6efe3 0%, #eadcc8 100%) !important;
}

.home-vintage-sand {
  background: linear-gradient(180deg, #efe0c8 0%, #e4d0b3 100%) !important;
}

.home-vintage-section h2,
.home-vintage-section h3,
.home-vintage-section .text-3xl,
.home-vintage-section .text-4xl {
  font-family: var(--font-serif) !important;
  font-weight: 800 !important;
  color: #5f3721 !important;
  letter-spacing: -0.02em;
  line-height: 1.1 !important;
}

.home-vintage-section p,
.home-vintage-section li,
.home-vintage-section .text-muted-foreground,
.home-vintage-section .text-gray-600,
.home-vintage-section .text-gray-700 {
  color: #6c5647 !important;
}

.home-vintage-section .rounded-2xl,
.home-vintage-section .rounded-3xl,
.home-vintage-section article,
.home-vintage-section .shadow-lg,
.home-vintage-section .shadow-md,
.home-vintage-section .group {
  border-color: rgba(95,55,33,.10) !important;
}

.home-vintage-section .rounded-2xl.bg-white,
.home-vintage-section .rounded-3xl.bg-white,
.home-vintage-section article.bg-white,
.home-vintage-section .bg-card {
  background: linear-gradient(180deg, rgba(255,251,245,.98) 0%, rgba(246,236,220,.98) 100%) !important;
  box-shadow: 0 18px 40px rgba(78,48,26,.08) !important;
}

.home-vintage-section .inline-flex,
.home-vintage-section button,
.home-vintage-section a[class*='button'],
.home-vintage-section .btn,
.home-vintage-section .bg-primary {
  border-radius: 14px;
}

.home-vintage-section button,
.home-vintage-section .bg-primary,
.home-vintage-section a.bg-primary {
  background: linear-gradient(180deg, #b27a38 0%, #8c5a2d 100%) !important;
  color: #fffdfa !important;
  border: 0 !important;
}

.home-vintage-section .border,
.home-vintage-section [class*='border-'] {
  border-color: rgba(95,55,33,.12) !important;
}

.home-vintage-section img {
  border-radius: 16px;
}

.vintage-badges-wrap {
  padding: 4rem 1.25rem 4.5rem;
  background: linear-gradient(180deg, #efe2d0 0%, #e6d6bf 100%);
}

.vintage-badges-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 2rem;
  align-items: center;
}

.vintage-badge {
  width: min(100%, 340px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 999px;
  position: relative;
  background: radial-gradient(circle at 50% 42%, #fffdf8 0%, #f5ede0 55%, #e8d7c1 100%);
  box-shadow: inset 0 0 0 2px rgba(128,86,52,.55), inset 0 0 0 14px rgba(255,255,255,.55), 0 20px 45px rgba(88,57,31,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vintage-badge::before,
.vintage-badge::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 999px;
  border: 2px solid rgba(129,87,53,.18);
}

.vintage-badge::after {
  inset: 32px;
  border-style: dashed;
}

.vintage-badge-content {
  position: relative;
  width: 80%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #7a4b26;
}

.vintage-badge-text {
  position: absolute;
  inset: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(16px, 1.8vw, 24px);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vintage-badge-text span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 0 0;
}

.vintage-badge-center {
  display: grid;
  place-items: center;
  gap: .75rem;
}

.vintage-compass {
  width: 110px;
  height: 110px;
  border-radius: 999px;
  border: 2px solid rgba(129,87,53,.55);
  position: relative;
}
.vintage-compass::before,
.vintage-compass::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(129,87,53,.72);
  transform: translate(-50%, -50%);
}
.vintage-compass::before { width: 2px; height: 84px; }
.vintage-compass::after { width: 84px; height: 2px; }
.vintage-compass .diag1,
.vintage-compass .diag2 {
  position: absolute;
  left: 50%; top: 50%;
  width: 2px; height: 78px;
  background: rgba(129,87,53,.45);
  transform-origin: center;
}
.vintage-compass .diag1 { transform: translate(-50%, -50%) rotate(45deg); }
.vintage-compass .diag2 { transform: translate(-50%, -50%) rotate(-45deg); }
.vintage-compass .dot {
  position: absolute; inset: 50% auto auto 50%; width: 14px; height: 14px; background: #c9983d; border-radius: 999px; transform: translate(-50%, -50%);
}

.vintage-boat {
  position: relative;
  width: 150px;
  height: 110px;
}
.vintage-boat .sun {
  position: absolute; left: 14px; top: 10px; width: 16px; height: 16px; border-radius: 999px; background: #d5a028;
}
.vintage-boat .water {
  position: absolute; left: 16px; right: 16px; bottom: 10px; height: 14px;
  background: repeating-linear-gradient(90deg, #8ec9d3 0 18px, transparent 18px 28px), repeating-linear-gradient(90deg, #8ec9d3 0 12px, transparent 12px 20px);
  opacity: .8;
}
.vintage-boat .hull {
  position: absolute; left: 44px; bottom: 28px; width: 64px; height: 18px; background: #8b5a33; border-radius: 0 0 50px 50px; transform: skewX(-18deg);
}
.vintage-boat .mast {
  position: absolute; left: 79px; bottom: 42px; width: 3px; height: 44px; background: #8b5a33;
}
.vintage-boat .sail {
  position: absolute; left: 78px; bottom: 44px; width: 0; height: 0;
  border-left: 0 solid transparent; border-right: 44px solid transparent; border-bottom: 52px solid #d5a028;
}
.vintage-boat .sail.back {
  left: 51px; border-right-width: 30px; border-bottom-width: 40px; opacity: .78;
}
.vintage-boat .shore1,
.vintage-boat .shore2 {
  position: absolute; bottom: 34px; width: 22px; height: 8px; background: #8b5a33; border-radius: 999px;
}
.vintage-boat .shore1 { left: 22px; }
.vintage-boat .shore2 { right: 24px; }

@media (max-width: 900px) {
  .vintage-badges-inner { grid-template-columns: 1fr; }
}

/* --- header logo + whatsapp visibility patch --- */
header .flex.items-center.shrink-0 img,
header a.flex.items-center img,
.site-header img[alt='Local Egypt Travels'] {
  height: 68px !important;
  width: auto !important;
  max-height: 68px !important;
}

@media (min-width: 640px) {
  header .flex.items-center.shrink-0 img,
  header a.flex.items-center img,
  .site-header img[alt='Local Egypt Travels'] {
    height: 82px !important;
    max-height: 82px !important;
  }
  header .flex.items-center.justify-between {
    min-height: 96px !important;
  }
}

.whatsapp-float {
  z-index: 9999 !important;
  visibility: visible !important;
  opacity: 1 !important;
}
