/* ============================================================
   HotelBooking – booking.com-inspired design
   ============================================================ */

:root {
  --brand:          #003580;
  --brand-light:    #0071c2;
  --brand-lighter:  #ebf3ff;
  --accent:         #f5a623;
  --accent-dark:    #d4861a;
  --stars:          #feba02;
  --success:        #008009;
  --bg-gray:        #f2f2f2;
  --text-dark:      #333;
  --card-radius:    8px;
  --card-shadow:    0 2px 8px rgba(0,0,0,.12);
}

/* ---- Base ---- */
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text-dark); background: var(--bg-gray); }
a { color: var(--brand-light); }
a:hover { color: var(--brand); }

/* ---- Navbar ---- */
.navbar-booking { background: var(--brand); padding: 10px 0; }
.brand-logo { color: #fff !important; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; }
.brand-logo i { margin-right: 6px; }
.nav-link-booking { color: rgba(255,255,255,.85) !important; font-size: .9rem; padding: 6px 10px !important; border-radius: 4px; transition: background .15s; }
.nav-link-booking:hover { color: #fff !important; background: rgba(255,255,255,.15); }
.btn-accent { background: var(--accent); color: #fff; border: none; font-weight: 600; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }

/* ---- Hero ---- */
.hero-section { background: var(--brand); padding: 60px 0 80px; }
.hero-container { position: relative; }
.hero-title { color: #fff; font-size: 2.4rem; font-weight: 800; margin-bottom: 8px; }
.hero-subtitle { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 28px; }
.hero-signin-msg { color: rgba(255,255,255,.8); font-size: .9rem; margin-top: 14px; }

/* ---- Search Box ---- */
.search-box { background: var(--accent); border-radius: var(--card-radius); padding: 14px; }
.search-form-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.search-field { display: flex; flex-direction: column; flex: 1; min-width: 160px; }
.search-field label { color: var(--text-dark); font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.search-input { height: 48px; border: none; border-radius: 4px; padding: 0 12px; font-size: 15px; background: #fff; outline: none; width: 100%; }
.search-input:focus { box-shadow: 0 0 0 3px rgba(0,113,194,.35); }
.search-destination { flex: 2; min-width: 220px; }
.search-guests { min-width: 130px; }
.search-btn-wrap { min-width: 120px; }
.btn-search { height: 48px; font-size: 16px; font-weight: 700; width: 100%; }

/* ---- Compact search bar ---- */
.search-bar-compact { background: var(--brand); padding: 16px 0; }
.search-form-compact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search-field-sm { flex: 1; min-width: 140px; }
.search-input-sm { height: 42px; border: 2px solid #fff !important; background: #fff; border-radius: 4px; font-size: 14px; }
.search-input-sm:focus { box-shadow: 0 0 0 2px rgba(255,255,255,.5) !important; }

/* ---- Genius Banner ---- */
.genius-banner {
  background: linear-gradient(135deg, var(--brand-lighter), #d0e8ff);
  border: 1px solid var(--brand-light);
  border-radius: var(--card-radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.genius-badge { background: var(--brand); color: var(--accent); font-size: 16px; font-weight: 900; padding: 6px 12px; border-radius: 6px; letter-spacing: 1px; }

/* ---- Section ---- */
.section-title { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); }

/* ---- Destination Cards ---- */
.destination-card { display: block; }
.destination-img-wrap { position: relative; border-radius: var(--card-radius); overflow: hidden; }
.destination-img { width: 100%; height: 160px; object-fit: cover; transition: transform .3s; display: block; }
.destination-card:hover .destination-img { transform: scale(1.05); }
.destination-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.6)); display: flex; align-items: flex-end; padding: 12px; }
.destination-name { color: #fff; font-size: 1.1rem; font-weight: 700; }

/* ---- Hotel Card (featured/grid) ---- */
.hotel-card { background: #fff; border-radius: var(--card-radius); box-shadow: var(--card-shadow); overflow: hidden; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.hotel-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.18); transform: translateY(-3px); }
.hotel-card-img-wrap { position: relative; overflow: hidden; }
.hotel-card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.hotel-card-stars { position: absolute; top: 10px; left: 10px; color: var(--stars); font-size: 13px; }
.hotel-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.hotel-card-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; color: var(--text-dark); }
.hotel-card-location { font-size: .85rem; color: #777; margin-bottom: 12px; }

/* ---- Score Badge ---- */
.score-badge { background: var(--brand); color: #fff; font-weight: 700; padding: 4px 8px; border-radius: 6px 6px 6px 0; font-size: 14px; white-space: nowrap; }
.score-badge-lg { font-size: 1.2rem; padding: 8px 14px; }
.score-badge-sm { font-size: 12px; padding: 3px 7px; }
.score-label { font-weight: 600; font-size: .85rem; }
.review-count { font-size: .78rem; color: #888; }

/* ---- Price display ---- */
.price-from { font-size: 11px; color: #888; }
.price-amount { font-size: 1.25rem; font-weight: 800; color: var(--text-dark); }
.price-per { font-size: 11px; color: #888; }

/* ---- Book Button ---- */
.btn-book { background: var(--brand-light); color: #fff; font-weight: 700; border: none; border-radius: 4px; }
.btn-book:hover { background: var(--brand); color: #fff; }

/* ---- Star Rating ---- */
.star-rating { color: var(--stars); font-size: 16px; }
.star-rating-sm { color: var(--stars); font-size: 13px; }

/* ---- Why Us ---- */
.why-card { background: #fff; border-radius: var(--card-radius); box-shadow: var(--card-shadow); transition: transform .2s; }
.why-card:hover { transform: translateY(-4px); }
.why-icon { font-size: 2.5rem; color: var(--brand-light); }

/* ---- Footer ---- */
.footer-booking { background: #1a1a2e; }
.footer-link { color: #999; text-decoration: none; }
.footer-link:hover { color: #fff; }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.filter-sidebar { background: #fff; border-radius: var(--card-radius); padding: 16px; box-shadow: var(--card-shadow); }
.filter-title { font-weight: 700; font-size: 1rem; margin-bottom: 16px; color: var(--text-dark); }
.filter-group { border-top: 1px solid #e8e8e8; padding: 14px 0; }
.filter-group-title { font-size: .85rem; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.filter-label { display: flex; align-items: center; gap: 8px; font-size: .875rem; cursor: pointer; }
.filter-label input { cursor: pointer; }

.hotel-search-card { background: #fff; border-radius: var(--card-radius); box-shadow: var(--card-shadow); display: flex; overflow: hidden; margin-bottom: 16px; transition: box-shadow .2s; }
.hotel-search-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.16); }
.hotel-search-img-wrap { flex-shrink: 0; width: 220px; }
.hotel-search-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hotel-search-body { padding: 16px; flex: 1; }
.hotel-search-name a { color: var(--brand-light); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.hotel-search-name a:hover { color: var(--brand); text-decoration: underline; }
.hotel-location-sm { font-size: .82rem; color: #777; }
.amenity-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.amenity-badge { background: var(--brand-lighter); color: var(--brand-light); border-radius: 3px; font-size: 11px; padding: 2px 7px; font-weight: 500; }
.hotel-search-price-col { min-width: 150px; }
.search-total-price { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); }

@media (max-width: 768px) {
  .hotel-search-card { flex-direction: column; }
  .hotel-search-img-wrap { width: 100%; height: 180px; }
  .hotel-search-img { height: 180px; }
}

/* ============================================================
   HOTEL DETAIL
   ============================================================ */
.hotel-detail-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 8px; }
.hotel-detail-location { font-size: .9rem; color: #555; }

/* Gallery */
.hotel-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; height: 380px; }
.gallery-main { overflow: hidden; border-radius: var(--card-radius) 0 0 var(--card-radius); }
.gallery-main-img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.gallery-thumbs { display: grid; grid-template-rows: repeat(3, 1fr); gap: 8px; }
.gallery-thumb { overflow: hidden; border-radius: 4px; cursor: pointer; }
.gallery-thumb:last-child { border-radius: 0 var(--card-radius) var(--card-radius) 0; }
.gallery-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.gallery-thumb:hover .gallery-thumb-img { transform: scale(1.07); }

@media (max-width: 768px) {
  .hotel-gallery { grid-template-columns: 1fr; height: 220px; }
  .gallery-thumbs { display: none; }
}

/* Detail sections */
.detail-section { background: #fff; border-radius: var(--card-radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--card-shadow); }
.detail-section-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #e8e8e8; }
.info-badge { background: var(--brand-lighter); color: var(--brand); border-radius: 20px; padding: 4px 12px; font-size: .82rem; font-weight: 500; }

/* Amenity items */
.amenity-item { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--text-dark); }
.amenity-icon-detail { color: var(--brand-light); font-size: 1.1rem; }

/* Room cards */
.room-card { background: #f9f9f9; border-radius: var(--card-radius); border: 1px solid #e0e0e0; margin-bottom: 14px; overflow: hidden; }
.room-card-img-wrap { width: 200px; flex-shrink: 0; }
.room-card-img { width: 100%; height: 140px; object-fit: cover; display: block; }
.room-card-body { padding: 16px; flex: 1; }
.room-card { display: flex; }
.room-card-name { font-size: 1.05rem; font-weight: 700; color: var(--brand-light); margin-bottom: 6px; }
.room-card-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: #777; margin-bottom: 6px; }
.room-price-col { min-width: 130px; }
.room-price-per { font-size: 11px; color: #888; }
.room-price { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.room-total { font-size: .85rem; font-weight: 600; color: #555; }
.room-features { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.room-feature { font-size: .8rem; color: #555; }

@media (max-width: 600px) {
  .room-card { flex-direction: column; }
  .room-card-img-wrap { width: 100%; }
  .room-card-img { height: 160px; }
}

/* Reviews */
.review-card { border: 1px solid #e8e8e8; border-radius: var(--card-radius); padding: 16px; margin-bottom: 14px; background: #fff; }
.reviewer-avatar { width: 40px; height: 40px; background: var(--brand); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; text-transform: uppercase; }
.reviewer-name { font-weight: 700; font-size: .95rem; }
.reviewer-country { font-size: .8rem; color: #888; }
.review-score { background: var(--brand); color: #fff; font-weight: 700; padding: 3px 8px; border-radius: 6px; font-size: .95rem; }
.review-date { font-size: .8rem; }
.review-title { font-weight: 600; font-size: .95rem; }
.review-comment { color: #555; font-size: .9rem; margin-bottom: 0; }

/* Booking sidebar */
.booking-sidebar { background: #fff; border-radius: var(--card-radius); padding: 20px; box-shadow: var(--card-shadow); border: 1px solid #e0e0e0; }
.sticky-sidebar { position: sticky; top: 80px; }
.booking-dates-display { display: flex; align-items: center; gap: 8px; background: var(--brand-lighter); border-radius: 6px; padding: 12px; margin-bottom: 12px; }
.booking-date-item { flex: 1; }
.booking-date-label { font-size: 11px; color: #888; }
.booking-date-val { font-weight: 700; font-size: .9rem; }
.booking-date-sub { font-size: 11px; color: #888; }
.booking-dates-arrow { color: #888; }
.booking-guests-display { background: var(--brand-lighter); border-radius: 6px; padding: 10px 14px; font-size: .9rem; margin-bottom: 16px; }
.booking-price-summary { background: #f9f9f9; border-radius: 6px; padding: 14px; font-size: .9rem; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page { background: var(--bg-gray); min-height: 70vh; padding: 60px 0; }
.auth-card { background: #fff; border-radius: var(--card-radius); box-shadow: var(--card-shadow); overflow: hidden; }
.auth-header { background: var(--brand); text-align: center; padding: 30px 24px 20px; }
.auth-logo { font-size: 2.5rem; color: var(--accent); margin-bottom: 8px; }
.auth-title { color: #fff; font-weight: 700; margin-bottom: 0; }
.auth-body { padding: 28px; }
.demo-credentials { border: 1px solid #dee2e6; border-left: 3px solid var(--brand-light); }

/* ============================================================
   PROFILE
   ============================================================ */
.profile-sidebar { background: #fff; border-radius: var(--card-radius); padding: 20px; box-shadow: var(--card-shadow); }
.profile-avatar { width: 72px; height: 72px; background: var(--brand); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; margin: 0 auto; text-transform: uppercase; }
.profile-nav { display: flex; flex-direction: column; gap: 2px; }
.profile-nav-link { display: flex; align-items: center; padding: 10px 12px; border-radius: 6px; color: var(--text-dark); text-decoration: none; font-size: .9rem; transition: background .15s; }
.profile-nav-link:hover, .profile-nav-link.active { background: var(--brand-lighter); color: var(--brand-light); }
.profile-card { background: #fff; border-radius: var(--card-radius); padding: 24px; box-shadow: var(--card-shadow); }

/* ============================================================
   MY BOOKINGS
   ============================================================ */
.booking-card { background: #fff; border-radius: var(--card-radius); box-shadow: var(--card-shadow); display: flex; overflow: hidden; margin-bottom: 16px; }
.booking-card-img-wrap { flex-shrink: 0; width: 200px; }
.booking-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.booking-card-body { padding: 16px; flex: 1; }
@media (max-width: 600px) {
  .booking-card { flex-direction: column; }
  .booking-card-img-wrap { width: 100%; height: 160px; }
}

/* ============================================================
   BOOKING FORM
   ============================================================ */
.booking-form-card { background: #fff; border-radius: var(--card-radius); padding: 24px; box-shadow: var(--card-shadow); }
.booking-form-section-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #e8e8e8; }
.booking-summary-card { background: #fff; border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--card-shadow); }

/* ============================================================
   BOOKING CONFIRMATION
   ============================================================ */
.confirmation-banner { background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: var(--card-radius); padding: 24px; }
.confirmation-check { width: 56px; height: 56px; background: var(--success); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; }
.confirmation-card { background: #fff; border-radius: var(--card-radius); padding: 24px; box-shadow: var(--card-shadow); }
.conf-detail-label { font-size: .8rem; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.conf-detail-val { font-size: 1rem; font-weight: 600; }
.conf-detail-sub { font-size: .82rem; color: #888; }
.confirmation-info-card { background: var(--brand-lighter); border-radius: var(--card-radius); padding: 20px; border: 1px solid #c5daf5; }

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-body { background: #f0f2f5; }
.admin-sidebar { width: 240px; background: #1e2a3b; min-height: 100vh; flex-shrink: 0; transition: width .25s; }
.admin-sidebar-brand { padding: 20px 18px; font-size: 1.2rem; font-weight: 800; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-nav { padding: 12px 10px; }
.admin-nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; color: rgba(255,255,255,.7); text-decoration: none; font-size: .88rem; transition: background .15s, color .15s; margin-bottom: 2px; }
.admin-nav-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-nav-link.active { background: var(--brand-light); color: #fff; }
.admin-nav-section { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.35); padding: 8px 12px 4px; }
.admin-main { background: #f0f2f5; min-height: 100vh; }
.admin-topbar { background: #fff; padding: 12px 20px; display: flex; align-items: center; gap: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 100; }
.admin-content { }

/* Stat Cards */
.admin-stat-card { background: #fff; border-radius: var(--card-radius); padding: 20px; box-shadow: var(--card-shadow); display: flex; align-items: center; gap: 16px; }
.admin-stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; flex-shrink: 0; }
.admin-stat-label { font-size: .8rem; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.admin-stat-value { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); }

/* Mini stats */
.admin-mini-stat { background: #fff; border-radius: var(--card-radius); padding: 12px 16px; display: flex; align-items: center; gap: 8px; box-shadow: var(--card-shadow); font-size: .9rem; }
.admin-mini-stat.confirmed { border-left: 4px solid #198754; }
.admin-mini-stat.completed { border-left: 4px solid #0d6efd; }
.admin-mini-stat.cancelled { border-left: 4px solid #dc3545; }

/* Admin Card */
.admin-card { background: #fff; border-radius: var(--card-radius); padding: 20px; box-shadow: var(--card-shadow); margin-bottom: 20px; }
.admin-card-title { font-size: .95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; }

/* Admin Table */
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table thead tr { background: #f8f9fa; }
.admin-table th { padding: 10px 12px; text-align: left; font-weight: 700; color: #555; border-bottom: 2px solid #dee2e6; white-space: nowrap; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.admin-table tbody tr:hover { background: #f9f9f9; }

/* Admin Room Cards */
.admin-room-card { background: #fff; border-radius: var(--card-radius); box-shadow: var(--card-shadow); overflow: hidden; }
.admin-room-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.admin-room-body { padding: 14px; }

/* Tiny button */
.btn-xs { padding: 3px 8px; font-size: 13px; }

/* Sort select */
.sort-select { font-size: .875rem; }

/* Access denied */
.access-denied-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* A flex item defaults to min-width:auto, so the admin shell would grow to the width of its
   widest table instead of letting .table-responsive scroll. These three rules are what keep
   every admin page inside the viewport. */
#wrapper { max-width: 100%; }
.admin-main { min-width: 0; max-width: 100%; }
.admin-content { min-width: 0; }
.admin-card, .admin-table, .table-responsive { min-width: 0; max-width: 100%; }
.admin-topbar { flex-wrap: wrap; row-gap: 8px; }

@media (max-width: 992px) {
  .hero-title { font-size: 1.8rem; }
  .search-form-row { gap: 6px; }

  /* Bootstrap's .d-flex is display:flex !important, so hiding the sidebar needs !important too */
  .admin-sidebar { display: none !important; }
  .admin-sidebar.show {
    display: flex !important;
    position: fixed;
    top: 0;
    z-index: 200;
    height: 100vh;
    width: 240px;
    overflow-y: auto;
    box-shadow: 0 0 24px rgba(0,0,0,.35);
  }
  [dir="ltr"] .admin-sidebar.show { left: 0; right: auto; }
  [dir="rtl"] .admin-sidebar.show { right: 0; left: auto; }
}

@media (max-width: 767.98px) {
  .admin-content { padding: 14px !important; }
  .admin-topbar { padding: 10px 12px; }
  .admin-topbar .breadcrumb { display: none; }      /* the page title is already on the page */
  .admin-table { font-size: .8rem; }
  .admin-table th, .admin-table td { padding: 8px 10px; }
  .admin-stat-value { font-size: 1.35rem; }
  .admin-stat-label { font-size: .72rem; }
}

@media (max-width: 575.98px) {
  .admin-stat-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .admin-stat-icon { width: 44px; height: 44px; font-size: 1.25rem; }
  .revenue-chart { height: 180px; gap: 8px; }
  .revenue-value { display: none; }                 /* bars stay readable when narrow */
  .occupancy-ring { width: 76px; height: 76px; }
  .occupancy-ring span { width: 56px; height: 56px; font-size: .9rem; }
  .hero-title { font-size: 1.55rem; }
  .hero-section { padding: 36px 0 44px; }
  .section-title { font-size: 1.25rem; }
  .hotel-detail-title { font-size: 1.35rem; }
  .room-price { font-size: 1.35rem; }
  .search-total-price { font-size: 1.25rem; }
}

/* ============================================================
   v2 additions: dashboard analytics, RTL support, misc
   ============================================================ */

.lang-switch { font-weight: 600; letter-spacing: .2px; }

.destination-count { font-size: 12px; opacity: .85; }

.review-reply {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f5f7fa;
    border-inline-start: 3px solid #0071c2;
    border-radius: 6px;
}

/* --- Dashboard revenue chart (pure CSS bars) --- */
.revenue-chart {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    height: 220px;
    padding-top: 10px;
}
.revenue-bar-wrap {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 0;
}
.revenue-bar {
    width: 100%;
    max-width: 54px;
    background: linear-gradient(180deg, #0071c2 0%, #003580 100%);
    border-radius: 6px 6px 0 0;
    transition: filter .15s ease;
}
.revenue-bar-wrap:hover .revenue-bar { filter: brightness(1.15); }
.revenue-value { font-size: 11px; color: #6b6b6b; margin-bottom: 4px; white-space: nowrap; }
.revenue-label { font-size: 11px; color: #6b6b6b; margin-top: 6px; white-space: nowrap; }

/* --- Occupancy ring --- */
.occupancy-ring {
    --pct: 0;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(#0071c2 calc(var(--pct) * 1%), #e7e7e7 0);
    flex: 0 0 auto;
}
.occupancy-ring span {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #003580;
}

.admin-mini-stat.pending { border-inline-start-color: #ffb700; }

/* ============================================================
   RTL adjustments (Bootstrap RTL handles logical spacing;
   these cover the few physical rules in this stylesheet)
   ============================================================ */
[dir="rtl"] .hero-title,
[dir="rtl"] .hero-subtitle,
[dir="rtl"] .section-title { text-align: right; }

[dir="rtl"] .admin-sidebar { border-left: 1px solid #2b2b2b; border-right: 0; }
[dir="rtl"] .admin-nav-link { text-align: right; }
[dir="rtl"] .admin-nav-link i { margin-left: 0; margin-right: 0; }

[dir="rtl"] .booking-dates-arrow i { transform: scaleX(-1); }
[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before { transform: scaleX(-1); }

[dir="rtl"] .gallery-thumbs { direction: rtl; }
[dir="rtl"] .filter-label { text-align: right; }
[dir="rtl"] .search-form-row,
[dir="rtl"] .search-form-compact { direction: rtl; }

[dir="rtl"] .admin-table th,
[dir="rtl"] .admin-table td { text-align: right; }

[dir="rtl"] .revenue-chart { direction: ltr; }

/* Arabic typography: slightly larger line height for legibility */
html[lang="ar"] body { line-height: 1.7; }
html[lang="ar"] .hotel-card-name,
html[lang="ar"] .room-card-name,
html[lang="ar"] .hotel-detail-title { letter-spacing: 0; }

/* ============================================================
   PHOTO GALLERIES: mosaic header + full-screen viewer
   ============================================================ */

/* --- mosaic --- */
.hotel-gallery{position:relative; display:grid; grid-template-columns:2fr 1fr; gap:8px; height:400px}
.gallery-main{overflow:hidden; border-radius:var(--card-radius) 0 0 var(--card-radius); cursor:zoom-in}
.gallery-main-img{width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s}
.gallery-main:hover .gallery-main-img{transform:scale(1.03)}
.gallery-side{display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; gap:8px}
.gallery-cell{position:relative; overflow:hidden; cursor:zoom-in}
.gallery-cell:nth-child(2){border-radius:0 var(--card-radius) 0 0}
.gallery-cell:nth-child(4){border-radius:0 0 var(--card-radius) 0}
[dir="rtl"] .gallery-main{border-radius:0 var(--card-radius) var(--card-radius) 0}
[dir="rtl"] .gallery-cell:nth-child(2){border-radius:var(--card-radius) 0 0 0}
[dir="rtl"] .gallery-cell:nth-child(4){border-radius:0 0 0 var(--card-radius)}
.gallery-cell-img{width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s}
.gallery-cell:hover .gallery-cell-img{transform:scale(1.06)}
.gallery-more{
  position:absolute; inset:0; background:rgba(0,0,0,.55); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:1.6rem; font-weight:800;
}
.gallery-showall{
  position:absolute; inset-block-end:14px; inset-inline-end:14px;
  background:#fff; color:var(--text-dark); border:1px solid #d9d9d9; border-radius:8px;
  padding:8px 14px; font-weight:700; font-size:.9rem; cursor:pointer; box-shadow:0 2px 10px rgba(0,0,0,.25);
}
.gallery-showall:hover{background:#f4f6f9}

/* room card gallery affordance */
.room-gallery{position:relative; cursor:zoom-in}
.room-photo-count{
  position:absolute; inset-block-end:8px; inset-inline-start:8px;
  background:rgba(0,0,0,.65); color:#fff; border-radius:6px; padding:3px 8px; font-size:12px; font-weight:600;
}

/* --- full-screen viewer --- */
.lightbox{position:fixed; inset:0; z-index:1080; background:#0b0b0d; display:flex; flex-direction:column}
.lightbox[hidden]{display:none}
.lightbox-bar{display:flex; align-items:center; gap:14px; padding:12px 18px; color:#fff}
.lightbox-title{font-weight:700; font-size:1rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.lightbox-counter{margin-inline-start:auto; font-size:.9rem; color:#cfd3da}
.lightbox-close{background:transparent; border:none; color:#fff; font-size:1.3rem; cursor:pointer; padding:4px 8px; border-radius:6px}
.lightbox-close:hover{background:rgba(255,255,255,.15)}
.lightbox-filters{display:flex; flex-wrap:wrap; gap:8px; padding:0 18px 10px}
.lightbox-filter{
  background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.2);
  border-radius:999px; padding:5px 14px; font-size:.85rem; cursor:pointer;
}
.lightbox-filter:hover{background:rgba(255,255,255,.22)}
.lightbox-filter.active{background:#fff; color:#111; border-color:#fff; font-weight:700}
.lightbox-stage{flex:1; display:flex; align-items:center; gap:10px; padding:0 12px; min-height:0}
.lightbox-figure{flex:1; margin:0; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:0}
.lightbox-figure img{max-width:100%; max-height:calc(100% - 34px); object-fit:contain; border-radius:6px}
.lightbox-figure figcaption{color:#e6e8ec; font-size:.9rem; margin-top:10px; text-align:center}
.lightbox-nav{
  background:rgba(255,255,255,.14); color:#fff; border:none; width:46px; height:46px; border-radius:50%;
  font-size:1.2rem; cursor:pointer; flex-shrink:0;
}
.lightbox-nav:hover{background:rgba(255,255,255,.3)}
.lightbox-strip{display:flex; gap:8px; overflow-x:auto; padding:12px 18px 18px}
.lightbox-thumb{border:2px solid transparent; background:none; padding:0; border-radius:6px; cursor:pointer; flex:0 0 auto}
.lightbox-thumb img{width:86px; height:60px; object-fit:cover; display:block; border-radius:4px; opacity:.65}
.lightbox-thumb.active{border-color:#fff}
.lightbox-thumb.active img,.lightbox-thumb:hover img{opacity:1}

@media (max-width:768px){
  .hotel-gallery{grid-template-columns:1fr; height:260px}
  .gallery-side{display:none}
  .gallery-main{border-radius:var(--card-radius)}
  .lightbox-nav{display:none}          /* swipe instead */
  .lightbox-strip{padding:10px 12px 14px}
  .lightbox-thumb img{width:64px; height:46px}
  .lightbox-title{font-size:.9rem}
}

/* clickable card images */
a.hotel-card-img-wrap,a.hotel-search-img-wrap,a.booking-card-img-wrap{display:block; text-decoration:none; color:inherit}
a.hotel-search-img-wrap{flex-shrink:0; width:220px}
a.booking-card-img-wrap{flex-shrink:0; width:200px}
.hotel-card-link{color:inherit; text-decoration:none}
.hotel-card-link:hover{color:var(--brand-light); text-decoration:underline}
a.hotel-card-img-wrap .hotel-card-img,a.hotel-search-img-wrap .hotel-search-img{transition:transform .35s}
a.hotel-card-img-wrap:hover .hotel-card-img,a.hotel-search-img-wrap:hover .hotel-search-img{transform:scale(1.05)}
@media (max-width:768px){ a.hotel-search-img-wrap{width:100%; height:180px} }
@media (max-width:600px){ a.booking-card-img-wrap{width:100%; height:160px} }


/* ============================================================
   AI ASSISTANT WIDGET
   ============================================================ */
.chat-launcher{
  position:fixed; inset-block-end:22px; inset-inline-end:22px; z-index:1050;
  width:56px; height:56px; border-radius:50%; border:none; cursor:pointer;
  background:var(--brand-light); color:#fff; font-size:1.5rem;
  box-shadow:0 6px 20px rgba(0,0,0,.28); transition:transform .18s, background .18s;
}
.chat-launcher:hover{background:var(--brand); transform:translateY(-2px)}
.chat-launcher.open{background:var(--brand)}

.chat-panel{
  position:fixed; inset-block-end:88px; inset-inline-end:22px; z-index:1051;
  width:370px; max-width:calc(100vw - 32px); height:520px; max-height:calc(100vh - 120px);
  background:#fff; border-radius:14px; box-shadow:0 12px 40px rgba(0,0,0,.28);
  display:flex; flex-direction:column; overflow:hidden; border:1px solid #e2e2e2;
}
.chat-panel[hidden]{display:none}
.chat-head{background:var(--brand); color:#fff; padding:12px 16px; display:flex; align-items:flex-start; gap:10px}
.chat-title{font-weight:700}
.chat-sub{font-size:.78rem; opacity:.85}
.chat-close{margin-inline-start:auto; background:transparent; border:none; color:#fff; cursor:pointer; font-size:1rem}
.chat-log{flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:10px; background:#f7f9fc}
.chat-msg{max-width:86%; padding:9px 13px; border-radius:14px; font-size:.9rem; line-height:1.65; white-space:pre-wrap; word-break:break-word}
.chat-msg.bot{background:#fff; border:1px solid #e6e8ec; align-self:flex-start; border-start-start-radius:4px}
.chat-msg.me{background:var(--brand-light); color:#fff; align-self:flex-end; border-start-end-radius:4px}
.chat-msg.bot a{color:var(--brand-light); word-break:break-all}
.chat-msg.warn{background:#fff7e6; border-color:#ffe0a3}
.chat-msg.typing{opacity:.65; font-style:italic}
.chat-suggestions{display:flex; flex-wrap:wrap; gap:6px}
.chat-chip{background:#fff; border:1px solid var(--brand-light); color:var(--brand-light);
  border-radius:999px; padding:5px 12px; font-size:.8rem; cursor:pointer}
.chat-chip:hover{background:var(--brand-lighter)}
.chat-rate{display:flex; align-items:center; gap:8px; padding:6px 14px; font-size:.8rem; color:#666; border-top:1px solid #eee; background:#fff}
.chat-rate[hidden]{display:none}
.chat-rate button{background:transparent; border:1px solid #ddd; border-radius:6px; cursor:pointer; padding:2px 8px}
.chat-rate button:hover{background:#f2f4f7}
.chat-form{display:flex; gap:8px; padding:10px 12px; border-top:1px solid #eee; background:#fff}
.chat-form input{flex:1; border:1px solid #d8dbe0; border-radius:999px; padding:9px 14px; font-size:.9rem; outline:none}
.chat-form input:focus{border-color:var(--brand-light); box-shadow:0 0 0 3px rgba(0,113,194,.15)}
.chat-form button{background:var(--brand-light); color:#fff; border:none; border-radius:50%; width:38px; height:38px; cursor:pointer; flex-shrink:0}
.chat-form button:disabled{opacity:.6; cursor:default}
.chat-foot{font-size:.7rem; color:#8a8a8a; text-align:center; padding:0 12px 10px; background:#fff}

@media (max-width:575.98px){
  .chat-panel{inset-inline:12px; inset-block-end:80px; width:auto; height:calc(100vh - 130px)}
  .chat-launcher{inset-block-end:16px; inset-inline-end:16px; width:50px; height:50px; font-size:1.3rem}
}
