/**
 * AllOfBD Hospitality 2026 — Original Direct-Stay Design System
 * Clean Coastal-Teal & Slate architecture: faster, calmer, and more transparent than legacy OTAs.
 * Enforces Non-OTA Direct Pay-at-Hotel Model & Modern Web Guidance rules.
 */

:root {
  --aofbd-ink: #0b1f2a;
  --aofbd-ink-deep: #07151d;
  --aofbd-teal: #0d9488;
  --aofbd-teal-hover: #0f766e;
  --aofbd-teal-soft: #f0fdfa;
  --aofbd-teal-border: #99f6e4;
  --aofbd-amber: #d97706;
  --aofbd-amber-soft: #fffbeb;
  --aofbd-amber-border: #fde68a;
  --aofbd-bg: #f8fafc;
  --aofbd-surface: #ffffff;
  --aofbd-border: #cbd5e1;
  --aofbd-text: #0f172a;
  --aofbd-muted: #334155;
  --aofbd-radius: 14px;
  --aofbd-shadow-sm: 0 2px 8px rgba(11, 31, 42, 0.05);
  --aofbd-shadow-md: 0 10px 30px rgba(11, 31, 42, 0.08);
  --aofbd-shadow-lg: 0 18px 40px rgba(7, 21, 29, 0.16);
}

.aofbd-booking-shell,
.aofbd-booking-shell * {
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.aofbd-booking-shell {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
  padding-block: 20px 56px;
  color: var(--aofbd-text);
  font-size: 16px;
  line-height: 1.6;
}

.aofbd-booking-shell :focus-visible {
  outline: 3px solid var(--aofbd-teal);
  outline-offset: 2px;
}

/* ── Compact Page Head & Standalone Search Dock (No Bulky Hero) ── */
.aofbd-hb-compact-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-block-end: 16px;
}

.aofbd-hb-compact-title {
  margin: 0 0 2px 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: var(--aofbd-ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.aofbd-hb-compact-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--aofbd-muted);
}

.aofbd-hb-search-dock {
  border: 1px solid var(--aofbd-border);
  box-shadow: var(--aofbd-shadow-md);
  margin-block-end: 20px;
}

/* ── Elevated Coastal-Slate Hero ── */
.aofbd-hb-hero {
  position: relative;
  background: radial-gradient(circle at 88% 18%, rgba(13, 148, 136, 0.28), transparent 46%),
              linear-gradient(135deg, var(--aofbd-ink) 0%, #102a38 55%, var(--aofbd-ink-deep) 100%);
  color: #ffffff;
  border-radius: 20px;
  padding-block: 42px 38px;
  padding-inline: 36px;
  margin-block-end: 24px;
  box-shadow: var(--aofbd-shadow-lg);
}

.aofbd-hb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 148, 136, 0.22);
  border: 1px solid rgba(153, 246, 228, 0.35);
  color: #ccfbf1;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-block: 5px;
  padding-inline: 12px;
  border-radius: 999px;
  margin-block-end: 14px;
}

.aofbd-hb-hero h1 {
  color: #ffffff !important;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 10px 0;
  letter-spacing: -0.025em;
}

.aofbd-hb-hero-sub {
  color: #cbd5e1;
  font-size: 1.02rem;
  margin: 0 0 26px 0;
  max-width: 64ch;
}

/* ── Floating Glass-White Search Capsule (Superior to Gold-Box OTAs) ── */
.aofbd-hb-search-bar {
  display: block;
  background: var(--aofbd-surface);
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 32px rgba(7, 21, 29, 0.28);
}

.aofbd-hb-search-form {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 0.75fr auto;
  gap: 8px;
  align-items: stretch;
}

.aofbd-hb-field {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding-block: 8px;
  padding-inline: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.aofbd-hb-field:focus-within {
  background: #ffffff;
  border-color: var(--aofbd-teal);
}

.aofbd-hb-field label,
.aofbd-hb-form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--aofbd-muted);
  margin-block-end: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aofbd-hb-field input,
.aofbd-hb-field select {
  width: 100%;
  min-height: 38px;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: var(--aofbd-text);
  font-size: max(1rem, 1em);
  font-weight: 600;
}

.aofbd-hb-field input:focus,
.aofbd-hb-field select:focus {
  outline: none;
}

.aofbd-hb-search-btn {
  background: var(--aofbd-teal);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding-inline: 26px;
  min-height: 54px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.aofbd-hb-search-btn:hover {
  background: var(--aofbd-teal-hover);
}

/* ── Instant Destination & Filter Chips (Zero-Reload UX) ── */
.aofbd-hb-chips-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 20px;
}

.aofbd-hb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aofbd-hb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding-block: 6px;
  padding-inline: 14px;
  border-radius: 999px;
  border: 1px solid var(--aofbd-border);
  background: var(--aofbd-surface);
  color: var(--aofbd-text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.aofbd-hb-chip:hover {
  border-color: var(--aofbd-teal);
  color: var(--aofbd-teal);
}

.aofbd-hb-chip.is-active {
  background: var(--aofbd-ink);
  border-color: var(--aofbd-ink);
  color: #ffffff;
}

.aofbd-hb-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.aofbd-hb-sort-wrap label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--aofbd-muted);
}

.aofbd-hb-sort-select {
  min-height: 40px;
  padding-block: 6px;
  padding-inline: 12px;
  border-radius: 999px;
  border: 1px solid var(--aofbd-border);
  background: var(--aofbd-surface);
  color: var(--aofbd-text);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ── Results Toolbar ── */
.aofbd-hb-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-block-end: 18px;
  padding-block-end: 12px;
  border-block-end: 1px solid var(--aofbd-border);
}

.aofbd-hb-results-count {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--aofbd-text);
  margin: 0;
}

.aofbd-hb-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--aofbd-teal-soft);
  color: var(--aofbd-teal-hover);
  border: 1px solid var(--aofbd-teal-border);
  font-size: 0.8125rem;
  font-weight: 700;
  padding-block: 6px;
  padding-inline: 12px;
  border-radius: 999px;
}

/* ── Editorial Property Cards ── */
.aofbd-hb-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aofbd-hb-card {
  display: grid;
  grid-template-columns: 280px 1fr 225px;
  gap: 22px;
  background: var(--aofbd-surface);
  border: 1px solid var(--aofbd-border);
  border-radius: var(--aofbd-radius);
  padding: 16px;
  box-shadow: var(--aofbd-shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.aofbd-hb-card:hover {
  border-color: var(--aofbd-teal);
  box-shadow: var(--aofbd-shadow-md);
  transform: translateY(-1px);
}

.aofbd-hb-card[hidden] {
  display: none;
}

.aofbd-hb-card-media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--aofbd-ink);
  aspect-ratio: 4 / 3;
}

.aofbd-hb-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.aofbd-hb-card:hover .aofbd-hb-card-media img {
  transform: scale(1.03);
}

.aofbd-hb-badge-verified {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 31, 42, 0.86);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding-block: 4px;
  padding-inline: 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aofbd-hb-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.aofbd-hb-card-title {
  margin: 0 0 4px 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.28;
}

.aofbd-hb-card-title a {
  color: var(--aofbd-text);
  text-decoration: none;
}

.aofbd-hb-card-title a:hover {
  color: var(--aofbd-teal);
}

.aofbd-hb-card-loc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--aofbd-teal-hover);
  font-weight: 600;
  margin-block-end: 8px;
}

.aofbd-hb-deal-pill {
  display: inline-block;
  background: var(--aofbd-amber-soft);
  color: #b45309;
  border: 1px solid var(--aofbd-amber-border);
  font-size: 0.75rem;
  font-weight: 700;
  padding-block: 3px;
  padding-inline: 10px;
  border-radius: 999px;
  margin-block-end: 8px;
  width: fit-content;
}

.aofbd-hb-card-desc {
  font-size: 0.875rem;
  color: var(--aofbd-muted);
  margin: 0 0 12px 0;
}

.aofbd-hb-card-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--aofbd-teal-hover);
}

.aofbd-hb-perk-tag {
  background: var(--aofbd-teal-soft);
  border: 1px solid var(--aofbd-teal-border);
  padding: 3px 9px;
  border-radius: 6px;
}

.aofbd-hb-card-price-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  text-align: right;
  border-inline-start: 1px solid var(--aofbd-border);
  padding-inline-start: 18px;
}

.aofbd-hb-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--aofbd-ink);
}

.aofbd-hb-sync-badge.is-live {
  background: var(--aofbd-teal-soft);
  color: var(--aofbd-teal-hover);
  border: 1px solid var(--aofbd-teal-border);
}

.aofbd-hb-price-caption {
  font-size: 0.75rem;
  color: var(--aofbd-muted);
}

.aofbd-hb-price-amount {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--aofbd-ink);
  line-height: 1.15;
  margin-block: 2px;
  font-variant-numeric: tabular-nums;
}

.aofbd-hb-stay-est {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--aofbd-teal-hover);
  margin-bottom: 10px;
}

.aofbd-hb-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--aofbd-ink);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.9375rem;
  font-weight: 700;
  padding-block: 11px;
  padding-inline: 18px;
  border-radius: 10px;
  min-height: 48px;
  width: 100%;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.aofbd-hb-cta:hover {
  background: var(--aofbd-teal);
}

.aofbd-hb-cta-primary {
  background: var(--aofbd-teal);
}

.aofbd-hb-cta-primary:hover {
  background: var(--aofbd-teal-hover);
}

/* ── Hotel Showcase Split 65 / 35 Layout ── */
.aofbd-hb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.875rem;
  margin-block-end: 16px;
  color: var(--aofbd-muted);
}

.aofbd-hb-breadcrumb a {
  color: var(--aofbd-teal-hover);
  text-decoration: none;
  font-weight: 600;
}

.aofbd-hb-breadcrumb a:hover {
  text-decoration: underline;
}

.aofbd-hb-prop-header {
  background: var(--aofbd-surface);
  border: 1px solid var(--aofbd-border);
  border-radius: var(--aofbd-radius);
  padding: 26px;
  margin-block-end: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  box-shadow: var(--aofbd-shadow-sm);
}

.aofbd-hb-prop-header h1 {
  margin: 6px 0;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: var(--aofbd-text);
  letter-spacing: -0.02em;
}

.aofbd-hb-showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}

.aofbd-hb-sticky-rail {
  position: sticky;
  top: 24px;
}

.aofbd-hb-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--aofbd-text);
  margin: 0 0 14px 0;
}

.aofbd-hb-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-block-end: 28px;
}

.aofbd-hb-room-card {
  background: var(--aofbd-surface);
  border: 2px solid var(--aofbd-border);
  border-radius: var(--aofbd-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--aofbd-shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aofbd-hb-room-card.is-selected {
  border-color: var(--aofbd-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}

.aofbd-hb-room-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--aofbd-ink);
}

.aofbd-hb-room-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aofbd-hb-room-code {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(11, 31, 42, 0.88);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.aofbd-hb-room-body {
  padding: 16px;
}

.aofbd-hb-room-footer {
  padding: 12px 16px 16px;
  border-block-start: 1px solid var(--aofbd-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* ── Panels & Forms ── */
.aofbd-hb-panel {
  background: var(--aofbd-surface);
  border: 1px solid var(--aofbd-border);
  border-radius: var(--aofbd-radius);
  padding: 24px;
  margin-block-end: 24px;
  box-shadow: var(--aofbd-shadow-sm);
}

.aofbd-hb-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.aofbd-hb-form-group input,
.aofbd-hb-form-group select,
.aofbd-hb-form-group textarea {
  width: 100%;
  min-height: 48px;
  padding-block: 10px;
  padding-inline: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: max(1rem, 1em);
  color: var(--aofbd-text);
  background: #ffffff;
}

.aofbd-hb-form-span-full {
  grid-column: 1 / -1;
}

.aofbd-hb-estimate-box {
  background: var(--aofbd-teal-soft);
  border: 1px solid var(--aofbd-teal-border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.aofbd-hb-notice-green {
  background: var(--aofbd-teal-soft);
  border: 1px solid var(--aofbd-teal-border);
  color: var(--aofbd-ink);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 0.9rem;
}

.aofbd-hb-empty {
  background: var(--aofbd-surface);
  border: 1px solid var(--aofbd-border);
  border-radius: var(--aofbd-radius);
  padding: 48px 24px;
  text-align: center;
}

/* ── Responsive Breakpoints ── */
@media (max-width: 960px) {
  .aofbd-hb-showcase-layout {
    grid-template-columns: 1fr;
  }

  .aofbd-hb-sticky-rail {
    position: static;
  }

  .aofbd-hb-search-form {
    grid-template-columns: 1fr 1fr;
  }

  .aofbd-hb-search-bar .aofbd-hb-field-dest {
    grid-column: 1 / -1;
  }

  .aofbd-hb-search-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .aofbd-hb-card {
    grid-template-columns: 1fr;
  }

  .aofbd-hb-card-price-col {
    border-inline-start: 0;
    border-block-start: 1px solid var(--aofbd-border);
    padding-inline-start: 0;
    padding-block-start: 14px;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .aofbd-hb-hero {
    padding-block: 26px;
    padding-inline: 18px;
    border-radius: 14px;
  }

  .aofbd-hb-search-form {
    grid-template-columns: 1fr;
  }
}
