/*
 * 1st Booking.com — shared visual finishing layer
 * Intentionally uses page-specific selectors to avoid cross-page CSS leakage.
 */
:root {
  --fb-brand-ink: #102d3a;
  --fb-brand-deep: #0b2430;
  --fb-brand-teal: #1c5964;
  --fb-brand-gold: #c6a66b;
  --fb-brand-red: #a51d39;
  --fb-brand-paper: #f6f8f8;
  --fb-brand-line: #e5eaeb;
  --fb-brand-muted: #71808c;
}
html { text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
img { height: auto; }
button, input, select, textarea { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(198,169,108,.55); outline-offset: 2px; }

/* Marketplace search, results, details and confirmation */
.mp-page, .fb-page, .mp-detail-page, .fb-detail-page {
  width: min(100% - 36px, 1440px);
  margin-inline: auto;
}
.mp-search-hero, .fb-search-hero {
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 22px 55px rgba(10,35,48,.14);
}
.mp-search-form, .fb-search-form { gap: 12px; }
.mp-field input, .mp-sort-form select,
.mp-price-inputs input, .mp-date-strip input,
.mp-booking-fields input, .fb-booking-form input,
.fb-booking-form select {
  min-width: 0;
  border-radius: 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.mp-field input:focus, .mp-sort-form select:focus,
.mp-price-inputs input:focus, .mp-date-strip input:focus,
.mp-booking-fields input:focus, .fb-booking-form input:focus,
.fb-booking-form select:focus {
  border-color: var(--fb-brand-teal);
  box-shadow: 0 0 0 3px rgba(28,89,100,.12);
  outline: none;
}
.mp-search-btn, .mp-apply-filter, .fb-search-form .mp-search-btn,
.fb-booking-form > .mp-search-btn {
  border-radius: 10px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.mp-search-btn:hover, .mp-apply-filter:hover,
.fb-search-form .mp-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(16,45,58,.16);
}
.mp-hotel-card, .fb-hotel-card, .mp-room-card, .fb-room-card,
.mp-detail-section, .fb-aside-card {
  border-radius: 16px;
  overflow: hidden;
}
.mp-hotel-card, .fb-hotel-card {
  box-shadow: 0 7px 24px rgba(16,45,58,.055);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mp-hotel-card:hover, .fb-hotel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 34px rgba(16,45,58,.11);
}
.mp-hotel-image img, .fb-hotel-card .mp-hotel-image img,
.mp-gallery img, .fb-gallery img, .mp-room-images img {
  display: block;
  object-fit: cover;
}
.mp-hotel-title, .fb-hotel-card .mp-hotel-title { line-height: 1.3; }
.mp-amenities, .fb-detail-highlights { flex-wrap: wrap; }
.mp-empty, .fb-empty { border-radius: 16px; }
.fb-header, .mp-header {
  position: relative;
  z-index: 20;
}
.fb-header nav, .mp-header nav { flex-wrap: wrap; }
.fb-logo, .mp-logo { white-space: nowrap; }
.fb-footer, .mp-footer { margin-top: 56px; }

/* Destination autocomplete */
.fb-destination-autocomplete { min-width: 0; }
.fb-destination-menu {
  border-color: #dce5e7;
  border-radius: 13px;
  box-shadow: 0 18px 42px rgba(12,39,51,.18);
}
.fb-destination-item { transition: background .15s ease; }
.fb-destination-item:focus-visible { outline-offset: -3px; }

/* Partner workspace */
.pd-shell { min-width: 0; }
.pd-main, .pd-content { min-width: 0; }
.pd-topbar { gap: 16px; }
.pd-card, .pd-stat, .pd-welcome { box-shadow: 0 8px 26px rgba(16,45,58,.055); }
.pd-card { border-radius: 16px; }
.pd-stat { border-radius: 15px; }
.pd-property-row { gap: 14px; }
.pd-table-wrap { max-width: 100%; overflow-x: auto; }
.pd-bookings table { min-width: 620px; }
.pd-nav a, .pd-add-btn, .pd-primary-btn, .pd-outline-btn {
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.pd-add-btn:hover, .pd-primary-btn:hover { transform: translateY(-1px); }

/* Admin console: preserve its dark premium theme */
.admin-layout { min-width: 0; }
.admin-main, .admin-content, .admin-container { min-width: 0; }
.admin-table-wrap, .admin-table-container { max-width: 100%; overflow-x: auto; }

/* Shared media behavior */
@media (max-width: 900px) {
  .mp-page, .fb-page, .mp-detail-page, .fb-detail-page {
    width: min(100% - 28px, 1440px);
    padding-top: 24px;
  }
  .mp-header, .fb-header { padding-inline: 20px; }
  .mp-header nav, .fb-header nav { gap: 16px; }
  .pd-sidebar { width: 225px; flex-basis: 225px; }
}
@media (max-width: 680px) {
  .mp-page, .fb-page, .mp-detail-page, .fb-detail-page {
    width: min(100% - 24px, 1440px);
    padding-bottom: 48px;
  }
  .mp-header, .fb-header {
    height: auto;
    min-height: 68px;
    padding: 15px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .mp-header nav, .fb-header nav {
    width: 100%;
    order: 3;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 18px;
    padding: 5px 0;
  }
  .mp-head-actions { gap: 10px; }
  .mp-logo, .fb-logo { font-size: 25px !important; }
  .mp-search-hero, .fb-search-hero { padding: 24px 18px; border-radius: 15px; }
  .mp-search-form, .fb-search-form { grid-template-columns: 1fr !important; }
  .mp-layout, .fb-layout, .mp-detail-grid, .fb-detail-grid {
    grid-template-columns: 1fr !important;
  }
  .mp-sidebar, .fb-sidebar { position: static; }
  .mp-hotel-card, .fb-hotel-card { grid-template-columns: 1fr !important; }
  .mp-hotel-image, .fb-hotel-card .mp-hotel-image { min-height: 210px; }
  .mp-hotel-price { align-items: flex-start; }
  .pd-shell { display: block; }
  .pd-sidebar { width: 100%; min-height: auto; }
  .pd-main { width: 100%; }
  .pd-topbar { align-items: flex-start; flex-direction: column; }
  .pd-top-actions { width: 100%; flex-wrap: wrap; }
  .pd-content { padding: 20px 14px 38px; }
  .pd-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pd-two-col { grid-template-columns: 1fr; }
  .music-player { right: 12px; bottom: 12px; transform: scale(.9); transform-origin: bottom right; }
}
@media (max-width: 420px) {
  .pd-stats { grid-template-columns: 1fr; }
  .mp-page, .fb-page, .mp-detail-page, .fb-detail-page { width: calc(100% - 20px); }
}

/* 1stB.com official uploaded logo */
.first-booking-brand,
.fb-logo,
.mp-logo {
  display: inline-flex;
  align-items: center;
}

.site-brand-logo {
  display: block;
  width: auto;
  height: 46px;
  max-width: 145px;
  object-fit: contain;
  border-radius: 5px;
}

@media (max-width: 760px) {
  .site-brand-logo {
    height: 39px;
    max-width: 125px;
  }
}
