/* حجز فنادق ليبيا — BAAZ Hotels */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --navy: #0f172a;
  --navy2: #1e293b;
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --green: #16a34a;
  --orange: #ea580c;
  --red: #dc2626;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Cairo', Tahoma, sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 2.5rem 1rem; }
.section-title { font-size: 1.6rem; margin-bottom: 1.2rem; color: var(--navy); }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1rem; gap: 1rem; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: .6rem; color: #fff; }
.logo-mark { font-size: 1.8rem; }
.logo-text { font-weight: 800; font-size: 1.1rem; display: flex; flex-direction: column; line-height: 1.2; }
.logo-text small { font-weight: 400; color: #94a3b8; font-size: .7rem; }
.nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav a { color: #e2e8f0; font-weight: 600; padding: .3rem .5rem; border-radius: 6px; }
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Hero */
.hero { background: linear-gradient(135deg, #0c4a6e 0%, #0ea5e9 100%); color: #fff; padding: 3.5rem 1rem; }
.hero h1 { font-size: 2rem; margin-bottom: .5rem; }
.hero p { opacity: .9; margin-bottom: 1.5rem; max-width: 640px; }
.search-box { background: var(--card); border-radius: var(--radius); padding: 1.2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; align-items: end; box-shadow: var(--shadow); color: var(--text); }
.search-box .field label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .2rem; font-weight: 700; }
.search-box select, .search-box input { width: 100%; padding: .55rem .7rem; border: 1px solid #cbd5e1; border-radius: 8px; font-family: inherit; }
.search-box .btn { grid-column: span 1; }

/* Cities */
.cities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.city-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: #fff; min-height: 180px; }
.city-card img { width: 100%; height: 180px; object-fit: cover; transition: transform .3s; }
.city-card:hover img { transform: scale(1.06); }
.city-info { position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(0,0,0,.85)); padding: 1rem .8rem .7rem; }
.city-info h3 { font-size: 1.1rem; }
.city-info p { font-size: .8rem; opacity: .9; }

/* Hotel cards */
.hotels-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.2rem; }
.hotel-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; }
.hotel-card:hover { transform: translateY(-3px); }
.hotel-img { position: relative; }
.hotel-img img { width: 100%; height: 190px; object-fit: cover; }
.badge { position: absolute; top: .6rem; right: .6rem; padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; color: #fff; }
.badge-green { background: var(--green); }
.badge-orange { background: var(--orange); top: 2.2rem; }
.badge-red { background: var(--red); }
.hotel-body { padding: 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.hotel-head { display: flex; justify-content: space-between; gap: .5rem; align-items: start; }
.hotel-head h3 a { color: var(--navy); font-size: 1.05rem; }
.stars { color: #f59e0b; white-space: nowrap; font-size: .9rem; }
.hotel-meta { color: var(--muted); font-size: .85rem; }
.hotel-meal { font-size: .85rem; color: var(--primary-dark); font-weight: 600; }
.hotel-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: .6rem; border-top: 1px dashed #e2e8f0; }
.price b { color: var(--primary-dark); font-size: 1.15rem; }
.price small { color: var(--muted); }

/* Buttons */
.btn { display: inline-block; border: 0; cursor: pointer; font-family: inherit; font-weight: 700; border-radius: 8px; padding: .55rem 1.2rem; text-align: center; transition: background .2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary-dark); background: transparent; }
.btn-ghost { background: #e2e8f0; color: var(--navy); }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; margin-top: .5rem; }

/* Features band */
.features-band { background: var(--navy); color: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; }
.feature { text-align: center; padding: 1rem; }
.feature span { font-size: 2rem; }
.feature h3 { margin: .4rem 0; font-size: 1rem; }
.feature p { font-size: .85rem; color: #94a3b8; }

.health-card { background: linear-gradient(135deg, #ecfdf5, #eff6ff); border: 1px solid #bbf7d0; border-radius: var(--radius); padding: 2rem; }
.health-card h2 { color: var(--green); margin-bottom: .5rem; }
.health-card p { margin-bottom: 1rem; color: #334155; }

/* Page banner */
.page-banner { background: var(--navy2); color: #fff; padding: 2rem 1rem; }
.page-banner h1 { font-size: 1.6rem; }
.page-banner p { color: #94a3b8; }

/* Layout 2col */
.layout-2col { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; padding: 1.5rem 1rem; align-items: start; }
.filters { background: var(--card); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); position: sticky; top: 70px; }
.filters h3 { margin-bottom: .8rem; }
.fl { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin: .7rem 0 .2rem; }
.filters input[type=text], .filters input[type=number], .filters select,
.book-form input, .book-form select, .book-form textarea {
  width: 100%; padding: .5rem .7rem; border: 1px solid #cbd5e1; border-radius: 8px; font-family: inherit; font-size: .9rem;
}
.fl-checks label, .fl-check { display: flex; align-items: center; gap: .4rem; font-size: .85rem; margin-top: .4rem; cursor: pointer; }
.filters fieldset { margin-top: 1rem; border: 1px solid #e2e8f0; border-radius: 8px; padding: .6rem .8rem; }
.filters legend { font-size: .8rem; font-weight: 700; color: var(--muted); padding: 0 .3rem; }
.empty { background: var(--card); padding: 2rem; border-radius: var(--radius); text-align: center; color: var(--muted); }

/* Hotel detail */
.breadcrumb { padding: .8rem 1rem; font-size: .85rem; color: var(--muted); }
.breadcrumb a { color: var(--primary-dark); }
.hotel-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: .5rem; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.2rem; }
.hotel-gallery img { width: 100%; height: 160px; object-fit: cover; }
.hotel-gallery .main-img { grid-row: span 3; height: 100%; min-height: 340px; }
.hotel-info-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: start; }
.stars-inline { color: #f59e0b; font-size: 1rem; }
.cancel-box { display: flex; flex-direction: column; gap: .4rem; }
.cancel-box .badge { position: static; }
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 1.5rem; align-items: start; padding-bottom: 3rem; }
.detail-main h2 { margin: 1.4rem 0 .6rem; color: var(--navy); font-size: 1.25rem; }
.detail-main h2:first-child { margin-top: 0; }
.amenity-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .4rem; }
.amenity-list li { background: var(--card); padding: .4rem .7rem; border-radius: 8px; font-size: .88rem; }
.room-card { display: grid; grid-template-columns: 140px 1fr auto; gap: 1rem; background: var(--card); border-radius: var(--radius); padding: .8rem; margin-bottom: .8rem; box-shadow: var(--shadow); align-items: center; }
.room-card img { width: 140px; height: 100px; object-fit: cover; border-radius: 8px; }
.room-specs { font-size: .8rem; color: var(--muted); }
.room-book { text-align: center; display: flex; flex-direction: column; gap: .3rem; min-width: 140px; }
.room-total { font-size: .8rem; color: var(--muted); }
.special-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; }
.detail-side { position: sticky; top: 70px; }

/* Book form */
.card { background: var(--card); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.book-form h2 { margin-bottom: .8rem; font-size: 1.2rem; }
.book-form h3 { margin: 1.2rem 0 .4rem; font-size: 1rem; color: var(--navy); border-top: 1px dashed #e2e8f0; padding-top: .9rem; }
.book-form > input, .book-form > select, .book-form > textarea { margin-bottom: .2rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.hint { font-size: .78rem; color: var(--muted); margin: .3rem 0 .6rem; }
.hint.center { text-align: center; }
.group-label { font-weight: 700; font-size: .85rem; margin-top: .6rem; color: var(--primary-dark); }
.price-summary { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: .8rem; margin: .8rem 0; }
.ps-row { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: .3rem; }
.ps-total { font-weight: 800; font-size: 1.05rem; color: var(--primary-dark); border-top: 1px solid #e2e8f0; padding-top: .4rem; }
.ps-note { font-size: .78rem; color: var(--green); margin-top: .3rem; }

/* Success / alerts */
.success-page { display: flex; justify-content: center; }
.success-card { max-width: 560px; width: 100%; text-align: center; }
.success-icon { font-size: 3rem; margin-bottom: .5rem; }
.booking-summary { text-align: right; background: #f8fafc; border-radius: 8px; padding: 1rem; margin: 1rem 0; }
.bs-row { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px dashed #e2e8f0; font-size: .92rem; }
.bs-row:last-child { border: 0; }
.ref { font-family: monospace; color: var(--primary-dark); direction: ltr; }
.green { color: var(--green); }
.total { color: var(--primary-dark); }
.special-summary { text-align: right; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 8px; padding: 1rem; margin: 1rem 0; }
.special-summary ul { padding-right: 1.2rem; font-size: .9rem; }
.alert { border-radius: 8px; padding: 1rem; margin: 1rem 0; text-align: right; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--red); }
.alert-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert ul { padding-right: 1.2rem; }

/* Footer */
.site-footer { background: var(--navy); color: #cbd5e1; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; padding: 2.5rem 1rem 1.5rem; }
.site-footer h3 { color: #fff; margin-bottom: .6rem; font-size: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .35rem; font-size: .9rem; }
.site-footer a { color: #7dd3fc; }
.brand-line { margin-top: .8rem; font-size: .8rem; }
.footer-bottom { text-align: center; padding: .8rem; border-top: 1px solid #1e293b; font-size: .8rem; color: #64748b; }

/* Responsive */
@media (max-width: 900px) {
  .layout-2col, .detail-grid { grid-template-columns: 1fr; }
  .filters, .detail-side { position: static; }
  .hotel-gallery { grid-template-columns: 1fr 1fr; }
  .hotel-gallery .main-img { grid-column: span 2; grid-row: auto; min-height: 220px; }
  .room-card { grid-template-columns: 100px 1fr; }
  .room-book { grid-column: span 2; flex-direction: row; justify-content: space-between; align-items: center; }
  .room-card img { width: 100px; height: 80px; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 1.4rem; }
  .search-box { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .room-card { grid-template-columns: 1fr; }
  .room-card img { width: 100%; height: 140px; }
  .room-book { grid-column: auto; flex-direction: column; }
}
