


/* ================== SUNGET.COM STYLESHEET ================== */

/* ---------- THEME VARIABLES ---------- */
:root,
[data-theme="dark"] {
  --bg: #0b0b0f;
  --bg-2: #14141c;
  --surface: #1a1a24;
  --surface-2: #20202c;
  --text: #ffffff;
  --text-muted: #b8b8c4;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #ffb400;
  --accent-2: #ff7a00;
  --danger: #e63946;
  --success: #27b82e;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --radius: 14px;

  --header-h: 80px;

}



[data-theme="light"] {
  --bg: #f7f7fb;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f1f7;
  --text: #1a1a24;
  --text-muted: #555566;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #ff8a00;
  --accent-2: #ff5e00;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
 
  font-family: "Cairo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ================== HEADER ================== */
header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: auto;
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
  z-index: 1000;
  transition: background 0.3s ease;
}

[data-theme="light"] header {
  background: rgba(255, 255, 255, 0.92);
}

/* --- الصف الأول: لوجو + أزرار --- */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--header-h);
  padding: 0 30px;
  position: relative;
  flex-shrink: 0;
}

.logo-text {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text);
}

.logo-text span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  position: absolute;
  top: 50%;
  right: 70px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 10;
}

.theme-toggle:hover {
  transform: translateY(-50%) rotate(20deg);
  background: var(--surface-2);
}

/* ---------- TOP MENU (notifications / messages / bookings) ---------- */
.menu {
  display: none;
  align-items: center;
  gap: 20px;
}

.menu-button {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-button button {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text);
  transition: 0.3s ease;
}

.menu-button button:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
}

.badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.badge:empty {
  display: none;
}

/* ---------- SETTINGS DROPDOWN ---------- */
.settings-wrapper {
  position: relative;
}

.settings-icon {
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
  transition: 0.3s;
}

.settings-icon:hover {
  color: var(--accent);
}

.settings-menu {
  display: none;
  position: absolute;
  top: 50px;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 220px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 1500;
}

.settings-menu div {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}

.settings-menu div:hover {
  background: var(--surface-2);
}

/* ---------- AUTH BUTTONS ---------- */
#authButtons {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 50px;
}

.btn,
.login-btn {
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.3s;
}

.btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
}

.login-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 138, 0, 0.35);
}

.login-btn:hover {
  background: var(--surface);
}

/* ---------- SIDE MENU ---------- */
#menu-icon {
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 8px;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
  z-index: 2000;
}
#menu-icon:hover {
  background: var(--border);
}

.side-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2500;
  transition: right 0.35s ease;
  box-shadow: var(--shadow);
}

.side-menu.active {
  right: 0;
}

.side-menu a {
  font-size: 17px;
  color: var(--text);
  padding: 10px 6px;
  border-bottom: 1px solid var(--border);
  transition: 0.2s;
}

.side-menu a:hover {
  color: var(--accent);
  padding-right: 10px;
}

.side-menu button {
  margin-top: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
}

/* ================== POPUP BOXES ================== */
.popup-box {
  display: none;
  position: fixed;
  top: 90px;
  left: 30px;
  width: 340px;
  max-height: 70vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  overflow-y: auto;
  box-shadow: var(--shadow);
  z-index: 1500;
  animation: popIn 0.25s ease;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.popup-box .close-box {
  position: absolute;
  top: 10px;
  left: 14px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted);
}

.popup-box .close-box:hover {
  color: var(--danger);
}

.popup-box > div {
  padding: 12px;
  margin-bottom: 10px;
  background: var(--surface-2);
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.popup-box > div:hover {
  transform: translateX(-4px);
  background: var(--bg-2);
}

/* ================== HERO ================== */
.hero {
  margin-top: var(--header-h);
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("https://i.ibb.co/YFRm9hcM/sunget-pyramids-bg.jpg")
    center/cover no-repeat;
     
  color: #fff;
  padding: 0 20px;
  position: relative;
}

.hero-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: fadeUp 0.8s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0.95;
}

/* ---------- SEARCH BOX ---------- */
.search-box {
  display: flex;
  width: min(560px, 90%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 6px;
  margin-bottom: 20px;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 18px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-box button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: 0.3s;
}

.search-box button:hover {
  transform: scale(1.08);
}

/* ================== HOTELS LIST ================== */
.hotels-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 60px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.hotel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.hotel-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.hotel-card .img-box {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.hotel-card .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hotel-card:hover .img-box img {
  transform: scale(1.08);
}

.fav-icon {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 22px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.45);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.fav-icon:hover {
  transform: scale(1.15);
  background: rgba(0, 0, 0, 0.7);
}

.hotel-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hotel-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.hotel-body .price {
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}

.hotel-btn {
  display: inline-block;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 30px;
  margin-top: 6px;
  transition: 0.3s;
}

.hotel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 138, 0, 0.35);
}

/* ================== SECTIONS ================== */
.section {
  padding: 80px 5%;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 3px;
  margin: 12px auto 0;
}

.section-text {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.9;
}

/* ---------- ABOUT ---------- */
.about-section {
  background: var(--bg-2);
}

.about-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

/* ---------- CONTACT ---------- */
.contact-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-top: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 180, 0, 0.15);
}

.send-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  font-weight: 700;
  padding: 14px;
  border-radius: 10px;
  transition: 0.3s;
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 138, 0, 0.35);
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  color: var(--text-muted);
}

.contact-item a,
.contact-item1 {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  transition: 0.2s;
}

.contact-item a:hover {
  color: var(--success);
}

/* ================== FOOTER ================== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 5% 0;
  margin-top: 40px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links strong {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
  padding-right: 4px;
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 22px;
}

.footer-social i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.footer-social i:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-3px);
}

#fa1:hover { background: #075ac7ee; color: #fff; }
#fa2:hover { background: linear-gradient(135deg,#f7a900,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
#fa3:hover {background-color: #27b82e;}
.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ================== CHAT MODAL ================== */
#chatModal {
  background: var(--surface) !important;
  border: 1px solid var(--border);
}

#chatBox p {
  background: var(--surface-2);
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  max-width: 80%;
  word-wrap: break-word;
}

/* ================== SCROLLBAR ================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 900px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
  .menu-button {
    gap: 6px;
    margin-left: 0 !important;
  }
  .menu-button button {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
  #authButtons {
    margin-left: 40px;
  }
  .footer-container {
    text-align: center;
  }
  .footer-links {
    align-items: center;
  }
  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 56px;
  }
  header {
    padding: 0;
    gap: 0;
    flex-wrap: nowrap;
    flex-direction: column;
  }
  .header-top {
    padding: 0 12px;
    height: var(--header-h);
    gap: 8px;
    flex-wrap: nowrap;
  }
  .logo-text {
    font-size: 18px;
    flex-shrink: 0;
  }
  /* القائمة العلوية تفضل ظاهرة بس بحجم أصغر */
  .menu {
    gap: 6px;
    flex-shrink: 0;
  }
  .menu-button {
    gap: 4px;
    margin-left: 0 !important;
  }
  .menu-button button {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
  .badge {
    font-size: 9px;
    min-width: 14px;
    height: 14px;
    top: -3px;
    left: -3px;
  }
  .settings-icon {
    font-size: 18px;
  }
  .settings-menu {
    min-width: 180px;
    font-size: 13px;
  }
  /* زرار الثيم نقّله جنب أيقونة المنيو من غير ما يتغطى */
  .theme-toggle {
    position: static;
    transform: none;
    width: 32px;
    height: 32px;
    font-size: 14px;
    flex-shrink: 0;
  }
  /* أيقونة فتح القائمة الجانبية */
  #menu-icon {
    font-size: 22px;
    margin-right: 4px;
  }
  /* أزرار التسجيل */
  #authButtons {
    margin-left: 0;
    gap: 6px;
    flex-shrink: 0;
  }
  #authButtons .btn,
  #authButtons .login-btn {
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 20px;
  }
  /* البوب-أب يتوسط الشاشة */
  .popup-box {
    width: 94%;
    left: 3%;
    right: 3%;
    top: calc(var(--header-h) + 50px);
    max-height: 75vh;
  }
  /* التابز في الموبايل: أيقونة + نص صغير عمودي */
  .cat-nav {
    border-top: 1px solid var(--border);
  }
  .cat-nav-inner {
    padding: 0 4px;
    gap: 0;
  }
  .cat-btn {
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    font-size: 10px;
    border-bottom-width: 2px;
    min-width: 60px;
  }
  .cat-btn i {
    font-size: 18px;
  }
  /* الهيرو */
  .hero {
    min-height: 80vh;
  }
  .hero h2 {
    font-size: 28px;
  }
  .hero p {
    font-size: 14px;
  }
  .search-box {
    padding: 4px;
  }
  .search-box input {
    padding: 10px 14px;
    font-size: 13px;
  }
  .search-box button {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  /* الفنادق */
  .hotels-list {
    grid-template-columns: 1fr;
    padding: 40px 4%;
    gap: 18px;
  }
  .hotel-card .img-box {
    height: 200px;
  }
  /* الأقسام */
  .section {
    padding: 50px 5%;
  }
  .section-title {
    font-size: 24px;
  }
  .about-box,
  .contact-card {
    padding: 20px;
  }
  /* القائمة الجانبية */
  .side-menu {
    width: 240px;
    right: -240px;
  }
  /* الشات */
  #chatModal {
    width: 92% !important;
    right: 4% !important;
    bottom: 10px !important;
    height: 70vh !important;
  }
  /* الفوتر */
  .footer {
    padding: 40px 5% 0;
  }
}

@media (max-width: 380px) {
  .logo-text {
    font-size: 15px;
  }
  .menu-button button {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }
  #authButtons .btn,
  #authButtons .login-btn {
    padding: 5px 8px;
    font-size: 10px;
  }
}

/* ===== Hide default Google bar ===== */
.goog-te-banner-frame,
.skiptranslate { display: none !important; }
body { top: 0 !important; }
.goog-te-gadget { font-size: 0 !important; }
.goog-te-gadget .goog-te-combo { display: none; }
#google_translate_element { display: none; }

/* ===== Language Switcher (matches Sunget theme) ===== */
.lang-switcher {
  position: relative;
  display: inline-block;
  font-family: "Cairo", sans-serif;
  z-index: 1200;
}

/* الزرار */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.lang-btn:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,138,0,.30);
  border-color: transparent;
}

.lang-btn i,
.lang-btn .chev {
  font-size: 13px;
  transition: transform .3s ease;
}

.lang-switcher.open .lang-btn .chev {
  transform: rotate(180deg);
}

/* القائمة */
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 200px;
  max-height: 320px;
  overflow-y: auto;
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lang-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: popIn .25s ease;
}

.lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: all .2s ease;
}

.lang-menu li:hover {
  background: var(--surface-2);
  transform: translateX(-3px);
}

.lang-menu li.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  font-weight: 700;
}

.lang-menu li img,
.lang-menu li .flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/* Scrollbar داخل القائمة */
.lang-menu::-webkit-scrollbar { width: 6px; }
.lang-menu::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 10px;
}
.lang-menu::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .lang-btn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 20px;
  }
  .lang-btn .lang-label {
    display: none; /* نخلي بس العلم/الأيقونة على الموبايل */
  }
  .lang-menu {
    min-width: 170px;
    max-height: 60vh;
    font-size: 13px;
  }
  .lang-menu li {
    padding: 9px 10px;
  }
}

@media (max-width: 380px) {
  .lang-btn { padding: 5px 8px; font-size: 11px; }
  .lang-menu { min-width: 150px; }
}
/* ================== THEME VARIABLES ================== */

/* الدارك مود (الافتراضي) */
:root,
[data-theme="dark"] {
  --bg: #0b0b0f;
  --bg-2: #14141c;
  --surface: #1a1a24;
  --surface-2: #20202c;
  --text: #ffffff;
  --text-muted: #b8b8c4;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #ffb400;
  --accent-2: #ff7a00;
  --danger: #e63946;
  --success: #27b82e;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --header-h: 80px;
}

/* اللايت مود */
[data-theme="light"] {
  --bg: #f7f7fb;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f1f7;
  --text: #1a1a24;
  --text-muted: #555566;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #ff8a00;
  --accent-2: #ff5e00;
  --danger: #e63946;
  --success: #1ea52a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* تطبيق المتغيرات على الجسم + ترانزيشن ناعم */
body {
  background: var(--bg);
  color: var(--text);
  transition: background 0.35s ease, color 0.35s ease;
}

/* الهيدر بيتغير لونه حسب الثيم */
header {
  background: rgba(11, 11, 15, 0.85);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s ease, border-color 0.35s ease;
}

[data-theme="light"] header {
  background: rgba(255, 255, 255, 0.85);
}

/* ================== THEME TOGGLE BUTTON ================== */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  transform: rotate(20deg) scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 138, 0, 0.35);
}

/* أيقونتين جوا الزرار (شمس + قمر) مع أنيميشن تبديل */
.theme-toggle i {
  position: absolute;
  transition: transform 0.5s ease, opacity 0.4s ease;
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}
[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

/* ترانزيشن عام لكل العناصر اللي بتتأثر بالثيم */
header,
.hotel-card,
.about-box,
.contact-card,
.popup-box,
.side-menu,
.settings-menu,
.footer,
.lang-btn,
.lang-menu {
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

/* ================== AUTH BUTTONS RESPONSIVE ================== */
#authButtons {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

#authButtons .btn,
#authButtons .login-btn {
  white-space-space: nowrap;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 30px;
  line-height: 1;
}

/* تابلت */
@media (max-width: 900px) {
  #authButtons {
    margin-left: 10px;
    gap: 6px;
  }
  #authButtons .btn,
  #authButtons .login-btn {
    padding: 7px 12px;
    font-size: 13px;
  }
}

/* موبايل */
@media (max-width: 600px) {
  #authButtons {
    margin-left: 0;
    gap: 4px; /* تقريب أكثر */
  }
  #authButtons .btn,
  #authButtons .login-btn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 20px;
  }
}

/* موبايل صغير: ترتيب الأزرار فوق بعض مع الحفاظ على النص */
@media (max-width: 420px) {
  #authButtons {
    flex-direction: column;
    align-items: stretch;
    gap: 5px; /* تقريب الزرين */
    width: 80px; /* عرض مناسب */
  }
  .header{

    padding-bottom: 200px;
  }
  #authButtons .login-btn,
  #authButtons .btn {
    width: 100%;
    padding: 5px 8px;
    font-size: 10px;
    text-align: center;
  }
}

/* اسم الموقع وال菜单 ريسبونسيف */
.logo {
  font-size: 20px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .logo {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .logo {
    font-size: 14px;
  }
}

/* زر اللغة بجانب القائمة */
.lang-btn {
  margin-right: 8px;
}

/* ======================================================
   BOOKING BAR (Booking.com style)
====================================================== */
.hero {
  min-height: 92vh;
  padding-bottom: 40px;
}

.hero-content {
  gap: 12px;
}

.hero h2 {
  font-size: clamp(28px, 4.5vw, 52px);
  margin-bottom: 4px;
}

.booking-bar {
  display: flex;
  align-items: stretch;
  background: rgba(255,255,255,0.96);
  border-radius: 14px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.4);
  overflow: visible;
  width: min(920px, 95vw);
  margin-top: 18px;
  position: relative;
}

[data-theme="light"] .booking-bar {
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.bb-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
  flex: 1;
  cursor: pointer;
  position: relative;
  color: #1a1a24;
  min-width: 0;
}

.bb-field:hover {
  background: rgba(0,0,0,0.04);
}

.bb-dest { flex: 2; }
.bb-date { flex: 1.2; }
.bb-guests { flex: 1.5; }

.bb-icon {
  font-size: 14px;
  color: #ff8a00;
  margin-bottom: 2px;
}

.bb-label {
  font-size: 11px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.bb-field input[type="text"],
.bb-field input[type="date"] {
  border: none;
  outline: none;
  background: transparent;
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a24;
  width: 100%;
  cursor: pointer;
  padding: 0;
}

.bb-field input[type="text"]::placeholder {
  color: #aaa;
  font-weight: 400;
}

.bb-field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.bb-divider {
  width: 1px;
  background: rgba(0,0,0,0.1);
  margin: 10px 0;
  flex-shrink: 0;
}

.guests-summary {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bb-search-btn {
  background: linear-gradient(135deg, #ffb400, #ff7a00);
  color: #000;
  font-weight: 800;
  font-size: 15px;
  font-family: "Cairo", sans-serif;
  padding: 0 28px;
  border-radius: 14px 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
}

.bb-search-btn:hover {
  background: linear-gradient(135deg, #ffc300, #ff8c00);
  transform: none;
  box-shadow: inset 0 0 0 100px rgba(255,255,255,0.1);
}

/* Guests Panel */
.guests-panel {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.2);
  padding: 20px;
  min-width: 280px;
  z-index: 500;
  color: #1a1a24;
  animation: popIn 0.2s ease;
}

.guests-panel.open { display: block; }

.gp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.gp-row:last-of-type { border-bottom: none; }

.gp-label span {
  display: block;
  font-weight: 700;
  font-size: 15px;
}

.gp-label small {
  font-size: 12px;
  color: #888;
}

.gp-counter {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gp-counter button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a24;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  line-height: 1;
}

.gp-counter button:hover {
  border-color: #ff8a00;
  color: #ff8a00;
  background: rgba(255,138,0,0.08);
}

.gp-counter span {
  font-size: 16px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.gp-done {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  background: linear-gradient(135deg, #ffb400, #ff7a00);
  color: #000;
  font-weight: 700;
  font-family: "Cairo", sans-serif;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.gp-done:hover { opacity: 0.9; }

/* ======================================================
   FILTER SECTION
====================================================== */
.filter-section {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 12px 5%;
  position: sticky;
  top: var(--header-h);
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.sort-btns, .star-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sort-btn, .star-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.sort-btn:hover, .star-btn:hover,
.sort-btn.active, .star-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  border-color: transparent;
}

.filter-price {
  flex: 1;
  min-width: 160px;
  max-width: 260px;
}

.price-range-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.price-range-wrap input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to left, var(--accent), var(--accent-2));
  outline: none;
  cursor: pointer;
}

.price-range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(255,138,0,0.4);
  cursor: pointer;
}

.price-range-wrap span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.results-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: auto;
  white-space: nowrap;
}

/* ======================================================
   HOTEL CARDS (Booking.com horizontal style)
====================================================== */
.hotels-list-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 4%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  width: 100%;
}

.hc-wrapper {
  width: 100%;
}

.hotel-card-h {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.35s ease, transform 0.3s ease;
  position: relative;
}

.hotel-card-h:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}

/* صورة الفندق */
.hc-img-wrap {
  width: 260px;
  min-width: 260px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.hc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hotel-card-h:hover .hc-img-wrap img {
  transform: scale(1.06);
}

/* زرار المفضلة */
.hc-img-wrap .fav-icon {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  z-index: 2;
}

.hc-img-wrap .fav-icon:hover {
  background: rgba(0,0,0,0.7);
  transform: scale(1.15);
}

/* بادجات الصورة */
.hc-img-badges {
  position: absolute;
  bottom: 10px;
  right: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-featured {
  background: linear-gradient(135deg, #ffb400, #ff7a00);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.badge-free-cancel {
  background: rgba(39,184,46,0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.badge-breakfast {
  background: rgba(255,180,0,0.9);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

/* جسم الكارد */
.hc-body {
  flex: 1;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.hc-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
  margin-bottom: 16px;
}

.hc-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hc-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hc-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.hc-stars {
  font-size: 14px;
  color: #ffb400;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.hc-location {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hc-location i {
  color: var(--accent);
  font-size: 12px;
}

.hc-map-link {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  margin-right: 4px;
}

.hc-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.hc-amenity {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hc-amenity i {
  color: var(--success);
  font-size: 10px;
}

.hc-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* بوكس التقييم (Booking.com style) */
.hc-score-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.hc-score-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.hc-score {
  background: linear-gradient(135deg, #003580, #0057b7);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 8px 8px 8px 0;
  min-width: 42px;
  text-align: center;
  letter-spacing: 0.5px;
}

.hc-reviews {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* أسفل الكارد */
.hc-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  gap: 12px;
}

.hc-price-area {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hc-per-night {
  font-size: 12px;
  color: var(--text-muted);
}

.hc-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.hc-price small {
  font-size: 13px;
  font-weight: 600;
}

.hc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.hc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,138,0,0.4);
}

/* ======================================================
   RESPONSIVE - Booking bar & cards
====================================================== */
@media (max-width: 860px) {
  .booking-bar {
    flex-direction: column;
    border-radius: 16px;
    width: min(520px, 95vw);
    overflow: hidden;
  }

  .bb-divider {
    width: auto;
    height: 1px;
    margin: 0 14px;
  }

  .bb-field { flex-direction: row; align-items: center; gap: 10px; }
  .bb-icon { margin-bottom: 0; }
  .bb-label { min-width: 90px; }

  .bb-search-btn {
    border-radius: 0 0 14px 14px;
    padding: 14px;
    justify-content: center;
    font-size: 16px;
  }

  .bb-guests { position: static; }
  .guests-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    right: auto;
    width: 300px;
  }

  /* Hotel cards */
  .hc-img-wrap {
    width: 200px;
    min-width: 200px;
  }
}

@media (max-width: 640px) {
  .hotel-card-h {
    flex-direction: column;
  }

  .hc-img-wrap {
    width: 100%;
    min-width: 100%;
    height: 200px;
  }

  .hc-top {
    flex-direction: column;
  }

  .hc-score-box {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .booking-bar { width: 95vw; }

  .filter-section { padding: 10px 4%; }
  .filter-inner { gap: 10px; }
  .sort-btn, .star-btn { font-size: 12px; padding: 5px 10px; }
  .filter-price { display: none; }
}

@media (max-width: 480px) {
  .bb-field { padding: 10px 14px; }
  .hc-body { padding: 14px 16px; }
  .hc-name { font-size: 16px; }
  .hc-price { font-size: 18px; }
  .hc-btn { font-size: 13px; padding: 9px 16px; }
}

/* =====================================================
   CATEGORY NAV — Booking.com style (inside header)
===================================================== */
.cat-nav {
  width: 100%;
  border-top: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  width: max-content;
  min-width: 100%;
}

.cat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  position: relative;
}

.cat-btn i {
  font-size: 16px;
}

.cat-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.cat-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

.cat-btn.active i {
  color: var(--accent);
}

/* Badge نجديدة / قريباً */
.cat-btn .cat-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  background: var(--accent);
  color: #000;
  line-height: 1.4;
}

/* Hero margin — header is now header-top(--header-h) + cat-nav(~50px) */
.hero {
  margin-top: calc(var(--header-h) + 50px) !important;
}

/* =====================================================
   TAB PANELS (hero content per tab)
===================================================== */
.tab-hero {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.tab-hero.active { display: flex; }

/* Coming-soon card for non-hotels tabs */
.coming-soon-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 50px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  backdrop-filter: blur(10px);
}

.coming-soon-card .cs-icon {
  font-size: 54px;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 0 20px rgba(255,180,0,0.35));
}

.coming-soon-card h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.coming-soon-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.coming-soon-card .cs-tag {
  display: inline-block;
  margin-top: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 18px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

@media (max-width: 640px) {
  .coming-soon-card { padding: 30px 24px; }
  .rf-pros-cons { grid-template-columns: 1fr; }
  .rc-pros-cons { grid-template-columns: 1fr; }
  .rf-grid { grid-template-columns: 1fr 1fr; }
  .rc-top { flex-direction: column; }
}
