@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Colors */
  --primary-coffee: #6B3E2E;
  --primary-light: #8B5A46;
  --secondary-beige: #F4EEDC;
  --secondary-cream: #FAF9F6;
  --accent-gold: #C5A059;
  --accent-light: #E2C17D;
  --text-dark: #2C1E16;
  --text-light: #F4EEDC;
  --bg-color: #FAF9F6;
  --bg-dark: #1A110E;
  --card-bg: #FFFFFF;
  --card-shadow: 0 10px 30px rgba(107, 62, 46, 0.08);

  /* Typography */
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-width: 1200px;
}

[data-theme="dark"] {
  --bg-color: #1A110E;
  --card-bg: #2C1E16;
  --text-dark: #F4EEDC;
  --seconday-cream: #2C1E16;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: var(--font-ar);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  direction: rtl; /* Default Arabic */
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

[dir="ltr"] body {
  font-family: var(--font-en);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-ar);
  font-weight: 700;
  color: var(--primary-coffee);
}

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 {
  color: var(--accent-gold);
}

[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3 {
  font-family: var(--font-serif);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Button */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent-gold);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

.btn:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.6);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--accent-gold);
  color: #fff;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background-color: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

[data-theme="dark"] .navbar.scrolled {
  background-color: rgba(26, 17, 14, 0.95);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 70px;
  width: 70px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links li a {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
  position: relative;
}

[data-theme="dark"] .nav-links li a {
  color: var(--text-light);
}

.navbar:not(.scrolled) .nav-links li a {
  color: #fff;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after, .nav-links li a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

[data-theme="dark"] .icon-btn {
  color: var(--text-light);
}
.navbar:not(.scrolled) .icon-btn {
  color: #fff;
}

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

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-dark);
}

.navbar:not(.scrolled) .mobile-menu-btn {
  color: #fff;
}

/* Sections General */
section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--accent-gold);
  margin: 15px auto 0;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--primary-light);
  margin-bottom: 50px;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: url('./asset/image\ \(1\).jpeg') no-repeat center center/cover;
  padding: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(44, 30, 22, 0.8));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 4.5rem;
  color: #fff;
  margin-bottom: 20px;
  animation: fadeUp 1s ease-out;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 40px;
  animation: fadeUp 1s ease-out 0.3s backwards;
  color: var(--secondary-beige);
}

.hero-btns {
  animation: fadeUp 1s ease-out 0.6s backwards;
}

/* About Section */
.about {
  background-color: var(--secondary-cream);
}
[data-theme="dark"] .about {
  background-color: var(--bg-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.about-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-img:hover img {
  transform: scale(1.05);
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Experience Section */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.experience-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.experience-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(107, 62, 46, 0.15);
}

.experience-icon {
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.experience-card h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Gallery Section */
.gallery {
  background-color: var(--secondary-cream);
}
[data-theme="dark"] .gallery {
  background-color: var(--bg-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(107, 62, 46, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay i {
  color: #fff;
  font-size: 2rem;
}

/* Reviews - تقييم الزوار */
.reviews-container {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) var(--secondary-beige);
}

.reviews-container::-webkit-scrollbar {
  height: 6px;
}
.reviews-container::-webkit-scrollbar-thumb {
  background-color: var(--accent-gold);
  border-radius: 3px;
}

.review-card {
  min-width: 350px;
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--accent-gold);
}

[dir="rtl"] .review-card {
  border-left: none;
  border-right: 4px solid var(--accent-gold);
}

.review-stars {
  color: var(--accent-gold);
  margin-bottom: 15px;
}

.review-text {
  font-style: italic;
  margin-bottom: 20px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.review-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.review-author-info h5 {
  margin: 0;
  font-size: 1.1rem;
}

/* Booking Section */
.booking {
  background: url('./asset/image\ \(18\).jpeg') no-repeat center center/cover;
  position: relative;
  color: #fff;
}

.booking::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 17, 14, 0.85); /* Dark overlay */
}

.booking .container {
  position: relative;
  z-index: 1;
}

.booking .section-title, .booking .section-subtitle {
  color: #fff;
}

.booking-wrapper {
  background-color: var(--card-bg);
  color: var(--text-dark);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  max-width: 800px;
  margin: 0 auto;
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--bg-color);
  color: var(--text-dark);
  transition: border-color 0.3s ease;
}

[data-theme="dark"] .form-control {
  border-color: #444;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* Footer */
footer {
  background-color: var(--primary-coffee);
  color: var(--secondary-beige);
  padding: 60px 0 20px;
}

[data-theme="dark"] footer {
  background-color: #000;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 80px;
  width: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--accent-gold);
  color: #fff;
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Modal Styles */
.modal {
  display: none; 
  position: fixed; 
  z-index: 2000; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 17, 14, 0.8);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 15px 50px rgba(0,0,0,0.3);
  transform: translateY(30px);
  transition: transform 0.3s ease;
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-icon {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 20px;
}

.modal-content h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.modal-content p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--text-dark);
}

[data-theme="dark"] .modal-content p {
  color: var(--text-light);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.lightbox.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 2001;
}

[dir="rtl"] .close-lightbox {
  right: auto;
  left: 40px;
}

.close-lightbox:hover {
  color: var(--accent-gold);
}

@keyframes zoomIn {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

/* Admin Styles */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}
@media (max-width: 992px) {
  .admin-grid { grid-template-columns: 1fr; }
}

.admin-panel {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--card-shadow);
}
.admin-panel h3 {
  margin-bottom: 20px;
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 10px;
  display: inline-block;
}

.admin-list {
  list-style: none;
  margin-top: 15px;
}
.admin-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: var(--secondary-cream);
  margin-bottom: 10px;
  border-radius: 8px;
}
[data-theme="dark"] .admin-list li {
  background-color: var(--bg-dark);
}

.table-responsive {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.admin-table th, .admin-table td {
  padding: 15px;
  text-align: right;
  border-bottom: 1px solid #eee;
}
[data-theme="dark"] .admin-table th, [data-theme="dark"] .admin-table td {
  border-bottom-color: #444;
}
.admin-table th {
  background-color: var(--primary-coffee);
  color: #fff;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.9rem;
}

/* Print Invoice Styles */
.print-invoice {
  display: none;
}

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  
  /* Client side */
  .booking, .booking * {
    visibility: visible;
  }
  .booking {
    position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 0; background: none;
  }
  
  /* Admin side invoice */
  body.admin-body * {
    visibility: hidden;
  }
  .print-invoice, .print-invoice * {
    visibility: visible !important;
  }
  .print-invoice {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 20px;
    background: #fff;
    color: #000;
    font-family: Arial, sans-serif;
  }
  .invoice-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
  .invoice-header img {
    height: 80px;
    width: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    filter: grayscale(100%);
  }
  .invoice-details p {
    margin-bottom: 10px;
    font-size: 1.2rem;
  }
  .invoice-footer {
    border-top: 2px solid #000;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-weight: bold;
  }
  .invoice-total {
    font-size: 1.5rem;
    margin-top: 10px;
  }
}

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

/* Responsive */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 3.5rem; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--card-bg);
    flex-direction: column;
    padding: 100px 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }

  [dir="ltr"] .nav-links {
    right: auto;
    left: -100%;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  [dir="ltr"] .nav-links.active {
    left: 0;
  }

  .nav-links li a {
    color: var(--text-dark);
    display: block;
    padding: 10px 0;
  }

  .mobile-menu-btn {
    display: block;
    cursor: pointer;
  }
  
  .hero-content h1 { font-size: 2.8rem; }
  .booking-form { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: span 1; }
}
