﻿@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;
}

* {
  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[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;
}

.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;
}

.sidebar-header .logo-text {
  background: #fff;
  color: #0a1f2b;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.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:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(2px);
}

.sidebar-footer {
  margin-top: auto;
}

.admin-content {
  flex: 1;
  background: var(--light);
}

.admin-topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0 12px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: #fff;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(7, 25, 45, 0.2));
}

.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: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  background: transparent;
  padding: 0;
}

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

.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;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at top, rgba(250, 204, 21, 0.35), rgba(30, 58, 138, 0.75));
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(7, 25, 45, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #fff;
  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;
}

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;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  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: 6px 34px 6px 12px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.18);
  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: #fff;
  min-width: 90px;
  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;
}

.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;
}

.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;
}

.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);
}

.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;
}

.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) {
  .desktop-nav,
  .desktop-actions {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-wrap {
    flex-wrap: wrap;
  }
  .brand {
    width: 100%;
    justify-content: center;
    box-shadow: none;
    background: transparent;
  }
  .logo {
    width: min(240px, 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;
  }
  .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;
}
.search-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  grid-column: 2;
}
.search-results {
  grid-column: 1;
}
.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;
}
.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: 1fr;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
}

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

.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;
}

.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: grid;
  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: 1px dashed rgba(15, 23, 42, 0.12);
  padding-top: 8px;
}

.booking-summary .summary-total + .summary-total {
  margin-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;
}

@media (max-width: 980px) {
  .search-strip {
    flex-direction: column;
    align-items: stretch;
  }
  .search-edit {
    width: 100%;
    text-align: center;
  }
  .search-layout {
    grid-template-columns: 1fr;
  }
  .search-sidebar {
    position: static;
  }
  .result-main {
    grid-template-columns: 1fr;
  }
  .ship-card {
    grid-template-columns: 70px 1fr;
  }
  .ship-image img,
  .ship-placeholder {
    width: 70px;
    height: 60px;
  }
}
