/* ========== HUB FORM + TRUST ROWS ========== */
.hub-form-section, .hub-trust-section { background: transparent; padding: 0; }
.trust-bar { display: flex; justify-content: flex-start; gap: 2.5rem; margin-top: 1rem; flex-wrap: wrap; }
.trust-stat { text-align: left; }
.trust-stat .num { font-size: 1.875rem; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.trust-stat .label { font-size: .75rem; color: var(--text-3); margin-top: .25rem; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 480px) { .trust-bar { gap: 1.25rem; } }

/* ========== HOTELHUDDLE HUB HERO TABS ========== */

/* Container for hub hero — splits text and form side-by-side on desktop */
.hub-hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(42,82,152,.15), transparent 40%), var(--bg);
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.hub-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .hub-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem 1rem;
  }
}

/* Hero text */
.hub-hero-text h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem;
  max-width: 540px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-2);
  margin: 0 0 1.75rem;
  max-width: 520px;
  line-height: 1.55;
}

/* Hero text rotator */
.hero-text-rotator {
  display: inline-block;
  position: relative;
  color: var(--accent-light);
  min-width: 240px;
  min-height: 1.15em;
  vertical-align: bottom;
  overflow: hidden;
}

.hero-text-rotator .rotator-line {
  display: block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  pointer-events: none;
}

.hero-text-rotator .rotator-line.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}

/* Trust bar under hero text */
.hub-hero-text .trust-bar {
  display: flex;
  justify-content: flex-start;
  gap: 2.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hub-hero-text .trust-stat {
  text-align: left;
}

.hub-hero-text .trust-stat .num {
  font-size: 1.875rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hub-hero-text .trust-stat .label {
  font-size: .75rem;
  color: var(--text-3);
  margin-top: .25rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

@media (max-width: 480px) {
  .hub-hero-text .trust-bar {
    gap: 1.25rem;
  }
}

/* Tab bar sits just above the panels */
.hub-tabs {
  display: flex;
  gap: .25rem;
  padding: 0 1rem;
  position: relative;
  z-index: 3;
  flex-wrap: wrap;
}

.hub-tab {
  appearance: none;
  border: 1px solid var(--border);
  border-bottom: none;
  background: var(--bg-2);
  color: var(--text-2);
  padding: .625rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.hub-tab:hover {
  color: var(--text);
  background: var(--bg-3);
}

.hub-tab.active {
  background: var(--bg-2);
  color: #fff;
  border-color: var(--border-bright);
  position: relative;
  z-index: 2;
}

/* Tab panels wrap the form */
.hub-tab-panels {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  position: relative;
  z-index: 2;
}

.hub-tab-panel {
  display: none;
}

.hub-tab-panel.active {
  display: block;
}

/* Form wrapper inside tab panel */
.hub-form-wrapper {
  width: 100%;
}

/* Form layout overrides for hub context */
.hub-tab-panel .hero-form {
  display: flex;
  align-items: flex-end;
  gap: .75rem;
  flex-wrap: nowrap;
  width: 100%;
}

.hub-tab-panel .hero-form-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hub-tab-panel .hero-field-location { flex: 1.8; }
.hub-tab-panel .hero-field-dates { flex: 1.4; }
.hub-tab-panel .hero-field-rooms { flex: 0 0 auto; }
.hub-tab-panel .hero-field-price { flex: 0 0 auto; }
.hub-tab-panel .hero-field-time { flex: 0 0 auto; }
.hub-tab-panel .hero-field-submit { flex: 0 0 auto; }

/* Itinerary form (multi-destination) */
.hero-form--itinerary {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
}

.hero-form--itinerary .bmt-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}

.hero-form--itinerary .hero-submit-btn {
  flex: 1;
}

/* Inputs in hub context */
.hub-tab-panel .form-input,
.hub-tab-panel .drp-input,
.hub-tab-panel .hero-price-input,
.hub-tab-panel .form-select,
.hub-tab-panel .bmt-city-autocomplete,
.hub-tab-panel .bmt-date-input,
.hub-tab-panel .bmt-room-select {
  background: var(--bg-3) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
}

.hub-tab-panel .form-input:focus,
.hub-tab-panel .drp-input:focus,
.hub-tab-panel .hero-price-input:focus,
.hub-tab-panel .form-select:focus,
.hub-tab-panel .bmt-city-autocomplete:focus,
.hub-tab-panel .bmt-date-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(30,58,95,.12) !important;
  outline: none;
}

.hub-tab-panel .hero-price-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.hub-tab-panel .hero-price-prefix {
  padding: .75rem .5rem .75rem 1rem;
  color: var(--text-2);
  font-weight: 700;
}

.hub-tab-panel .hero-price-input {
  border: none !important;
  background: transparent !important;
  padding-left: 0 !important;
}

/* Dropdown positioning within hub */
.hub-tab-panel .autocomplete-wrapper,
.hub-tab-panel .bmt-dest-city {
  position: relative;
}

.hub-tab-panel .autocomplete-dropdown,
.hub-tab-panel .bmt-city-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  z-index: 20;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

.hub-tab-panel .autocomplete-dropdown.visible,
.hub-tab-panel .bmt-city-dropdown.visible {
  display: block;
}

.hub-tab-panel .autocomplete-item {
  padding: .625rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.hub-tab-panel .autocomplete-item:last-child {
  border-bottom: none;
}

.hub-tab-panel .autocomplete-item:hover,
.hub-tab-panel .autocomplete-item.active {
  background: var(--surface);
}

/* SOT notice */
.hub-tab-panel .sot-notice {
  display: none;
  align-items: flex-start;
  gap: .5rem;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5;
  padding: .625rem .875rem;
  border-radius: var(--radius-sm);
  margin-top: .5rem;
}

.hub-tab-panel .sot-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--red);
}

/* Room selectors */
.hub-tab-panel .room-selector-control,
.hub-tab-panel .bmt-room-selector-control {
  display: flex;
  align-items: center;
}

.hub-tab-panel .room-btn,
.hub-tab-panel .bmt-room-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 38px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.hub-tab-panel .room-btn:first-child,
.hub-tab-panel .bmt-room-btn:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.hub-tab-panel .room-btn:last-child,
.hub-tab-panel .bmt-room-btn:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.hub-tab-panel .room-select,
.hub-tab-panel .bmt-room-select {
  width: 50px;
  height: 38px;
  text-align: center;
  border-radius: 0;
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: .875rem;
  font-weight: 700;
  appearance: none;
}

.hub-tab-panel .bmt-room-select {
  width: 54px;
}

/* BMT destination rows */
.hub-tab-panel .bmt-dest-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.hub-tab-panel .bmt-dest-row:last-child {
  border-bottom: none;
}

.hub-tab-panel .bmt-dest-number {
  background: var(--accent);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8125rem;
  flex-shrink: 0;
  margin-top: .5rem;
}

.hub-tab-panel .bmt-dest-fields {
  display: flex;
  flex: 1;
  gap: .75rem;
  flex-wrap: wrap;
}

.hub-tab-panel .bmt-dest-field {
  flex: 1;
  min-width: 160px;
  position: relative;
}

.hub-tab-panel .bmt-dest-rooms {
  flex: 0 0 auto;
}

.hub-tab-panel .bmt-room-selectors-row {
  display: flex;
  gap: .75rem;
}

.hub-tab-panel .bmt-room-selector {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  height: 38px;
}

.hub-tab-panel .bmt-room-selector-label {
  font-size: .75rem;
  font-weight: 600;
  color: #a8b0c4;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-right: none;
  padding: 0 .75rem;
  height: 38px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.hub-tab-panel .bmt-add-dest-btn {
  background: var(--surface);
  color: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem 1.5rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
  text-align: center;
  font-family: inherit;
  transition: var(--transition);
}

.hub-tab-panel .bmt-add-dest-btn:hover {
  background: rgba(30,58,95,.25);
  border-color: var(--accent);
}

.hub-tab-panel .bmt-dest-remove {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 1.5rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .5rem;
  border-radius: 50%;
  transition: var(--transition);
}

.hub-tab-panel .bmt-dest-remove:hover {
  color: var(--text);
  background: var(--surface-hover, rgba(30,58,95,.25));
}

/* ========== NAV DROPDOWNS (hotelhuddle.com only) ========== */

.nav-cta {
  position: relative;
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.nav-dropdown-toggle .chev {
  width: 16px;
  height: 16px;
  transition: transform .2s ease;
}

.nav-dropdown.open .nav-dropdown-toggle .chev {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 240px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
  padding: .5rem;
  z-index: 200;
  display: none;
  flex-direction: column;
  gap: .25rem;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a,
.nav-dropdown-menu button {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem .875rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: var(--transition);
  width: 100%;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu button:hover {
  background: var(--surface);
  color: var(--text);
}

.nav-dropdown-menu .brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-dropdown-menu .brand-dot.grouprooms { background: #22c55e; }
.nav-dropdown-menu .brand-dot.hotelhaggle { background: #f59e0b; }
.nav-dropdown-menu .brand-dot.hotelslots { background: #3b82f6; }
.nav-dropdown-menu .brand-dot.bookmyteam { background: #ef4444; }
.nav-dropdown-menu .brand-dot.bookmymeeting { background: #8b5cf6; }

.nav-dropdown-label {
  padding: .375rem .875rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Mobile adjustments */
@media(max-width:900px){
  .hub-tabs {
    padding: 0 1rem;
  }
  .hub-tab {
    padding: .5rem .875rem;
    font-size: .8125rem;
  }
  .hub-tab-panels {
    padding: 1rem;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .hub-tab-panel .hero-form {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }
  .hub-tab-panel .hero-form-field,
  .hub-tab-panel .hero-field-location,
  .hub-tab-panel .hero-field-dates,
  .hub-tab-panel .hero-field-rooms,
  .hub-tab-panel .hero-field-price,
  .hub-tab-panel .hero-field-time,
  .hub-tab-panel .hero-field-submit {
    width: 100%;
    flex: 1 1 100%;
  }
  .hub-tab-panel .hero-submit-btn {
    width: 100%;
  }
  .hub-tab-panel .bmt-dest-row {
    flex-direction: column;
    gap: .75rem;
  }
  .hub-tab-panel .bmt-dest-fields {
    flex-direction: column;
    width: 100%;
  }
  .hub-tab-panel .bmt-dest-field,
  .hub-tab-panel .bmt-dest-rooms {
    width: 100%;
  }
  .hub-tab-panel .bmt-room-selectors-row {
    justify-content: space-between;
  }
  .hub-tab-panel .bmt-actions {
    flex-direction: column;
  }
  .nav-dropdown-menu {
    right: 0;
    left: auto;
    min-width: 200px;
  }
}
