/* Luxor Aswan Cruises Design System - site.css */

:root {
  --nile: #0E5E6F;
  --nile-deep: #083F4B;
  --sand: #F4EFE6;
  --sand-line: #E1D8C8;
  --sun: #E38B2F;
  --ink: #1F2A2E;
  --ink-soft: #5B6B70;
  --white: #FFFFFF;
  --font-display: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-card: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 6px 24px rgba(8, 63, 75, 0.08);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--nile);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover, a:focus-visible {
  color: var(--nile-deep);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.25rem; font-weight: 800; }
h2 { font-size: 1.75rem; font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Layout Utilities */
.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
  width: 100%;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  line-height: 1.2;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--nile);
  color: var(--white);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--nile-deep);
  color: var(--white);
}

.btn-accent {
  background-color: var(--sun);
  color: var(--white);
}

.btn-accent:hover, .btn-accent:focus-visible {
  background-color: #c9751e;
  color: var(--white);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--white);
}

.btn-whatsapp:hover, .btn-whatsapp:focus-visible {
  background-color: #1eb857;
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--nile);
  color: var(--nile);
}

.btn-outline:hover, .btn-outline:focus-visible {
  background-color: var(--nile);
  color: var(--white);
}


/* Default inline icon size; width/height attributes or component rules may override */
svg.icon { width: 1.125em; height: 1.125em; flex: 0 0 auto; vertical-align: -0.2em; fill: none; stroke: currentColor; }
.tour-card-meta .icon, .book-card-meta .icon, .tour-meta .icon { width: 20px; height: 20px; }

.btn .icon {
  width: 18px;
  height: 18px;
}

/* Category Pill */
.category-pill, .pill {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: var(--sand);
  color: var(--nile-deep);
  border-radius: var(--radius-pill);
  border: 1px solid var(--sand-line);
}

/* Top Bar */
.top-bar {
  display: none;
  background-color: var(--nile-deep);
  color: var(--white);
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-contacts a {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-contacts a:hover {
  color: var(--sand);
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-social a {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

.top-bar-social a:hover {
  background-color: var(--sun);
  color: var(--white);
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid var(--sand-line);
  transition: padding 0.25s ease, box-shadow 0.25s ease, height 0.25s ease;
}

.site-header.is-stuck {
  box-shadow: 0 4px 20px rgba(8, 63, 75, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: height 0.25s ease;
}

.site-header.is-stuck .header-inner {
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 44px;
  width: auto;
  transition: height 0.25s ease;
}

.site-header.is-stuck .logo img {
  height: 36px;
}

/* Desktop Navigation */
.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 6px;
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--nile);
  background-color: var(--sand);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: var(--white);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 8px 0;
  list-style: none;
  z-index: 1001;
}

.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu,
.nav-item.has-dropdown.is-open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}

.dropdown-menu a:hover, .dropdown-menu a:focus-visible {
  background-color: var(--sand);
  color: var(--nile);
}

.header-cta {
  display: none;
}

/* Mobile Drawer */
.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--nile-deep);
  cursor: pointer;
  border-radius: 6px;
}

.mobile-toggle:hover, .mobile-toggle:focus-visible {
  background-color: var(--sand);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(110%);
  visibility: hidden;
  width: 100%;
  max-width: 340px;
  height: 100vh;
  background-color: var(--white);
  z-index: 1002;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.mobile-drawer.is-open {
  transform: none;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--sand-line);
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-nav a {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 8px 0;
}

.drawer-subnav {
  list-style: none;
  padding-left: 16px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-subnav a {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(8, 63, 75, 0.4);
  z-index: 1001;
}

.mobile-drawer.is-open + .drawer-overlay,
.drawer-overlay.is-open {
  display: block;
}

/* Hero Section */
.hero {
  background-color: var(--sand);
  padding: 48px 0;
  border-bottom: 1px solid var(--sand-line);
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero-content h1 {
  color: var(--nile-deep);
  margin-bottom: 16px;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.tour-search-box {
  background-color: var(--white);
  padding: 20px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--sand-line);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Tour Card */
.tour-card {
  background-color: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--sand-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.tour-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--sand);
}

.tour-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tour-card:hover .tour-card-image img {
  transform: scale(1.05);
}

.tour-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.tour-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tour-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.tour-card-title a {
  color: var(--ink);
}

.tour-card-title a:hover {
  color: var(--nile);
}

.tour-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.tour-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tour-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--sand-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tour-card-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--sun);
}

/* Post Card */
.post-card {
  background-color: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--sand-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.post-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--sand);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.post-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.post-card-title a {
  color: var(--ink);
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
  line-clamp: 3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hover Cards / Scroll-snap Carousel */
.hover-cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.hover-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background-color: var(--sand);
  border-radius: var(--radius-card);
  border: 1px solid var(--sand-line);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
  background-color: var(--white);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.hover-card-title {
  font-size: 1.15rem;
  color: var(--nile-deep);
  margin-bottom: 12px;
}

.hover-card-body {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* In-Page Navigation */
.page-nav {
  position: sticky;
  top: 72px;
  z-index: 999;
  background-color: var(--white);
  border-bottom: 1px solid var(--sand-line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: top 0.25s ease;
}

.site-header.is-stuck ~ main .page-nav,
.site-header.is-stuck + .page-nav {
  top: 56px;
}

.page-nav-inner {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 12px 0;
  scrollbar-width: none;
}

.page-nav-inner::-webkit-scrollbar {
  display: none;
}

.page-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 6px 0;
  position: relative;
}

.page-nav a:hover,
.page-nav a.is-active,
.page-nav a.active {
  color: var(--nile);
}

.page-nav a.is-active::after,
.page-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--nile);
  border-radius: 3px 3px 0 0;
}

/* Details & Accordions / Toggles */
details {
  background-color: var(--white);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius-card);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

details[open] {
  border-color: var(--nile);
}

summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  background-color: var(--white);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--nile);
  border-bottom: 2px solid var(--nile);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: 12px;
}

details[open] summary::after {
  transform: rotate(-135deg);
}

summary:hover {
  background-color: var(--sand);
  color: var(--nile);
}

.details-content {
  padding: 0 20px 20px 20px;
  font-size: 0.95rem;
  color: var(--ink);
  border-top: 1px solid var(--sand-line);
  margin-top: 4px;
  padding-top: 16px;
}

/* Icon Lists */
.icon-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.icon-list .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.icon-list.is-included li,
.icon-list .is-included {
  color: var(--ink);
}

.icon-list.is-included .icon,
.icon-list li.is-included .icon {
  color: #1b5e20;
}

.icon-list.is-excluded li,
.icon-list .is-excluded {
  color: var(--ink-soft);
}

.icon-list.is-excluded .icon,
.icon-list li.is-excluded .icon {
  color: #c62828;
}

/* Feature Box */
.feature-box {
  background-color: var(--sand);
  border-radius: var(--radius-card);
  border: 1px solid var(--sand-line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-box-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--white);
  color: var(--nile);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(8, 63, 75, 0.06);
}

.feature-box-icon .icon {
  width: 24px;
  height: 24px;
}

.feature-box-title {
  font-size: 1.15rem;
  color: var(--nile-deep);
  margin-bottom: 8px;
}

.feature-box-text {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Sidebar Booking Card */
.book-card {
  background-color: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--sand-line);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 140px;
}

.book-card-price {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.book-card-price strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--sun);
  display: block;
}

.book-card-meta {
  list-style: none;
  padding: 16px 0;
  border-top: 1px solid var(--sand-line);
  border-bottom: 1px solid var(--sand-line);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.book-card-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.book-card-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-card-actions .btn {
  width: 100%;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background-color: var(--white);
  border: 1px solid var(--sand-line);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231F2A2E%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--nile);
  box-shadow: 0 0 0 3px rgba(14, 94, 111, 0.15);
}

.has-error input,
.has-error select,
.has-error textarea,
input.has-error,
select.has-error,
textarea.has-error {
  border-color: #c62828;
  background-color: #fff8f8;
}

.error-message {
  font-size: 0.8rem;
  color: #c62828;
  margin-top: 4px;
}

/* Honeypot field */
.hp-field,
[name="website"],
[name="hp_website"] {
  display: none;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

/* Gallery Grid & Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--sand);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item.main-item {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(8, 63, 75, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--sun);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* Table of Contents */
.toc, .table-of-contents {
  background-color: var(--sand);
  border-radius: var(--radius-card);
  border: 1px solid var(--sand-line);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.toc-title {
  font-size: 1.1rem;
  color: var(--nile-deep);
  margin-bottom: 12px;
}

.toc ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc li a {
  font-size: 0.95rem;
  color: var(--ink);
}

.toc li a:hover {
  color: var(--nile);
  text-decoration: underline;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--ink-soft);
}

.breadcrumbs a:hover {
  color: var(--nile);
}

.breadcrumbs-separator {
  color: var(--sand-line);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;

}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--sand-line);
  color: var(--ink);
  background-color: var(--white);
}

.pagination a:hover {
  background-color: var(--sand);
  border-color: var(--nile);
  color: var(--nile);
}

.pagination .current, .pagination span.current {
  background-color: var(--nile);
  color: var(--white);
  border-color: var(--nile);
}

/* Footer */
.site-footer {
  background-color: var(--nile-deep);
  color: var(--white);
  padding-top: 56px;
  padding-bottom: 24px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-col h4 {
  color: var(--sand);
  font-size: 1.1rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--sun);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--sun);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Mobile CTA Bar */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background-color: var(--white);
  border-top: 1px solid var(--sand-line);
  padding: 10px 16px;
  display: flex;
  gap: 12px;
  box-shadow: 0 -4px 16px rgba(8, 63, 75, 0.1);
}

.mobile-cta .btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* 404 Block */
.block-404 {
  background-color: var(--sand);
  border-radius: var(--radius-card);
  padding: 48px 24px;
  text-align: center;
  border: 1px solid var(--sand-line);
  margin: 40px 0;
}

.block-404 h1 {
  font-size: 4rem;
  color: var(--nile-deep);
  margin-bottom: 8px;
}

.block-404 p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 500px;
  margin: 0 auto 24px auto;
}

.block-404-search {
  max-width: 440px;
  margin: 0 auto 32px auto;
  display: flex;
  gap: 8px;
}

.block-404-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Media Queries (Mobile First) */

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item.main-item {
    grid-column: span 3;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .top-bar {
    display: block;
  }

  .main-nav {
    display: block;
  }

  .header-cta {
    display: block;
  }

  .mobile-toggle {
    display: none;
  }

  .mobile-cta {
    display: none;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .two-col {
    grid-template-columns: 1fr 340px;
  }

  .hero-inner {
    grid-template-columns: 1fr 400px;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-item.main-item {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1180px) {
  .container {
    padding-inline: 0;
  }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
}

/* =========================================================
   Runtime blocks (classes emitted by app/Render.php + templates)
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.page-blocks { display: block; }
.content-section { padding: 40px 0; }
.content-section + .content-section { padding-top: 0; }
.content-section.is-sand { background: var(--sand); }
.block-heading { margin: 0 0 16px; }
.block-heading h2, .block-heading h3 { margin: 0; }
.heading-caption { color: var(--ink-soft); margin-top: 6px; font-size: 1.05rem; }
.rich-text { max-width: 78ch; }
.rich-text p, .rich-text ul, .rich-text ol { margin: 0 0 1em; }
.rich-text ul, .rich-text ol { padding-left: 1.4em; }
.rich-text img { border-radius: var(--radius-card); height: auto; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.rich-text th, .rich-text td { border: 1px solid var(--sand-line); padding: 8px 10px; text-align: left; }
.rich-text h2, .rich-text h3, .rich-text h4 { margin: 1.4em 0 .5em; }
.rich-text blockquote { border-left: 4px solid var(--sun); background: var(--sand); padding: 12px 18px; margin: 1em 0; border-radius: 0 var(--radius-card) var(--radius-card) 0; }
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 1em 0; border-radius: var(--radius-card); overflow: hidden; background: var(--nile-deep); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.read-more summary { cursor: pointer; font-weight: 600; color: var(--nile); }
.content-image { margin: 0 0 24px; text-align: center; }
.content-image img { border-radius: var(--radius-card); height: auto; max-width: 100%; }
.content-column { min-width: 0; }
.content-column + .content-column { margin-top: 24px; }
.divider { border: 0; border-top: 1px solid var(--sand-line); margin: 24px 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 24px; }
.category-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 24px; }
.accordion details, .toggle-list details { margin-bottom: 10px; }
.tour-grid, .post-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 8px 0 32px; }
.main-content { min-width: 0; }
.sidebar { min-width: 0; }
.sidebar .book-card { position: sticky; top: 84px; }
.related-mini { margin-top: 20px; border-top: 1px solid var(--sand-line); padding-top: 16px; }
.related-mini h4 { margin: 0 0 8px; font-size: 1rem; }
.related-mini ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.related-mini a { color: var(--nile); text-decoration: none; font-weight: 600; font-size: .95rem; }
.related-mini a:hover { text-decoration: underline; }
.page-header { background: var(--sand); border-bottom: 1px solid var(--sand-line); padding: 36px 0 28px; }
.page-header h1 { margin: 0 0 6px; color: var(--nile-deep); }
.page-header p { margin: 0; color: var(--ink-soft); max-width: 70ch; }
.enquiry-section { background: var(--sand); border-top: 1px solid var(--sand-line); }
.enquiry-section h2 { margin-bottom: 20px; }
.enquiry-form, .contact-form { background: var(--white); border: 1px solid var(--sand-line); border-radius: var(--radius-card); padding: 24px; max-width: 860px; }
.enquiry-form .grid-2, .enquiry-form .grid-3, .contact-form .grid-2 { gap: 16px; margin-bottom: 4px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.price-table { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 16px 0 24px; }
.price-tier { background: var(--white); border: 1px solid var(--sand-line); border-radius: var(--radius-card); padding: 20px; }
.price-tier strong { display: block; color: var(--sun); font-size: 1.4rem; margin: 6px 0 10px; font-family: var(--font-display, "Manrope", system-ui, sans-serif); }
.tour-title-marker { display: none; }

/* Tour page */
.tour-page .breadcrumbs { margin-bottom: 8px; }
.tour-page .gallery-grid { margin-top: 8px; }
.tour-page .gallery-grid .gallery-item:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.tour-title-row { padding: 12px 0 20px; }
.tour-title-row .container { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.tour-title-row h1 { margin: 6px 0 8px; color: var(--nile-deep); }
.tour-title-row p { margin: 0; color: var(--ink-soft); font-weight: 600; }
.tour-page .two-col { margin-top: 24px; margin-bottom: 40px; }
.tour-page .content-column { scroll-margin-top: 90px; }
.tour-page .content-column + .content-column { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--sand-line); }

/* Posts */
.post-layout { padding-bottom: 40px; }
.reading-column { max-width: 800px; }
.post-header { padding: 24px 0 12px; }
.post-header h1 { color: var(--nile-deep); margin: 0 0 8px; }
.post-header .post-featured { width: 100%; height: auto; border-radius: var(--radius-card); margin-top: 18px; }
.post-content { font-size: 1.08rem; line-height: 1.7; margin-top: 20px; }
.post-content img { max-width: 100%; height: auto; border-radius: var(--radius-card); }
.post-content .toc { margin: 0 0 28px; }
.post-pagination { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 36px 0 12px; padding-top: 20px; border-top: 1px solid var(--sand-line); }
.post-pagination a { color: var(--nile); font-weight: 600; text-decoration: none; max-width: 48%; }
.post-pagination a:hover { text-decoration: underline; }
.related-strip { background: var(--sand); padding: 40px 0; margin-top: 24px; }
.related-strip h2 { margin-bottom: 20px; }

/* Home hero composed from the first content block */
.hero-inner { align-items: start; }
.hero .rich-text { max-width: 60ch; margin-bottom: 20px; color: var(--ink-soft); font-size: 1.08rem; }
.hero .tour-search-box { margin-bottom: 20px; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; height: auto; border-radius: 20px; }
.logo-strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; -webkit-overflow-scrolling: touch; }
.logo-strip::-webkit-scrollbar { height: 6px; }
.logo-strip a, .logo-strip span { flex: 0 0 auto; scroll-snap-align: start; width: 150px; height: 64px; display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--sand-line); border-radius: 10px; padding: 8px 12px; }
.logo-strip img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1) opacity(.75); transition: filter .2s; }
.logo-strip a:hover img { filter: none; }
.top-bar-social { display: flex; gap: 10px; align-items: center; }
.top-bar-social a { display: inline-flex; align-items: center; gap: 6px; }

@media (min-width: 640px) {
  .tour-grid, .post-grid, .price-table { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .tour-grid, .post-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1.15fr .85fr; }
  .tour-page .two-col { grid-template-columns: minmax(0, 1fr) 340px; }
  .content-column + .content-column { margin-top: 0; }
}
.col-grid { display: grid; grid-template-columns: repeat(60, minmax(0, 1fr)); gap: 0; margin: 0 -12px; }
.col-grid > .content-column { grid-column: span 60; padding: 0 12px; margin-bottom: 24px; min-width: 0; }
@media (min-width: 640px) {
  .col-grid > .col-10, .col-grid > .col-12, .col-grid > .col-15, .col-grid > .col-20, .col-grid > .col-24 { grid-column: span 30; }
}
@media (min-width: 900px) {
  .col-grid > .col-10 { grid-column: span 10; } .col-grid > .col-12 { grid-column: span 12; } .col-grid > .col-15 { grid-column: span 15; }
  .col-grid > .col-20 { grid-column: span 20; } .col-grid > .col-24 { grid-column: span 24; } .col-grid > .col-30 { grid-column: span 30; }
  .col-grid > .col-36 { grid-column: span 36; } .col-grid > .col-40 { grid-column: span 40; } .col-grid > .col-45 { grid-column: span 45; }
}
.hero-content .content-image { text-align: left; }
.hero-content, .hero-figure, .hero-inner > * { min-width: 0; }
.logo-strip { max-width: 100%; }
.container { min-width: 0; }

html, body { overflow-x: hidden; }
.icon-list-caption { display: block; color: var(--ink-soft); font-size: .92rem; }
.tour-page .content-section:first-of-type .icon-list { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 8px; }
.form-notice { background: #FDECEC; border: 1px solid #F3B4B4; color: #8A1F1F; padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; font-weight: 600; }
