:root {
  --red: #c1121f;
  --red-dark: #b80f22;
  --green: #006847;
  --green-soft: #eef8f4;
  --ink: #111827;
  --text: #344054;
  --muted: #667085;
  --border: #e1e7ec;
  --surface: #ffffff;
  --soft-surface: #f8fafc;
  --white: #ffffff;
  --shadow: 0 16px 42px rgba(16, 24, 40, 0.09);
  --font: "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px 1fr;
}

.app-shell.sidebar-collapsed { grid-template-columns: 76px 1fr; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(0,104,71,0.12);
  background: var(--white);
  display: grid;
  grid-template-rows: 64px 1fr;
  z-index: 10;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px 18px;
  border-bottom: 2px solid var(--red);
}

.sidebar-brand img { width: 48px; height: 48px; flex-shrink: 0; object-fit: contain; }
.brand-copy strong { display: block; color: var(--red); font-size: 17px; font-weight: 850; }
.brand-copy small { color: var(--muted); font-size: 10px; }

.side-nav {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 12px;
  overflow: auto;
}

.nav-item {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--text);
  font-size: 12.5px;
  position: relative;
  font-weight: 500;
}

.nav-item .icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.nav-item .icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item.active,
.nav-item:hover {
  background: rgba(0,104,71,0.07);
  color: var(--green);
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: var(--red);
}
.nav-item.active .icon { color: var(--red); }
.nav-item.danger { color: var(--red); }
.nav-home-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 4px;
  align-items: center;
}
.nav-home-row .nav-item { min-width: 0; }
.sidebar-nav-toggle {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(206,17,38,0.25);
  border-radius: 999px;
  background: var(--white);
  color: var(--red);
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.sidebar-nav-toggle:hover { background: rgba(206,17,38,0.06); }

.sidebar-nav-toggle {
  display: none;
}

.topbar-menu-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(193, 18, 31, 0.22);
  border-radius: 8px;
  background: #fff;
  color: #c1121f;
  padding: 0;
}

.topbar-menu-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.explore-nav-group {
  display: grid;
  gap: 3px;
}

.explore-subnav {
  display: none;
  gap: 2px;
  margin: -2px 0 6px 32px;
  padding-left: 12px;
  border-left: 2px solid rgba(0, 104, 71, 0.14);
}

.explore-nav-group.is-open .explore-subnav {
  display: grid;
}

.explore-subnav a {
  min-height: 28px;
  display: flex;
  align-items: center;
  border-radius: 7px;
  color: var(--muted);
  padding: 0 9px;
  font-size: 11.5px;
  font-weight: 520;
}

.explore-subnav a.active,
.explore-subnav a:hover {
  background: rgba(193, 18, 31, 0.06);
  color: #c1121f;
}

.sidebar-collapsed .explore-subnav {
  display: none;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

.sidebar-collapsed .brand-copy,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .sidebar-footer { display: none; }
.sidebar-collapsed .sidebar-brand { justify-content: center; padding-inline: 8px; }
.sidebar-collapsed .sidebar-brand img { width: 42px; height: 42px; }
.sidebar-collapsed .nav-item { justify-content: center; padding-inline: 0; }
.sidebar-collapsed .nav-home-row { grid-template-columns: 1fr; }
.sidebar-collapsed .nav-home-row .nav-item { display: none; }
.sidebar-collapsed .sidebar-nav-toggle { justify-self: center; }

.destination-subnav {
  display: grid;
  gap: 2px;
  margin: -2px 0 6px 32px;
  padding-left: 12px;
  border-left: 2px solid rgba(0, 104, 71, 0.14);
}

.destination-subnav a {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 7px;
  color: var(--muted);
  padding: 0 9px;
  font-size: 11.5px;
  font-weight: 520;
}

.destination-subnav a::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: inline-block;
  background: currentColor;
  opacity: .86;
  mask: radial-gradient(circle at 50% 50%, #000 36%, transparent 38%);
}

.destination-subnav a[data-subicon="globe"]::before { mask: radial-gradient(circle at 50% 50%, transparent 42%, #000 44% 58%, transparent 60%), linear-gradient(#000 0 0); }
.destination-subnav a[data-subicon="tag"]::before { mask: polygon(12% 12%, 70% 12%, 92% 34%, 34% 92%, 12% 70%); }
.destination-subnav a[data-subicon="chat"]::before { mask: polygon(8% 14%, 92% 14%, 92% 70%, 58% 70%, 42% 90%, 42% 70%, 8% 70%); }
.destination-subnav a[data-subicon="alert"]::before { mask: polygon(50% 6%, 94% 88%, 6% 88%); }

.destination-subnav a.active,
.destination-subnav a:hover {
  background: rgba(193, 18, 31, 0.06);
  color: #c1121f;
}

.sidebar-collapsed .destination-subnav {
  display: none;
}

.main-area {
  min-width: 0;
  display: grid;
  grid-template-rows: 64px 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(0,104,71,0.12);
  background: rgba(255,255,255,0.96);
  padding: 0 24px;
  backdrop-filter: blur(10px);
}

.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; }
.icon-button, .ghost-button, .primary-button {
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 600;
}
.icon-button { width: 36px; padding: 0; font-size: 18px; }
.primary-button { border-color: var(--red); background: var(--red); color: var(--white); }
.ghost-button.active { border-color: var(--red); color: var(--red); background: rgba(206,17,38,0.06); }

.profile-chip {
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(206,17,38,0.35);
  border-radius: 12px;
  background: var(--white);
  color: var(--red);
  padding: 5px 10px;
  text-align: left;
  font-size: 11px;
}
.profile-chip:hover { background: rgba(206,17,38,0.06); }
.profile-avatar {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(206,17,38,0.08);
}
.profile-avatar svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.profile-copy strong { font-size: 12.5px; font-weight: 600; }
.profile-copy span { color: var(--muted); }
.profile-caret { color: var(--red); font-size: 14px; line-height: 1; }

.content {
  min-width: 0;
  padding: 22px 24px 30px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.page-head h1 { margin: 0; font-size: 24px; line-height: 1.15; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.stat-card, .panel-card, .tour-card, .detail-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(16,24,40,0.04);
}
.stat-card { padding: 14px; }
.stat-card span { color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; margin-top: 6px; font-size: 22px; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}
.panel-card { padding: 16px; }
.panel-card h2 { margin: 0 0 12px; font-size: 16px; }
.task-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.task-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #eef2f5;
  padding-bottom: 8px;
  color: var(--text);
  font-size: 12px;
}
.task-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  padding: 8px 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}
.tab.active { background: var(--red); border-color: var(--red); color: var(--white); }
.tab-count {
  min-width: 24px;
  border-radius: 999px;
  background: #eef2f5;
  color: var(--text);
  padding: 2px 7px;
  text-align: center;
  font-size: 10px;
  line-height: 1.2;
}
.tab.active .tab-count { background: rgba(255,255,255,0.2); color: var(--white); }

.filters {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(118px, 1fr)) auto;
  gap: 8px;
  margin-bottom: 14px;
}
.filters input, .filters select, .filter-clear {
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 0 10px;
  color: var(--text);
  font-size: 12px;
}
.filter-clear {
  min-width: 132px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.tour-card {
  display: flex;
  min-height: 100%;
  overflow: visible;
  flex-direction: column;
}
.tour-media {
  height: 166px;
  overflow: visible;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, #dfeff8, #f8efe4);
  position: relative;
}
.tour-media img { width: 100%; height: 100%; border-radius: 8px 8px 0 0; object-fit: cover; display: block; }
.tour-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(17,24,39,0.05), rgba(17,24,39,0.22));
  pointer-events: none;
}
.tour-card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  gap: 6px;
  align-items: center;
}
.badges {
  position: absolute;
  left: 8px;
  top: 8px;
  right: 116px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  z-index: 2;
}
.badge {
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--green);
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 800;
}
.tour-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px;
}
.tour-title {
  display: inline-block;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 850;
  line-height: 1.25;
}
.tour-title:hover { color: var(--red); }
.tour-code {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.8px;
  font-weight: 700;
}
.copy-code {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid rgba(0,104,71,0.16);
  background: var(--green-soft);
  color: var(--green);
  border-radius: 7px;
  padding: 0;
  font-size: 13px;
  line-height: 1;
}
.tour-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 11px 0;
  color: var(--text);
  font-size: 11.4px;
  line-height: 1.35;
}
.supplier-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border-radius: 8px;
  background: #f8fafb;
  padding: 8px 9px;
  color: var(--text);
  font-size: 11.2px;
}
.supplier-line span { color: var(--muted); font-size: 10px; }
.supplier-line strong { color: var(--green); font-size: 11.5px; text-align: right; }
.tour-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid #eef2f5;
  padding-top: 10px;
}
.tour-price strong { color: #0f6b4f; font-size: 17px; letter-spacing: 0; }
.tour-price small { color: var(--muted); font-size: 10.5px; text-align: right; }
.card-actions { display: flex; gap: 6px; }
.mini-action {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-weight: 850;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.detail-photo { height: 260px; overflow: hidden; border-radius: 8px; background: #dfeff8; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-card { padding: 18px; position: relative; }
.detail-card h1 { margin: 8px 0 8px; font-size: 25px; }
.detail-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 16px;
}
.detail-main p {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}
.detail-side {
  display: grid;
  align-content: space-between;
  gap: 12px;
}
.detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.icon-action {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
  box-shadow: 0 8px 22px rgba(16,24,40,0.12);
}
.icon-action:hover { border-color: rgba(193,18,31,0.35); color: var(--red); }
.pdf-action img { width: 20px; height: 20px; display: block; }
.action-menu { position: relative; }
.action-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 9999;
  display: none;
  width: min(246px, calc(100vw - 48px));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.action-dropdown.open { display: grid; }
.action-dropdown button {
  min-height: 34px;
  border: 0;
  border-bottom: 1px solid #eef2f5;
  background: var(--white);
  color: var(--text);
  padding: 0 11px;
  text-align: left;
  font-size: 11.8px;
  font-weight: 750;
}
.action-dropdown button:last-child { border-bottom: 0; }
.action-dropdown button:hover { background: rgba(206,17,38,0.06); color: var(--red); }
.detail-price {
  border: 1px solid rgba(0,104,71,0.18);
  border-radius: 8px;
  background: var(--green-soft);
  padding: 12px;
  text-align: right;
}
.detail-price span,
.detail-price small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.detail-price strong {
  display: block;
  color: #0f6b4f;
  font-size: 22px;
  margin: 3px 0;
}
.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  grid-column: 1 / -1;
}
.detail-meta div { border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.detail-meta span { display: block; color: var(--muted); font-size: 10px; }
.detail-meta strong { display: block; margin-top: 3px; font-size: 12px; }

.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.detail-tabs button {
  flex: 1 0 156px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 9px;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}
.detail-tabs button.active { background: var(--green-soft); color: var(--green); border-color: rgba(0,104,71,0.22); }
.tour-tab-panel { display: none; }
.tour-tab-panel.active { display: block; }
.timeline-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.timeline-list div,
.price-grid div,
.service-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 12px;
}
.timeline-list strong,
.service-card h3 {
  display: block;
  margin: 0 0 5px;
  font-size: 13px;
}
.timeline-list p,
.service-card p,
.muted-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.table-like {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.table-like.four-cols { grid-template-columns: 0.75fr 1fr 0.55fr 1.7fr; }
.table-like.similar-tours { grid-template-columns: 0.9fr 1.15fr 0.85fr 1fr; }
.table-like > * {
  min-height: 38px;
  display: flex;
  align-items: center;
  border-right: 1px solid #eef2f5;
  border-bottom: 1px solid #eef2f5;
  padding: 8px 10px;
  color: var(--text);
  font-size: 12px;
}
.table-like strong { background: var(--green-soft); color: var(--green); }
.table-like > *:nth-child(4n) { border-right: 0; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.price-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.price-grid strong {
  display: block;
  margin-top: 6px;
  color: #0f6b4f;
  font-size: 16px;
}
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 12px;
}
.check-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.4;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}
.check-list.excluded li::before { content: "–"; color: var(--red); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.service-card strong {
  display: block;
  margin: 10px 0;
  color: #0f6b4f;
  font-size: 13px;
}
.service-card button,
.action-list button {
  min-height: 32px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}
.action-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.action-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.route-map {
  position: relative;
  min-height: 260px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, #eef8f4, #fff7ed);
  padding: 18px;
}
.route-line {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  align-items: center;
}
.route-stop {
  border: 1px solid rgba(0,104,71,0.24);
  border-radius: 8px;
  background: var(--white);
  padding: 10px;
  text-align: center;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}
.route-stop span {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 6px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  line-height: 24px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.35);
  z-index: 30;
}
.modal-backdrop.open { display: flex; }
.send-modal {
  width: min(520px, calc(100% - 28px));
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 18px;
}
.send-modal h2 { margin: 0 0 12px; font-size: 18px; }
.modal-grid { display: grid; gap: 10px; }
.modal-grid input, .modal-grid select, .modal-grid textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
}
.share-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.share-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.share-options input { width: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

.customer-mode [data-sensitive],
.customer-mode .sensitive-nav,
.customer-mode .action-menu,
.customer-mode .supplier-line,
.customer-mode .copy-code,
.customer-mode .quick-actions,
.customer-mode .catalog-filters,
.customer-mode .catalog-tools,
.customer-mode .tour-card-actions { display: none !important; }
.customer-mode .supplier-link {
  pointer-events: none;
  color: var(--text);
  text-decoration: none;
}
.customer-mode .tour-list {
  --tour-list-columns: minmax(180px, 2fr) minmax(180px, 1.65fr) minmax(58px, .5fr) minmax(150px, 1.35fr) minmax(76px, .65fr) minmax(116px, .9fr);
}
.customer-mode .tour-list .action-col,
.customer-mode .tour-list-cell.action { display: none; }

.catalog-page { padding-top: 20px; }
.catalog-page,
.catalog-filters,
.tour-list,
.action-dropdown {
  background: var(--white);
}
.catalog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.catalog-head > div:first-child { flex: 1; }
.page-title {
  margin: 0;
  color: var(--green);
  font-size: 26px;
  line-height: 1.15;
}
.page-title-line {
  height: 3px;
  width: 100%;
  min-width: 0;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--green);
  opacity: 0.9;
}
.catalog-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-toggle {
  width: 30px;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--green);
  padding: 0;
}
.filter-toggle:hover { color: var(--red); }
.filter-icon { position: relative; width: 19px; height: 19px; display: block; }
.filter-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}
.filter-icon::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 13px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: none;
  transform: rotate(45deg);
  transform-origin: left center;
}
.view-toggle {
  display: inline-grid;
  grid-template-columns: 34px 34px;
  overflow: hidden;
  border: 1px solid rgba(206,17,38,0.24);
  border-radius: 8px;
  background: var(--white);
}
.view-toggle button {
  height: 34px;
  border: 0;
  background: var(--white);
  color: var(--red);
  font-size: 17px;
  font-weight: 700;
}
.view-toggle button.active {
  background: var(--red);
  color: var(--white);
}
.quick-actions { position: relative; }
.quick-action-button {
  border-color: rgba(206,17,38,0.35);
  color: var(--red);
  background: var(--white);
}
.quick-action-button:hover,
.quick-action-button[aria-expanded="true"] {
  background: rgba(206,17,38,0.06);
  border-color: var(--red);
}
.button-caret {
  margin-left: 4px;
  font-size: 13px;
}
.quick-action-dropdown {
  top: calc(100% + 8px);
  left: 0;
  right: auto;
}
.quick-action-dropdown.open { display: grid; }
.profile-menu { position: relative; }
.profile-dropdown {
  top: calc(100% + 8px);
  right: 0;
  width: min(230px, calc(100vw - 48px));
}
.profile-dropdown.open { display: grid; }
.profile-dropdown a,
.action-dropdown a {
  min-height: 36px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eef2f5;
  background: var(--white);
  color: var(--text);
  padding: 0 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 750;
}
.profile-dropdown a:hover,
.action-dropdown a:hover { background: rgba(206,17,38,0.06); color: var(--red); }
.customer-view-toggle {
  border-color: rgba(206,17,38,0.35);
  background: var(--white);
  color: var(--red);
  font-size: 0;
}
.customer-view-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.customer-view-toggle.active {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}
.customer-view-toggle:hover { background: rgba(206,17,38,0.06); }
.customer-view-toggle.active:hover { background: var(--red-dark); }
.catalog-filters {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, minmax(122px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.catalog-filters.is-hidden { display: none; }
.catalog-filters input,
.catalog-filters select,
.catalog-filters .filter-clear {
  height: 38px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  padding: 0 10px;
  font-size: 12px;
}
.catalog-filters .filter-clear {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
  font-weight: 600;
}
.catalog-filters .filter-clear:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
}
.catalog-page .tour-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.catalog-page .tour-card {
  position: relative;
  overflow: visible;
  background: var(--white);
}
.catalog-page .tour-media,
.tour-card-image {
  height: 160px;
  overflow: visible;
  position: relative;
}
.catalog-page .tour-media img,
.tour-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.catalog-page .tour-media::after {
  background: linear-gradient(180deg, rgba(17,24,39,0.02), rgba(17,24,39,0.18));
}
.catalog-page .tour-card-actions {
  top: 8px;
  right: 8px;
  gap: 0;
  z-index: 50;
}
.bare-card-action {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  filter: drop-shadow(0 2px 3px rgba(17,24,39,0.22));
}
.card-icon-img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}
.catalog-page .more-action {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(206,17,38,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #CE1126;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(16,24,40,0.12);
}
.catalog-page .more-action:hover {
  border-color: rgba(206,17,38,0.45);
  background: rgba(206,17,38,0.06);
}
.compact-card-menu {
  width: 218px;
  max-width: min(218px, calc(100vw - 48px));
  padding: 4px 0;
}
.compact-card-menu button { min-height: 31px; font-size: 11.5px; }
.catalog-page .badges {
  top: auto;
  right: 8px;
  bottom: 8px;
}
.catalog-page .badge {
  padding: 3px 7px;
  font-size: 9.5px;
}
.catalog-page .tour-body { padding: 11px; }
.catalog-page .tour-title {
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
}
.catalog-page .tour-title:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.catalog-page .tour-code {
  justify-content: space-between;
  gap: 8px;
}
.catalog-page .copy-code {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  border-color: rgba(0,104,71,0.1);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.catalog-page .copy-code:hover {
  background: rgba(206,17,38,0.06);
  color: var(--red);
}
.supplier-code-line {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10.8px;
  font-weight: 400;
}
.supplier-code-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.supplier-link {
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 500;
}
.supplier-link:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.route-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  color: var(--text);
  font-size: 11.5px;
  line-height: 1.35;
}
.route-links > span:first-child { color: var(--muted); font-size: 10.5px; font-weight: 500; }
.route-links a { color: var(--green); font-weight: 400; }
.route-links a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.route-separator { color: var(--border); }
.tour-info-row { margin-top: 8px; color: var(--text); font-size: 11.4px; }
.tour-bottom {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 10px;
  align-items: end;
  margin-top: auto;
  border-top: 1px solid #eef2f5;
  padding-top: 10px;
}
.tour-duration span,
.tour-duration strong { display: block; }
.tour-duration span { color: var(--muted); font-size: 10.5px; font-weight: 500; }
.tour-duration strong { color: var(--ink); font-size: 15px; font-weight: 600; }
.catalog-page .tour-meta {
  grid-template-columns: 1fr;
  gap: 4px;
  margin: 10px 0;
}
.catalog-page .supplier-line {
  padding: 0;
  background: transparent;
  color: var(--muted);
}
.catalog-page .supplier-line strong {
  color: var(--green);
  font-size: 11.5px;
}
.catalog-page .tour-price {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 2px;
}
.catalog-page .tour-price strong {
  color: #0f6b4f;
  font-size: 17px;
  font-weight: 600;
}
.catalog-page .tour-price small {
  text-align: left;
}
.tour-grid.is-hidden { display: none; }
.tour-list-head { display: none; }
.tour-list {
  --tour-list-columns: minmax(180px, 2fr) minmax(180px, 1.65fr) minmax(58px, .5fr) minmax(150px, 1.35fr) minmax(76px, .65fr) minmax(116px, .9fr) 48px;
  display: none;
  overflow: visible;
  border: 1px solid rgba(0,104,71,0.18);
  border-radius: 8px;
  background: var(--white);
}
.tour-list.active {
  display: block;
}
.tour-list-header,
.tour-list-row {
  display: grid;
  grid-template-columns: var(--tour-list-columns);
  align-items: center;
  column-gap: 10px;
}
.tour-list-header {
  min-height: 38px;
  border-bottom: 1px solid rgba(0,104,71,0.28);
  background: rgba(0,104,71,0.06);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
}
.tour-list-header span,
.tour-list-cell {
  min-width: 0;
  padding: 7px 10px;
}
.tour-list-row {
  min-height: 44px;
  position: relative;
  overflow: visible;
  border-bottom: 1px solid rgba(0,104,71,0.16);
  background: var(--white);
}
.tour-list-row:last-child { border-bottom: 0; }
.tour-list-row:nth-child(even) { background: var(--white); }
.tour-list-cell {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text);
}
.tour-list-cell.program a {
  color: var(--ink);
  font-weight: 500;
}
.tour-list-cell.program a:hover,
.tour-list-cell.route a:hover,
.tour-list-cell.supplier-code a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tour-list-cell.supplier-code {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  color: var(--muted);
}
.tour-list-cell.supplier-code .supplier-link {
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 500;
}
.supplier-code-separator { flex: 0 0 auto; color: var(--muted); }
.tour-list-code {
  min-width: 0;
  font-size: 11px;
  font-weight: 400;
  color: #526174;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tour-list-cell.duration,
.tour-list-cell.capacity {
  font-weight: 400;
  white-space: nowrap;
}
.tour-list-cell.route {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.tour-list-cell.route a {
  color: var(--green);
  font-weight: 400;
}
.tour-list-cell.price strong {
  display: block;
  color: #0f6b4f;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.tour-list-cell.price small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.2;
}
.tour-list-cell.action {
  display: flex;
  justify-content: center;
  overflow: visible;
  position: relative;
}
.tour-list-cell.action .action-menu {
  position: relative;
}
.tour-list-cell.action .more-action {
  width: 24px;
  height: 24px;
  border-color: rgba(206,17,38,0.22);
  background: #fff;
  color: #CE1126;
  font-size: 13px;
  box-shadow: none;
}
.tour-list-cell.action .action-dropdown {
  top: calc(100% + 6px);
  right: 0;
}
.tour-list-cell.supplier-code .copy-code {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-left: 2px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 11px;
  opacity: 0.65;
}
.tour-list-cell.supplier-code .copy-code:hover {
  opacity: 1;
  background: transparent;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-size: 12px;
}
.pagination-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pagination button {
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 750;
}
.pagination button.active {
  border-color: #CE1126;
  background: #CE1126;
  color: var(--white);
}
.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.empty-state {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1279px) {
  .tour-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-page .tour-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-title-line { width: 100%; }
}

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-summary { grid-template-columns: 1fr; }
  .detail-side { align-content: start; }
  .detail-actions, .detail-price { justify-content: flex-start; text-align: left; }
  .timeline-list, .service-grid, .price-grid, .two-column { grid-template-columns: 1fr; }
  .route-line { grid-template-columns: repeat(3, 1fr); }
  .tour-list {
    --tour-list-columns: minmax(150px, 1.45fr) minmax(142px, 1.15fr) minmax(52px, .45fr) minmax(130px, 1.05fr) minmax(70px, .55fr) minmax(104px, .75fr) 42px;
  }
  .customer-mode .tour-list {
    --tour-list-columns: minmax(150px, 1.45fr) minmax(142px, 1.15fr) minmax(52px, .45fr) minmax(130px, 1.05fr) minmax(70px, .55fr) minmax(104px, .75fr);
  }
}

@media (max-width: 1023px) {
  .tour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-page .tour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-title-line { width: 100%; }
}

@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-100%);
    width: 252px;
    transition: transform 0.2s ease;
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-area { grid-template-rows: auto 1fr; }
  .topbar { min-height: 60px; padding: 10px 14px; flex-wrap: wrap; }
  .content { padding: 16px 14px 24px; }
  .stats-grid, .dashboard-grid, .filters, .detail-meta { grid-template-columns: 1fr; }
  .catalog-head { align-items: stretch; flex-direction: column; }
  .catalog-tools { justify-content: space-between; }
  .page-title-line { width: 100%; min-width: 0; }
  .catalog-filters { grid-template-columns: 1fr; }
  .tour-list {
    overflow-x: auto;
    --tour-list-columns: 170px 165px 68px 150px 92px 112px 42px;
  }
  .customer-mode .tour-list {
    --tour-list-columns: 170px 165px 68px 150px 92px 112px;
  }
  .detail-tabs button { flex-basis: 100%; }
  .route-line { grid-template-columns: 1fr; }
  .table-like.four-cols { grid-template-columns: 1fr; }
  .table-like.similar-tours { grid-template-columns: 1fr; }
  .table-like > * { border-right: 0; }
  .profile-chip { display: none; }
}

@media (max-width: 640px) {
  .tour-grid { grid-template-columns: 1fr; }
  .badges { right: 10px; top: 52px; }
  .share-options { grid-template-columns: 1fr; }
}

/* v45.15C Keşfet sidebar cleanup */
.app-shell {
  transition: grid-template-columns .18s ease;
}

.topbar-left {
  min-width: 0;
}

.quick-actions {
  position: relative;
}

.quick-action-button {
  white-space: nowrap;
}

.topbar-menu-toggle:hover {
  border-color: rgba(193,18,31,.45);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(193,18,31,.06);
}

.explore-nav-group {
  min-width: 0;
}

.explore-subnav {
  border-left-color: rgba(193,18,31,.2);
}

.explore-subnav a {
  position: relative;
  background: #fff;
}

.explore-subnav a.active,
.explore-subnav a:hover {
  background: #fff;
  color: #c1121f;
}

.explore-subnav a.active::before,
.explore-subnav a:hover::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 999px;
  background: #c1121f;
}

.sidebar-collapsed .sidebar {
  grid-template-rows: 72px 1fr;
}

.sidebar-collapsed .side-nav {
  padding-inline: 10px;
  overflow-x: hidden;
}

.sidebar-collapsed .sidebar-brand {
  min-height: 72px;
  padding: 8px;
}

.sidebar-collapsed .sidebar-brand img {
  width: 44px;
  height: 44px;
}

.sidebar-collapsed .brand-copy,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .sidebar-footer,
.sidebar-collapsed .explore-subnav,
.sidebar-collapsed .destination-subnav {
  display: none !important;
}

.sidebar-collapsed .nav-home-row {
  display: block;
}

.sidebar-collapsed .nav-home-row .nav-item {
  display: flex;
}

.sidebar-collapsed .nav-item {
  width: 48px;
  min-height: 42px;
  justify-content: center;
  gap: 0;
  padding: 0;
  margin-inline: auto;
  border-radius: 10px;
}

.sidebar-collapsed .nav-item.active,
.sidebar-collapsed .nav-item:hover {
  background: #fff;
  color: #c1121f;
  box-shadow: inset 0 0 0 1px rgba(193,18,31,.16);
}

.sidebar-collapsed .nav-item.active::before {
  left: 5px;
  top: 9px;
  bottom: 9px;
  background: #c1121f;
}

.sidebar-collapsed .nav-item .icon {
  color: inherit;
}

.sidebar-collapsed .explore-nav-group {
  display: flex;
  justify-content: center;
}

.sidebar-collapsed .explore-nav-group .nav-item {
  margin: 0 auto;
}

.sidebar-collapsed .nav-item[title]:hover::after {
  content: attr(title);
  position: fixed;
  left: 76px;
  z-index: 50;
  min-width: max-content;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(17,24,39,.16);
}

@media (max-width: 760px) {
  .app-shell,
  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    top: 0;
    bottom: 0;
    height: 100vh;
  }

  .app-shell.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
  }
}

/* v45.16C compact sidebar and topbar */
@media (min-width: 761px) {
  .app-shell {
    grid-template-columns: 224px 1fr;
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: 72px 1fr;
  }

  .sidebar {
    grid-template-rows: 64px 1fr;
  }

  .sidebar-brand {
    min-height: 64px;
    padding: 8px 14px;
  }

  .sidebar-brand img {
    width: 48px;
    height: 48px;
  }

  .brand-copy strong {
    font-size: 15px;
    font-weight: 720;
  }

  .side-nav {
    padding: 10px;
  }

  .nav-item {
    min-height: 36px;
    font-size: 12px;
  }

  .explore-subnav {
    margin-left: 28px;
    padding-left: 10px;
  }
}

.utility-icon-button {
  position: relative;
}

.utility-icon-button svg,
.language-pill svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-button span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #c1121f;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
}

.language-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 650;
}

.language-pill b {
  color: #c1121f;
  font-size: 12px;
  line-height: 1;
}

.clean-profile-chip,
.profile-chip.clean-profile-chip {
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 4px 2px 4px 6px;
  box-shadow: none;
}

.clean-profile-chip:hover,
.profile-chip.clean-profile-chip:hover {
  background: #fff;
}

.clean-profile-chip .profile-avatar {
  background: rgba(193,18,31,.08);
  color: #c1121f;
}

.clean-profile-chip .profile-copy strong {
  color: var(--ink);
}

.clean-profile-chip .profile-caret {
  color: #c1121f;
}
