/* Shared chrome — loaded for all public themes (Bootstrap + shell) */

.container-tb {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
  box-sizing: border-box;
}

.tb-header .navbar {
  --bs-navbar-padding-x: 0;
  --bs-navbar-padding-y: 0;
  padding-block: 0.75rem;
}

.tb-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  width: 100%;
  max-width: inherit;
}

.tb-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
}

.tb-header .navbar-toggler {
  margin-left: auto;
}

.tb-header .navbar-collapse {
  flex-grow: 1;
  justify-content: flex-end;
}

/* Mobile: full-width panel below brand + toggler (not beside logo) */
@media (max-width: 991.98px) {
  .tb-header .navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    width: 100%;
    max-width: 100%;
    order: 3;
    align-items: stretch;
    padding-top: 0.85rem;
    margin-top: 0.15rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .tb-header .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    gap: 0;
  }

  .tb-header .navbar-nav .nav-link {
    padding: 0.65rem 0.15rem !important;
  }

  .tb-header .navbar-collapse > .d-flex {
    width: 100%;
    margin-left: 0 !important;
    padding-bottom: 0.35rem;
  }

  .tb-header .tb-nav-dropdown .dropdown-menu {
    position: static !important;
    transform: none !important;
    float: none;
    width: 100%;
    margin: 0;
  }
}

@media (min-width: 992px) {
  .tb-header .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 1;
    width: auto;
    order: initial;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
  }

  .tb-header .navbar-nav {
    margin-left: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }
}

.tb-header .nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.7rem !important;
  text-decoration: none;
}

.tb-nav-dropdown .dropdown-toggle::after {
  margin-left: 0.35em;
  vertical-align: 0.15em;
}

/* Category mega dropdown — Bootstrap shell + custom body */
.tb-cat-dropdown.dropdown-menu {
  min-width: min(360px, calc(100vw - 2rem));
  max-width: 420px;
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 0.65rem 0.5rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1rem 2.5rem rgba(27, 36, 48, 0.16);
}

.tb-cat-menu {
  margin: 0;
}

.tb-cat-menu-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  margin: 0 0.25rem 0.45rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  color: inherit;
  background: rgba(30, 136, 201, 0.1);
}

.tb-cat-menu-all:hover {
  background: rgba(30, 136, 201, 0.18);
  text-decoration: none !important;
}

.tb-cat-empty {
  margin: 0.5rem 0.75rem;
  color: #6c757d;
  font-size: 0.9rem;
}

.tb-cat-tree,
.tb-cat-sub {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.tb-cat-tree > li,
.tb-cat-sub > li {
  list-style: none !important;
}

.tb-cat-node { position: relative; }

.tb-cat-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  text-decoration: none !important;
  color: inherit;
  font-weight: 600;
  font-size: 0.9rem;
}

.tb-cat-link:hover {
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none !important;
}

.tb-cat-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eef1f4;
}

.tb-cat-thumb--ph {
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 400;
  color: #1e88c9;
  background: #eaf4fb;
}
.tb-cat-thumb--ph i { font-size: inherit; line-height: 1; }
.tb-cat-node.depth-1 .tb-cat-thumb--ph,
.tb-cat-node.depth-2 .tb-cat-thumb--ph { font-size: 0.85rem; }

.tb-cat-name { flex: 1; min-width: 0; }
.tb-cat-chevron { display: none; }

.tb-cat-sub {
  padding-left: 0.85rem;
  margin: 0.1rem 0 0.25rem 1.15rem;
  border-left: 2px solid #e8eaed;
}

.tb-cat-node.depth-1 .tb-cat-link,
.tb-cat-node.depth-2 .tb-cat-link {
  font-weight: 500;
  font-size: 0.86rem;
}

.tb-cat-node.depth-1 .tb-cat-thumb,
.tb-cat-node.depth-2 .tb-cat-thumb {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

@media (max-width: 991px) {
  .tb-cat-dropdown.dropdown-menu {
    max-width: none;
    width: 100%;
    box-shadow: none;
    border: 0;
    position: static !important;
    transform: none !important;
  }
}

.hub-cat-img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.hub-cat-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.hub-cat-block {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 1rem 1.1rem 0.85rem;
}

.hub-cat-block-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.65rem;
}

.hub-cat-block-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.hub-cat-block-head p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: #6c757d;
}

.hub-cat-block-img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.hub-cat-block-ph {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eaf4fb;
  color: #1e88c9;
  font-weight: 400;
  font-size: 1.55rem;
  flex-shrink: 0;
}
.hub-cat-block-ph i { font-size: inherit; line-height: 1; }

.hub-cat-child-list {
  list-style: none !important;
  margin: 0;
  padding: 0.35rem 0 0 0.35rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.hub-cat-child-list .hub-cat-child-list {
  margin-left: 1rem;
  border-top: 0;
  border-left: 2px solid #e8eaed;
  padding-left: 0.65rem;
}

.hub-cat-child-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.25rem;
  text-decoration: none !important;
  color: inherit;
  border-radius: 8px;
}

.hub-cat-child-link:hover { background: rgba(0, 0, 0, 0.04); }

.hub-cat-child-link img,
.hub-cat-child-ph {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.hub-cat-child-ph {
  display: inline-grid;
  place-items: center;
  background: #eef1f4;
  color: #1e88c9;
  font-size: 1.1rem;
  font-weight: 400;
}
.hub-cat-child-ph i { font-size: inherit; line-height: 1; }

.hub-cat-child-link strong { display: block; font-size: 0.9rem; }
.hub-cat-child-link small { color: #6c757d; font-size: 0.75rem; }

/* Homepage search mode (İlanlar / Firma rehberi) */
.search-mode {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.15rem;
  background: #f1f3f5;
  border-radius: 999px;
  width: fit-content;
}
.search-mode-opt {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}
.search-mode-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.search-mode-opt span {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5c6770;
}
.search-mode-opt input:checked + span {
  background: #fff;
  color: #1b2430;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.search-hint {
  margin: 0;
  font-size: 0.78rem;
  color: #6c757d;
  padding: 0 0.35rem 0.15rem;
}
.rehber-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 1rem;
  justify-content: center;
}
.rehber-quicklinks a {
  color: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.9;
  border-bottom: 1px solid transparent;
}
.rehber-quicklinks a:hover {
  opacity: 1;
  border-bottom-color: currentColor;
}
.hero-quicklinks { color: rgba(255, 255, 255, 0.92); }
.cp-rehber-links { color: inherit; justify-content: flex-start; }

/* /rehber directory */
.rehber-hero {
  background:
    linear-gradient(120deg, rgba(27, 36, 48, 0.94) 0%, rgba(27, 36, 48, 0.75) 55%, rgba(255, 90, 0, 0.42) 100%),
    linear-gradient(160deg, #1b2430 0%, #2c3a4e 100%);
  color: #fff;
  padding: 2.75rem 0 2.5rem;
}
.rehber-hero-inner,
.rehber-results-inner {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}
.rehber-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
.rehber-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}
.rehber-lead {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  opacity: 0.92;
}
.rehber-search {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 0.5rem;
  background: #fff;
  color: #1b2430;
  border-radius: 12px;
  padding: 0.65rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}
.rehber-search .field {
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0.65rem;
  min-width: 0;
}
.rehber-search label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  margin-bottom: 0.1rem;
}
.rehber-search .form-control,
.rehber-search .form-select {
  border: 0;
  padding: 0.15rem 0;
  font-weight: 600;
  box-shadow: none !important;
  background: transparent;
}
.rehber-search .btn-search {
  border: 0;
  border-radius: 10px;
  background: #ff5a00;
  color: #fff;
  font-weight: 800;
  padding: 0 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.rehber-search .btn-search:hover { background: #e04e00; }
.rehber-results { padding: 2.5rem 0 3.5rem; }
.rehber-meta h2 { font-size: 1.25rem; margin: 0 0 0.25rem; }
.rehber-meta p { color: #6c757d; margin: 0 0 1.25rem; }
.rehber-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.rehber-card {
  border: 1px solid #e6e9ee;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rehber-card-main {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1rem 0.5rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
}
.rehber-card-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #f1f3f5;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  font-weight: 800;
  color: #6c757d;
}
.rehber-card-logo--light {
  background: #1a2332;
}
.rehber-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.rehber-card-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 750;
}
.rehber-card-city {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: #6c757d;
}
.rehber-card-activities {
  margin: 0 0 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.rehber-activity-chip {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 650;
  color: #0f766e;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
}
.rehber-card-summary {
  margin: 0;
  font-size: 0.9rem;
  color: #445;
  line-height: 1.45;
}
.rehber-card-stats {
  margin: 0.5rem 0 0;
  display: flex;
  gap: 0.65rem;
  font-size: 0.78rem;
  color: #6c757d;
}
.rehber-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid #f0f2f5;
  margin-top: auto;
}
.rehber-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #6c757d;
}
.rehber-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}
.rehber-pager a {
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 767px) {
  .rehber-search { grid-template-columns: 1fr; }
  .rehber-search .btn-search {
    width: 100%;
    justify-content: center;
    padding: 0.85rem;
  }
}
