/* Nile Horizon Travel — Sky Blue · Sand · White · Sunset Orange */
:root {
  --sky: #2ea8e5;
  --sky-dark: #1f7eb8;
  --sand: #e8dcc4;
  --sand-deep: #d4c4a8;
  --white: #ffffff;
  --sunset: #f4a259;
  --sunset-deep: #e0782e;
  --ink: #1a2b36;
  --muted: #5c6f7a;
  --surface: #ffffff;
  --surface-2: #f4f8fb;
  --border-soft: rgba(46, 168, 229, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(26, 43, 54, 0.12);
  --shadow-soft: 0 10px 30px rgba(26, 43, 54, 0.08);
  --font-en: "Outfit", system-ui, sans-serif;
  --font-ar: "Cairo", "Outfit", sans-serif;
  --bottom-bar-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.site-body {
  margin: 0;
  font-family: var(--font-en);
  color: var(--ink);
  background: linear-gradient(180deg, #f8fbfd 0%, #fff 35%, #fbf6ef 100%);
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-bar-h) + env(safe-area-inset-bottom, 0px));
}

[dir="rtl"] body.site-body,
[dir="rtl"] .site-body {
  font-family: var(--font-ar);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sky-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.narrow {
  max-width: 720px;
}

.muted {
  color: var(--muted);
}

/* Top header */
.top-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 0;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
  color: var(--sky-dark);
}

.brand-logo {
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.primary-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.primary-nav a {
  font-weight: 600;
  color: var(--ink);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-inline-start: 0.5rem;
}

.lang-switch a {
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

.lang-switch a.active {
  background: rgba(46, 168, 229, 0.15);
  color: var(--sky-dark);
}

.lang-sep {
  opacity: 0.4;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(46, 168, 229, 0.12);
  color: var(--sky-dark);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-menu {
  position: relative;
}

.lang-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(46, 168, 229, 0.12);
  color: var(--sky-dark);
  cursor: pointer;
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.45rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  z-index: 80;
}

.lang-menu-list[hidden] {
  display: none;
}

.lang-menu-list a {
  display: block;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
}

.lang-menu-list a:hover,
.lang-menu-list a.active {
  text-decoration: none;
  background: rgba(46, 168, 229, 0.15);
  color: var(--sky-dark);
}

.theme-toggle:hover {
  background: rgba(46, 168, 229, 0.22);
}

.theme-ico {
  display: block;
}

[data-theme="light"] .theme-ico-sun,
html:not([data-theme]) .theme-ico-sun {
  display: none;
}

[data-theme="dark"] .theme-ico-moon {
  display: none;
}

@media (max-width: 880px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding: 0.5rem 0;
    align-items: center;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 0.35rem;
    overflow: hidden;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .brand-text {
    font-size: clamp(0.72rem, 3.2vw, 0.9rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .header-tools {
    flex-shrink: 0;
    gap: 0.2rem;
  }

  .lang-menu-toggle,
  .theme-toggle {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .lang-flag {
    font-size: 0.9rem;
  }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
    padding: 0.35rem;
  }

  .nav-toggle span {
    width: 20px;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    z-index: 60;
  }
  .primary-nav.is-open {
    display: flex;
  }
}

/* Very narrow phones (~320px): keep header one row */
@media (max-width: 380px) {
  .header-inner {
    gap: 0.2rem;
    padding: 0.45rem 0;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .brand-text {
    max-width: calc(100vw - 11.5rem);
  }

  .lang-menu-toggle,
  .theme-toggle {
    width: 30px;
    height: 30px;
  }

  .nav-toggle {
    padding: 0.3rem;
  }
}

@media (max-width: 320px) {
  .top-header .container {
    width: min(1120px, 96vw);
  }

  .brand-text {
    max-width: calc(100vw - 10.75rem);
    font-size: 0.7rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--sky), var(--sky-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(46, 168, 229, 0.35);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

.btn-outline {
  border-color: rgba(46, 168, 229, 0.45);
  background: transparent;
  color: var(--sky-dark);
}

.btn-block {
  width: 100%;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font: inherit;
}

/* Hero */
.hero-parallax {
  position: relative;
  min-height: min(78vh, 760px);
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
}

.hero-slide {
  position: relative;
  min-height: min(78vh, 760px);
}

.hero-slide[hidden] {
  display: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 8s ease;
}

.hero-slide.is-active .hero-bg {
  animation: kenburns 14s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1.08);
  }
}

.gradient-fallback {
  background: linear-gradient(135deg, var(--sky), var(--sunset));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 40, 60, 0.25) 0%,
    rgba(15, 40, 60, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  min-height: min(78vh, 760px);
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 12vw, 8rem);
  color: #fff;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  box-sizing: border-box;
}

.hero-content-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/s1/uploads/trips/1/2.jpg");
  background-size: cover;
  background-position: center;
  animation: heroContentBg 15s infinite;
}

.hero-content::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 40, 60, 0.55), rgba(15, 40, 60, 0.72));
}

@keyframes heroContentBg {
  0%,
  33% {
    background-image: url("/s1/uploads/trips/1/2.jpg");
  }
  34%,
  66% {
    background-image: url("/s1/uploads/trips/1/1.jpg");
  }
  67%,
  100% {
    background-image: url("/s1/uploads/trips/1/3.jpg");
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0 0 0.75rem;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.hero-tourism-pill {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  text-shadow: none;
}

html[dir="rtl"] .hero-tourism-pill {
  letter-spacing: 0;
  text-transform: none;
}

.home-tourism-strip {
  background: linear-gradient(
    135deg,
    rgba(46, 168, 229, 0.12) 0%,
    rgba(230, 178, 96, 0.15) 100%
  );
  border-block: 1px solid rgba(46, 168, 229, 0.2);
}

.tourism-strip-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  max-width: 920px;
}

.tourism-strip-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 40, 60, 0.1);
}

.tourism-strip-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

.tourism-strip-text strong {
  font-size: 1.05rem;
  font-weight: 700;
}

[data-theme="dark"] .tourism-strip-icon {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

[data-theme="dark"] .home-tourism-strip {
  border-block-color: rgba(255, 255, 255, 0.08);
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.slider-prev {
  left: 12px;
}
.slider-prev::after {
  content: "";
  display: block;
  margin: auto;
  width: 10px;
  height: 10px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.slider-next {
  right: 12px;
}
.slider-next::after {
  content: "";
  display: block;
  margin: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg);
}

.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.slider-dots button.active {
  background: #fff;
  transform: scale(1.15);
}

.animate-in {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
}

.delay-1 {
  animation-delay: 0.15s;
}
.delay-2 {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1.25rem;
}

.text-center {
  text-align: center;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.7;
}

.intro-block {
  padding-top: 3rem;
}

/* Trip grid */
.trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.trip-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.trip-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.trip-card-link {
  color: inherit;
  text-decoration: none;
}

.trip-card-link:hover {
  text-decoration: none;
}

.trip-card-image-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.trip-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zoom-hover img {
  transition: transform 0.45s ease;
}

.zoom-hover:hover img {
  transform: scale(1.06);
}

.trip-card-body {
  padding: 1.1rem 1.25rem 1.35rem;
}

.trip-card-body h2,
.trip-card-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.trip-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.price-tag {
  font-weight: 700;
  color: var(--sunset-deep);
}

.link-arrow {
  font-weight: 600;
  color: var(--sky-dark);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.dest-tile {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 160px;
  box-shadow: var(--shadow-soft);
}

.dest-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dest-label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-weight: 700;
}

.sand-bg {
  background: linear-gradient(180deg, rgba(232, 220, 196, 0.35), transparent);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.why-card {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.testimonial-card {
  margin: 0;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border-inline-start: 4px solid var(--sunset);
  box-shadow: var(--shadow-soft);
}

.testimonial-card cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 700;
  color: var(--sky-dark);
}

/* Page hero small */
.small-hero {
  padding: clamp(2rem, 6vw, 3rem) 0 1rem;
}

.page-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.page-lead {
  margin-top: 0.5rem;
}

/* Trip detail */
.trip-detail-hero {
  padding: 2rem 0 1rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.breadcrumb span {
  margin: 0 0.35rem;
}

.trip-detail-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.trip-detail-price {
  margin: 0.5rem 0 0;
  font-size: 1.15rem;
}

.gallery-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-track {
  display: flex;
  overflow: hidden;
}

.gallery-slide {
  margin: 0;
  flex: 0 0 100%;
}

.gallery-slide img {
  width: 100%;
  height: min(56vh, 560px);
  object-fit: cover;
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  z-index: 3;
}

.gallery-prev {
  left: 10px;
}
.gallery-next {
  right: 10px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px;
}

.gallery-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.gallery-dots button.active {
  background: var(--sky);
}

.gallery-fallback img {
  width: 100%;
  border-radius: var(--radius);
}

.prose {
  line-height: 1.75;
  white-space: pre-wrap;
}

.cta-block {
  margin-top: 2rem;
  text-align: center;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.contact-card {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-list li {
  margin-bottom: 0.35rem;
}

/* Footer desktop */
.desktop-footer {
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(46, 168, 229, 0.12);
  font-weight: 700;
  color: var(--sky-dark);
}

.footer-bottom {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile tab bar */
.mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  min-height: var(--bottom-bar-h);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(46, 168, 229, 0.18);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.06);
}

.mobile-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}

.mobile-tabbar a .ico {
  font-size: 1.15rem;
}

.mobile-tabbar a.active,
.mobile-tabbar a.tabbar-book {
  color: var(--sky-dark);
}

.mobile-tabbar a.tabbar-book .ico {
  font-size: 1.35rem;
}

@media (max-width: 900px) {
  .mobile-tabbar {
    display: grid;
  }
  .desktop-footer {
    padding-bottom: calc(var(--bottom-bar-h) + 8px);
  }
}

/* ================= Admin ================= */
.admin-body {
  margin: 0;
  font-family: var(--font-en);
  background: #f2f6f9;
  color: var(--ink);
  min-height: 100vh;
}

.admin-login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem;
  background: radial-gradient(circle at 20% 20%, #d9eefc, #f2f6f9 45%, #efe7dc);
}

.login-card {
  width: min(400px, 100%);
  padding: 2rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0 0 0.25rem;
}

.admin-app .admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 56px);
}

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: #0c3d5c;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-brand {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.admin-user {
  margin-inline-start: auto;
  margin-inline-end: 0.35rem;
  opacity: 0.9;
  font-size: 0.9rem;
}

.admin-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.admin-lang-switch a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  font-weight: 600;
}

.admin-lang-switch a:hover {
  opacity: 1;
  text-decoration: underline;
}

.admin-lang-switch a.active {
  opacity: 1;
  font-weight: 800;
  text-decoration: underline;
}

.admin-lang-switch .lang-sep {
  opacity: 0.5;
  user-select: none;
}

.login-lang-switch {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.login-lang-switch a {
  color: var(--sky-dark);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.75;
}

.login-lang-switch a:hover {
  opacity: 1;
  text-decoration: underline;
}

.login-lang-switch a.active {
  opacity: 1;
  font-weight: 800;
}

[data-theme="dark"] .login-lang-switch a {
  color: var(--sky);
}

.admin-sidebar {
  background: #fff;
  border-inline-end: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-sidebar a {
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-weight: 600;
  color: var(--ink);
}

.admin-sidebar a:hover {
  background: rgba(46, 168, 229, 0.1);
  text-decoration: none;
}

.admin-main {
  padding: 1.25rem min(3vw, 1.5rem) 5rem;
}

.admin-title {
  margin-top: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--sky-dark);
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-form .input,
.admin-form .textarea,
.login-card .input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font: inherit;
  margin-bottom: 0.75rem;
}

.admin-form label,
.login-card label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.admin-form fieldset {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  padding: 1rem;
}

.admin-form legend {
  font-weight: 700;
  padding: 0 0.35rem;
}

.textarea {
  width: 100%;
  min-height: 90px;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font: inherit;
}

.code-area {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
}

.btn-danger {
  background: #c0392b;
  color: #fff;
  border-color: transparent;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-align: start;
}

.admin-table th {
  background: rgba(46, 168, 229, 0.08);
  font-weight: 700;
}

.ua-cell {
  max-width: 280px;
  word-break: break-word;
}

.thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0;
}

.nowrap {
  white-space: nowrap;
}

.alert {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-success {
  background: rgba(39, 174, 96, 0.12);
  color: #1e8449;
}

.alert-error {
  background: rgba(192, 57, 43, 0.12);
  color: #922b21;
}

.small {
  font-size: 0.85rem;
}

.admin-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  grid-template-columns: repeat(3, 1fr);
  min-height: 58px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}

.admin-tabbar a .ico {
  font-size: 1.1rem;
}

.admin-tabbar a.active {
  color: var(--sky-dark);
}

@media (max-width: 900px) {
  .admin-app .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    display: none;
  }
  .admin-tabbar {
    display: grid;
  }
  .admin-main {
    padding-bottom: 5rem;
  }
}

/* ——— Dark theme ——— */
[data-theme="dark"] {
  --ink: #e8f0f5;
  --muted: #8fa8b8;
  --sand: #4a4338;
  --sand-deep: #5c5346;
  --white: #1e2a33;
  --surface: #1a242d;
  --surface-2: #141c24;
  --border-soft: rgba(46, 168, 229, 0.28);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] body.site-body {
  background: linear-gradient(180deg, #0f1419 0%, #1a242d 40%, #1c1610 100%);
  color: var(--ink);
}

[data-theme="dark"] .top-header {
  background: rgba(18, 26, 34, 0.94);
  border-bottom-color: var(--border-soft);
}

[data-theme="dark"] .brand,
[data-theme="dark"] .primary-nav a {
  color: var(--ink);
}

[data-theme="dark"] .lang-switch a.active {
  background: rgba(46, 168, 229, 0.22);
  color: #9bd6f5;
}

[data-theme="dark"] .theme-toggle {
  background: rgba(46, 168, 229, 0.2);
  color: #b8e4fc;
}

[data-theme="dark"] .lang-menu-toggle {
  background: rgba(46, 168, 229, 0.2);
  color: #b8e4fc;
}

[data-theme="dark"] .trip-card,
[data-theme="dark"] .why-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .dest-tile {
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .sand-bg {
  background: linear-gradient(180deg, rgba(74, 67, 56, 0.35), transparent);
}

[data-theme="dark"] .desktop-footer {
  background: rgba(18, 26, 34, 0.92);
  border-top-color: var(--border-soft);
}

[data-theme="dark"] .mobile-tabbar {
  background: rgba(18, 26, 34, 0.96);
  border-top-color: var(--border-soft);
}

[data-theme="dark"] .mobile-tabbar a {
  color: var(--muted);
}

[data-theme="dark"] .mobile-tabbar a.active,
[data-theme="dark"] .mobile-tabbar a.tabbar-book {
  color: #7ec8ef;
}

[data-theme="dark"] .hero-overlay {
  background: linear-gradient(180deg, rgba(8, 16, 24, 0.45) 0%, rgba(8, 16, 24, 0.65) 100%);
}

[data-theme="dark"] .gradient-fallback {
  background: linear-gradient(135deg, #1a4a66, #6b3d1a);
}

[data-theme="dark"] .btn-outline {
  border-color: rgba(46, 168, 229, 0.45);
  color: #9bd6f5;
}

[data-theme="dark"] .admin-body {
  background: #121a22;
  color: var(--ink);
}

[data-theme="dark"] .admin-topbar {
  background: #0d1620;
}

[data-theme="dark"] .admin-brand {
  color: #fff;
}

[data-theme="dark"] .admin-user {
  color: var(--muted);
}

[data-theme="dark"] .admin-sidebar {
  background: var(--surface);
  border-inline-end-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .admin-sidebar a {
  color: var(--ink);
}

[data-theme="dark"] .admin-sidebar a:hover {
  background: rgba(46, 168, 229, 0.12);
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .admin-table,
[data-theme="dark"] .login-card {
  background: var(--surface);
  color: var(--ink);
}

[data-theme="dark"] .admin-table th {
  background: rgba(46, 168, 229, 0.12);
}

[data-theme="dark"] .admin-table td {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .admin-tabbar {
  background: rgba(13, 22, 32, 0.97);
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .theme-toggle-admin {
  background: rgba(46, 168, 229, 0.18);
  color: #b8e4fc;
}

[data-theme="dark"] .admin-login-page {
  background: radial-gradient(circle at 20% 20%, #1a3344, #121a22 45%, #1a1814);
}

[data-theme="dark"] .login-card-wrap .login-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.login-card-wrap {
  position: relative;
  width: min(400px, 100%);
  margin-inline: auto;
}

.theme-toggle-login {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  z-index: 3;
}

@media (max-width: 880px) {
  [data-theme="dark"] .primary-nav.is-open {
    background: var(--surface);
  }
}
