
.tour-section-nav {
  max-width: 1200px;
  margin: 0 auto 6px;
  padding: 0 20px;
}

.tour-section-nav__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(10, 20, 32, 0.9), rgba(8, 16, 28, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

body[data-theme='light'] .tour-section-nav__inner {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(240, 244, 248, 0.9));
  border-color: rgba(15, 27, 45, 0.12);
  box-shadow: 0 18px 40px rgba(15, 27, 45, 0.1);
}

.breadcrumbs {
  max-width: 1200px;
  margin: 8px auto 0;
  margin-bottom: 0;
  padding: 0 20px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.breadcrumbs+* {
  margin-top: 8px;
}

.breadcrumbs+.hero {
  margin-top: 0;
  padding-top: 8px;
}

@media (min-width: 821px) {
  .breadcrumbs+.tour-detail {
    margin-top: 0;
  }

  .breadcrumbs+.tour-detail .hero {
    padding-top: 8px;
  }
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li+li::before {
  content: "/";
  color: rgba(255, 255, 255, 0.35);
}

body[data-theme='light'] .breadcrumbs li+li::before {
  color: rgba(15, 27, 45, 0.3);
}

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

.breadcrumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}

@media (max-width: 820px) {
  .breadcrumbs ol {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .breadcrumbs li {
    flex: 0 0 auto;
  }

  .breadcrumbs li:last-child {
    min-width: 0;
    flex: 1 1 auto;
  }

  .breadcrumb-current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.tour-section-nav__label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.tour-section-nav__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tour-section-nav__items a {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body[data-theme='light'] .tour-section-nav__items a {
  background: rgba(15, 27, 45, 0.04);
  border-color: rgba(15, 27, 45, 0.12);
  color: #1a2b3c;
}

.tour-section-nav__icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.tour-section-nav__icon svg {
  width: 16px;
  height: 16px;
}

.tour-section-nav__items a:hover {
  text-decoration: none;
  background: linear-gradient(120deg, rgba(139, 229, 100, 0.18), rgba(74, 176, 255, 0.18));
  border-color: rgba(74, 176, 255, 0.5);
  transform: translateY(-1px);
}

.tour-section-nav__items a:hover .tour-section-nav__icon {
  color: var(--accent-2);
}

body[data-theme='light'] .tour-section-nav__items a:hover {
  background: linear-gradient(120deg, rgba(91, 191, 106, 0.2), rgba(46, 125, 220, 0.16));
  border-color: rgba(46, 125, 220, 0.35);
}

.tour-section-nav__items a:focus-visible {
  outline: 2px solid rgba(74, 176, 255, 0.7);
  outline-offset: 2px;
}

.tour-section {
  scroll-margin-top: 110px;
}

.form-section-nav {
  max-width: 1200px;
  margin: 0 auto 18px;
  padding: 0 20px;
  position: sticky;
  top: 64px;
  z-index: 22;
}

.form-section-nav__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(5, 11, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.form-section-nav__label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.form-section-nav__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.form-section-nav__items a {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.form-section-nav__items a:hover {
  text-decoration: none;
  background: linear-gradient(120deg, rgba(139, 229, 100, 0.18), rgba(74, 176, 255, 0.18));
  border-color: rgba(74, 176, 255, 0.5);
  transform: translateY(-1px);
}

.form-section-nav__items a:focus-visible {
  outline: 2px solid rgba(74, 176, 255, 0.7);
  outline-offset: 2px;
}

.form-section {
  scroll-margin-top: 140px;
}

@media (max-width: 820px) {
  .form-section-nav {
    padding: 0 12px;
  }

  .form-section-nav__label {
    display: none;
  }

  .form-section-nav__items {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .form-section-nav__items::-webkit-scrollbar {
    height: 0;
  }

  .form-section-nav__items a {
    white-space: nowrap;
  }
}

.hero-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-meta-text {
  margin: 0;
  color: var(--muted);
}

.tours-filter {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.tours-filter__form {
  display: grid;
  gap: 12px;
}

.hero-search-bar__field--city {
  position: relative;
  flex: 0.8;
}

.guide-card .guide-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.guide-card .guide-title {
  flex: 1 1 260px;
  min-width: 0;
}

.guide-card .guide-avatar {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-card .guide-avatar img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.guide-card .guide-bio {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .guide-card .guide-avatar {
    margin-left: 0;
  }
}

@media (max-width: 820px) {
  .tour-section-nav {
    position: sticky;
    top: 64px;
    z-index: 18;
    width: 100vw;
    margin: 0 0 18px;
    padding: 8px 0;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: rgba(5, 11, 19, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .tour-section-nav__inner {
    padding: 0 12px;
    border-radius: 0;
    width: 100%;
    border: none;
    box-shadow: none;
    background: none;
  }

  .tour-section-nav__label {
    display: none;
  }

  .tour-section-nav__items {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tour-section-nav__items::-webkit-scrollbar {
    height: 0;
  }

  .tour-section-nav__items a {
    white-space: nowrap;
  }

  .tour-section {
    scroll-margin-top: 140px;
  }
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-header.admin-header-tours {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.admin-header.admin-header-tours .admin-header-left {
  grid-column: 1;
  justify-self: start;
}

.admin-header.admin-header-tours .admin-header-center {
  grid-column: 2;
  justify-self: center;
}

.admin-header.admin-header-tours .admin-header-right {
  grid-column: 3;
  justify-self: end;
}

.admin-header.admin-header-tours .meta-row {
  margin-top: 0;
}

.admin-tours-filter {
  flex-wrap: nowrap;
  align-items: center;
}

.admin-tours-filter select.input {
  width: auto;
  min-width: 220px;
}

.admin-tours-filter .button,
.admin-tours-filter .ghost {
  white-space: nowrap;
}

@media (max-width: 820px) {
  .admin-header.admin-header-tours {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .admin-header.admin-header-tours .admin-header-left,
  .admin-header.admin-header-tours .admin-header-center,
  .admin-header.admin-header-tours .admin-header-right {
    grid-column: 1;
    justify-self: start;
  }

  .admin-tours-filter {
    flex-wrap: wrap;
  }

  .admin-tours-filter select.input {
    width: 100%;
    min-width: 0;
  }
}

.add-bird-btn {
  margin-left: auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(74, 176, 255, 0.16), rgba(74, 176, 255, 0.06));
  border: 1px solid rgba(74, 176, 255, 0.45);
  color: #d8eaff;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 120ms ease, box-shadow 120ms ease, background 150ms ease, border-color 150ms ease;
}

.add-bird-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(120deg, rgba(74, 176, 255, 0.24), rgba(74, 176, 255, 0.1));
  border-color: rgba(74, 176, 255, 0.65);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.add-bird-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.search-form {
  display: grid;
  gap: 12px;
}

.input,
select.input,
textarea.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  appearance: none;
}

body[data-theme='light'] .input,
body[data-theme='light'] select.input,
body[data-theme='light'] textarea.input {
  background: #ffffff;
  border-color: rgba(15, 27, 45, 0.15);
  color: var(--text);
}

body[data-theme='light'] .input::placeholder,
body[data-theme='light'] textarea.input::placeholder {
  color: rgba(15, 27, 45, 0.45);
}

select.input option {
  background: #0b1623;
  color: var(--text);
}

textarea.input {
  min-height: 80px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.stack {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
  display: grid;
  gap: 16px;
}

.card-body {
  gap: 12px;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: flex-start;
}

.form-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.form-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid.compact {
  gap: 8px;
}

.wide {
  grid-column: 1 / -1;
}

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

.inline-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.checkbox-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 10px;
}

.repeater {
  display: grid;
  gap: 10px;
}

.repeater-body {
  display: grid;
  gap: 10px;
}

.align-end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.form-row {
  display: grid;
  gap: 10px;
}

.alert-error {
  background: rgba(255, 124, 124, 0.08);
  border: 1px solid rgba(255, 124, 124, 0.3);
  color: #ffb6b6;
  padding: 10px 12px;
  border-radius: 10px;
}

button.primary {
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #031522;
  font-weight: 800;
  cursor: pointer;
}

.danger-link {
  background: none;
  border: none;
  color: #ff7b7b;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.danger-link:hover {
  color: #ff9f9f;
  text-decoration: underline;
}

.danger-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: none;
}
