/**
 * Accommodation search — hero pill bar (Safari Matrouh)
 */
 .tbw-acc-search-wrap {
  --tbw-search-primary: #0B0F1A;
  --tbw-search-accent: #B38756;
  --tbw-search-white: #fff;
  --tbw-search-gray-100: #F1F5F9;
  --tbw-search-gray-400: #94A3B8;
  --tbw-search-radius-lg: 999px;
  --tbw-search-shadow: 0 12px 40px rgba(11, 15, 26, 0.18);
  font-family: 'Cairo', Tahoma, Arial, sans-serif;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.tbw-acc-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #212940;
  border-radius: var(--tbw-search-radius-lg);
  backdrop-filter: blur(20px);
  padding: 10px 12px;
  flex-wrap: wrap;
}

.tbw-acc-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 140px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 16px;
  transition: background 0.25s ease;
}

.tbw-acc-search-field svg {
  width: 20px;
  height: 20px;
  color: var(--tbw-search-accent);
  flex-shrink: 0;
}

.tbw-acc-search-field select,
.tbw-acc-search-field input {
  border: none;
  background: #212940;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--tbw-search-white);
  width: 100%;
  min-width: 0;
  outline: none;
}

.tbw-acc-search-box > .tbw-acc-search-field:first-child {
  border-inline-start: 0;
}

.tbw-acc-search-field--price {
  flex: 1.2 1 180px;
}

.tbw-acc-currency {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tbw-search-accent);
  padding-inline-end: 4px;
}

.tbw-acc-search-field--price input {
  width: 42%;
  text-align: center;
}

.tbw-acc-search-sep {
  color: var(--tbw-search-gray-400);
  flex-shrink: 0;
}

.tbw-acc-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: none;
  border-radius: var(--tbw-search-radius-lg);
  background-color: var(--tbw-search-accent);
  background-image: none;
  color: var(--tbw-search-white);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.25s ease;
  box-shadow: 0 4px 16px rgba(179, 135, 86, 0.35);
}

.tbw-acc-search-btn svg {
  width: 18px;
  height: 18px;
}

.tbw-acc-search-btn:hover,
.tbw-acc-search-btn:focus-visible {
  background-color: #9A7045;
  background-image: none;
  color: var(--tbw-search-white);
  transform: none;
  box-shadow: 0 8px 25px rgba(179, 135, 86, 0.45);
}

.tbw-acc-search-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.tbw-acc-search-status {
  margin-top: 12px;
  text-align: center;
  color: var(--tbw-search-white);
  font-size: 0.9rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.tbw-acc-results-wrap {
  max-width: 1200px;
}

.tbw-acc-results-head {
  margin-bottom: 24px;
}

.tbw-acc-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.tbw-acc-result-card .tbw-acc-available-dates {
  font-size: 0.85rem;
  color: #64748B;
  line-height: 1.6;
  margin: 8px 0;
}

.tbw-acc-result-card .tbw-acc-rooms-meta {
  font-size: 0.85rem;
  color: var(--tbw-search-accent);
  font-weight: 600;
  margin: 0 0 8px;
}

/* Booking unavailable popup */
.tbw-acc-booked-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 15, 26, 0.55);
  backdrop-filter: blur(4px);
}

.tbw-acc-booked-modal[hidden] {
  display: none !important;
}

.tbw-acc-booked-modal__dialog {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px;
  text-align: center;
  font-family: 'Cairo', Tahoma, Arial, sans-serif;
  box-shadow: 0 20px 60px rgba(11, 15, 26, 0.2);
}

.tbw-acc-booked-modal__dialog h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: #0B0F1A;
}

.tbw-acc-booked-modal__dialog p {
  margin: 0 0 16px;
  color: #64748B;
  line-height: 1.7;
}

.tbw-acc-booked-modal__available {
  background: #F8FAFB;
  border: 1px dashed #E2E8F0;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #0B0F1A;
  line-height: 1.7;
}

.tbw-acc-booked-modal__btn {
  display: inline-flex;
  padding: 12px 32px;
  border: none;
  border-radius: 50px;
  background: #B38756;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 900px) {
  .tbw-acc-search-box {
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
  }

  .tbw-acc-search-field {
    flex: 1 1 auto;
  }

  .tbw-acc-search-btn {
    width: 100%;
    border-radius: 30px;
  }
}

/* ═══════════════════════════════════════════════════════════
   Results page — dark theme (matches Contact / platform pages)
   Colors: #0B0F1A bg · #B38756 accent · #FFFFFF text
   ═══════════════════════════════════════════════════════════ */

body.tbw-acc-results-page .tbw-acc-results-wrap,
body.smp-dark-page .tbw-acc-results-wrap {
  --tbw-dark-bg: #0B0F1A;
  --tbw-dark-card: #141B2D;
  --tbw-dark-card-border: rgba(179, 135, 86, 0.18);
  --tbw-dark-accent: #B38756;
  --tbw-dark-accent-hover: #9A7045;
  --tbw-dark-text: #FFFFFF;
  --tbw-dark-muted: rgba(255, 255, 255, 0.72);
  --tbw-dark-soft: rgba(255, 255, 255, 0.55);
  max-width: 1200px;
  padding: 24px 16px 64px;
  color: var(--tbw-dark-text);
}

body.tbw-acc-results-page .tbw-acc-results-head,
body.smp-dark-page .tbw-acc-results-wrap .tbw-acc-results-head {
  margin-bottom: 28px;
  text-align: center;
}

body.tbw-acc-results-page .tbw-acc-results-wrap .tour-title,
body.smp-dark-page .tbw-acc-results-wrap .tour-title {
  color: var(--tbw-dark-accent) !important;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  margin: 0 0 10px;
}

body.tbw-acc-results-page .tbw-acc-results-wrap .tour-subtitle,
body.smp-dark-page .tbw-acc-results-wrap .tour-subtitle {
  color: var(--tbw-dark-muted) !important;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* شريط البحث — pill أبيض على خلفية داكنة */
body.tbw-acc-results-page .tbw-acc-search-wrap,
body.smp-dark-page .tbw-acc-results-wrap .tbw-acc-search-wrap {
  margin-bottom: 8px;
}

body.tbw-acc-results-page .tbw-acc-search-box,
body.smp-dark-page .tbw-acc-results-wrap .tbw-acc-search-box {
  background: #212940;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

body.tbw-acc-results-page .tbw-acc-search-status,
body.smp-dark-page .tbw-acc-results-wrap .tbw-acc-search-status {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* بطاقات النتائج */
body.tbw-acc-results-page .tbw-acc-results-wrap .tour-grid-card,
body.smp-dark-page .tbw-acc-results-wrap .tour-grid-card {
  background: var(--tbw-dark-card);
  border: 1px solid var(--tbw-dark-card-border);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}

body.tbw-acc-results-page .tbw-acc-results-wrap .tour-grid-card:hover,
body.smp-dark-page .tbw-acc-results-wrap .tour-grid-card:hover {
  border-color: rgba(179, 135, 86, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}

body.tbw-acc-results-page .tbw-acc-results-wrap .tour-grid-body h3 a,
body.smp-dark-page .tbw-acc-results-wrap .tour-grid-body h3 a {
  color: var(--tbw-dark-text) !important;
}

body.tbw-acc-results-page .tbw-acc-results-wrap .tour-grid-location,
body.smp-dark-page .tbw-acc-results-wrap .tour-grid-location {
  color: var(--tbw-dark-soft) !important;
}

body.tbw-acc-results-page .tbw-acc-results-wrap .tour-badge,
body.smp-dark-page .tbw-acc-results-wrap .tour-badge {
  background: rgba(179, 135, 86, 0.15);
  color: var(--tbw-dark-accent);
  border: 1px solid rgba(179, 135, 86, 0.25);
}

body.tbw-acc-results-page .tbw-acc-results-wrap .tbw-acc-available-dates,
body.smp-dark-page .tbw-acc-results-wrap .tbw-acc-available-dates {
  color: var(--tbw-dark-muted) !important;
}

body.tbw-acc-results-page .tbw-acc-results-wrap .tbw-acc-available-dates strong,
body.smp-dark-page .tbw-acc-results-wrap .tbw-acc-available-dates strong {
  color: var(--tbw-dark-accent);
}

body.tbw-acc-results-page .tbw-acc-results-wrap .tbw-acc-rooms-meta,
body.smp-dark-page .tbw-acc-results-wrap .tbw-acc-rooms-meta {
  color: var(--tbw-dark-accent) !important;
}

body.tbw-acc-results-page .tbw-acc-results-wrap .tour-grid-footer strong,
body.smp-dark-page .tbw-acc-results-wrap .tour-grid-footer strong {
  color: var(--tbw-dark-accent) !important;
}

body.tbw-acc-results-page .tbw-acc-results-wrap .tour-grid-footer strong small,
body.smp-dark-page .tbw-acc-results-wrap .tour-grid-footer strong small {
  color: var(--tbw-dark-soft);
  font-weight: 600;
}

body.tbw-acc-results-page .tbw-acc-results-wrap .tour-btn-primary,
body.smp-dark-page .tbw-acc-results-wrap .tour-btn-primary {
  background: var(--tbw-dark-accent) !important;
  background-image: none !important;
  color: var(--tbw-dark-text) !important;
  box-shadow: 0 4px 16px rgba(179, 135, 86, 0.35);
}

body.tbw-acc-results-page .tbw-acc-results-wrap .tour-btn-primary:hover,
body.smp-dark-page .tbw-acc-results-wrap .tour-btn-primary:hover {
  background: var(--tbw-dark-accent-hover) !important;
  color: var(--tbw-dark-text) !important;
  box-shadow: 0 8px 24px rgba(179, 135, 86, 0.45);
}

/* تنبيهات */
body.tbw-acc-results-page .tbw-acc-results-wrap .tour-notice-info,
body.smp-dark-page .tbw-acc-results-wrap .tour-notice-info {
  background: rgba(179, 135, 86, 0.1);
  color: var(--tbw-dark-text);
  border-color: rgba(179, 135, 86, 0.3);
}

body.tbw-acc-results-page .tbw-acc-results-wrap .tour-notice-warning,
body.smp-dark-page .tbw-acc-results-wrap .tour-notice-warning {
  background: rgba(234, 179, 8, 0.12);
  color: #FDE68A;
  border-color: rgba(234, 179, 8, 0.35);
}

body.tbw-acc-results-page .tbw-acc-results-wrap .tour-notice a,
body.smp-dark-page .tbw-acc-results-wrap .tour-notice a {
  color: var(--tbw-dark-accent);
  font-weight: 700;
}