/* TravelGo — Luxury Theme (inspired by YouTrans Marrakech) */
:root {
  /* Palette */
  --primary: #c8a35f;
  /* gold */
  --primary-600: #b28f51;
  --accent: #22c55e;
  /* optional accent */
  --bg: #0b0c10;
  /* deep dark */
  --bg-soft: #0f1117;
  /* section background */
  --surface: #141721;
  /* card */
  --surface-2: #1a1f2b;
  /* alt card */
  --border: rgba(255, 255, 255, .08);
  --text: #e5e7eb;
  /* primary text */
  --muted: #a3aab8;
  /* secondary text */
  --card-bg: #141721;
  /* modal/card background */
  --input-bg: #1a1f2b;
  /* input background */
  --radius: 16px;
  --shadow: 0 12px 30px rgba(0, 0, 0, .28)
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #0e1016 100%)
}

body.admin {
  background: var(--bg)
}

/* Accessible skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden
}

.skip-link:focus {
  left: 16px;
  top: 10px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #111;
  color: #fff;
  border-radius: 10px;
  z-index: 100
}

img {
  max-width: 100%;
  display: block;
  /* Smooth interactive effect */
  transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
  transform-origin: center center;
  will-change: transform, filter;
}

/* Subtle zoom and color pop on hover */
img:hover {
  transform: scale(1.03);
  filter: brightness(1.05) saturate(1.04);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  img {
    transition: none
  }

  img:hover {
    transform: none;
    filter: none
  }
}

.container {
  width: min(1180px, 92%);
  margin: auto
}

.flex {
  display: flex
}

.between {
  justify-content: space-between
}

.center {
  align-items: center
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px
}

@media (max-width:900px) {
  .grid-3 {
    grid-template-columns: 1fr
  }

  .grid-2 {
    grid-template-columns: 1fr
  }
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 16, .55);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border)
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  min-width: 0
}

.site-header .wrap>* {
  min-width: 0
}

.logo {
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  letter-spacing: .3px
}

.nav {
  display: flex;
  gap: 6px
}

.nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #dce1ea;
  text-decoration: none
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, .06);
  color: var(--primary)
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px
}

.lang-switch {
  display: flex;
  gap: 8px
}

.lang-switch .pill {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: #f3f4f6;
  background: transparent
}

.lang-switch .pill.active {
  background: var(--primary);
  color: #111;
  border-color: var(--primary)
}

/* Flag icons for language switcher — desktop rectangular background */
.lang-switch .flag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06)
}

.lang-switch .flag-pill.active {
  background: rgba(255, 255, 255, .10);
  color: #fff;
  border-color: var(--border)
}

.lang-switch .flag-pill .lang-flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  display: block;
  border: none;
  box-shadow: none;
  border-radius: 2px
}

.mobile-nav .lang-switch .flag-pill {
  padding: 6px
}

.mobile-nav .lang-switch .flag-pill .lang-flag {
  width: 28px;
  height: 18px
}

/* A11y utility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important
}

/* Currency switch */
.currency-switch {
  display: flex;
  align-items: center;
  gap: 8px
}

.currency-switch .currency-badge {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06)
}

.currency-switch select {
  appearance: none;
  background: #0f1320;
  color: #e5e7eb;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 26px 6px 10px;
  font: inherit
}

/* Header phone link */
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #e5e7eb;
  text-decoration: none
}

.header-phone:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--primary)
}

.mobile-nav .mobile-phone {
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #e5e7eb;
  border: 1px dashed var(--border)
}

.mobile-nav .mobile-phone:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--primary)
}

/* Mobile nav */
.nav-toggle {
  display: none;
  appearance: none;
  border: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 44px;
  height: 38px;
  align-items: center;
  justify-content: center
}

.nav-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, .06)
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
  display: block
}

.nav-toggle span:before,
.nav-toggle span:after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff
}

.nav-toggle span:before {
  top: -6px
}

.nav-toggle span:after {
  top: 6px
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 10px
}

.mobile-nav.is-open {
  display: flex;
  max-width: 100vw;
  overflow-x: hidden
}

/* Clear, readable link blocks */
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #e5e7eb;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .03);
  white-space: normal;
  word-break: break-word;
  max-width: 100%
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-color: var(--border)
}

.mobile-nav a.active {
  background: rgba(255, 255, 255, .10);
  border-color: var(--border);
  color: #fff
}

/* Section separators */
.mobile-nav .section-title {
  margin: 6px 0 2px;
  font-size: 12px;
  color: #cfd6e3;
  opacity: .8;
  padding: 0 2px
}

/* Make currency dropdown clear and tappable */
.mobile-nav .currency-switch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 8px
}

.mobile-nav .currency-switch select {
  width: 100%;
  padding: 12px 12px;
  font-size: 16px;
  border-radius: 12px
}

/* Language group spacing */
.mobile-nav .mobile-lang {
  margin-top: 8px;
  padding-top: 10px
}

.mobile-nav .lang-switch {
  gap: 10px
}

/* Use mobile menu (with currency above language) on tablets too */
@media (max-width:1024px) {
  .nav {
    display: none
  }

  .nav-toggle {
    display: inline-flex
  }

  .lang-switch {
    display: none
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 8px
  }

  .header-right .currency-switch {
    display: none
  }

  /* Ensure mobile menu wraps to a new line and fits the viewport */
  .site-header .wrap {
    flex-wrap: wrap
  }

  .site-header .wrap>.mobile-nav {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%
  }
}

@media (min-width:1025px) {
  #nav-toggle {
    display: none !important
  }

  #nav-mobile {
    display: none !important
  }
}

/* Hide phone number on mobile and tablet */
@media (max-width:1024px) {
  .header-phone {
    display: none !important
  }

  .mobile-nav .mobile-phone {
    display: none !important
  }
}

/* Add desktop header RTL adjustments */
/* Keep language pills visible in RTL to match English layout */
/* Prevent horizontal scroll on Arabic pages */
html[dir="rtl"],
html[dir="rtl"] body {
  overflow-x: hidden
}

/* Hide any sub-pixel overflows inside common containers */
html[dir="rtl"] .container,
html[dir="rtl"] .content.container,
html[dir="rtl"] .content.container.fullwidth,
html[dir="rtl"] .site-header,
html[dir="rtl"] .mobile-nav,
html[dir="rtl"] .hero {
  overflow-x: hidden
}

/* Also prevent unexpected horizontal scrolling on small screens (all langs) */
@media (max-width:1024px) {

  html,
  body {
    overflow-x: hidden
  }
}

/* Improve RTL lists/bullets spacing in legal and policy sections */
html[dir="rtl"] .legal-content ul,
html[dir="rtl"] .toc ul,
html[dir="rtl"] .policy-page .policy-section ul {
  padding-right: 20px;
  padding-left: 0;
  margin-right: 1rem
}

/* Disable image hover zoom on touch devices to avoid overflow */
@media (hover:none) and (pointer:coarse) {
  img:hover {
    transform: none !important;
    filter: none !important
  }
}

/* Make common UI wrap safely in RTL to avoid overflow */
html[dir="rtl"] .btn,
html[dir="rtl"] .badge,
html[dir="rtl"] .nav a,
html[dir="rtl"] .mobile-nav a {
  white-space: normal;
  word-break: break-word
}

/* RTL hero actions: use LTR defaults at this breakpoint */
@media (max-width:540px) {
  html[dir="rtl"] .hero .actions .btn {
    white-space: normal
  }
}

html[dir="rtl"] .header-phone {
  margin-left: 0;
  margin-right: 12px
}

/* Extra RTL mobile overflow hardening */
/* Allow flex children to shrink instead of forcing page width */
html[dir="rtl"] .site-header .wrap>*,
html[dir="rtl"] .hero-content,
html[dir="rtl"] .hero .actions {
  min-width: 0
}

/* Cap width of common containers to the viewport and hide overflow */
html[dir="rtl"] body,
html[dir="rtl"] .container,
html[dir="rtl"] .content.container,
html[dir="rtl"] .content.container.fullwidth,
html[dir="rtl"] .section,
html[dir="rtl"] footer {
  max-width: 100vw;
  overflow-x: hidden
}

/* Use logical padding on hero container in RTL to avoid rounding overflow */
html[dir="rtl"] .hero .container {
  padding-inline: clamp(16px, 4vw, 48px)
}

@media (max-width:600px) {
  html[dir="rtl"] {
    overflow-wrap: anywhere;
    word-break: break-word
  }

  html[dir="rtl"] .mobile-nav {
    width: 100%;
    max-width: 100%
  }
}

/* Language toggle in nav */
.nav .lang-toggle {
  padding: 10px 12px;
  border-radius: 12px;
  color: #dce1ea;
  text-decoration: none;
  border: 1px solid var(--border)
}

.nav .lang-toggle:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--primary)
}

/* Ensure desktop-only for this inline toggle (mobile already has its own) */
@media (max-width:1024px) {
  .nav .lang-toggle {
    display: none
  }
}

/* Mobile nav language switch */
.mobile-nav .mobile-lang {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 10px
}

.mobile-nav .lang-switch {
  display: flex;
  gap: 8px
}

/* Make mobile language icons uncircled with optional rectangular background */
.mobile-nav .lang-switch .pill {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: #f3f4f6;
  background: transparent
}

.mobile-nav .lang-switch .pill.active {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-color: var(--border)
}

/* Flags inside mobile pills remain rectangular */
.mobile-nav .lang-switch .flag-pill {
  padding: 6px 8px;
  border-radius: 8px
}

.mobile-nav .lang-switch .flag-pill .lang-flag {
  width: 28px;
  height: 18px;
  border: none;
  box-shadow: none;
  border-radius: 2px
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--border)
}

/* Full-bleed background across the viewport */
.hero.bg-image {
  min-height: 620px;
  background-image: linear-gradient(180deg, rgba(5, 7, 12, .55), rgba(5, 7, 12, .35)), url('../images/hero-picture.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat
}

/* Subtle hero background motion on page load */
.hero.bg-image {
  animation: heroPan 60s ease-in-out infinite alternate
}

/* Pull container to edges visually */
.hero .container {
  width: 100%;
  max-width: none;
  padding: 96px clamp(16px, 4vw, 48px) 78px
}

.content.container {
  width: min(1180px, 92%)
}

/* Full-width homepage */
.content.container.fullwidth {
  width: 100%;
  max-width: none;
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px)
}

.hero-content {
  max-width: 860px
}

.hero.bg-image .hero-content {
  background: transparent
}

.hero h1 {
  font-size: 52px;
  line-height: 1.12;
  margin: 0 0 12px;
  color: #fff
}

.hero p {
  font-size: 19px;
  color: #d0d6e1;
  margin: 0 0 18px
}

/* Mobile-friendly horizontal buttons */
.hero .actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap
}

.hero .actions .btn {
  flex: 0 1 auto
}

/* Keyframes for hero background panning */
@keyframes heroPan {
  0% {
    background-position: 50% 50%
  }

  100% {
    background-position: 55% 45%
  }
}

@keyframes heroPanMobile {
  0% {
    background-position: 50% 40%
  }

  100% {
    background-position: 52% 38%
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero.bg-image {
    animation: none
  }
}

@media (max-width:540px) {
  .hero h1 {
    font-size: 34px;
    text-align: center
  }

  .hero p {
    font-size: 13px;
    text-align: center
  }

  /* Allow buttons to wrap to avoid horizontal overflow on small screens */
  .hero .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 6px;
    justify-content: center
  }

  .hero .actions .btn {
    white-space: normal;
    flex: 1 1 auto;
    text-align: center
  }

  .badges {
    justify-content: center
  }

  .hero.bg-image {
    background-position: 50% 40%;
    animation: heroPanMobile 50s ease-in-out infinite alternate
  }
}

/* RTL tablet & mobile: wrap actions to avoid overflow and match English responsiveness */
@media (max-width:1024px) {
  html[dir="rtl"] .hero .actions {
    overflow: visible;
    flex-wrap: wrap;
    justify-content: center
  }
}

@media (max-width:540px) {
  html[dir="rtl"] .hero .actions .btn {
    white-space: normal;
    flex: 1 1 auto;
    text-align: center
  }
}

.badges {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap
}

.badge {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
  color: #f3f4f6;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px
}

/* Hero panel — centered, clearer text */
.hero-panel {
  margin: 0 auto;
  max-width: 860px;
  padding: 24px 24px 26px;
  background: linear-gradient(180deg, rgba(20, 23, 33, .66), rgba(20, 23, 33, .52));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  text-align: center;
}

/* Ensure hero-panel keeps its background on image heroes */
.hero.bg-image .hero-content.hero-panel {
  background: linear-gradient(180deg, rgba(20, 23, 33, .66), rgba(20, 23, 33, .52))
}

.hero-panel p {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto
}

.hero-panel .actions {
  justify-content: center
}

/* Hashtag styling */
.hero-hashtag {
  display: block;
  font-weight: 800;
  letter-spacing: .4px;
  margin-bottom: 10px;
  color: var(--primary);
  text-transform: none;
  font-size: 16px;
  opacity: .95;
}

.hero-panel .badges {
  justify-content: center
}

@media (min-width:901px) {
  .hero .container {
    padding-top: 110px;
    padding-bottom: 90px
  }

  .hero-panel {
    padding: 28px 32px 30px
  }

  .hero-panel h1 {
    font-size: 56px
  }
}

/* Sections */
.section {
  padding: 54px 0;
  background: transparent
}

.section.alt {
  background: var(--bg-soft)
}

.section-title {
  font-size: 28px;
  margin: 0 0 14px;
  color: #f3f4f6
}

.section-sub {
  color: var(--muted);
  margin: 0 0 22px
}

/* Legal pages */
html {
  scroll-behavior: smooth
}

.legal-content {
  max-width: 900px;
  margin: 0 auto
}

.legal-content h2 {
  margin-top: 26px;
  color: #f5f7fa
}

.legal-content h2,
.legal-content h3 {
  scroll-margin-top: 90px
}

.legal-content p {
  line-height: 1.7;
  color: #d1d7e3
}

.legal-content ul {
  padding-left: 18px
}

.legal-content li {
  margin: 6px 0
}

/* TOC: allow wrapping on small screens to prevent width overflow */
.toc {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 18px 0;
  background: var(--surface);
  word-break: break-word
}

.toc strong {
  display: block;
  margin-bottom: 6px;
  color: #cfd6e3
}

.toc ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0
}

.toc a {
  color: var(--primary);
  text-decoration: none;
  white-space: normal
}

.toc a:hover {
  text-decoration: underline
}

.back-to-top {
  display: inline-block;
  margin-top: 10px;
  color: #cfd6e3;
  text-decoration: none
}

.back-to-top:hover {
  color: #fff;
  text-decoration: underline
}

/* Cards */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow)
}

.card h3 {
  margin: 0 0 8px;
  color: #f5f7fa
}

.card p {
  color: #c8cfdb
}

.price {
  font-weight: 800;
  color: var(--primary);
  margin-top: 8px
}

/* Service cards (Services page) */
.service-card {
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.service-media {
  display: flex;
  align-items: center;
  justify-content: center
}

.service-media.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2)
}

.service-media.service-icon svg {
  width: 26px;
  height: 26px
}

.service-body {
  padding: 0
}

.small {
  font-size: 13px
}

/* Destination cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

@media (max-width:1000px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

/* Match English breakpoints: no RTL-specific override here */
@media (max-width:600px) {
  .cards-grid {
    grid-template-columns: 1fr
  }
}

.destination-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

.destination-media img {
  width: 100%;
  height: 180px;
  object-fit: cover
}

.destination-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.destination-body h3 {
  margin: 0 0 4px;
  color: #f5f7fa;
  font-size: 18px
}

.destination-teaser {
  margin: 0;
  color: #c8cfdb
}

/* Center buttons within destination cards on Home and All Destinations */
.destination-body .btn {
  align-self: center;
  text-align: center
}

/* Generic 4-column responsive grid used on Home */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

@media (max-width:1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:600px) {
  .grid-4 {
    grid-template-columns: 1fr
  }
}

/* Destinations grid on Home */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

@media (max-width:1024px) {
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:600px) {
  .destinations-grid {
    grid-template-columns: 1fr
  }
}

/* RTL tweaks for Arabic on Home */
html[dir="rtl"] .destination-body {
  text-align: right
}

/* Keep same element order as English for consistency */
/* Flip floating controls to the left in RTL */
html[dir="rtl"] .back-to-top {
  right: auto;
  left: 16px
}

html[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 16px
}

/* Adjust testimonial quote marker and spacing in RTL */
html[dir="rtl"] .quote {
  padding-right: 36px;
  padding-left: 0
}

html[dir="rtl"] .quote::before {
  right: 10px;
  left: auto
}

/* Itinerary photos grid next to Suggested Itineraries */
.itinerary-photos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 8px
}

.itinerary-photo img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border)
}

@media (max-width:900px) {
  .itinerary-photo img {
    height: 200px
  }
}

/* Feature cards */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .34)
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(200, 163, 95, .18), rgba(200, 163, 95, .06));
  border: 1px solid rgba(200, 163, 95, .35);
  box-shadow: 0 8px 18px rgba(200, 163, 95, .12), inset 0 1px 0 rgba(255, 255, 255, .06);
  color: var(--primary);
  margin-bottom: 6px
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* Why-us mobile centering */
@media (max-width:900px) {

  .why-us .section-title,
  .why-us .section-sub {
    text-align: center
  }

  .feature-card {
    align-items: center;
    text-align: center
  }
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px
}

.quote {
  position: relative;
  padding-left: 36px
}

.quote::before {
  content: "\201C";
  position: absolute;
  left: 10px;
  top: -4px;
  font-size: 36px;
  color: rgba(200, 163, 95, .35)
}

.quote small {
  color: #b8c0cf
}

/* CTA */
.cta {
  background: linear-gradient(90deg, rgba(200, 163, 95, .12), rgba(255, 255, 255, .02));
  border: 1px dashed rgba(200, 163, 95, .35);
  border-radius: 16px
}

.cta .cta-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px
}

@media (max-width:900px) {
  .cta .cta-wrap {
    flex-direction: column;
    align-items: flex-start
  }
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f1320;
  color: #e5e7eb
}

.form-group label {
  font-size: 14px;
  color: #9aa3b2;
  margin-bottom: 6px
}

.form-group.full {
  grid-column: 1/-1
}

.form-actions {
  display: flex;
  gap: 10px
}

.alert {
  padding: 12px;
  border-radius: 12px;
  margin: 12px 0;
  border: 1px solid rgba(34, 197, 94, .35);
  background: rgba(34, 197, 94, .12);
  color: #bbf7d0
}

.alert-danger {
  background: rgba(220, 38, 38, .12);
  color: #fecaca;
  border-color: rgba(220, 38, 38, .35)
}

.alert-success {
  background: rgba(34, 197, 94, .12);
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, .35)
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700
}

.btn.primary {
  background: var(--primary);
  color: #111
}

.btn.primary:hover {
  background: var(--primary-600)
}

.btn.secondary {
  background: transparent;
  border-color: var(--border);
  color: #f3f4f6
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, .06)
}

.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: #e5e7eb;
  font-size: 14px
}

.btn.small {
  padding: 8px 12px;
  font-size: 14px
}

.btn.icon-btn {
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-color: var(--border);
  color: var(--primary);
  transition: all 0.2s ease
}

.btn.icon-btn:hover {
  background: rgba(200, 163, 95, .1);
  color: var(--primary);
  border-color: var(--primary)
}

.btn.icon-btn:active {
  background: rgba(200, 163, 95, .2);
  color: var(--primary-600);
  border-color: var(--primary-600);
  transform: scale(0.95)
}

.btn.icon-btn.pressed {
  background: rgba(200, 163, 95, .15);
  color: var(--primary);
  border-color: var(--primary);
  animation: buttonPress 0.3s ease
}

.btn.icon-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease
}

.btn.icon-btn:active svg {
  transform: scale(0.9)
}

@keyframes buttonPress {
  0% {
    transform: scale(1)
  }

  50% {
    transform: scale(0.95)
  }

  100% {
    transform: scale(1)
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px)
}

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .4), 0 10px 10px -5px rgba(0, 0, 0, .2)
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(200, 163, 95, .05)
}

.modal-header h3 {
  margin: 0;
  color: var(--primary);
  font-size: 18px;
  font-weight: 600
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease
}

.modal-close:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--primary)
}

.modal form {
  padding: 24px
}

.modal .form-group {
  margin-bottom: 20px
}

.modal .form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 14px
}

.modal .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s ease;
  box-sizing: border-box
}

.modal .form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 163, 95, .1)
}

.modal textarea.form-control {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  line-height: 1.5
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 20px
}

.modal .btn-primary {
  background: var(--primary);
  color: #111;
  border: none;
  font-weight: 600
}

.modal .btn-primary:hover {
  background: var(--primary-600)
}

.modal .btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border)
}

.modal .btn-secondary:hover {
  background: rgba(255, 255, 255, .05);
  color: var(--text)
}

@media (max-width:640px) {
  .modal-content {
    width: 95%;
    margin: 20px
  }

  .modal form {
    padding: 20px
  }

  .modal-header {
    padding: 16px 20px
  }

  .modal-footer {
    flex-direction: column-reverse
  }

  .modal-footer .btn {
    width: 100%
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 32px 0;
  color: #b8c0cf;
  background: transparent
}

/* 4 columns on desktop, 2 on tablet, 1 on mobile */
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  align-items: flex-start;
  padding: 12px 0 6px
}

.site-footer .footer-col {
  min-width: 0
}

.site-footer .footer-title {
  margin: 0 0 10px;
  font-size: 14px;
  color: #e5e7eb;
  letter-spacing: .3px
}

.site-footer .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px
}

.site-footer .footer-links a {
  color: #c8cfdb;
  text-decoration: none
}

.site-footer .footer-links a:hover {
  color: var(--primary)
}

.site-footer .footer-contact {
  display: grid;
  gap: 6px;
  color: #c8cfdb
}

.site-footer .footer-contact a {
  color: #e5e7eb;
  text-decoration: none
}

.site-footer .footer-contact a:hover {
  color: var(--primary)
}

.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 16px;
  font-size: 13px;
  color: var(--muted)
}

.site-footer .footer-bottom a {
  color: var(--primary);
  text-decoration: none
}

.site-footer .footer-bottom a:hover {
  text-decoration: underline
}

/* Tablet (2 columns) */
@media (max-width:1024px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

/* Mobile (1 column) */
@media (max-width:900px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px
  }

  .site-footer .footer-col {
    text-align: center
  }

  .site-footer .footer-links {
    justify-items: center
  }

  .site-footer .footer-contact {
    align-items: center
  }

  .site-footer .footer-brand {
    text-align: center
  }

  .site-footer .footer-brand picture,
  .site-footer .footer-brand img,
  .site-footer .footer-brand strong {
    margin-left: auto;
    margin-right: auto;
    display: block
  }

  .site-footer .footer-brand p {
    margin-left: auto;
    margin-right: auto
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center
  }
}

/* Back-to-top button */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 23, 33, .9), rgba(20, 23, 33, .75));
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 60;
}

.back-to-top:hover {
  background: linear-gradient(180deg, rgba(200, 163, 95, .25), rgba(20, 23, 33, .85));
  color: var(--primary)
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: var(--wa-bottom, 16px);
  /* aligned with back-to-top */
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid #1EA955;
  /* darker green border */
  background: #25D366;
  /* WhatsApp green */
  color: #fff;
  /* white icon */
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease, opacity .2s ease;
  z-index: 60;
  /* Subtle load-in animation */
  opacity: 0;
  transform: translateY(8px);
  animation: waIn .35s ease-out .15s both;
}

@keyframes waIn {
  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.whatsapp-float:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 36px rgba(37, 211, 102, .34);
}

.whatsapp-float:focus {
  outline: 2px solid rgba(37, 211, 102, .6);
  outline-offset: 2px
}

/* Left-side variant */
.whatsapp-float.left {
  right: auto;
  left: 16px
}

/* Tooltip (desktop only) */
@media (hover:hover) and (pointer:fine) {
  .whatsapp-float[data-tooltip] {
    position: fixed
  }

  .whatsapp-float[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 23, 33, .95);
    color: #e5e7eb;
    border: 1px solid var(--border);
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, visibility .15s ease;
  }

  .whatsapp-float[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible
  }
}

/* Mobile spacing — increase distance from other floating UI */
@media (max-width:540px) {
  .whatsapp-float {
    right: 12px;
    bottom: var(--wa-bottom-mobile, 30px)
  }
}

/* Align WhatsApp opposite to back-to-top on tablet and mobile */
@media (max-width:1024px) {
  .whatsapp-float {
    left: 16px;
    right: auto;
    bottom: var(--wa-bottom-mobile, 30px)
  }
}

@media (max-width:540px) {
  .whatsapp-float {
    left: 12px;
    right: auto;
    bottom: var(--wa-bottom-mobile, 30px)
  }
}

/* Bot floating button */
.bot-fab,
.bot-fab-floating {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  /* slightly larger for visibility */
  border-radius: 999px;
  border: 1px solid rgba(200, 163, 95, .45);
  background: linear-gradient(180deg, rgba(20, 23, 33, .9), rgba(20, 23, 33, .75));
  /* darker base for image */
  color: #111;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(200, 163, 95, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
  overflow: hidden;
}

.bot-fab img {
  width: 44px;
  height: 44px;
  object-fit: contain
}

.bot-fab-floating img {
  width: 48px;
  height: 48px;
  object-fit: contain
}

.bot-fab:hover,
.bot-fab-floating:hover {
  filter: brightness(1.05)
}

.bot-fab__ripple {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 2px solid rgba(200, 163, 95, .45);
  opacity: .65;
  transform: scale(1);
  animation: botRipple 2.4s ease-out infinite;
}

.bot-fab__ripple:nth-child(2) {
  animation-delay: .6s
}

.bot-fab__ripple:nth-child(3) {
  animation-delay: 1.2s
}

@keyframes botRipple {
  from {
    opacity: .5;
    transform: scale(1)
  }

  to {
    opacity: 0;
    transform: scale(1.8)
  }
}

@media (prefers-reduced-motion: reduce) {
  .bot-fab__ripple {
    display: none
  }
}

.bot-fab-floating {
  position: fixed;
  right: 16px;
  bottom: 136px;
  z-index: 60
}

/* Home promo: prominent robot image */
.bot-hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none
}

.bot-hero-image {
  width: min(320px, 60%);
  max-width: 360px;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35));
  transition: transform .25s ease, filter .25s ease;
}

.promo-card {
  align-items: center;
}

.bot-hero-link:hover .bot-hero-image {
  transform: scale(1.03);
  filter: drop-shadow(0 26px 54px rgba(0, 0, 0, .42))
}

.bot-hero-link:focus {
  outline: 2px solid rgba(200, 163, 95, .6);
  outline-offset: 4px
}

/* Tables (Admin) */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: #e5e7eb
}

.table th,
.table td {
  border-bottom: 1px solid var(--border);
  padding: 12px;
  text-align: left;
  vertical-align: top
}

.table thead th {
  background: #0f1320
}

/* Utilities */
.mt-1 {
  margin-top: 6px
}

.mt-2 {
  margin-top: 12px
}

.mt-3 {
  margin-top: 18px
}

.mt-4 {
  margin-top: 24px
}

.mt-5 {
  margin-top: 32px
}

.text-center {
  text-align: center
}

.dim {
  color: var(--muted)
}

.hidden {
  display: none
}

/* 404 page centering */
.content.container.page-404 {
  display: grid;
  place-items: center;
  min-height: 60vh
}

.content.container.page-404 .section {
  width: 100%
}

/* --- Admin + Media (lightweight styles) --- */
.admin-layout {
  display: flex;
  align-items: flex-start;
  gap: 0
}

.admin-main {
  flex: 1;
  min-height: calc(100vh - 60px);
}

.admin-main .container {
  padding: 18px 0 28px
}

/* Breadcrumbs in media page */
.admin-main nav[aria-label="Breadcrumb"] a {
  color: #c8cfdb;
  text-decoration: none
}

.admin-main nav[aria-label="Breadcrumb"] a:hover {
  color: var(--primary)
}

/* Alerts */
.alert-error {
  background: rgba(220, 38, 38, .12);
  color: #fecaca;
  border-color: rgba(220, 38, 38, .35)
}

/* Simple form controls in admin */
.admin-main input[type="text"],
.admin-main input[type="file"],
.admin-main input[type="number"],
.admin-main select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0f1320;
  color: #e5e7eb
}

.admin-main button {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .06);
  color: #e5e7eb;
  cursor: pointer
}

.admin-main button:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff
}

/* Media grid cards */
.media-grid .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow)
}

.media-grid img {
  border-radius: 10px
}

/* Sidebar responsive tweak */
@media (max-width: 980px) {
  .admin-layout {
    flex-direction: column
  }
}

/* Button row for Refined comfort section */
.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

@media (max-width:540px) {
  .btn-row {
    gap: 14px
  }
}

/* Destinations grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px
}

@media (max-width:1200px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:620px) {
  .grid-4 {
    grid-template-columns: 1fr
  }
}

.destination-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden
}

.destination-media img {
  width: 100%;
  height: 180px;
  object-fit: cover
}

.destination-body {
  padding: 16px
}

.destination-features {
  list-style: none;
  padding: 0;
  margin: 10px 0 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px
}

.destination-features .icon {
  margin-right: 6px
}

/* Mobile - center content on homepage sections */
@media (max-width:900px) {

  /* Center all section content on the homepage */
  .content.fullwidth .section {
    text-align: center
  }

  /* Ensure key headings and subtitles are centered */
  .content.fullwidth .section-title,
  .content.fullwidth .section-sub {
    text-align: center
  }

  /* CTA block: stack and center */
  .content.fullwidth .cta .cta-wrap {
    align-items: center;
    text-align: center
  }

  .content.fullwidth .cta .cta-wrap .btn {
    align-self: center
  }

  /* Testimonials text centering */
  .content.fullwidth .testimonials {
    text-align: center
  }

  /* Alt section cards centered */
  .content.fullwidth .section.alt .card {
    text-align: center
  }
}

/* Global heading centering for main pages */
.content h1,
.content .section-title {
  text-align: center
}

.content .section-sub {
  text-align: center
}

/* Do not center headings inside cards */
.content .card h1,
.content .card h2,
.content .card h3 {
  text-align: left
}

/* Mobile: center generic card content for better balance */
@media (max-width:600px) {
  .card {
    text-align: center;
  }

  .card>* {
    margin-left: auto;
    margin-right: auto;
  }

  .card h1,
  .card h2,
  .card h3 {
    text-align: center;
  }
}

/* Tourist Destinations — professional heading style */
.section.destinations .destination-body h3 {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .3px;
  margin: 0 0 10px;
}

.section.destinations .destination-body h3::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--primary);
  margin: 8px auto 0;
  border-radius: 2px;
}

/* Admin UI refinements */
html.admin,
body.admin {
  background: #0b0c10 !important;
  background-image: linear-gradient(180deg, #0b0c10 0%, #0d0f15 100%) !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Force solid backgrounds for all sidebar elements */
body.admin .admin-sidebar,
body.admin .admin-sidebar *,
body.admin .admin-sidebar::before,
body.admin .admin-sidebar::after,
body.admin .admin-sidebar__inner,
body.admin .admin-sidebar__inner *,
body.admin .admin-nav,
body.admin .admin-nav * {
  background-color: #141721 !important;
  opacity: 1 !important;
}

/* Override any transparent backgrounds */
body.admin .admin-sidebar {
  background: #141721 !important;

}

body.admin .admin-sidebar__inner {
  background: #141721 !important;

}

.admin-shell {
  display: flex;
  min-height: calc(100vh - 64px);
  background: #0b0c10 !important;
  background-image: linear-gradient(180deg, #0b0c10 0%, #0d0f15 100%) !important;
}

.admin-content {
  flex: 1;
  background: #0b0c10 !important;
  background-image: linear-gradient(180deg, #0b0c10 0%, #0d0f15 100%) !important;
  min-height: calc(100vh - 64px);
  min-width: 0;
}

.admin-content__inner {
  padding: 10px 0;
}

.admin-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 12, 16, .95);
  backdrop-filter: saturate(160%) blur(12px);
  height: 64px;
  box-sizing: border-box;
}

.admin-header h1 {
  font-size: 18px;
  margin: 0;
  color: #fff;
  letter-spacing: .3px
}

.admin-header nav {
  display: flex;
  gap: 8px
}

.admin-header nav a {
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #dce1ea;
  border: 1px solid transparent
}

.admin-header nav a:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--primary);
  border-color: var(--border)
}

/* Make admin notifications icon use primary color */
.admin-notifications {
  color: var(--primary)
}

.admin-notifications svg {
  color: inherit
}

/* Color specific sidebar icons to primary */
.admin-nav__item[href*='action=dashboard'] .icon,
.admin-nav__item[href*='action=pages'] .icon,
.admin-nav__item[href*='action=profile'] .icon {
  color: var(--primary)
}

/* Admin containers */
body.admin {
  padding-top: 0
}

body.admin .container {
  width: min(1080px, 92%)
}

body.admin h1 {
  font-size: 22px;
  margin: 8px 0 10px
}

body.admin h2 {
  font-size: 18px;
  margin: 18px 0 10px;
  color: #e9edf5
}

/* Admin tables */
.table .table-actions {
  display: flex;
  gap: 8px;
  align-items: center
}

.table select {
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0f1320;
  color: #e5e7eb
}

/* Responsive tables on mobile/tablet: enable horizontal scroll and wrap actions */
@media (max-width: 1000px) {
  .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
  }

  .table th,
  .table td {
    white-space: nowrap
  }

  .table .table-actions {
    flex-wrap: wrap
  }
}

/* Action rows can wrap on very small screens */
@media (max-width: 540px) {
  .form-actions {
    flex-wrap: wrap
  }
}

/* Admin forms inside <details> */
details summary {
  cursor: pointer;
  color: #dce1ea
}

details summary:hover {
  color: var(--primary)
}

details[open] {
  border-top: 1px dashed var(--border);
  margin-top: 8px;
  padding-top: 8px
}

/* Admin login page */
body.admin-login {
  display: grid;
  place-items: center;
  min-height: 100vh
}

body.admin-login .container.small {
  width: min(420px, 92%)
}

body.admin-login h1 {
  margin: 0 0 14px;
  text-align: center
}

body.admin-login form {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px
}

body.admin-login .btn.primary {
  width: 100%
}

/* Admin dashboard cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px
}

.cards--blog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px
}

@media (max-width:900px) {
  .cards--blog {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:620px) {
  .cards--blog {
    grid-template-columns: 1fr
  }
}

.cards .card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  transition: transform .2s ease, box-shadow .2s ease
}

.cards--blog .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px
}

.cards .card .card-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit
}

.cards .card .card-link:hover {
  color: var(--primary)
}

.cards--blog .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .18)
}

.card-cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 140px;
  background: rgba(255, 255, 255, .04);
  display: flex;
  align-items: center;
  justify-content: center
}

.card-cover img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block
}

.card-cover__icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(20, 23, 33, .72);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .36);
  transition: transform .2s ease, opacity .2s ease
}

.card-cover__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18)
}

.card-cover--empty {
  padding: 32px 0;
  font-size: 32px;
  color: var(--primary);
  text-align: center
}

.card-cover__placeholder {
  font-size: 32px;
  color: var(--primary)
}

.card-link:hover .card-cover__icon {
  transform: scale(1.08);
  opacity: 1
}

.cards .card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start
}

.cards .metric {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary)
}

/* Admin layout */
.admin-shell {
  display: flex;
  gap: 0;
  min-height: 100vh;
  background: var(--bg);
  padding-top: 64px
}

.admin-content {
  flex: 1;
  min-width: 0;
  margin-left: 250px;
  overflow-y: auto;
  height: calc(100vh - 64px);
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.admin-content__inner {
  padding: 20px 0;
  min-height: calc(100vh - 104px)
}

/* Sidebar */
.admin-sidebar {
  width: 250px;
  background: #141721 !important;
  background-image: linear-gradient(180deg, #141721 0%, #1a1f2b 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, .08);
  position: fixed;
  top: 64px;
  left: 0;
  height: calc(100vh - 64px);
  z-index: 50;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  overflow-y: auto;
  overflow-x: hidden;
  min-height: calc(100vh - 64px);
  flex-shrink: 0;
  opacity: 1 !important;
  transform: translateZ(0);
  backface-visibility: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
}

/* Custom scrollbar for webkit browsers */
.admin-sidebar::-webkit-scrollbar {
  width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .2);
  border-radius: 3px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .3);
}

.admin-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #141721;
  z-index: -1;
}

/* Sidebar header sticky */
.admin-sidebar .sidebar-header {
  position: sticky;
  top: 0;
  background: #141721;

  z-index: 10;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}

/* Ensure sidebar content flows properly */
.admin-sidebar .sidebar-content {
  padding: 0;
  height: 100%;
}

.admin-sidebar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 23, 33, 0.95);
  z-index: -2;
}

.admin-sidebar__inner {
  padding: 12px;
  height: 100%;
  background: #141721 !important;

  position: relative;
  min-height: calc(100vh - 64px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin: 0;
  border: none;
  outline: none;
  opacity: 1 !important;
  width: 100%;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.admin-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  position: sticky;
  top: 0;
  background: #141721 !important;

  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  flex-shrink: 0;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 163, 95, .15)
}

.brand-text {
  font-weight: 800;
  letter-spacing: .3px;
  color: #e9edf5
}

.sidebar-close {
  display: none;
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  color: #dce1ea
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  background: #141721 !important;

  width: 100%;
  flex: 1;
  z-index: 1;
  opacity: 1 !important;
  overflow-y: auto;
  padding-bottom: 20px;
}

.admin-nav__sep {
  height: 1px;
  background: var(--border);
  margin: 6px 0
}

.admin-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #dce1ea;
  text-decoration: none;
  border: 1px solid transparent;
  background: rgba(20, 23, 33, 0.3) !important
}

.admin-nav__item .icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--primary)
}

.admin-nav__item:hover {
  background: rgba(255, 255, 255, .06);
  border-color: var(--border);
  color: var(--text)
}

.admin-nav__item.is-active {
  background: linear-gradient(180deg, rgba(200, 163, 95, .12), rgba(200, 163, 95, .04));
  border: 1px solid rgba(200, 163, 95, .35);
  color: #fff
}

/* Header right: user menu */
.admin-user {
  position: relative
}

.admin-user__btn {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  color: #dce1ea;
  display: grid;
  place-items: center
}

.admin-user__btn:hover {
  background: rgba(255, 255, 255, .06)
}

.admin-user__menu {
  position: absolute;
  right: 0;
  top: 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  min-width: 160px;
  z-index: 70
}

.admin-user__menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #dce1ea
}

.admin-user__menu a:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff
}

.admin-user__menu hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 6px 0
}

.admin-user__menu.is-open {
  display: block
}

/* Top navigation visibility on narrow screens */
.admin-topnav {
  display: flex;
  gap: 8px
}

@media (max-width:1000px) {
  .admin-topnav {
    display: none
  }
}

/* Sidebar badge counters */
.badge-count {
  margin-left: auto;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
}

.admin-nav__item.is-active .badge-count {
  background: rgba(200, 163, 95, .18);
  border-color: rgba(200, 163, 95, .35);
}

/* Mobile/Tablet sidebar behavior */
.nav-toggle {
  display: inline-flex
}

@media (min-width:1001px) {
  #sidebarOpen {
    display: none
  }
}

@media (max-width:1000px) {
  .admin-shell {
    min-height: auto;
    padding-top: 64px
  }

  .admin-content {
    margin-left: 0;
    height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .admin-sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    height: calc(100vh - 64px);
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
    width: min(86vw, 320px);
    background: #141721 !important;

    overflow-y: auto;
    overflow-x: hidden;
    min-height: calc(100vh - 64px);
    z-index: 50;
  }

  .admin-sidebar__inner {
    background: #141721 !important;

    min-height: calc(100vh - 64px);
  }

  .admin-sidebar.is-open {
    transform: translateX(0)
  }

  .sidebar-close {
    display: inline-grid;
    place-items: center
  }

  /* Mobile sidebar overlay */
  .sidebar-overlay {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 49;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
  }

  .sidebar-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  .admin-content__inner {
    padding-top: 20px
  }
}

/* Performance optimizations */
.admin-sidebar,
.admin-header,
.admin-content {
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Smooth scrolling for content areas */
.admin-content,
.admin-sidebar {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Prevent content shift during sidebar toggle */
.admin-shell {
  position: relative;
  overflow-x: hidden;
}

/* RTL support */
html[dir="rtl"] body {
  direction: rtl
}

html[dir="rtl"] .site-header .wrap {
  direction: rtl
}

html[dir="rtl"] .nav {
  flex-direction: row-reverse
}

html[dir="rtl"] .header-right {
  flex-direction: row-reverse
}

html[dir="rtl"] .mobile-nav {
  direction: rtl;
  text-align: right
}

html[dir="rtl"] .hero .actions {
  flex-direction: row-reverse
}

html[dir="rtl"] .form-group label {
  text-align: right
}

/* Contact & generic form styles (mobile-first) */
.card form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px
}

.card form label {
  font-size: 14px;
  color: var(--muted)
}

.card form input[type="text"],
.card form input[type="email"],
.card form input[type="tel"],
.card form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f1320;
  color: #e5e7eb;
  font: inherit
}

.card form textarea {
  resize: vertical;
  min-height: 140px
}

.card form input:focus,
.card form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 163, 95, .12)
}

/* Form action row: wrap and space buttons */
.card form .form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px
}

/* Make actions fully tappable on small screens */
@media (max-width:540px) {
  .card form .form-actions {
    flex-direction: column;
    align-items: stretch
  }

  .card form .form-actions .btn {
    width: 100%;
    text-align: center
  }

  /* Slightly reduce map height on very small devices */
  .card iframe {
    height: 220px
  }
}

/* Tablet: keep row layout but allow wrapping for long translations */
@media (max-width:900px) {
  .card form .form-actions {
    flex-wrap: wrap
  }
}

/* Contact page responsive tweaks */
/* Keep two columns on large tablets (landscape) and stack only on phones */
@media (max-width:1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:768px) {
  .contact-grid {
    grid-template-columns: 1fr
  }
}

/* Full-width action buttons at ≤768px on Contact page */
@media (max-width:768px) {
  .contact-grid .form-actions {
    flex-direction: column;
    align-items: stretch
  }

  .contact-grid .form-actions .btn {
    width: 100%;
    text-align: center
  }
}

/* Contact map height adjustments */
.contact-map iframe {
  height: 280px
}

@media (max-width:768px) {
  .contact-map iframe {
    height: 300px
  }
}

/* Footer — mobile-first redesign */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 28px 0 18px;
  color: var(--text);
}

.site-footer .container {
  width: min(1180px, 92%);
  margin: auto
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px
}

@media (min-width:680px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (min-width:1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.2fr
  }
}

.footer-col {
  background: transparent
}

.footer-brand strong {
  font-size: 18px;
  color: #fff;
  letter-spacing: .3px;
  display: inline-block;
  margin-bottom: 6px
}

.footer-brand p {
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.6
}

.footer-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #cfd6e3;
  margin: 4px 0 8px
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.footer-links a {
  color: #d1d7e3;
  text-decoration: none;
  padding: 6px 0;
  border-radius: 8px
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #d1d7e3
}

.footer-contact a {
  color: #d1d7e3;
  text-decoration: none
}

.footer-contact a:hover {
  color: #fff;
  text-decoration: underline
}

.footer-contact i {
  width: 18px;
  color: var(--primary);
  margin-right: 8px
}

.footer-contact div {
  display: flex;
  align-items: center;
  line-height: 1.5
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center
}

.footer-bottom .rights {
  color: #cfd6e3;
  font-size: 13px;
  text-align: center
}

.footer-bottom .social-icons {
  display: flex;
  gap: 12px;
  justify-content: center
}

.footer-bottom .social-icons a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: #d1d7e3;
  text-decoration: none;
  background: rgba(255, 255, 255, .03)
}

.footer-bottom .social-icons a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .06)
}

.footer-bottom .legal-links {
  font-size: 13px;
  color: #aab2c2;
  text-align: center;
  max-width: 100%;
  overflow-x: hidden
}

.footer-bottom .legal-links a {
  color: #aab2c2;
  text-decoration: none;
  word-break: break-word
}

.footer-bottom .legal-links a:hover {
  color: #fff;
  text-decoration: underline
}

@media (min-width:680px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center
  }
}

@media (min-width:1024px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between
  }
}

/* Mobile: show social icons under brand, hide bottom icons to avoid duplication */
.social-icons--brand-mobile {
  display: none
}

.social-icons--brand-mobile a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: #d1d7e3;
  text-decoration: none;
  background: rgba(255, 255, 255, .03)
}

.social-icons--brand-mobile a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .06)
}

@media (max-width:900px) {
  .social-icons--brand-mobile {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 10px
  }

  .site-footer .footer-bottom .social-icons {
    display: none !important
  }
}

/* Desktop: show social icons under brand below logo/description */
.social-icons--brand-desktop {
  display: none;
  margin-top: 10px
}

.social-icons--brand-desktop a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: #d1d7e3;
  text-decoration: none;
  background: rgba(255, 255, 255, .03)
}

.social-icons--brand-desktop a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .06)
}

@media (min-width:901px) {
  .social-icons--brand-desktop {
    display: flex;
    gap: 12px
  }
}

/* Mobile: centered mini contact bar in footer */
.footer-mini-contact {
  display: none
}

@media (max-width:900px) {
  .footer-mini-contact {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4px
  }

  .footer-mini-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #d1d7e3;
    text-decoration: none;
    background: rgba(255, 255, 255, .03)
  }

  .footer-mini-contact a:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .06)
  }

  .footer-mini-contact i {
    color: var(--primary)
  }
}

/* Subtle separators between stacked sections on mobile */
.footer-col+.footer-col {
  border-top: 1px dashed var(--border);
  padding-top: 12px
}

@media (min-width:680px) {
  .footer-col+.footer-col {
    border-top: none;
    padding-top: 0
  }
}

/* Make tap targets spacious on small screens */
@media (max-width:540px) {
  .footer-links a {
    padding: 10px 0
  }

  .footer-bottom .legal-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
  }
}

/* RTL adjustments */
html[dir="rtl"] .site-footer {
  direction: rtl
}

html[dir="rtl"] .footer-contact i {
  margin-right: 0;
  margin-left: 8px
}

html[dir="rtl"] .footer-bottom {
  text-align: right
}

/* Hide the Contact column on mobile */
@media (max-width:900px) {
  .site-footer .footer-contact-col {
    display: none !important
  }

  .footer-mini-contact {
    display: none !important
  }
}

/* Hide brand social icons on desktop (under logo/description) */
@media (min-width:901px) {
  .social-icons--brand-desktop {
    display: none !important
  }
}

/* Gentle floating animation for robot images */
@media (prefers-reduced-motion: no-preference) {
  .bot-hero-image {
    --scale: 1;
    animation: robotFloat 6s ease-in-out infinite
  }

  .bot-fab-floating img {
    --scale: 1;
    animation: robotFloatSmall 4.5s ease-in-out infinite
  }
}

@keyframes robotFloat {

  0%,
  100% {
    transform: translateY(0) scale(var(--scale))
  }

  50% {
    transform: translateY(-6px) scale(var(--scale))
  }
}

@keyframes robotFloatSmall {

  0%,
  100% {
    transform: translateY(0) scale(var(--scale))
  }

  50% {
    transform: translateY(-4px) scale(var(--scale))
  }
}

/* Preserve hover scale on hero image even while animating */
.bot-hero-link:hover .bot-hero-image {
  --scale: 1.03
}

/* WhatsApp floating button + hover tooltip */
.whatsapp-float {
  position: fixed;
  bottom: var(--wa-bottom, 16px);
  right: 16px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #25D366;
  /* WhatsApp green */
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .45);
  background: #20bd5a
}

.whatsapp-float svg {
  width: 24px;
  height: 24px
}

.whatsapp-float.left {
  left: 16px;
  right: auto
}

@media (max-width:1024px) {
  .whatsapp-float {
    bottom: var(--wa-bottom-mobile, 30px)
  }

  /* Hide tooltip bubble on mobile/tablet to prevent any horizontal overflow */
  .whatsapp-float::after,
  .whatsapp-float::before {
    display: none !important
  }
}

/* Tooltip using the element's data-tooltip attribute */
.whatsapp-float::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  right: 58px;
  /* default: bubble to the left of the button */
  transform: translateY(-50%) scale(.98);
  transform-origin: center;
  white-space: nowrap;
  background: #111;
  color: #fff;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  pointer-events: none;
  font-size: 13px;
}

.whatsapp-float.left::after {
  left: 58px;
  right: auto
}

.whatsapp-float:hover::after,
.whatsapp-float:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

/* Small arrow */
.whatsapp-float::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 52px;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #111;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

.whatsapp-float.left::before {
  left: 52px;
  right: auto;
  transform: translateY(-50%) rotate(180deg)
}

.whatsapp-float:hover::before,
.whatsapp-float:focus-visible::before {
  opacity: 1;
  visibility: visible
}

/* Admin Sidebar Mobile Responsive */
@media (max-width: 768px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    z-index: 9999;
    transition: left 0.3s ease;
    background: #141721 !important;

    border-right: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  }

  .admin-sidebar.is-open {
    left: 0;
  }

  .admin-sidebar__inner {
    height: 100vh !important;
    min-height: 100vh !important;
    background: #141721 !important;

    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .sidebar-close {
    display: block !important;
  }

  .admin-layout {
    padding-left: 0 !important;
  }

  .admin-main {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* Ultimate sidebar background fix - highest priority */
.admin-sidebar,
.admin-sidebar *,
.admin-sidebar::before,
.admin-sidebar::after {
  background-color: #141721 !important;

}

/* Ensure no transparency anywhere in sidebar */
.admin-sidebar {
  opacity: 1 !important;
  background: #141721 !important;

  background-color: #141721 !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.admin-sidebar__inner {
  opacity: 1 !important;
  background: #141721 !important;

  background-color: #141721 !important;
}

.admin-nav {
  opacity: 1 !important;
  background: #141721 !important;

  background-color: #141721 !important;
}

/* Force all child elements to inherit solid background */
.admin-sidebar * {
  background-color: inherit !important;
  opacity: 1 !important;
}

/* Override any CSS variables that might cause transparency */
.admin-sidebar {
  --surface: #141721 !important;
  --surface-2: #1a1f2b !important;
  --bg: #141721 !important;
}

/* Force solid background on all sidebar children */
.admin-sidebar .admin-sidebar__brand,
.admin-sidebar .admin-sidebar__brand *,
.admin-sidebar .admin-nav,
.admin-sidebar .admin-nav *,
.admin-sidebar .admin-nav__item,
.admin-sidebar .admin-nav__sep,
.admin-sidebar .brand-text,
.admin-sidebar .brand-dot,
.admin-sidebar .sidebar-close {
  background-color: inherit !important;
  opacity: 1 !important;
}

/* Ensure nav items have proper background */
.admin-nav__item {
  background: rgba(20, 23, 33, 0.3) !important;
}

.admin-nav__item:hover {
  background: rgba(255, 255, 255, .06) !important;
}

.admin-nav__item.is-active {
  background: linear-gradient(180deg, rgba(200, 163, 95, .12), rgba(200, 163, 95, .04)) !important;
}