:root {
  --primary: #1a3c34;
  --primary-lt: #255247;
  --accent: #c9a04a;
  --accent-dk: #b8976b;
  --accent-lt: #f5ead6;
  --bg: #fdfaf5;
  --card: #ffffff;
  --text: #1e2d27;
  --text-muted: #5a7268;
  --border: #e4d5bc;
  --border-lt: #f0e8d8;
  --shadow-xs: 0 2px 8px rgba(26, 60, 52, 0.06);
  --shadow-sm: 0 6px 24px rgba(26, 60, 52, 0.10);
  --shadow-md: 0 16px 48px rgba(26, 60, 52, 0.14);
  --shadow-lg: 0 28px 72px rgba(26, 60, 52, 0.18);
  --radius: 14px;
  --radius-lg: 20px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  min-width: 270px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  max-width: 100vw;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253, 250, 245, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-lt);
  padding: 0 5%;
  height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
  border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.hamburger:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}

.lang-btn:hover {
  border-color: var(--accent);
  background: var(--accent-lt);
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  z-index: 1100;
  overflow: hidden;
}

.lang-menu.show {
  display: block;
}

.lang-menu button {
  display: block;
  width: 100%;
  padding: 0.65rem 1.1rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  transition: background 0.15s;
}

.lang-menu button:hover {
  background: var(--accent-lt);
}

.lang-menu button.active {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width:820px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 88px 2rem 2rem;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    border-left: 1px solid var(--border);
    z-index: 1000;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.3rem;
    align-items: flex-start;
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.05rem;
    width: 100%;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-lt);
    color: var(--text);
  }

  .nav-links a::after {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links .lang-selector {
    display: block;
    width: 100%;
    margin-top: 1.2rem;
  }

  .nav-links .lang-selector .lang-menu {
    position: static;
    box-shadow: none;
    border: 1px solid var(--border);
    margin-top: 6px;
    width: 100%;
    border-radius: 10px;
  }

  .nav-links .lang-selector .lang-btn {
    width: 100%;
    justify-content: space-between;
    padding: 0.7rem 1rem;
  }
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 15, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  backdrop-filter: blur(2px);
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ── Hero — with real background image ── */
.hero {
  position: relative;
  height: clamp(420px, 52vh, 520px);
  color: white;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

/* Separate bg layer — reliable cross-browser, cross-device */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1539768942893-daf53e448371?w=1600&q=85');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transition: transform 9s ease-out;
}

.hero-bg.loaded {
  transform: scale(1);
}

/* Fallback color if image fails */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a3c34 0%, #255247 60%, #c9a04a44 100%);
  z-index: -1;
}

/* Gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(145deg, rgba(26, 60, 52, 0.88) 0%, rgba(26, 60, 52, 0.45) 55%, rgba(201, 160, 74, 0.15) 100%),
    linear-gradient(to top, rgba(26, 60, 52, 0.8) 0%, transparent 50%);
}

/* Wave cutout */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  z-index: 2;
  height: 80px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 6% 7.5rem;
  max-width: 860px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 160, 74, 0.2);
  border: 1px solid rgba(201, 160, 74, 0.4);
  color: #f5d98a;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.8rem;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.4);
}

.hero h1 em {
  font-style: italic;
  color: #f5d98a;
}

.hero p {
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  opacity: 0.88;
  max-width: 520px;
  font-weight: 300;
}

/* ── Main ── */
main {
  padding: 2.5rem 5% 5rem;
  max-width: 1380px;
  margin: 0 auto;
  min-width: 0;
}

/* ── Top Bar ── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.section-title i {
  color: var(--accent);
  font-size: 0.8em;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-lt);
  border: 1px solid #e0c98a;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #7a6030;
}

.btn-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.3rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.22s;
  white-space: nowrap;
}

.btn-filter:hover {
  background: var(--primary-lt);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-filter .filter-dot {
  display: none;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.btn-filter.has-filters .filter-dot {
  display: inline-block;
}

/* ── Filter Pills ── */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: white;
  border: 1px solid var(--accent);
  color: var(--primary);
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}

.filter-pill button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent-dk);
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
}

/* ── Filter Drawer ── */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 15, 0.52);
  z-index: 1040;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.drawer-overlay.show {
  display: block;
}

.filter-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(400px, 92vw);
  min-width: min(320px, 92vw);
  height: 100vh;
  background: white;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 60px rgba(10, 20, 15, 0.22);
  transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.filter-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid var(--border-lt);
  background: var(--primary);
  flex-shrink: 0;
}

.drawer-header-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.drawer-header-left .drawer-icon {
  width: 36px;
  height: 36px;
  background: rgba(201, 160, 74, 0.2);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.95rem;
}

.drawer-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: white;
  font-weight: 600;
}

.drawer-header p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1px;
}

.drawer-close {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  color: white;
  font-size: 1rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.drawer-body::-webkit-scrollbar {
  width: 4px;
}

.drawer-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-lt);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-section-title i {
  color: var(--accent);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.field label i {
  color: var(--accent);
  font-size: 0.8em;
}

.field input,
.field select {
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  background: var(--bg);
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  width: 100%;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 160, 74, 0.14);
  background: white;
}

.field input::placeholder {
  color: #a0b0ab;
}

.price-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.price-row input {
  flex: 1;
  min-width: 0;
}

.price-row .price-sep {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
  font-weight: 500;
}

.tour-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.type-option {
  position: relative;
}

.type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.type-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
  background: var(--bg);
  text-align: center;
  line-height: 1.2;
}

.type-option label i {
  font-size: 0.75em;
}

.type-option input[type="radio"]:checked+label {
  border-color: var(--accent);
  background: var(--accent-lt);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(201, 160, 74, 0.2);
}

.type-option label:hover {
  border-color: var(--accent-dk);
  color: var(--primary);
}

.type-option.type-all label {
  grid-column: 1/-1;
  justify-content: flex-start;
  padding: 0.55rem 0.9rem;
  font-size: 0.84rem;
}

.drawer-footer {
  flex-shrink: 0;
  padding: 1.2rem 1.6rem 1.4rem;
  border-top: 1px solid var(--border-lt);
  background: white;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.drawer-footer .active-count {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  min-height: 18px;
}

.drawer-footer .active-count span {
  color: var(--accent);
  font-weight: 700;
}

.drawer-actions {
  display: flex;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 0.93rem;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  flex: 1;
  justify-content: center;
}

.btn-primary:hover {
  background: var(--primary-lt);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--primary);
  background: var(--accent-lt);
}

/* ── Tours Grid ── */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.6rem;
}

/* ── Tour Card ── */
.tour-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-lt);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.4s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tour-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.tour-image {
  height: 210px;
  position: relative;
  overflow: hidden;
  background: var(--border-lt);
  flex-shrink: 0;
}

.tour-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tour-card:hover .tour-image img {
  transform: scale(1.06);
}

.tour-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 60, 52, 0.55) 0%, transparent 55%);
}

.tour-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.tour-price-overlay {
  position: absolute;
  bottom: 12px;
  left: 14px;
  color: white;
}

.tour-price-overlay .price-from {
  font-size: 0.72rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}

.tour-price-overlay .price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.tour-price-overlay .price-currency {
  font-size: 0.8rem;
  opacity: 0.85;
  font-weight: 400;
}

.tour-content {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.tour-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.tour-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
  flex: 1;
}

.tour-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: #a07830;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.tour-rating i {
  color: var(--accent);
}

.tour-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.tour-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tour-meta-item i {
  color: var(--accent);
  width: 14px;
  text-align: center;
  font-size: 0.8rem;
}

.tour-desc {
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tour-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-lt);
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tour-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--accent-lt);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #7a5f20;
  border: 1px solid rgba(201, 160, 74, 0.25);
}

.tour-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  transition: all 0.2s;
  text-decoration: none;
}

.tour-card:hover .tour-cta {
  background: var(--primary);
  color: white;
}

/* ── Skeleton ── */
.skeleton {
  animation: shimmer 1.4s infinite;
  background: linear-gradient(90deg, #f0e8d8 25%, #fffaf2 50%, #f0e8d8 75%);
  background-size: 200% 100%;
  border-radius: 8px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border-lt);
  overflow: hidden;
}

.skeleton-img {
  height: 210px;
}

.skeleton-content {
  padding: 1.3rem 1.4rem;
}

.skeleton-line {
  height: 14px;
  margin-bottom: 10px;
}

.skeleton-title {
  height: 20px;
  width: 80%;
  margin-bottom: 12px;
}

.skeleton-short {
  height: 14px;
  width: 50%;
}

/* ── No Results ── */
.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 5rem 2rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border-lt);
}

.no-results i {
  font-size: 3rem;
  color: var(--border);
  display: block;
  margin-bottom: 1.2rem;
}

.no-results h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.no-results p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ── Pagination ── */
.pagination-wrapper {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pagination-info {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 0.6rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-lt);
}

.page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(26, 60, 52, 0.3);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-btn.page-dots {
  border: none;
  background: none;
  cursor: default;
  color: var(--text-muted);
}

.page-btn.page-dots:hover {
  border: none;
  background: none;
  color: var(--text-muted);
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 2000;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  max-width: 90vw;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  background: #c0392b;
}

.toast.success {
  background: #1a7a4a;
}

/* ── Footer ── */
footer {
  background: var(--primary);
  color: #c8ddd8;
  text-align: center;
  padding: 3.5rem 5% 2.5rem;
  font-size: 0.92rem;
  margin-top: 5rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  margin: 1.2rem 0 1.8rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #c8ddd8;
  text-decoration: none;
  transition: color 0.22s;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.8rem);
  margin: 1rem 0 1.8rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #c8ddd8;
  font-size: 1.1rem;
  transition: all 0.25s;
  text-decoration: none;
}

.social-icons a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
}

.copyright {
  opacity: 0.65;
  font-size: 0.84rem;
}

/* ── RTL ── */
[dir="rtl"] .navbar,
[dir="rtl"] .footer-links,
[dir="rtl"] .top-bar {
  flex-direction: row-reverse;
}

[dir="rtl"] .lang-btn {
  flex-direction: row-reverse;
}

/* ── Responsive ── */
@media (max-width:360px) {
  :root {
    font-size: 13px;
  }

  .navbar {
    padding: 0 3%;
    height: 58px;
  }

  main {
    padding: 1.8rem 3% 3rem;
  }

  .hero-content {
    padding: 0 4% 4rem;
  }

  .tours-grid {
    gap: 1.2rem;
  }

  .tour-image {
    height: 170px;
  }

  .tour-content {
    padding: 1rem 1rem 1.2rem;
    gap: 0.6rem;
  }

  .filter-drawer {
    width: 100vw;
    min-width: 0;
    right: -100vw;
  }

  .filter-drawer.open {
    right: 0;
  }

  .drawer-body {
    padding: 1.2rem 1rem;
  }

  .drawer-header {
    padding: 1.1rem 1rem;
  }

  .drawer-footer {
    padding: 1rem 1rem 1.3rem;
  }

  .tour-type-options {
    grid-template-columns: 1fr;
  }

  .type-option.type-all {
    grid-column: 1;
  }

  .btn {
    padding: 0.75rem 1.4rem;
  }

  .page-btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  .top-bar {
    gap: 0.7rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .tour-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

@media (max-width:480px) {
  .hero::after {
    height: 50px;
  }

  .hero-content {
    padding-bottom: 3.5rem;
  }

  .tour-price-overlay .price-amount {
    font-size: 1.3rem;
  }

  .pagination {
    gap: 0.3rem;
  }

  .page-btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .filter-drawer {
    width: min(100vw, 380px);
    right: -380px;
  }

  .filter-drawer.open {
    right: 0;
  }
}

/* ═══════════ FOOTER ═══════════ */
footer {
  background: var(--primary);
  color: #c8ddd8;
  padding: 4rem 5% 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 1280px;
  margin: 0 auto;
}

@media (max-width:900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width:520px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.footer-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: #c8ddd8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.25s;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
}

.footer-col-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1280px;
  margin: 1.8rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
}

footer a,
footer div,
footer p {
  text-align: left;
}