:root {
  --primary: #ff6600;
  --primary-hover: #e55c00;
  --primary-active: #cc5200;
  --primary-light: #fff7ed;
  --primary-border: #fed7aa;
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --border-light: #e2e8f0;
  --border-focus: #0f172a;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-main);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.site-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 36px;
}

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

.brand-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.6px;
}

.brand-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.metric-pill {
  font-size: 12px;
  font-weight: 600;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.metric-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
}

.hero-strip {
  margin-bottom: 32px;
}

.hero-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.6;
}

.tracker-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.booking-console {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.console-section {
  padding: 28px;
  border-bottom: 1px solid var(--border-light);
}

.console-section:last-child {
  border-bottom: none;
}

.highlight-section {
  background: #fafaf9;
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.section-tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  line-height: 1;
  margin-top: 3px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}

.section-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.full-col {
  grid-column: 1 / -1;
}

.double-col {
  grid-column: span 2;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-hint {
  font-size: 11px;
  font-weight: 500;
  color: var(--primary);
  cursor: help;
  text-decoration: underline dotted;
}

.label-with-tooltip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tooltip-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  cursor: help;
  outline: none;
  transition: color 0.15s ease, transform 0.15s ease;
  vertical-align: middle;
}

.tooltip-trigger:hover,
.tooltip-trigger:focus-visible {
  color: var(--primary);
  transform: scale(1.1);
}

.tooltip-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
}

.tooltip-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
  white-space: normal;
  width: max-content;
  max-width: 260px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s ease;
  z-index: 100;
  text-align: left;
}

.tooltip-popover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}

.tooltip-trigger:hover .tooltip-popover,
.tooltip-trigger:focus-visible .tooltip-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.optional-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
}

.field-subtext {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 4px;
}

.checkbox-field {
  margin-top: -4px;
  margin-bottom: 2px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.checkbox-container:hover .checkbox-custom {
  border-color: var(--primary);
}

.checkbox-container input[type="checkbox"]:focus-visible ~ .checkbox-custom {
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkbox-custom {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkbox-custom::after {
  content: "";
  display: block;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.checkbox-label-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checkbox-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.checkbox-description {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

.room-type-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.room-type-row select {
  flex: 1;
  min-width: 0;
}

.room-type-row select:disabled {
  background-color: #f1f5f9;
  color: var(--text-dim);
  cursor: not-allowed;
  border-color: var(--border-light);
  opacity: 0.7;
}

.basic-room-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  transition: all 0.15s ease;
}

.basic-room-checkbox:hover {
  border-color: var(--primary);
  background-color: #fff9f5;
}

.basic-room-checkbox .checkbox-custom {
  margin-top: 0;
}

.basic-room-checkbox .checkbox-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
select {
  font-family: var(--font-main);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

input:focus,
select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.input-with-prefix {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-with-prefix:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.prefix-symbol {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  border-right: 1px solid var(--border-light);
  user-select: none;
}

.input-with-prefix input {
  border: none;
  box-shadow: none;
  padding: 10px 12px;
}

.input-with-prefix input:focus {
  box-shadow: none;
}

.city-searchbox-wrapper {
  position: relative;
  width: 100%;
}

.city-searchbox-wrapper input[type="text"]:disabled {
  background-color: var(--bg-subtle);
  color: var(--text-dim);
  cursor: not-allowed;
}



.date-range-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.date-range-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.date-range-wrapper input {
  padding-left: 38px !important;
  padding-right: 36px !important;
}

.clear-dates-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
  z-index: 2;
}

.clear-dates-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-subtle);
}

.stay-duration-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.flatpickr-calendar {
  font-family: var(--font-main);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.nextMonthDay.selected,
.flatpickr-day.prevMonthDay.selected {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
}

.flatpickr-day.selected.startRange,
.flatpickr-day.startRange {
  border-radius: 50px 0 0 50px !important;
}

.flatpickr-day.selected.endRange,
.flatpickr-day.endRange {
  border-radius: 0 50px 50px 0 !important;
}

.flatpickr-day.startRange.endRange {
  border-radius: 50px !important;
}

.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange,
.flatpickr-day.today.inRange,
.flatpickr-day.prevMonthDay.today.inRange,
.flatpickr-day.nextMonthDay.today.inRange {
  background: var(--primary-light) !important;
  border-color: var(--primary-border) !important;
  box-shadow: -5px 0 0 var(--primary-light), 5px 0 0 var(--primary-light) !important;
  color: var(--text-main) !important;
}

.flatpickr-day:hover {
  background: var(--primary-light) !important;
}

.flatpickr-day.today {
  border-color: var(--primary) !important;
}

.target-summary-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-top: 18px;
  margin-bottom: 20px;
}

.target-summary-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.target-summary-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.target-summary-caption {
  font-size: 12px;
  color: var(--text-dim);
}

.action-footer {
  margin-top: 8px;
}

.btn-primary {
  width: 100%;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.15s ease, transform 0.05s ease;
  box-shadow: 0 2px 6px rgba(255, 102, 0, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-primary:active {
  background-color: var(--primary-active);
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-arrow {
  font-size: 16px;
  transition: transform 0.15s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(3px);
}

.status-message {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.4;
}

.status-message.success {
  display: block;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.status-message.error {
  display: block;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

input.field-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.field-error-legend {
  display: block;
  font-size: 12px;
  color: #991b1b;
  margin-top: 5px;
  font-weight: 500;
  line-height: 1.4;
}

.utility-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.mechanism-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mechanism-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.mechanism-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.mechanism-list strong {
  display: block;
  font-size: 13px;
  color: var(--text-main);
  margin-bottom: 2px;
}

.mechanism-list p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.privacy-card {
  background: #f8fafc;
}

.shield-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.privacy-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.site-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
}

@media (max-width: 860px) {
  .tracker-layout {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .full-col,
  .double-col {
    grid-column: auto;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .room-type-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

.hotel-searchbox-field {
  position: relative;
}

.searchbox-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.searchbox-wrapper input[type="text"] {
  width: 100%;
  padding-right: 110px;
}

.search-addon-btn {
  position: absolute;
  right: 6px;
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-addon-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.badge-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 8px;
  border-radius: 4px;
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.hotel-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  z-index: 100;
  overflow: hidden;
  max-height: 320px;
  display: flex;
  flex-direction: column;
}

.dropdown-list {
  overflow-y: auto;
  max-height: 240px;
}

.dropdown-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background-color 0.15s ease;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item.active {
  background-color: var(--primary-light);
}

.dropdown-item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dropdown-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  white-space: nowrap;
}

.dropdown-item-badge.mapped {
  background-color: #ecfdf5;
  color: #047857;
}

.dropdown-item-badge.live {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.dropdown-footer {
  border-top: 1px solid var(--border-light);
  background-color: #fafbfc;
}

.dropdown-action-btn {
  width: 100%;
  padding: 11px 14px;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.15s ease;
}

.dropdown-action-btn:hover {
  background-color: var(--primary-light);
}

.dropdown-empty {
  padding: 14px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.dropdown-loading {
  padding: 16px;
  font-size: 12px;
  color: var(--primary);
  text-align: center;
  font-weight: 500;
}

