:root {
  --primary: #1877f2;
  --primary-dark: #1664d9;
  --primary-light: #e8f0fe;
  --accent: #c9a84c;
  --accent-hover: #b8942e;
  --bg: #f0f2f5;
  --card: #ffffff;
  --text: #1c1e21;
  --text-light: #65676b;
  --border: #dadde1;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Cairo', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

/* ===== PAGE LOAD ===== */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
body { animation: pageFadeIn 0.6s ease-out; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ===== HEADER LUXURY ===== */
header.luxury-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(10,22,40,0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  height: 64px; display: flex; align-items: center; padding: 0 24px;
}
.luxury-header-inner {
  max-width: 1280px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.luxury-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.luxury-logo .header-logo-img {
  height: 40px; max-width: 130px;
  border-radius: 6px; object-fit: contain;
  display: block;
}
.luxury-logo .company-name {
  font-weight: 700; font-size: 1.15rem;
  background: linear-gradient(135deg, #fff, #90caf9, #fff);
  background-size: 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}
header.luxury-header ~ main { padding-top: 72px; }

/* ===== HERO ===== */
.hero-gradient { background: linear-gradient(135deg, #0A1628 0%, #132347 40%, #1a3a6b 70%, #1877f2 100%); }
.hero-logo-img {
  height: 90px; max-width: 220px;
  object-fit: contain; display: block;
  margin: 0 auto 16px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
  animation: heroFadeUp 0.6s ease both;
}
.gold-gradient { background: linear-gradient(135deg, #C9A84C, #E8D48B, #C9A84C); }
.gold-text { background: linear-gradient(135deg, #C9A84C, #E8D48B); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.glass { background: rgba(255,255,255,0.08); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.12); }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 32px 20px; }
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; }
.section-title::after { content: ''; display: block; width: 50px; height: 3px; background: var(--accent); border-radius: 2px; margin-top: 6px; }

/* ===== GRIDS ===== */
.grid-cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.grid-hotels { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* ===== CARD ===== */
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; cursor: pointer; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-img { width: 100%; height: 200px; object-fit: cover; display: block; background: var(--border); }
.card-body { padding: 16px; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.card-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }

/* ===== STARS ===== */
.stars { color: var(--accent); font-size: 0.9rem; letter-spacing: 1px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border: none; border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: 0.2s; text-decoration: none; }
.btn-primary { background: #1877f2; color: #fff; }
.btn-primary:hover { background: #1664d8; }
.btn-outline { background: transparent; border: 2px solid #1877f2; color: #1877f2; }
.btn-outline:hover { background: #1877f2; color: #fff; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 5px 12px; font-size: 0.78rem; }
.btn-secondary { background: #64748b; color: #fff; }
.btn-secondary:hover { background: #475569; }
.btn-success { background: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; }

/* ===== CITY CARD ===== */
.city-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; cursor: pointer; text-align: center; }
.city-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.city-card-img { width: 100%; height: 180px; object-fit: cover; }
.city-card h3 { font-size: 1.1rem; margin: 12px 0 4px; padding: 0 12px; }
.city-card p { color: var(--text-light); font-size: 0.85rem; margin-bottom: 12px; }
.city-card button { background: var(--primary); color: #fff; border: none; padding: 8px 20px; border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: 0.2s; margin-bottom: 16px; }
.city-card button:hover { background: var(--primary-dark); }

/* ===== HOTEL CARD ===== */
.hotel-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; cursor: pointer; }
.hotel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.hotel-card-img { width: 100%; height: 160px; object-fit: cover; }
.hotel-card .hotel-info { padding: 14px; display: block; }
.hotel-card .hotel-info h3 { font-size: 1rem; margin-bottom: 4px; }
.hotel-card .hotel-info .stars { margin-bottom: 6px; }
.hotel-card .hotel-info p { color: var(--text-light); font-size: 0.85rem; margin-bottom: 10px; }
.hotel-card .hotel-info button { background: var(--primary); color: #fff; border: none; padding: 6px 16px; border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
.hotel-card .hotel-info button:hover { background: var(--primary-dark); }

/* ===== PAGE HERO SMALL ===== */
.page-hero-sm { background: linear-gradient(135deg, #0A1628, #132347, #1877f2); color: #fff; text-align: center; padding: 32px 20px 28px; }
.page-hero-sm h1 { font-size: 1.5rem; font-weight: 700; }
.page-hero-sm p { opacity: 0.7; font-size: 0.9rem; }

/* ===== BACK BTN ===== */
.back-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--text-light); text-decoration: none; font-size: 0.9rem; margin-bottom: 20px; transition: 0.2s; }
.back-btn:hover { color: #C9A84C; }

/* ===== HOTEL DETAILS ===== */
.hotel-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.hotel-header h1 { font-size: 1.6rem; }
.hotel-info { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 32px; }
.hotel-desc p { color: var(--text-light); line-height: 1.8; }
.hotel-meta { background: var(--card); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.meta-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.meta-row:last-child { border-bottom: none; }
.meta-row i { width: 20px; color: var(--accent); }

/* ===== SMART GALLERY ===== */
.hotel-gallery-section { margin: 0 0 28px; }
.hotel-gallery-section h3 { font-size: 1rem; margin-bottom: 12px; }
.gallery-container { position: relative; }
.smart-gallery { display: flex; gap: 6px; border-radius: 16px; overflow: hidden; direction: ltr; min-height: 280px; }
.smart-gallery .gallery-main { flex: 2; cursor: pointer; position: relative; overflow: hidden; }
.smart-gallery .gallery-main.full { flex: 1; }
.smart-gallery .gallery-main img, .smart-gallery .gallery-side-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.smart-gallery .gallery-main:hover img, .smart-gallery .gallery-side-item:hover img { transform: scale(1.08); }
.smart-gallery .gallery-side-item { flex: 1; cursor: pointer; position: relative; overflow: hidden; }
.gallery-badge { position: absolute; bottom: 14px; left: 14px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,0.4); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; backdrop-filter: blur(4px); opacity: 0; transform: translateY(6px); transition: all 0.3s; }
.gallery-main:hover .gallery-badge { opacity: 1; transform: translateY(0); }
.gallery-more-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.3rem; backdrop-filter: blur(3px); transition: background 0.3s; letter-spacing: 1px; }
.gallery-more:hover .gallery-more-overlay { background: rgba(0,0,0,0.7); }

/* ===== PRICE TABLE ===== */
.price-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; }
.price-wrap h3 { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th { background: #0A1628; color: #E8D48B; padding: 12px; font-size: 0.82rem; text-align: center; }
.price-table td { padding: 12px; text-align: center; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.price-table tr:hover td { background: rgba(201,168,76,0.04); }
.empty-msg { text-align: center; padding: 32px; color: var(--text-light); font-style: italic; }

/* ===== AMENITIES ===== */
.info-card { background: var(--card); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.info-card h3 { font-size: 1rem; margin-bottom: 10px; }
.info-card p { color: var(--text-light); line-height: 1.8; }
.amenities-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.amenity-tag { background: var(--bg); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; color: var(--text-light); }

/* ===== LIGHTBOX VIEW ===== */
.lightbox-view { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); display: flex; align-items: center; justify-content: center; z-index: 99999; cursor: pointer; direction: ltr; }
.lightbox-view img { max-width: 80%; max-height: 85%; object-fit: contain; border-radius: 8px; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); color: #fff; border: none; width: 50px; height: 50px; border-radius: 50%; font-size: 2rem; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; z-index: 10; }
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ===== COMPARE ===== */
.compare-grid { display: grid; gap: 0; overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.compare-label { background: #0A1628; color: #E8D48B; padding: 12px; font-weight: 600; font-size: 0.82rem; display: flex; align-items: center; border-bottom: 1px solid rgba(232,212,139,0.1); }
.compare-cell { background: var(--card); padding: 12px; text-align: center; border-bottom: 1px solid var(--border); font-size: 0.85rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.compare-cell img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.compare-empty { text-align: center; padding: 60px 20px; color: var(--text-light); }
.compare-empty i { font-size: 3rem; color: var(--border); margin-bottom: 12px; }

/* ===== COMPARE FLOATING BUTTON ===== */
@keyframes cfabBounce {
  0%   { transform: translateY(0) scale(1); }
  40%  { transform: translateY(-6px) scale(1.06); }
  100% { transform: translateY(0) scale(1); }
}
.compare-fab {
  position: fixed; bottom: 28px; left: 28px; z-index: 9998;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #0A1628 0%, #132347 100%);
  border: 1.5px solid rgba(201,168,76,0.5);
  color: #E8D48B; text-decoration: none;
  padding: 13px 22px; border-radius: 50px;
  font-family: var(--font); font-size: 0.9rem; font-weight: 700;
  box-shadow: 0 8px 28px rgba(10,22,40,0.4);
  opacity: 0; transform: translateY(24px) scale(0.88);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.25s, border-color 0.25s;
  pointer-events: none;
}
.compare-fab.cfab-visible {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: auto;
}
.compare-fab:hover {
  box-shadow: 0 12px 36px rgba(10,22,40,0.55);
  border-color: rgba(201,168,76,0.85);
  transform: translateY(-3px) scale(1.03);
}
.cfab-icon { font-size: 1.15rem; line-height: 1; }
.cfab-text { letter-spacing: 0.3px; }
.cfab-count {
  background: #C9A84C; color: #0A1628;
  min-width: 22px; height: 22px; border-radius: 50%;
  font-size: 0.78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  animation: cfabBounce 0.4s ease;
}

/* ===== LOCK BTN ===== */
.lock-btn { position: fixed; bottom: 20px; left: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; border: none; font-size: 1.1rem; cursor: pointer; box-shadow: 0 4px 16px rgba(24,119,242,0.3); transition: 0.3s; z-index: 999; display: flex; align-items: center; justify-content: center; }
.lock-btn:hover { transform: scale(1.1); }

/* ===== RATING FAB ===== */
.rating-fab { position: fixed; bottom: 20px; right: 20px; width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff; border: none; font-size: 1.3rem; cursor: pointer; box-shadow: 0 4px 20px rgba(24,119,242,0.4); transition: 0.3s; z-index: 999; display: flex; align-items: center; justify-content: center; }
.rating-fab:hover { transform: scale(1.12) rotate(-10deg); box-shadow: 0 6px 25px rgba(24,119,242,0.5); }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 2000; }
.modal-overlay.show { display: flex; }
.modal { background: var(--card); border-radius: var(--radius); padding: 28px; max-width: 400px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.25); text-align: center; }
.modal h3 { margin-bottom: 14px; }
.modal input[type="password"] { width: 100%; padding: 10px 14px; border: 2px solid var(--border); border-radius: 8px; font-size: 1.1rem; text-align: center; letter-spacing: 6px; margin-bottom: 14px; outline: none; }
.modal input[type="password"]:focus { border-color: var(--accent); }
.modal .error-msg { color: #dc2626; font-size: 0.82rem; margin-bottom: 10px; display: none; }
.modal-btns { display: flex; gap: 10px; justify-content: center; }

/* ===== STAR INPUT ===== */
.star-input { direction: ltr; text-align: center; }
.star-btn { font-size: 2.2rem; cursor: pointer; color: #ddd; transition: 0.15s; user-select: none; padding: 0 2px; }
.star-btn:hover { transform: scale(1.2); }

/* ===== FORM ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 5px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 9px 12px; border: 2px solid var(--border); border-radius: 6px; font-family: var(--font); font-size: 0.9rem; transition: 0.2s; outline: none; background: #fff; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); }
.form-group textarea { min-height: 80px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* ===== ADMIN ===== */
.admin-layout { display: flex; min-height: calc(100vh - 64px); }
.admin-sidebar { width: 220px; background: #0A1628; padding: 16px 0; flex-shrink: 0; }
.admin-sidebar a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.9rem; transition: 0.2s; border-right: 3px solid transparent; }
.admin-sidebar a:hover, .admin-sidebar a.active { color: #E8D48B; background: rgba(201,168,76,0.08); border-right-color: #C9A84C; }
.admin-main { flex: 1; padding: 28px; overflow-y: auto; }
.admin-main h2 { font-size: 1.3rem; margin-bottom: 20px; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 20px; }
.admin-table th { background: #0A1628; color: #E8D48B; padding: 10px 12px; font-size: 0.82rem; text-align: center; }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 0.85rem; text-align: center; vertical-align: middle; }
.admin-table tr:hover td { background: rgba(201,168,76,0.06); }
.admin-table td img { width: 50px; height: 35px; object-fit: cover; border-radius: 4px; }
.actions { display: flex; gap: 6px; justify-content: center; }

/* ===== PRICE PERIODS FORM ===== */
.pp-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
  transition: border-color 0.2s;
}
.pp-card:focus-within { border-color: var(--accent); }
.pp-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.pp-num { font-weight: 700; font-size: 0.88rem; color: var(--primary); }
.pp-empty {
  text-align: center; color: var(--text-light); font-size: 0.85rem;
  padding: 24px 16px; border: 2px dashed var(--border);
  border-radius: var(--radius); margin: 0;
}

/* ===== PRICES TABLE (hotel details) ===== */
.prices-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 4px; }
.prices-table { width: 100%; border-collapse: collapse; background: var(--card); min-width: 480px; }
.prices-table thead tr { background: #0A1628; }
.prices-table th {
  color: #E8D48B; padding: 12px 16px; font-size: 0.82rem;
  font-weight: 600; text-align: center; white-space: nowrap;
}
.prices-table td {
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  font-size: 0.85rem; text-align: center; vertical-align: middle;
}
.prices-table tbody tr:last-child td { border-bottom: none; }
.prices-table tbody tr:hover td { background: rgba(201,168,76,0.05); }
.pp-price { font-weight: 700; color: var(--primary); }
.pp-dates { color: var(--text-light); font-size: 0.79rem; }

/* ===== SETTINGS CARD ===== */
.settings-card { background: var(--card); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.settings-card h3 { font-size: 1rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.img-preview { width: 100px; height: 70px; object-fit: cover; border-radius: 6px; border: 2px solid var(--border); }
.img-upload-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.img-upload-row input[type="file"] { display: none; }
.img-upload-label { padding: 8px 16px; border: 2px dashed var(--border); border-radius: 6px; cursor: pointer; font-size: 0.82rem; color: var(--text-light); transition: 0.2s; }
.img-upload-label:hover { border-color: var(--accent); color: var(--accent); }
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-grid label { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 400; cursor: pointer; }

/* ===== IMAGE PREVIEW ===== */
.preview-image { max-width: 100%; max-height: 150px; width: auto; height: auto; object-fit: contain; border-radius: 8px; display: block; margin: 8px 0; }
.img-thumb-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.img-thumb-item { width: 80px; height: 80px; border-radius: 8px; overflow: hidden; border: 2px solid var(--border); }
.img-thumb-item img { width: 100%; height: 100%; object-fit: cover; }

/* ===== SCROLL ANIMATION ===== */
.scroll-animate { opacity: 0; transform: translateY(30px); transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.scroll-animate.in-view { opacity: 1; transform: translateY(0); }
.scroll-animate:nth-child(1) { transition-delay: 0.05s; }
.scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.scroll-animate:nth-child(3) { transition-delay: 0.15s; }
.scroll-animate:nth-child(4) { transition-delay: 0.2s; }
.scroll-animate:nth-child(5) { transition-delay: 0.25s; }
.scroll-animate:nth-child(6) { transition-delay: 0.3s; }
.scroll-animate:not(.in-view) { transition-delay: 0s; }

/* [data-aos] animations */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.65s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-aos].visible        { opacity: 1; transform: none !important; }
[data-aos].ao-reset       { transition: none !important; }
[data-aos="fade-up"]      { transform: translateY(44px); }
[data-aos="fade-in"]      { transform: none; }
[data-aos="fade-right"]   { transform: translateX(-44px); }
[data-aos="fade-left"]    { transform: translateX(44px); }
[data-aos="zoom-in"]      { transform: scale(0.82); }
[data-aos="zoom-out"]     { transform: scale(1.12); }

/* ===== FOOTER ANIMATED ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

footer {
  background: #0A1628; color: rgba(255,255,255,0.75);
  padding: 40px 20px 20px; font-size: 0.85rem;
  margin-top: auto; animation: fadeInUp 0.6s ease-out;
}
.footer-grid {
  max-width: 1100px; margin: 0 auto 28px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px; text-align: right;
}
.footer-grid h4 {
  font-size: 0.92rem; font-weight: 700; color: #E8D48B;
  margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.footer-grid a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 0.82rem; line-height: 2;
  transition: color 0.2s;
}
.footer-grid a:hover { color: #E8D48B; }
.footer-grid p { font-size: 0.82rem; line-height: 1.9; color: rgba(255,255,255,0.6); }
.footer-bottom {
  text-align: center; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem; color: rgba(255,255,255,0.4);
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-name { font-size: 1.15rem; font-weight: 700; background: linear-gradient(135deg, #fff, #90caf9, #fff); background-size: 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: shimmer 3s ease-in-out infinite; display: inline-block; }
.footer-social { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); font-size: 1.1rem; text-decoration: none; transition: all 0.3s; }
.footer-social a:hover { transform: scale(1.15); background: var(--social-bg, var(--accent)); color: #fff; }
.footer-copy { opacity: 0.6; font-size: 0.78rem; }

/* ===== SEARCH ===== */
.search-wrapper { position: relative; }
.search-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: #fff; border-radius: 16px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.18);
  max-height: 420px; overflow-y: auto;
  opacity: 0; pointer-events: none;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 99999; direction: rtl;
}
.search-results.show { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.search-group-title {
  padding: 8px 16px 4px; font-size: 0.75rem; font-weight: 700;
  color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px;
  border-top: 1px solid var(--border); margin-top: 2px;
}
.search-group-title:first-child { border-top: none; margin-top: 0; }
.search-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; cursor: pointer;
  color: var(--text); transition: background 0.15s, color 0.15s;
  font-size: 0.9rem; gap: 8px;
}
.search-item:hover, .search-item.si-active { background: var(--primary-light); color: var(--primary); }
.si-name { flex: 1; font-weight: 500; }
.si-stars { color: #f1c40f; font-size: 0.75rem; letter-spacing: 1px; }
.si-meta { color: var(--text-light); font-size: 0.78rem; white-space: nowrap; }
.search-empty { padding: 16px; text-align: center; color: var(--text-light); font-size: 0.88rem; }

/* ===== TESTIMONIALS ===== */
.testimonial-card { background: #fff; border-radius: 24px; padding: 2rem 1.5rem; box-shadow: 0 5px 25px rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.04); transition: all 0.3s; }
.testimonial-card:hover { box-shadow: 0 10px 40px rgba(0,0,0,0.08); transform: translateY(-3px); }

/* ===== TOAST ===== */
.toast-notification { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); background: #16a34a; color: #fff; padding: 14px 28px; border-radius: 12px; font-weight: 700; font-size: 0.95rem; z-index: 99999; box-shadow: 0 8px 30px rgba(0,0,0,0.15); text-align: center; }

/* ===== WHY CARDS (index) ===== */
.why-card { background: #fff; border-radius: 24px; padding: 2rem 1.5rem; text-align: center; transition: all 0.4s ease; border: 1px solid rgba(0,0,0,0.04); box-shadow: 0 5px 25px rgba(0,0,0,0.04); position: relative; overflow: hidden; }
.why-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #1877f2, #C9A84C); opacity: 0; transition: opacity 0.4s; }
.why-card:hover::before { opacity: 1; }
.why-card:hover { transform: translateY(-6px); box-shadow: 0 15px 45px rgba(24,119,242,0.10); }

/* ===== STATS (index) ===== */
.stat-number { font-size: 2.8rem; font-weight: 800; background: linear-gradient(135deg, #C9A84C, #E8D48B); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hotel-info { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 1.6rem; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; display: flex; overflow-x: auto; padding: 0; }
  .admin-sidebar a { padding: 10px 14px; white-space: nowrap; font-size: 0.82rem; }
  .admin-main { padding: 20px 16px; }
  .grid-cities, .grid-hotels { grid-template-columns: 1fr; }
  .section-title { font-size: 1.3rem; }
  .smart-gallery { flex-wrap: wrap; min-height: auto; }
  .smart-gallery .gallery-main { flex: 1 1 100%; min-height: 220px; }
  .smart-gallery .gallery-main.full { min-height: 260px; }
  .smart-gallery .gallery-side-item { flex: 1 1 calc(50% - 3px); min-height: 120px; }
}
@media (max-width: 480px) {
  .container { padding: 20px 14px; }
  .stat-number { font-size: 2rem; }
}

/* ===== CITY CARD (JS rendered) ===== */
.city-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; cursor: pointer; }
.city-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.city-img { width: 100%; height: 180px; overflow: hidden; }
.city-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.city-info { padding: 14px; text-align: center; }
.city-info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.city-info p { color: var(--text-light); font-size: 0.85rem; }

/* ===== STAT ITEMS ===== */
.stat-item { animation: fadeInUp 0.6s ease-out; }
.stat-item .stat-number { font-size: 2.8rem; font-weight: 800; background: linear-gradient(135deg, #C9A84C, #E8D48B); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: block; }
.stat-item .stat-label { font-size: 0.85rem; opacity: 0.7; display: block; margin-top: 4px; }

/* ===== RATING CARD ===== */
.rating-card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: 0.3s; }
.rating-card:hover { box-shadow: var(--shadow-hover); }
.rating-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rating-header strong { font-size: 0.95rem; }
.rating-stars { color: #f1c40f; font-size: 1rem; letter-spacing: 1px; }
.rating-card small { color: var(--text-light); font-size: 0.78rem; }
.rating-card p { font-size: 0.88rem; margin: 8px 0; color: var(--text); line-height: 1.7; }
.rating-date { display: block; margin-top: 8px; }

/* ===== WHY ITEMS ===== */
.why-item { background: var(--card); border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: var(--shadow); transition: 0.3s; }
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.why-icon { font-size: 2.5rem; margin-bottom: 10px; }
.why-item h3 { font-size: 1rem; margin-bottom: 6px; }
.why-item p { font-size: 0.85rem; color: var(--text-light); }

/* ===== HOTEL CARD (JS rendered) ===== */
.hotel-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; cursor: pointer; }
.hotel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.hotel-img { width: 100%; height: 180px; overflow: hidden; }
.hotel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hotel-info { padding: 14px; }
.hotel-info h3 { font-size: 1rem; margin-bottom: 6px; }
.hotel-stars { color: #f1c40f; font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 6px; }
.hotel-price { font-size: 0.9rem; margin-bottom: 6px; }
.hotel-price strong { color: var(--primary); }
.hotel-info p { color: var(--text-light); font-size: 0.82rem; }

/* ===== HOTEL DETAILS (JS rendered) ===== */
.hotel-detail-container { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.hotel-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.hotel-header h1 { font-size: 1.5rem; flex: 1; min-width: 200px; }
.hotel-stars-large { color: #f1c40f; font-size: 1.1rem; letter-spacing: 2px; }
.hotel-location { width: 100%; font-size: 0.9rem; }
.hotel-location a { color: var(--primary); text-decoration: none; }
.hotel-address { width: 100%; color: var(--text-light); font-size: 0.85rem; }
.hotel-body { margin: 20px 0; }
.hotel-body h3 { font-size: 1.05rem; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.hotel-description p { color: var(--text-light); line-height: 1.8; font-size: 0.9rem; margin-bottom: 24px; }
.prices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.price-card { background: var(--bg); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.price-type { display: block; font-size: 0.82rem; color: var(--text-light); margin-bottom: 6px; }
.price-value { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.amenities-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.amenity-tag { background: var(--primary-light); color: var(--primary); padding: 4px 14px; border-radius: 20px; font-size: 0.82rem; }
.hotel-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.hotel-ratings-section { margin-top: 32px; }
.hotel-ratings-section h3 { font-size: 1.05rem; margin-bottom: 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.avg-rating { font-size: 1.1rem; margin-bottom: 16px; }
.avg-rating strong { font-size: 1.4rem; margin: 0 6px; }
.rating-item { background: var(--bg); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px; }
.rating-item-header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.rating-item-header strong { font-size: 0.9rem; }
.rating-item-header span { color: #f1c40f; }
.rating-item-header small { color: var(--text-light); font-size: 0.75rem; }
.rating-item p { font-size: 0.85rem; color: var(--text); line-height: 1.6; }

/* ===== SMART GALLERY ===== */
.smart-gallery { display: flex; gap: 6px; border-radius: 16px; overflow: hidden; direction: ltr; min-height: 280px; }
.gallery-item { flex: 1; cursor: pointer; position: relative; overflow: hidden; min-height: 200px; }
.gallery-item.gallery-main { flex: 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); display: block; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.3rem; backdrop-filter: blur(3px); }

/* ===== COMPARE TABLE ===== */
.compare-table-wrapper { overflow-x: auto; margin-bottom: 20px; }
.compare-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-table th { background: #0A1628; color: #E8D48B; padding: 12px 16px; font-size: 0.85rem; text-align: center; }
.compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.85rem; text-align: center; vertical-align: middle; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(201,168,76,0.04); }

/* ===== MODAL ===== */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50000;
  padding: 20px 16px;
  overflow-y: auto;
}
.modal-content {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  width: 92%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  position: relative;
  direction: rtl;
  margin: auto;
  animation: modalIn 0.25s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}
.modal-close {
  position: absolute; top: 12px; left: 16px;
  font-size: 1.5rem; cursor: pointer;
  color: var(--text-light); background: none; border: none; transition: 0.2s;
  line-height: 1; padding: 4px;
}
.modal-close:hover { color: #e74c3c; transform: rotate(90deg); }
.modal h3 { margin-bottom: 20px; font-size: 1.15rem; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); font-size: 1rem; }

/* ===== ROOM VIEWS (admin form) ===== */
.rv-img-preview {
  min-height: 60px; display: flex; align-items: center;
  background: var(--bg); border-radius: 8px; padding: 6px;
  margin-bottom: 4px;
}
.rv-thumb { height: 70px; border-radius: 6px; object-fit: cover; display: block; }
.rv-no-img { color: var(--text-light); font-size: 0.82rem; padding: 4px 8px; }

/* ===== ROOM VIEWS (hotel details) ===== */
.room-views-section { margin-bottom: 24px; }
.room-views-section h3 { font-size: 1.05rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.room-views-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.room-view-card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.room-view-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.rv-card-img { width: 100%; height: 120px; overflow: hidden; background: var(--bg); }
.rv-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.room-view-card:hover .rv-card-img img { transform: scale(1.06); }
.rv-no-photo { display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.rv-card-body { padding: 12px 14px; }
.rv-card-body h4 { font-size: 0.92rem; margin-bottom: 6px; }
.rv-extra { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.rv-free { background: #d4edda; color: #155724; }

/* ===== CHILDREN POLICY ===== */
.children-policy {
  background: linear-gradient(135deg, #fef9ec, #fffdf5);
  border: 1px solid #f1c40f33;
  border-right: 4px solid #f1c40f;
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px;
}
.children-policy h3 { font-size: 1rem; margin-bottom: 8px; color: #92600a; }
.children-policy p { font-size: 0.88rem; color: #5a3e08; line-height: 1.9; }

/* ===== AMENITY CHECKBOX ===== */
.amenity-checkbox { display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; cursor: pointer; padding: 4px 8px; background: var(--bg); border-radius: 6px; }

/* ===== UPLOAD PROGRESS ===== */
@keyframes upSlideIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-16px) scale(0.96); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0)     scale(1);    }
}
@keyframes spin { to { transform: rotate(360deg); } }

.upload-progress-ui {
  position: fixed; top: 72px; left: 50%; transform: translateX(-50%);
  background: #0A1628; color: #fff;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 14px; padding: 16px 22px;
  min-width: 290px; max-width: 92vw;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  z-index: 999999; direction: rtl;
  font-family: var(--font);
  animation: upSlideIn 0.3s ease both;
}
.up-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.up-spinner {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: #C9A84C;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
#upLabel { font-size: 0.88rem; font-weight: 600; flex: 1; }
.up-track {
  background: rgba(255,255,255,0.1); border-radius: 8px;
  height: 7px; overflow: hidden;
}
.up-bar {
  height: 100%;
  background: linear-gradient(90deg, #C9A84C, #E8D48B, #C9A84C);
  background-size: 200%;
  border-radius: 8px;
  transition: width 0.25s ease;
  animation: shimmer 1.5s ease-in-out infinite;
}
.up-pct { text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 5px; }
.up-done {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600; color: #4ade80;
}
.up-done.up-err { color: #f87171; }

/* ===== TOAST ANIMATION ===== */
@keyframes toastIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== HERO text animation ===== */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
#heroSlider h1  { animation: heroFadeUp 0.7s ease both; }
#heroSlider p   { animation: heroFadeUp 0.7s 0.15s ease both; }
#heroSlider .search-wrapper { animation: heroFadeUp 0.7s 0.28s ease both; }

/* ===== LOADING SKELETON ===== */
@keyframes skShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.loading-layer {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, #0A1628 0%, #132347 40%, #1a3a6b 70%, #1877f2 100%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease; pointer-events: none;
}
.loading-layer.hide { opacity: 0; }
.loading-layer .sp {
  width: 48px; height: 48px;
  border: 4px solid rgba(255,255,255,0.15);
  border-top-color: #E8D48B;
  border-radius: 50%;
  animation: lspin 0.8s linear infinite;
}
@keyframes lspin { to { transform: rotate(360deg); } }
.sk-card {
  background: rgba(255,255,255,0.06);
  border-radius: 12px; overflow: hidden;
}
.sk-line {
  height: 14px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.06) 75%);
  background-size: 200% 100%;
  animation: skShimmer 1.8s infinite;
}
.sk-line-sm { height: 10px; width: 60%; }
.sk-line-lg { height: 20px; width: 80%; }
.sk-block { height: 180px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skShimmer 1.8s infinite;
}
.sk-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
  gap: 20px; padding: 20px 0;
}
.sk-grid .sk-card { padding: 0; }
.sk-grid .sk-card .sk-block { border-radius: 12px 12px 0 0; }
.sk-grid .sk-card .sk-line { margin: 12px 16px; }
.sk-grid .sk-card .sk-line-sm { margin: 0 16px 16px; }
