/* ── Reset & Font ─────────────────────────────────────── */
.tb-header-wrap *, .tb-header-wrap *::before, .tb-header-wrap *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
.tb-header-wrap {
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  position: relative; z-index: 1000;
  width: 100% !important; max-width: none !important;
}

/* ── Inner container ──────────────────────────────────── */
.tb-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; width: 100%;
}

/* ── Pre-header bar ───────────────────────────────────── */
.tb-prebar {
  width: 100%; background: #f6f7f8;
  height: 42px; border-bottom: 1px solid #e8eaed;
}
.tb-prebar .tb-inner {
  justify-content: space-between; height: 100%;
  font-size: 11px; color: #555;
}
.tb-prebar__license { font-size: 11px; color: #555; white-space: nowrap; }
.tb-prebar__right { display: flex; align-items: center; gap: 6px; }
.tb-btn {
  border: 1px solid #cfd4da; border-radius: 4px;
  background: white; color: #3f536c;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; font-size: 12px;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s; white-space: nowrap;
  font-family: inherit;
}
.tb-btn:hover { background: #f0f2f5; }
.tb-btn--accent {
  color: #007bff !important;
  font-weight: 600;
  background: #e7f1ff;
  border-color: rgba(0, 123, 255, 0.25);
}
.tb-btn--accent:hover {
  background: #007bff;
  border-color: #007bff;
  color: #ffffff !important;
}
.tb-login-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.tb-btn svg { flex-shrink: 0; width: 14px; height: 14px; }

/* ── Main Navbar ──────────────────────────────────────── */
.tb-navbar {
  width: 100%; background: white;
  height: 77px; position: relative; overflow: visible;
}
.tb-navbar .tb-inner {
  height: 100%;
  justify-content: flex-start;
  gap: 12px;
}
.tb-navbar__logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  /* margin only — transform creates a containing block and breaks full-width mega menus */
  margin-left: var(--hag-logo-offset, 0px);
}
.tb-navbar__logo img { display: block; }
.tb-nav-align--start .tb-nav { margin-left: var(--hag-nav-offset, 0px); margin-right: 0; }
.tb-nav-align--center .tb-nav { margin-left: auto; margin-right: auto; }
.tb-nav-align--end .tb-nav { margin-left: auto; margin-right: 0; }

/* ── Desktop Nav Menu ─────────────────────────────────── */
.tb-nav {
  display: flex; list-style: none; gap: 2px; align-items: center;
  height: 100%; margin: 0 0 0 var(--hag-nav-offset, 0px); padding: 0; overflow: visible;
}
.tb-nav__item {
  height: 100%; display: flex; align-items: center; position: static !important;
}
.tb-nav__link {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; color: #3f536c;
  text-decoration: none; font-size: 14px; font-weight: 500;
  height: 100%; transition: color 0.15s;
  white-space: nowrap; cursor: pointer;
}
.tb-nav__link:hover { color: #007bff; }
.tb-nav__link--active { color: #007bff; }
.tb-nav__link--active .tb-nav__chevron { transform: rotate(180deg); }
.tb-nav__chevron {
  width: 12px; height: 12px; transition: transform 0.2s;
  pointer-events: none; flex-shrink: 0;
}
.tb-nav__item--logo .tb-nav__link { padding: 6px 14px; }

/* ── Mega Menu (TatilBudur-style flyout) ─────────────── */
.tb-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  z-index: 9999;
  border-top: 1px solid #e8eaed;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}
.tb-nav__item:hover .tb-mega,
.tb-nav__item:focus-within .tb-mega { display: block; }
.tb-nav__item:hover > .tb-nav__link,
.tb-nav__item:focus-within > .tb-nav__link {
  color: #007bff;
}
.tb-nav__item:hover > .tb-nav__link .tb-nav__chevron,
.tb-nav__item:focus-within > .tb-nav__link .tb-nav__chevron {
  transform: rotate(180deg);
}
.tb-mega--flyout .tb-mega__body {
  min-height: 260px;
}
.tb-mega__body {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Column 1 — Left sidebar */
.tb-mega__left {
  width: 220px; min-width: 220px;
  background: #f8f9fa;
  border-right: 1px solid #e8eaed;
  padding: 8px 0;
}
.tb-mega__card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer;
  color: #3f536c; font-size: 13px; font-weight: 500;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  border-bottom: 1px solid #eee;
}
.tb-mega__card:hover { color: #007bff; background: #f0f4fb; }
.tb-mega__card.active { color: #007bff; background: white; font-weight: 600; }
.tb-mega__card img,
.tb-mega__card-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.tb-mega__card-thumb--placeholder {
  display: inline-block;
  background: linear-gradient(135deg, #e7f1ff 0%, #cfe2ff 100%);
  border: 1px solid rgba(0, 123, 255, 0.15);
}
.tb-mega__card-chevron {
  margin-left: auto; width: 14px; height: 14px;
  opacity: 0; color: #007bff; flex-shrink: 0;
}
.tb-mega__card.active .tb-mega__card-chevron { opacity: 1; }

/* Column 2 — Middle content */
.tb-mega__mid {
  flex: 1; padding: 20px 28px;
  border-right: 1px solid #e8eaed;
  min-width: 0;
}
.tb-mega__panel { display: none; }
.tb-mega__panel.active { display: block; }
.tb-mega__panel-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #9aa5b4; margin-bottom: 12px;
}
.tb-mega__row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding: 10px 0; border-bottom: 1px solid #f5f6f8;
  text-decoration: none; color: #3f536c; font-size: 14px;
}
.tb-mega__row-label {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.4;
  word-break: normal;
  overflow-wrap: anywhere;
}
.tb-mega__row:hover .tb-mega__row-label { color: #007bff; }
.tb-mega__row-count { color: #9aa5b4; font-size: 13px; }
.tb-mega__all {
  display: inline-block; margin-top: 14px;
  color: #007bff; font-size: 13px; font-weight: 600;
  text-decoration: none;
}
.tb-mega__all:hover { text-decoration: underline; }

/* Column 3 — Right banners */
.tb-mega__right {
  width: 300px; min-width: 300px; padding: 20px 20px 20px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.tb-mega__banner {
  display: block; border-radius: 12px; overflow: hidden;
  text-decoration: none; position: relative; flex: 1;
}
.tb-mega__banner img {
  width: 100%; height: 130px; object-fit: cover; display: block;
}
.tb-mega__banner-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  color: white; padding: 20px 12px 10px;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.tb-mega__banner-icon {
  width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}

/* ── Rainbow border ───────────────────────────────────── */
.tb-rainbow {
  height: 3px; width: 100%;
  background: linear-gradient(90deg, #007bff 0%, #0056b3 50%, #007bff 100%);
}

/* ── Mobile trigger icons ─────────────────────────────── */
.tb-mobile-icons { display: none; align-items: center; gap: 14px; color: #3f536c; }
.tb-mobile-icons svg { cursor: pointer; width: 22px; height: 22px; }
.tb-hamburger {
  display: none; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  color: #3f536c; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  font-family: inherit;
}
.tb-navbar__logo--mobile { display: none; text-decoration: none; }

/* ── Mobile Overlay ───────────────────────────────────── */
.tb-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.52); z-index: 9998;
}
.tb-overlay.open { display: block; }

/* ── Mobile Drawer ────────────────────────────────────── */
.tb-drawer {
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 85%; max-width: 340px;
  background: white; z-index: 9999;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 3px 0 24px rgba(0,0,0,0.18);
}
.tb-drawer.open { transform: translateX(0); }
.tb-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #e8eaed; min-height: 56px;
}
.tb-drawer__close {
  background: none; border: none; cursor: pointer;
  color: #3f536c; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; transition: background 0.15s;
}
.tb-drawer__close:hover { background: #f0f2f5; }
.tb-drawer__login { margin: 14px; padding: 14px; background: #f8f9fa; border-radius: 8px; }
.tb-drawer__login-btn {
  display: block; width: 100%;
  background: #007bff; color: white;
  border: none; border-radius: 6px;
  padding: 10px 16px; font-size: 14px; font-weight: 600;
  text-align: center; text-decoration: none; cursor: pointer;
  margin-bottom: 8px; transition: background 0.15s; font-family: inherit;
}
.tb-drawer__login-btn:hover { background: #1558a0; }
.tb-drawer__login-sub { font-size: 11px; color: #6b7d8f; text-align: center; }
.tb-drawer__list { list-style: none; flex: 1; }
.tb-drawer__item { border-bottom: 1px solid #f0f2f5; }
.tb-drawer__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; cursor: pointer;
  text-decoration: none; color: #3f536c; font-size: 14px; font-weight: 500;
  transition: color 0.12s;
}
.tb-drawer__row:hover { color: #007bff; }
.tb-drawer__row-left { display: flex; align-items: center; gap: 12px; }
.tb-drawer__row-icon { width: 24px; height: 24px; object-fit: contain; }
.tb-drawer__row-chevron { transition: transform 0.2s; color: #9aa5b4; width: 16px; height: 16px; }
.tb-drawer__item.expanded .tb-drawer__row-chevron { transform: rotate(90deg); }
.tb-drawer__sub { display: none; background: #f8f9fa; border-top: 1px solid #f0f2f5; }
.tb-drawer__item.expanded .tb-drawer__sub { display: block; }
.tb-drawer__sub-link {
  display: block; padding: 10px 16px 10px 52px;
  font-size: 13px; color: #3f536c;
  text-decoration: none; border-bottom: 1px solid #f0f2f5;
  transition: color 0.12s;
}
.tb-drawer__sub-link:hover { color: #007bff; }
.tb-drawer__sub-link--all { color: #007bff; font-weight: 600; font-size: 12px; }
.tb-drawer__logo-row {
  display: flex; align-items: center; padding: 12px 16px;
  border-bottom: 1px solid #f0f2f5; text-decoration: none;
}
.tb-drawer__rezervasyon {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px; border-bottom: 1px solid #f0f2f5;
  color: #3f536c; font-size: 14px; font-weight: 500; text-decoration: none;
}
.tb-drawer__rezervasyon:hover { color: #007bff; }
.tb-drawer__bottom { border-top: 2px solid #e8eaed; margin-top: auto; }
.tb-drawer__bottom-head {
  background: #007bff; color: white;
  padding: 8px 16px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.tb-drawer__bottom-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid #f0f2f5;
  color: #3f536c; font-size: 13px; text-decoration: none; transition: color 0.12s;
}
.tb-drawer__bottom-item:hover { color: #007bff; }
.tb-drawer__bottom-item svg { color: #007bff; flex-shrink: 0; width: 16px; height: 16px; }
.tb-drawer__bottom-phone { font-weight: 700; color: #007bff; margin-left: auto; font-size: 12px; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 767px) {
  .tb-prebar { display: none !important; }
  .tb-nav { display: none !important; }
  .tb-navbar { height: 55px !important; }
  .tb-navbar .tb-inner { padding: 0 16px; }
  .tb-navbar__logo { display: none !important; }
  .tb-navbar__logo--mobile { display: flex; align-items: center; flex: 1; justify-content: center; }
  .tb-mobile-icons { display: flex; }
  .tb-hamburger { display: flex; }
}
@media (min-width: 768px) {
  .tb-drawer { display: none !important; }
  .tb-overlay { display: none !important; }
}

/* ── Suppress theme / Colina / Elementor headers when Hagia header is active ── */
body.hagia-tb-header-active .elementor-location-header,
body.hagia-tb-header-active #cr-header,
body.hagia-tb-header-active .cr-header,
body.hagia-tb-header-active header.site-header,
body.hagia-tb-header-active #masthead,
body.hagia-tb-header-active .klenster-header {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

body.hagia-tb-header-active .tb-mobile-icons a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
}

body.hagia-tb-header-active .tb-navbar__logo img {
  max-height: 49px;
  width: auto;
}

body.hagia-tb-header-active .tb-navbar__logo--mobile img {
  max-height: 28px;
  width: auto;
}
