@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Playfair+Display:wght@500;700&display=swap');

:root {
  --primary: #1e3a8a;
  --primary-dark: #1e40af;
  --secondary: #3b82f6;
  --accent: #facc15;
  --accent-dark: #eab308;
  --dark: #1e293b;
  --light: #f8fafc;
  --card: #ffffff;
  --muted: #64748b;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  --shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.1);
  --border: #e2e8f0;
}

/* Ensure home page destination and ship cards show large image above text.
   These rules override earlier generic .card/.card-media defaults. */
.destinations-grid .destination-card,
.ships-grid .ship-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
.destinations-grid .destination-card .card-media {
  width: 100% !important;
  height: 220px !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}
.ships-grid .ship-card .card-media {
  width: 100% !important;
  height: 360px !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}
.destinations-grid .destination-card .card-media img,
.ships-grid .ship-card .card-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.destinations-grid .destination-card .card-body,
.ships-grid .ship-card .card-body {
  padding: 18px !important;
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), #ffffff 55%, #f8fafc 100%);
  color: var(--dark);
  line-height: 1.7;
}

body.drawer-open {
  overflow: hidden;
}

body.filter-open {
  overflow: hidden;
}

body[dir="ltr"],
body.admin {
  font-family: "Playfair Display", "Cairo", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(250, 204, 21, 0.6);
  outline-offset: 2px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header,
.admin-header {
  position: sticky;
  top: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
  z-index: 30;
}

.site-header::before {
  content: none;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='24' viewBox='0 0 1440 24'%3E%3Cpath d='M0 8c120 12 240 12 360 0s240-12 360 0 240 12 360 0 240-12 360 0v16H0z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 1440px 24px;
  pointer-events: none;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  position: relative;
  z-index: 1;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  font-size: 0.9rem;
}

.topbar-contact,
.topbar-social {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-auth-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #0b1a2b;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  position: relative;
}

.topbar-auth-link.outline {
  background: #fff;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0b1a2b;
  font-weight: 600;
}

/* Header switches: language flags and currency pills */
.switcher-inline { display:flex; gap:10px; align-items:center; }
.currency-switch { display:flex; gap:8px; align-items:center; }
.currency-pill { display:inline-block; padding:6px 10px; border-radius:999px; background:#fff; border:1px solid var(--border); color:var(--dark); font-weight:700; text-decoration:none; }
.currency-pill.active { background:linear-gradient(90deg,var(--primary),var(--primary-dark)); color:#fff; border-color:transparent; box-shadow:0 6px 16px rgba(30,58,138,0.12); }
.lang-switch { display:flex; gap:8px; align-items:center; }
.lang-pill { display:inline-flex; align-items:center; justify-content:center; width:36px; height:26px; border-radius:8px; background:#fff; border:1px solid var(--border); }
.lang-pill img { width:24px; height:16px; display:block; }
.lang-pill.active { box-shadow:0 6px 18px rgba(15,23,42,0.12); border-color:transparent; }

.drawer-switcher { display:flex; gap:12px; align-items:center; padding:12px 0; }
.drawer-currencies { display:flex; gap:8px; flex-wrap:wrap; }
.drawer-langs { display:flex; gap:8px; }

/* Improve topbar contact layout */
.topbar-contact a { display:flex; gap:8px; align-items:center; padding:6px 8px; border-radius:8px; background:rgba(255,255,255,0.6); }
.topbar-icon { width:28px; height:28px; display:inline-flex; align-items:center; justify-content:center; border-radius:6px; background:rgba(30,58,138,0.06); }

/* Social icons styling */
.social-pill { display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px; border-radius:8px; background:#fff; border:1px solid var(--border); color:var(--dark); box-shadow:none; }
.topbar-actions .social-pill:hover { transform:translateY(-2px); box-shadow:var(--shadow-soft); }

/* Mobile adjustments */
@media (max-width: 900px) {
  .desktop-actions { display:none; }
  .topbar-contact { gap:6px; }
  .lang-pill { width:40px; height:26px; }
  .currency-pill { padding:6px 8px; }
}

/* Style for the select used for currencies */
.switcher-select {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--dark);
  font-weight: 700;
}
.drawer-switcher-form .switcher-select { width: 100%; padding: 10px; border-radius: 8px; }

/* Narrow the currency select on desktop */
.desktop-actions .switcher-select { width: auto; min-width: 120px; max-width: 60vw; display: inline-block; }



/* Contact page styles */
.contact-grid { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; margin-top: 18px; }
.contact-info { background: #fff; padding: 18px; border-radius: 12px; box-shadow: var(--shadow-soft); }
.contact-info h3 { margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.contact-list li { display:flex; gap:12px; align-items:center; }
.contact-list .icon { width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; background:rgba(30,58,138,0.06); }
.contact-list a { color:var(--dark); font-weight:700; text-decoration:none; }
.social-links { display:flex; gap:10px; margin-top:14px; }
.social-link { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:10px; background:#fff; border:1px solid var(--border); color:var(--dark); }
.social-link svg { width:18px; height:18px; }
.contact-form .form { display:flex; flex-direction:column; gap:10px; }
.contact-form input, .contact-form select, .contact-form textarea { width:100%; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { order: 2; }
  .contact-form { order: 1; }
}



.topbar-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.12);
  color: #1e3a8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-icon svg,
.social-pill svg {
  width: 16px;
  height: 16px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--primary-dark), #071a2c);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  gap: 14px;
}

.sidebar-header .logo-text {
  background: #fff;
  color: #0a1f2b;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.sidebar-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-nav a.active {
  background: rgba(242, 176, 0, 0.92);
  color: #0b1a2b;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(242, 176, 0, 0.35);
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(2px);
}

.sidebar-footer {
  margin-top: auto;
  padding-bottom: 6px;
}

.admin-content {
  flex: 1;
  background: var(--light);
}

.admin-topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
}

.admin-topbar .nav-wrap {
  padding-top: 12px;
  padding-bottom: 12px;
}

.admin-topbar .brand-title {
  color: #0b1a2b;
  font-weight: 700;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-actions .switcher-select {
  background: #fff;
  border: 1px solid var(--border);
  color: #0b1a2b;
}

.admin-actions .switcher-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 176, 0, 0.25);
}

.admin .admin-content .main {
  min-height: calc(100vh - 72px);
}

.admin .admin-content {
  display: flex;
  flex-direction: column;
}

.admin .admin-content .main {
  flex: 1;
}

.admin .site-footer {
  margin-top: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 10px 0 18px;
}

.admin .site-footer p {
  color: var(--muted);
  text-align: center;
  margin: 0;
  font-size: 0.9rem;
}

.sidebar-nav {
  max-height: calc(100vh - 210px);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-nav a.active::before {
  content: "";
  width: 6px;
  height: 22px;
  border-radius: 999px;
  background: #0b1a2b;
  margin-inline-end: 8px;
}

.sidebar-nav a.active {
  position: relative;
}

.sidebar-nav a.active::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 10px;
  border: 1px solid rgba(11, 26, 43, 0.2);
  pointer-events: none;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0 18px;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: #0b1a2b;
  padding: 6px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(7, 25, 45, 0.18);
}

.logo {
  width: 140px;
  height: 48px;
  object-fit: contain;
  filter: none;
}

.logo-text {
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary);
  font-weight: 700;
}

.brand-title {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  background: transparent;
  padding: 0;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
}

.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.nav a.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: none;
}

.nav a::after {
  content: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.switcher {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.switcher-select {
  min-width: 120px;
  text-align: center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #ffffff;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(7, 25, 45, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--primary-dark);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(7, 25, 45, 0.45);
}

body.drawer-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.drawer-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.drawer-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.mobile-drawer.is-open {
  display: block;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 32, 0.45);
  backdrop-filter: blur(4px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 290px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(7, 20, 32, 0.2);
  padding: 20px;
  display: grid;
  gap: 16px;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
}

.drawer-contact {
  display: grid;
  gap: 10px;
  border-top: 1px solid #eef2f7;
  padding-top: 12px;
}

.drawer-social {
  display: flex;
  gap: 10px;
}

body[dir="rtl"] .drawer-panel {
  right: 0;
  left: auto;
  transform: translateX(100%);
}

.mobile-drawer.is-open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
}

.drawer-title {
  font-size: 1rem;
  color: var(--primary-dark);
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--light);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.drawer-nav {
  display: grid;
  gap: 8px;
}

.drawer-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(28, 111, 208, 0.08);
  font-weight: 600;
}

.drawer-nav a.active {
  background: rgba(28, 111, 208, 0.18);
  color: var(--primary-dark);
}

.drawer-switcher {
  flex-direction: column;
  align-items: stretch;
  padding: 10px;
  border-radius: 16px;
  gap: 10px;
}

.drawer-actions {
  display: grid;
  gap: 10px;
}
.switcher {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.switcher-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  padding: 8px 36px 8px 12px;
  border-radius: 12px;
  background-color: rgb(0 0 0);
  background-image: linear-gradient(45deg, transparent 50%, #ffffff 50%),
    linear-gradient(135deg, #ffffff 50%, transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.12), rgba(250, 204, 21, 0.2));
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%, 0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
  font-weight: 600;
  color: #FFEB3B;
  min-width: 140px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.switcher-select option {
  color: #0a1f2b;
  background: #fff;
}

/* Admin switcher clarity */
body.admin .switcher {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

body.admin .switcher-select {
  color: var(--primary-dark);
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, var(--primary-dark) 50%),
    linear-gradient(135deg, var(--primary-dark) 50%, transparent 50%),
    linear-gradient(to right, rgba(30, 58, 138, 0.08), rgba(250, 204, 21, 0.18));
}

body.admin .switcher-select option {
  color: #0a1f2b;
  background: #fff;
}

.switcher-select:hover {
  box-shadow: 0 8px 18px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

body[dir="rtl"] .switcher-select {
  padding: 6px 12px 6px 34px;
  background-position: 18px 55%, 12px 55%, 0 0;
}

.account-link {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary);
  font-size: 0.85rem;
  box-shadow: 0 10px 20px rgba(250, 204, 21, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(250, 204, 21, 0.35);
}

.account-link.outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.main {
  min-height: 70vh;
}

body.admin .main {
  min-height: 0;
  padding-bottom: 24px;
}

body.admin .site-footer {
  padding: 18px 0;
}

body.admin .site-footer::before {
  opacity: 0.35;
}

.hero {
  padding: 80px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.hero-card {
  background: var(--card);
  padding: 24px;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.hero-card-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.section {
  padding: 40px 0;
}

.search-section {
  padding-top: 24px;
  padding-bottom: 36px;
}

.section.alt {
  background: linear-gradient(90deg, rgba(28, 111, 208, 0.08), rgba(242, 176, 0, 0.12));
}


.content-block {
  padding: 60px 0;
  position: relative;
}

.content-block.block-hero {
  color: #fff;
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center;
}

.content-block.block-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 61, 122, 0.88), rgba(12, 41, 72, 0.55), rgba(242, 176, 0, 0.15));
}

.content-block.block-hero .container {
  position: relative;
  z-index: 1;
}

.block-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.block-inner.has-media {
  grid-template-columns: 1fr 1fr;
}

.content-block.block-split .block-inner {
  grid-template-columns: 1fr 1fr;
}

.content-block.block-stats .block-inner,
.content-block.block-section .block-inner {
  grid-template-columns: 1fr;
}

.content-block.block-stats .block-media,
.content-block.block-section .block-media,
.content-block.block-cta .block-media {
  display: none;
}

.block-text h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.block-subtitle {
  color: var(--muted);
}

.content-block.block-hero .block-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.block-body {
  margin-top: 12px;
  color: var(--dark);
}

.content-block.block-hero .block-body {
  color: rgba(255, 255, 255, 0.9);
}

.block-media img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.media-placeholder {
  width: 100%;
  min-height: 220px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(11, 87, 161, 0.15), rgba(245, 179, 1, 0.2));
  display: grid;
  place-items: center;
  color: var(--primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.stat {
  background: #fff;
  padding: 16px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  display: grid;
  gap: 6px;
  text-align: center;
}

.stat strong {
  font-size: 1.4rem;
  color: var(--primary);
}

.content-block.block-cta {
  background: linear-gradient(90deg, rgba(242, 176, 0, 0.18), rgba(28, 111, 208, 0.08));
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

/* Destinations: 2 per row on tablet+/desktop, image above text */
.destinations-grid {
  grid-template-columns: repeat(2, 1fr);
}
.destination-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.destination-card .card-media {
  width: 100%;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
}
.destination-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.destination-card .card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Ships: 2 per row, larger image and equal height cards */
.ships-grid {
  grid-template-columns: repeat(2, 1fr);
}
.ship-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.ship-card .card-media {
  width: 100%;
  height: 360px; /* larger than destinations */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
}
.ship-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ship-card .card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 140px;
}

/* Ensure buttons or 'more' elements align at bottom by making bodies stretch */
.card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Responsive: stack to single column on small screens */
@media (max-width: 720px) {
  .destinations-grid,
  .ships-grid {
    grid-template-columns: 1fr;
  }
  .destination-card .card-media { height: 200px; }
  .ship-card .card-media { height: 220px; }
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.news-card {
  display: grid;
  gap: 10px;
  min-height: 180px;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.news-tag {
  background: rgba(242, 176, 0, 0.2);
  color: #9a5b00;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.news-date {
  font-weight: 600;
}

.values-grid {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.values-grid li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 6px;
  box-shadow: var(--shadow-soft);
}

.values-grid strong {
  color: var(--primary);
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.sitemap-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 600;
}

.sitemap-list a::before {
  content: "•";
  color: var(--accent-dark);
  font-size: 1rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.page-header h1 {
  margin-bottom: 6px;
}

.card {
  background: var(--card);
  padding: 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.destination-card,
.ship-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
  }
  
  .card-media {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(28, 111, 208, 0.18), rgba(242, 176, 0, 0.2));
    display: grid;
    place-items: center;
    font-size: 24px;
  }

  .destination-card .card-media,
  .ship-card .card-media {
    width: 100%;
    height: 170px;
    font-size: 32px;
  }

  .destination-card .card-media img,
  .ship-card .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
  }

  .card-body .muted {
    margin-top: 2px;
  }

.card-body h3 {
  margin: 0 0 6px;
}

.card-body p {
  margin: 0;
  color: var(--muted);
}

.message-grid {
  grid-template-columns: 1fr;
}

.message-card {
  display: grid;
  gap: 16px;
}

.message-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.message-head h3 {
  margin: 0 0 4px;
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.message-actions .btn {
  font-size: 0.85rem;
  padding: 9px 16px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.settings-group {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.settings-group h3 {
  margin: 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.toggle-label {
  font-weight: 600;
  color: #0f172a;
}

.message-body {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 6px;
}

.message-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.message-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.message-panel h4 {
  margin: 0;
}

.message-list {
  display: grid;
  gap: 8px;
}

.message-list-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 10px;
}

.message-table .table-row {
  grid-template-columns: 0.8fr 1.6fr 0.9fr 0.8fr 0.8fr;
}

.reply-card {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.ticket-editor-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.ticket-editor {
  min-height: 320px;
  font-size: 15px;
  line-height: 1.7;
}

.ticket-editor .ql-editor {
  min-height: 320px;
}

.ticket-editor .ql-editor img {
  max-width: 100%;
  border-radius: 12px;
}

.schedule {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(28, 111, 208, 0.12);
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(28, 111, 208, 0.08);
}

.schedule-meta {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

.schedule-prices {
  display: grid;
  gap: 6px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.price-row:last-child {
  border-bottom: none;
}

.form,
.filter {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.form input,
.form textarea,
.form select,
.filter input,
.filter select,
.booking-form select,
.booking-form input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form input:focus,
.form textarea:focus,
.form select:focus,
.filter input:focus,
.filter select:focus,
.booking-form select:focus,
.booking-form input:focus {
  outline: none;
  border-color: rgba(28, 111, 208, 0.5);
  box-shadow: 0 0 0 3px rgba(28, 111, 208, 0.15);
}

.booking-panel {
  margin-top: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 176, 0, 0.06));
  padding: 22px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(28, 111, 208, 0.12);
  display: grid;
  gap: 18px;
}

.booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.booking-section {
  background: #fff;
  border: 1px solid rgba(28, 111, 208, 0.1);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.booking-section-title {
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.booking-choice {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.choice-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(28, 111, 208, 0.2);
  background: rgba(28, 111, 208, 0.08);
  font-weight: 600;
  cursor: pointer;
}

.choice-pill input {
  accent-color: var(--primary);
}

.counter-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.counter-grid .counter-row {
  background: rgba(28, 111, 208, 0.05);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(28, 111, 208, 0.08);
}

.booking-field label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.booking-panel select,
.booking-panel input {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-panel select:focus,
.booking-panel input:focus {
  outline: none;
  border-color: rgba(28, 111, 208, 0.5);
  box-shadow: 0 0 0 3px rgba(28, 111, 208, 0.15);
}

.counter-group {
  display: grid;
  gap: 12px;
}

.counter-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.counter-row:last-child {
  border-bottom: none;
}

.counter-label {
  color: var(--dark);
  font-weight: 600;
}

.counter-value {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

.counter-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #d1d5db;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  top: 4px;
  background: #fff;
  transition: 0.2s;
  border-radius: 999px;
}

.switch input:checked + .slider {
  background: var(--primary);
}

.switch input:checked + .slider:before {
  transform: translateX(24px);
}

.vehicle-section.is-hidden {
  display: none;
}

.is-hidden {
  display: none !important;
}

.wysiwyg {
  min-height: 220px;
  background: #fff;
  border-radius: 12px;
}

.block-body ul {
  margin: 12px 0 0;
  padding-inline-start: 20px;
}

.block-body li {
  margin-bottom: 6px;
}

.block-body a {
  color: var(--primary);
  font-weight: 700;
}

.booking-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.booking-form.booking-details {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.booking-panel .btn {
  width: 100%;
  justify-content: center;
}

.booking-form.booking-details .btn {
  width: auto;
  justify-self: flex-start;
}

.booking-group {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(28, 111, 208, 0.12);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.booking-group-title {
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.booking-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.booking-item {
  display: grid;
  gap: 6px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.16);
  padding: 10px;
  border-radius: 12px;
}

.booking-item input[type="number"] {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 8px 10px;
}

.vehicle-items.is-hidden {
  display: none;
}

.btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary);
  padding: 11px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 22px rgba(250, 204, 21, 0.28);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(250, 204, 21, 0.36);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.btn-danger {
  background: #c0392b;
}

.alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
  padding: 12px;
  border-radius: 12px;
}

.alert.success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.message-tabs {
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
}

.tab.active {
  background: var(--primary);
  color: #fff;
}

.account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.account-sidebar {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 16px;
}

.account-card {
  background: #fff;
  padding: 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.account-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.account-email {
  color: var(--muted);
  margin-top: 4px;
}

.account-meta {
  margin-top: 12px;
  font-weight: 700;
  color: var(--primary);
}

.account-stats {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.account-stats div {
  background: rgba(28, 111, 208, 0.08);
  padding: 10px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.account-nav {
  display: grid;
  gap: 8px;
}

.account-nav a {
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  color: var(--dark);
}

.account-nav a.active {
  background: var(--primary);
  color: #fff;
}

.account-nav a.logout {
  background: #c0392b;
  color: #fff;
}

.account-content .card {
  border-radius: 16px;
}

.trip-card {
  display: grid;
  gap: 12px;
}

.trip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trip-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.trip-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  padding-top: 10px;
}

.table {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.table-row {
  display: grid;
  grid-template-columns: 0.6fr 2fr 2fr 1.4fr;
  gap: 10px;
  padding: 12px;
  background: var(--card);
  border-radius: 12px;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.table-row.table-header {
  font-weight: 700;
  background: transparent;
  box-shadow: none;
}

.ships-table .ship-row {
  grid-template-columns: 0.4fr 1.6fr 0.6fr 2.2fr 1fr;
}

.ship-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.form-card {
    margin-top: 16px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #e6eaf3;
    background: #fff;
}

.form-card h3 {
    margin: 0 0 12px;
}

.category-grid {
    display: grid;
    gap: 12px;
}

.category-card {
    padding: 12px;
    border-radius: 12px;
    border: 1px dashed #d3d9e6;
    background: #f9fbff;
}

.category-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.category-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.category-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e7f2;
    background: #fff;
}

.ship-tab {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(28, 111, 208, 0.12);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ship-tab:hover {
  background: rgba(242, 176, 0, 0.25);
  transform: translateY(-1px);
}

.inline {
  display: inline-block;
}

.site-footer {
  position: relative;
  padding: 60px 0 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.18), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.12), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}

.mobile-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}

.mobile-nav .mobile-item {
  display: grid;
  gap: 4px;
  justify-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 8px 4px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav .mobile-item .icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.mobile-nav .mobile-item .icon svg {
  width: 22px;
  height: 22px;
}

.mobile-nav .mobile-item.active {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.16);
  font-weight: 700;
}


.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: grid;
  gap: 12px;
}

.footer-logo img {
  max-width: 160px;
  height: auto;
  display: block;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin: 0;
}

.footer-column {
  display: grid;
  gap: 10px;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  background: rgba(242, 176, 0, 0.3);
  transform: translateY(-2px);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.footer-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 600;
  width: fit-content;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.helper-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.reply {
  background: rgba(0,0,0,0.05);
  padding: 8px;
  border-radius: 8px;
  margin-top: 8px;
}

/* Admin bookings */
.booking-list {
  display: grid;
  gap: 16px;
}

.booking-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.booking-summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: center;
}

.booking-summary::-webkit-details-marker {
  display: none;
}

.booking-summary::after {
  content: "▾";
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.booking-item[open] .booking-summary::after {
  transform: rotate(180deg);
}

.booking-summary > div {
  min-width: 0;
}

.booking-code {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.booking-summary .muted {
  font-size: 0.85rem;
}

.booking-summary strong,
.booking-summary .muted {
  word-break: break-word;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.08);
  color: var(--dark);
  margin-top: 6px;
}

.status-pill.status-pending {
  background: rgba(250, 204, 21, 0.25);
}

.status-pill.status-confirmed {
  background: rgba(34, 197, 94, 0.2);
}

.status-pill.status-cancelled {
  background: rgba(239, 68, 68, 0.18);
}

.booking-body {
  padding: 18px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.booking-grid .card h4 {
  margin-top: 0;
}

body[dir="rtl"] .booking-summary {
  text-align: right;
}

.booking-subdetails {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.subdetails-summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.subdetails-summary::-webkit-details-marker {
  display: none;
}

.subdetails-summary::after {
  content: "▾";
  font-size: 16px;
  color: var(--muted);
  transition: transform 0.2s ease;
  margin-inline-start: 8px;
}

.booking-subdetails[open] .subdetails-summary::after {
  transform: rotate(180deg);
}

.subdetails-count {
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary-dark);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.subdetails-body {
  padding: 12px 14px 16px;
  border-top: 1px solid var(--border);
}

.passenger-list {
  display: grid;
  gap: 12px;
}

.passenger-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.passenger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .passenger-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .booking-summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .booking-summary::after {
    justify-self: start;
  }
}

@media (max-width: 980px) {
  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .sidebar-nav {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    max-height: none;
  }
  .sidebar-nav a {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .admin-sidebar {
    padding: 14px 12px;
  }
  .sidebar-nav {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
  }
  .sidebar-nav a {
    font-size: 0.85rem;
    padding: 8px 10px;
  }
  .admin-topbar .brand-title {
    display: none;
  }
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #0b1a2b;
  font-size: 0.75rem;
  font-weight: 700;
}

.tab.active .tab-count {
  background: rgba(242, 176, 0, 0.9);
  color: #0b1a2b;
}

.ended-pill {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(15, 23, 42, 0.08);
  color: #0b1a2b;
}

.editor-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.editor-toolbar button {
  background: rgba(28, 111, 208, 0.1);
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.editor {
  min-height: 220px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
}

.image-preview img {
  max-width: 220px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.schedule-form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.schedule-toolbar {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.bulk-card {
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  display: grid;
  gap: 12px;
}

.bulk-title {
  font-weight: 700;
  color: var(--primary-dark);
}

.bulk-subtitle {
  font-weight: 700;
  margin: 10px 0 4px;
}

.bulk-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

.bulk-row-sub {
  grid-template-columns: 1.2fr 1fr auto;
  font-size: 0.9rem;
  margin-top: -2px;
}

.bulk-row-sub label {
  color: var(--muted);
  font-weight: 500;
}

.bulk-row label {
  font-weight: 600;
}

.btn.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.schedule-table {
  overflow-x: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.schedule-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px;
}

.schedule-table th,
.schedule-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: top;
  text-align: right;
}

.schedule-table th {
  background: rgba(28, 111, 208, 0.08);
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}

.schedule-table th.group-head {
  text-align: center;
  background: rgba(28, 111, 208, 0.14);
}

.schedule-table tbody tr:nth-child(even) {
  background: rgba(244, 247, 251, 0.8);
}

.schedule-table tbody tr:hover {
  background: rgba(28, 111, 208, 0.06);
}

.table-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
}

.cell-stack {
  display: grid;
  gap: 6px;
}

.table-input.is-applied {
  background: #fff6d6;
  border-color: rgba(242, 176, 0, 0.6);
  box-shadow: 0 0 0 2px rgba(242, 176, 0, 0.2);
}

.price-input {
  min-width: 90px;
}

.price-group {
  display: grid;
  gap: 10px;
}

.price-item label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .desktop-nav,
  .desktop-actions {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-wrap {
    flex-wrap: wrap;
  }
  .brand {
    width: 100%;
    justify-content: center;
    background: #fff;
    box-shadow: 0 10px 22px rgba(7, 25, 45, 0.18);
  }
  .logo {
    width: min(200px, 70vw);
    height: auto;
  }
  .nav-toggle {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
  }
  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }
  .switcher {
    flex: 1;
    justify-content: space-between;
  }
  .table-row {
    grid-template-columns: 1fr;
  }
  .schedule-meta {
    flex-direction: column;
  }
  .booking-panel {
    padding: 16px;
  }
  .booking-form.booking-details .btn {
    width: 100%;
    justify-self: stretch;
  }
  .bulk-row {
    grid-template-columns: 1fr;
  }
  .block-inner,
  .block-inner.has-media {
    grid-template-columns: 1fr;
  }
  .block-text h2 {
    font-size: 1.6rem;
  }
  .block-hero {
    min-height: 320px;
  }
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-sidebar {
    position: static;
  }
  .trip-header,
  .trip-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: static;
    overflow: visible;
    padding: 18px 16px;
  }
  .sidebar-nav {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    overflow: visible;
    padding-right: 0;
  }
  .admin-content {
    width: 100%;
  }
  .main {
    padding-bottom: 86px;
  }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }
  .site-footer {
    padding-bottom: 90px;
  }
.footer-bottom {
  flex-direction: column;
  align-items: flex-start;
}
}

/* Search results */
.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.search-header h1 {
  margin-bottom: 6px;
  font-size: 28px;
}
.search-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  margin-bottom: 18px;
}

.search-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  flex: 1;
}

.search-field {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px 12px;
  background: #f8fafc;
  display: grid;
  gap: 4px;
}

.search-field .label {
  font-size: 12px;
  color: #64748b;
}

.search-field strong {
  font-size: 14px;
  color: #0f172a;
}

.search-edit {
  white-space: nowrap;
}
.date-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 10px;
}
.date-tab {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid transparent;
  min-width: 140px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.date-tab .date-day {
  font-weight: 700;
  color: #1e3a8a;
}
.date-tab .date-date {
  font-size: 13px;
  color: #64748b;
}
.date-tab .date-price {
  font-size: 14px;
  color: #0f172a;
}
.date-tab.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.date-tab.active {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 10px 24px rgba(19, 89, 171, 0.2);
}
.month-summary {
  margin-top: -6px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}
.month-summary .month-label {
  font-weight: 700;
  color: #0f172a;
}
.month-summary .month-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}
.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 0;
}
.search-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  grid-column: 2;
}
.search-results {
  grid-column: 1;
}

.search-filter-toggle {
  display: none;
}

.search-filter-drawer {
  display: block;
}

.filter-overlay {
  display: none;
}

.filter-panel {
  display: grid;
  gap: 12px;
}

.filter-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}
.filter-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.filter-card h3 {
  margin-bottom: 14px;
  font-size: 1.1rem;
}
.filter-group {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-group.filter-span {
  grid-column: 1 / -1;
}
.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}
.filter-options {
  display: grid;
  gap: 8px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}
.search-results {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 0;
}
.result-card {
  margin: 0;
}
.result-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: center;
}
.route-line {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}
.route-line .arrow {
  color: var(--primary);
  font-size: 20px;
}
.route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: #475569;
  font-size: 14px;
}
.duration-pill {
  background: #e0ecff;
  color: #0f4a9e;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.ship-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
  background: #f8fafc;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid #e5e7eb;
}
.ship-image img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}
.ship-placeholder {
  width: 90px;
  height: 70px;
  border-radius: 10px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #64748b;
}
.ship-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.ship-features span {
  background: #fff7d6;
  color: #b06b00;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.price-grid {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 14px;
}

.price-row strong {
  font-size: 15px;
  color: #0f172a;
}

.price-meta {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.price-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-title img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.table-input-sm {
  margin-top: 6px;
  height: 34px;
  font-size: 12px;
  padding: 6px 8px;
}

.result-card {
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.result-banner {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.result-banner .banner-image {
  width: 100%;
  height: 100%;
}

.result-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-banner .ship-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  background: #eaf0fb;
  color: #6b7280;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(3, 22, 55, 0) 0%, rgba(3, 22, 55, 0.75) 100%);
  color: #fff;
  pointer-events: none;
}

.banner-title {
  font-size: 22px;
  font-weight: 700;
}

.banner-route {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
}

.banner-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.banner-icons img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: #fff;
}

.result-top-info {
  padding: 16px 18px;
  display: grid;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
}
.result-top-info .info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.result-top-info .ship-meta {
  gap: 16px;
}
.result-top-info .ship-features {
  margin-top: 0;
}

.type-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

.result-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 18px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
  }

  .result-details {
    display: grid;
    gap: 16px;
  }

  .result-summary {
    background: #ffffff;
    border: 1px solid #e6eaf3;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    height: fit-content;
  }

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.info-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f8fc;
  display: grid;
  gap: 4px;
}

.info-item span {
  font-size: 12px;
  color: #64748b;
}

.info-item strong {
  font-size: 14px;
  color: #0f172a;
}

.ship-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #475569;
  font-weight: 500;
}

.result-prices h4 {
  margin: 0 0 10px;
}

.price-block {
  display: grid;
  gap: 10px;
}

.price-block-title {
  font-weight: 700;
  color: #0f172a;
}

.selection-title {
  font-weight: 700;
  color: #0f172a;
  margin-top: 6px;
}

.selection-list {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.selection-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  align-items: center;
}

.selection-total {
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.selection-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
}
.lightbox-trigger {
  cursor: zoom-in;
}

.result-booking {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.booking-group {
  background: #ffffff;
  border: 1px solid #e6eaf3;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.form-grid input,
.form-grid select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
}

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.field-span {
  grid-column: 1 / -1;
}

.wallet-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.wallet-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}

.wallet-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.wallet-meta {
  display: grid;
  gap: 6px;
  color: var(--dark);
  font-size: 0.9rem;
}

.wallet-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.wallet-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
}

.booking-group-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.booking-item {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.booking-summary {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e6eaf3;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  grid-column: 1 / -1;
}

.summary-title {
  font-weight: 700;
}

.summary-items {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #475569;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.summary-actions form {
  flex: 1 1 200px;
}

.summary-actions .btn {
  width: 100%;
  justify-content: center;
}

.booking-summary .summary-total {
  border-top: none;
  padding-top: 0;
}

.booking-summary .summary-total + .summary-total {
  margin-top: 0;
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
  padding-top: 6px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 980px) {
  .result-grid {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .result-top-info .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 35, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.lightbox-overlay.show {
  display: flex;
}
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}
.thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}
.ticket-preview {
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  background: #f8fafc;
}
.ticket-preview .ticket {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
}

.ticket-doc {
  display: grid;
  gap: 18px;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-soft);
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 12px;
}

.ticket-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticket-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 6px;
}

.ticket-title {
  font-weight: 800;
  font-size: 1.2rem;
}

.ticket-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.ticket-meta {
  display: grid;
  gap: 6px;
  text-align: start;
  color: var(--dark);
  font-size: 0.9rem;
}

.ticket-section {
  display: grid;
  gap: 12px;
}

.ticket-section h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 16px;
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid #e5e7eb;
}

.ticket-ship-media img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}

.ticket-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.ticket-table th,
.ticket-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
}

.ticket-table thead {
  background: #f1f5f9;
  color: #0b1a2b;
}

.ticket-table tbody tr:last-child td {
  border-bottom: 0;
}

.ticket-list {
  margin: 0;
  padding: 0 18px;
  display: grid;
  gap: 6px;
  color: var(--dark);
}

.ticket-total {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.18), rgba(255, 255, 255, 0.9));
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ticket-blocks {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.ticket-blocks-title {
  font-weight: 700;
}

.ticket-blocks-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-block {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ticket-block:hover {
  background: rgba(250, 204, 21, 0.2);
  transform: translateY(-1px);
}

/* Notifications + dashboard */
.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notif-bell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 58, 138, 0.08);
  border: 1px solid rgba(30, 58, 138, 0.2);
  color: var(--primary-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notif-bell:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.notif-icon {
  font-size: 16px;
}

.notif-count {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  background: #ef4444;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

.notif-count:empty {
  display: none;
}

.admin-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #065f46;
  font-weight: 700;
  font-size: 0.85rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.18);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
}

.stat-card.stat-live {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(140deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 1));
}

.stat-card.stat-compact {
  text-align: center;
}

.stat-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.stat-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.dashboard-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
}

.notifications-card .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.notifications-list {
  display: grid;
  gap: 12px;
}

.notification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.notification-item.is-read {
  opacity: 0.65;
}

.notification-meta {
  display: grid;
  gap: 6px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .dashboard-panels {
    grid-template-columns: 1fr;
  }
  .admin-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 980px) {
  .search-strip {
    flex-direction: column;
    align-items: stretch;
  }
  .search-edit {
    width: 100%;
    text-align: center;
  }
  .search-filter-toggle {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }
  .search-layout {
    grid-template-columns: 1fr;
  }
  .search-sidebar {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
  }
  .search-filter-drawer.is-open {
    display: block;
  }
  .filter-overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(7, 20, 32, 0.45);
    backdrop-filter: blur(4px);
  }
  .filter-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(90vw, 360px);
    background: #fff;
    padding: 18px;
    box-shadow: 0 20px 40px rgba(7, 20, 32, 0.2);
    overflow-y: auto;
  }
  body[dir="rtl"] .filter-panel {
    right: 0;
    left: auto;
    transform: translateX(100%);
  }
  body[dir="ltr"] .filter-panel {
    left: 0;
    right: auto;
    transform: translateX(-100%);
  }
  .search-filter-drawer.is-open .filter-panel {
    transform: translateX(0);
  }
  .filter-header {
    display: flex;
  }
  .search-results {
    grid-column: auto;
  }
  .result-main {
    grid-template-columns: 1fr;
  }
  .ship-card {
    grid-template-columns: 70px 1fr;
  }
  .ship-image img,
  .ship-placeholder {
    width: 70px;
    height: 60px;
  }
}

/* === FIX: English (LTR) header overlap + Yellow currency select === */
@media (min-width: 901px) {
  html[dir="ltr"] .site-header .nav {
    gap: 8px;
  }

  html[dir="ltr"] .site-header .nav a {
    padding: 8px 10px;
  }

  html[dir="ltr"] .site-header .nav-actions {
    gap: 10px;
  }

  /* Limit currency select width to prevent overlapping nav */
  html[dir="ltr"] .site-header .switcher-select {
    min-width: 160px;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Currency select: yellow background + black text (header only) */
.site-header .switcher-select {
  background-color: #facc15 !important;
  color: #000 !important;

  /* black arrow */
  background-image:
    linear-gradient(45deg, transparent 50%, #000 50%),
    linear-gradient(135deg, #000 50%, transparent 50%),
    linear-gradient(to right, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02)) !important;
}

.site-header .switcher-select option {
  background: #facc15;
  color: #000;
}

/* === FIX LTR overlap: reserve space for right actions so nav won't go under it === */
@media (min-width: 901px) {
  html[dir="ltr"] .site-header .nav {
    padding-right: 260px;   /* reserve space for currency + icons + buttons */
    position: relative;
    z-index: 1;
  }

  html[dir="ltr"] .site-header .nav-actions,
  html[dir="ltr"] .site-header .right-actions,
  html[dir="ltr"] .site-header .actions {
    position: relative;
    z-index: 2;
  }

  /* keep currency compact */
  html[dir="ltr"] .site-header .switcher-select {
    max-width: 150px;
    min-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* === FIX: English header overlap (apply by language, not dir) === */
@media (min-width: 901px) {

  html[lang="en"] .site-header .nav,
  body.lang-en .site-header .nav,
  body[data-lang="en"] .site-header .nav {
    margin-right: 320px !important; /* reserve space for currency + icons + buttons */
  }

  html[lang="en"] .site-header .nav a,
  body.lang-en .site-header .nav a,
  body[data-lang="en"] .site-header .nav a {
    padding: 8px 8px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  html[lang="en"] .site-header .switcher-select,
  body.lang-en .site-header .switcher-select,
  body[data-lang="en"] .site-header .switcher-select {
    min-width: 130px !important;
    max-width: 130px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* === English header: 2-row layout to prevent crowding === */
@media (min-width: 901px) {
  html[lang="en"] .site-header .nav-wrap {
    flex-wrap: wrap !important;
    row-gap: 10px !important;
    align-items: center !important;
  }

  /* Row 1: brand + actions */
  html[lang="en"] .site-header .brand { order: 1 !important; }
  html[lang="en"] .site-header .nav-actions { 
    order: 2 !important; 
    margin-left: auto !important; 
  }

  /* Row 2: nav links full width */
  html[lang="en"] .site-header .nav.desktop-nav {
    order: 3 !important;
    flex: 0 0 100% !important;
    justify-content: center !important;
    margin-top: 2px !important;
  }

  /* Make links slightly tighter in EN */
  html[lang="en"] .site-header .nav.desktop-nav a {
    padding: 8px 10px !important;
    font-size: 0.86rem !important;
    white-space: nowrap !important;
  }

  /* Keep currency select compact */
  html[lang="en"] .site-header .switcher-select {
    min-width: 140px !important;
    max-width: 140px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* === FINAL FIX: English header uses GRID (no overlap) === */
@media (min-width: 901px) {
  html[lang="en"] .site-header .nav-wrap {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand . actions"
      "nav   nav nav";
    column-gap: 14px;
    row-gap: 10px;
    align-items: center;
  }

  html[lang="en"] .site-header .brand { grid-area: brand; }

  html[lang="en"] .site-header .nav-actions {
    grid-area: actions;
    justify-self: end;
  }

  html[lang="en"] .site-header .nav.desktop-nav {
    grid-area: nav;
    width: 100%;
    justify-content: center;
    flex: unset !important;
    flex-wrap: wrap;          /* لو الشاشة أضيق، يلف سطر ثاني بشكل مرتب */
    white-space: normal;
    row-gap: 8px;
  }

  /* Keep currency compact */
  html[lang="en"] .site-header .switcher-select {
    min-width: 140px !important;
    max-width: 140px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}
