/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Tajawal', sans-serif;
}

/* Global Badge Color Fix */
.badge.bg-success {
  color: #000 !important;
  background-color: #28a745 !important;
}

.badge.bg-warning {
  color: #000 !important;
  background-color: #ffc107 !important;
}

:root {
  --primary: #2c3e50;
  --primary-light: #34495e;
  --secondary: #e67e22;
  --success: #27ae60;
  --danger: #e74c3c;
  --warning: #f39c12;
  --info: #3498db;
  --light: #ecf0f1;
  --dark: #2c3e50;
  --gray: #95a5a6;
  --light-gray: #ecf0f1;
  --sidebar-width: 280px;
  --header-height: 70px;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

/* Admin Layout */
body {
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
  direction: rtl;
}

/* Admin Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  z-index: 1000;
  font-family: 'Tajawal', sans-serif;
}

.sidebar .logo {
  display: flex;
  align-items: center;
  padding: 0 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.sidebar .logo img {
  margin-left: 10px;
}

.sidebar .logo h1 {
  color: white;
  font-size: 1.5rem;
  margin: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
}

.sidebar-nav a {
  display: block;
  padding: 12px 20px;
  color: #555;
  text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: #f8f9fa;
  color: #1976d2;
}

.sidebar-nav a i {
  margin-left: 10px;
  font-size: 1.1rem;
}

/* Main Content */
.admin-content {
  margin-right: var(--sidebar-width);
  padding: 2rem;
  min-height: 100vh;
  transition: var(--transition);
}

/* Cards */
.admin-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-card h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--light-gray);
  font-size: 1.4rem;
}

/* Buttons */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  margin-bottom: 1rem;
}

.cta-btn:hover {
  background: #d35400;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.cta-btn i {
  margin-left: 8px;
}

/* Action Buttons */
.action-btn {
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  margin: 0 2px;
}

.edit-btn {
  background: var(--info);
  color: white;
}

.edit-btn:hover {
  background: #2980b9;
}

.delete-btn {
  background: var(--danger);
  color: white;
}

.delete-btn:hover {
  background: #c0392b;
}

.toggle-btn {
  background: var(--success);
  color: white;
}

.toggle-btn.inactive {
  background: var(--warning);
}

.toggle-btn:hover {
  opacity: 0.9;
}

/* Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: right;
  border-bottom: 1px solid var(--light-gray);
}

.admin-table th {
  background: var(--primary-light);
  color: white;
  font-weight: 500;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover {
  background: #f8f9fa;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-available {
  background: rgba(39, 174, 96, 0.1);
  color: var(--success);
}

.status-booked {
  background: rgba(231, 76, 60, 0.1);
  color: var(--danger);
}

.status-pending {
  background: rgba(241, 196, 15, 0.1);
  color: var(--warning);
}

/* Stats Cards */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  font-size: 1.5rem;
  color: white;
}

.stat-info h3 {
  font-size: 1.8rem;
  margin: 0;
  color: var(--primary);
}

.stat-info p {
  margin: 0.2rem 0 0;
  color: var(--gray);
  font-size: 0.9rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
  outline: none;
}

/* Responsive */
@media (max-width: 992px) {
  .sidebar {
    right: -100%;
  }
  
  .sidebar.active {
    right: 0;
  }
  
  .admin-content {
    margin-right: 0;
    width: 100%;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .admin-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
  }
}

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

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

:root {
  --primary: #003366;
  --secondary: #bf953f;
  --background: #f5f5f5;
  --text: #222;
  --border: #ddd;
  --gold-gradient: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
  --font: 'Tajawal', sans-serif;
}

/* Additional CSS for booking and payment pages */
.booking-form-section {
  margin-bottom: 2rem;
}

.form-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,51,102,0.06);
  padding: 2rem;
}

.form-container h2 {
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.form-description {
  color: #666;
  margin-bottom: 2rem;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.form-section:last-child {
  border-bottom: none;
}

.form-section h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-weight: bold;
  color: var(--primary);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
  font-family: var(--font);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border: 1.5px solid var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.payment-hero {
  padding: 8rem !important;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.payment-option {
  position: relative;
  cursor: pointer;
}

.payment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.payment-option label {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.payment-option input[type="radio"]:checked + label {
  border-color: var(--primary);
  background: #f0f8ff;
}

.payment-option:hover label {
  border-color: var(--primary);
}

.payment-option label i {
  font-size: 1.5rem;
  color: var(--primary);
}

.payment-option label span {
  font-weight: bold;
  color: #222;
}

.terms-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-primary:hover {
  background: #002244;
}

.payment-form-section {
  margin-bottom: 2rem;
}

.payment-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.payment-form-wrapper {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,51,102,0.06);
  padding: 2rem;
}

.payment-form-wrapper h2 {
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.payment-method-card {
  position: relative;
  cursor: pointer;
}

.payment-method-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.payment-method-card label {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.payment-method-card input[type="radio"]:checked + label {
  border-color: var(--primary);
  background: #f0f8ff;
}

.payment-method-card:hover label {
  border-color: var(--primary);
}

.payment-method-card label i {
  font-size: 1.5rem;
  color: var(--primary);
}

.payment-method-card label span {
  font-weight: bold;
  color: #222;
}

.price-summary {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,51,102,0.06);
  padding: 2rem;
  height: fit-content;
}

.price-summary h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.price-item:last-child {
  border-bottom: none;
}

.price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 2px solid var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--primary);
}

.payment-security {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.security-badge i {
  font-size: 1.2rem;
}

.payment-instructions {
  margin-bottom: 2rem;
}

.instructions-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,51,102,0.06);
  padding: 2rem;
}

.instructions-card h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.video-container {
  margin-bottom: 2rem;
}

.video-placeholder {
  background: #f8f9fa;
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  color: #666;
}

.video-placeholder i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.instructions-text h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.instructions-text ol {
  padding-right: 1.5rem;
}

.instructions-text li {
  margin-bottom: 0.5rem;
  color: #666;
}

.apartment-summary {
  margin-bottom: 2rem;
}

.summary-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,51,102,0.06);
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.apartment-image {
  flex-shrink: 0;
  width: 300px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
}

.apartment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apartment-details {
  flex: 1;
}

.apartment-details h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.apartment-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
}

.info-item i {
  color: var(--primary);
  width: 16px;
}

.price-info {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.period {
  color: #666;
  font-size: 1rem;
}

.breadcrumb {
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--secondary);
}

.breadcrumb .separator {
  margin: 0 0.5rem;
  color: #666;
}

.breadcrumb .current {
  color: #666;
  font-weight: normal;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .payment-container {
    grid-template-columns: 1fr;
  }
  
  .payment-methods,
  .payment-methods-grid {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .summary-card {
    flex-direction: column;
    text-align: center;
  }
  
  .apartment-image {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .form-container,
  .payment-form-wrapper,
  .price-summary,
  .instructions-card {
    padding: 1rem;
  }
}

html {
  font-family: var(--font);
  background: var(--background);
  direction: rtl;
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
  text-align: right;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  box-sizing: border-box;
  color: var(--text);
  line-height: 1.6;
  font-family: var(--font);
  background-color: var(--background);
  display: flex;
  flex-direction: column;
}

/* Ensure all pages have proper container styling */
.container {
  width: 90%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  display: block;
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Ensure main content has proper spacing */
main {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: calc(100vh - 120px - 80px);
  flex: 1;
}

/* Ensure all sections have proper spacing */
section {
  margin-bottom: 2rem;
}

/* Ensure all headings have proper styling */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: bold;
}

/* Ensure all paragraphs have proper styling */
p {
  font-family: var(--font);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Ensure all links have proper styling */
a {
  font-family: var(--font);
  text-decoration: none;
  color: var(--primary);
  transition: color 0.2s;
}

/* Ensure all buttons have proper styling */
button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  outline: none;
}

/* Ensure all inputs have proper styling */
input, select, textarea {
  font-family: var(--font);
  font-size: inherit;
  outline: none;
}

/* ==== Header Modern Enhancement v3 ==== */
.site-header {
  width: 100%;
  background: linear-gradient(90deg, #fff 80%, #fcf6ba 100%);
  box-shadow: 0 4px 24px rgba(0,51,102,0.13);
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  transition: background 0.3s, box-shadow 0.3s;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 90px;
  padding: 0 1rem;
}
.logo {
  font-size: 2.1rem;
  font-weight: bold;
  color: var(--primary);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  letter-spacing: 1.5px;
  cursor: pointer;
  font-family: var(--font);
  transition: filter 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo:hover {
  filter: brightness(1.15) drop-shadow(0 2px 12px #fcf6ba88);
}
.nav-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 2rem;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 2px 8px rgba(0,51,102,0.04);
  border-radius: 12px;
  padding: 0.3rem 1.5rem;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav-bar li {
  display: inline-flex !important;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-bar li a, .nav-bar a {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 0.5rem 1.3rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block !important;
  letter-spacing: 0.5px;
  position: relative;
  width: auto !important;
}
.nav-bar a:hover, .nav-bar a.active, .nav-bar li a:hover, .nav-bar li a.active {
  background: var(--gold-gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(191,149,63,0.10);
}
.site-header .login-btn {
  width: auto !important;
  background: var(--secondary);
  color: #fff;
  font-weight: bold;
  font-size: 1.08rem;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  border: none;
  outline: none;
  box-shadow: 0 2px 8px rgba(191,149,63,0.13);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  margin-right: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
}
.site-header .login-btn i {
  font-size: 1.1em;
  margin-left: 0.3em;
}
.site-header .login-btn:hover, .site-header .login-btn:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,51,102,0.13);

}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-menu a {
  background: var(--secondary);
  color: #fff;
  font-weight: bold;
  font-size: 1.08rem;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  border: none;
  outline: none;
  box-shadow: 0 2px 8px rgba(191,149,63,0.13);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  margin-right: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  text-decoration: none;
}

.user-menu a:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,51,102,0.13);
}

.logout-btn {
  background: #e74c3c;
  color: #fff;
  font-weight: bold;
  font-size: 1.08rem;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  border: none;
  outline: none;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.13);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  margin-right: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
}

.logout-btn:hover {
  background: #c0392b;
  color: #fff;
  box-shadow: 0 4px 16px rgba(231, 76, 60, 0.13);
}
.close-menu-btn{
  display: none;
  position: fixed;
  right: 0;
  top: 10%;

}

.menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 992px) {
    .header-content {
        display: flex;
        justify-content: space-between; /* This will now work correctly */
        align-items: center;
        width: 100%;
        padding: 0.7rem 1rem;
        min-height: 60px;
    }

    .header-content .logo {
        order: 2; /* Logo in the middle (visually right in RTL) */
    }

    .header-content .login-btn {
        order: 1; /* Login button first (visually left in RTL) */
    }

    .header-content .nav-bar {
        order: 3; /* Nav bar last (it will be hidden anyway) */
    }

    .user-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .user-menu a,
    .logout-btn {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

    /* Floating Menu Button */
  .floating-menu-btn {
    display: flex;
    position: fixed;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
  }

  .floating-menu-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
  }

  .login-btn {
    display: block; /* Keep it visible on mobile */
  }

  /* Sidebar Styles */
  .close-menu-btn {
    position: absolute;
    top: 10px;
    left: 25px; /* Positioned for RTL */
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
  }

  .nav-bar {
    position: fixed;
    top: 0;
    right: -300px; /* Start off-screen (RTL) */
    width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: -4px 0 15px rgba(0,0,0,0.15);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
  }

  .nav-bar.active {
    right: 0; /* Slide in */
  }

  .nav-bar ul {
    flex-direction: column;
    width: 100%;
    padding-top: 2rem;
  }

  .nav-bar ul li {
    width: 100%;
  }

  .nav-bar ul li a {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s, color 0.2s;
  }

  .nav-bar ul li a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
  }

  /* Close button inside sidebar */
  .close-menu-btn {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem; /* RTL positioning */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
  }

  /* Page Overlay */
  .page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
  }

  .page-overlay.active {
    opacity: 1;
    visibility: visible;
  }

}

@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }
    .header-content {
        padding: 0.5rem 1rem;
    }
}

.intro-text {
  flex: 1;
  color: #666;
  font-size: 0.9rem;
}
.cta-btn {
  background: linear-gradient(90deg, #2176ff 60%, #1a5dcc 100%)!important;
  color: #fff;
  /* background: #fff!important; */
  /* color: #2176ff !important; */
  border: none;
  border-radius: 2rem;
  padding: 0.85rem 2.2rem;
  font-size: 1.18rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(33, 118, 255, 0.18), 0 1.5px 0 #fff;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s;
  display: inline-block;
  margin-top: 1.1rem;
  letter-spacing: 0.5px;
}
.cta-btn:hover, .cta-btn:focus {
  
  border: 2px solid #6fa3f7;
  box-shadow: 0 2px 8px rgba(33, 118, 255, 0.10);
}
.suggested-apartments {
  margin-top: 2rem;
  margin-right: auto;
  margin-left: auto;
  display: block;
}
.apartment-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}
.apartment-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.apartment-card:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 6px 24px rgba(0,51,102,0.10);
}
.apartment-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.apartment-info {
  padding: 1rem 1.2rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.apartment-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.2rem;
}
.apartment-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.2rem;
}
.apartment-price {
  background: var(--gold-gradient);
  color: #222;
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: bold;
}
.apartment-gender {
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: bold;
  color: #fff;
  background: #007bff;
}
.apartment-gender.male {
  background: #007bff;
}
.apartment-gender.female {
  background: #e83e8c;
}
.apartment-details {
  color: #555;
  font-size: 0.98rem;
}
.statistics {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
}
.stat-item {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  min-width: 160px;
  text-align: center;
}
.testimonials {
  margin: 2rem 0;
  margin-right: auto;
  margin-left: auto;
  display: block;
}
.testimonials-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.testimonial {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  min-width: 220px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  scroll-snap-align: start;
  transition: box-shadow 0.2s;
}
.testimonial:hover {
  box-shadow: 0 4px 16px rgba(0,51,102,0.08);
}

/* Fixed Footer Styles */
footer.site-footer, .site-footer.custom-footer {
  position: static !important;
  bottom: unset !important;
  width: 100%;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.quick-links, .social-links {
  display: flex;
  gap: 1rem;
}
.quick-links a, .social-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}
.quick-links a:hover, .social-links a:hover {
  opacity: 0.8;
}

/* Responsive Design for Header and Footer */
@media (max-width: 768px) {
  .header-content, .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .intro-text {
    font-size: 0.85rem;
  }
  .apartment-cards, .statistics {
    grid-template-columns: 1fr;
  }
  .stat-item {
    text-align: center;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  .logo {
    font-size: 1.5rem;
  }
  .intro-text {
    font-size: 0.8rem;
  }
  .cta-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

.hero-section {
  width: 100vw;
  max-width: 100vw;
  min-height: 640px;
  position: relative;
  margin: 0;
  padding: 0;
  background: url('https://images.pexels.com/photos/101808/pexels-photo-101808.jpeg') center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 34, 68, 0.55);
  backdrop-filter: blur(2px);
  z-index: 1;
}
.hero-section.container {
  max-width: 100vw !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.hero-content-centered {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem 1.5rem;
  background: rgba(255,255,255,0.10);
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0,51,102,0.10);
  backdrop-filter: blur(1.5px);
}
.hero-content-centered h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-shadow: 0 2px 12px rgba(0,0,0,0.10);
  letter-spacing: 1px;
}
.hero-content-centered p {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 2.2rem;
  text-shadow: 0 2px 8px rgba(0,51,102,0.18);
  line-height: 1.7;
}
.hero-content-centered .cta-btn {
  background: var(--gold-gradient);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(191,149,63,0.13);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.hero-content-centered .cta-btn:hover, .hero-content-centered .cta-btn:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 32px rgba(0,51,102,0.18);
  transform: translateY(-2px) scale(1.04);
}
@media (max-width: 600px) {
  .hero-content-centered {
    max-width: 98vw;
    padding: 2rem 0.5rem 1.5rem 0.5rem;
    border-radius: 10px;
  }
  .hero-content-centered h1 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
  }
  .hero-content-centered p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }
  .hero-content-centered .cta-btn {
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
  }
}

/* Statistics Section */
.statistics-section {
  margin: 2.5rem 0 2rem 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,51,102,0.06);
  padding: 2rem 1.5rem 1.5rem 1.5rem !important;
  margin-right: auto;
  margin-left: auto;
  display: block;
}
.section-title {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.statistics-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-card {
  background: #f9f9f9;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(0,51,102,0.04);
  padding: 1.2rem 2.2rem;
  min-width: 180px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.stat-card:hover {
  box-shadow: 0 4px 16px rgba(0,51,102,0.10);
  transform: translateY(-2px) scale(1.03);
}
.stat-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #222;
}
.stat-label {
  font-size: 1.1rem;
  color: #555;
}

/* Testimonials Section */
.testimonials-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}
.testimonial-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(0,51,102,0.04);
  padding: 1.2rem 1.5rem;
  min-width: 270px;
  max-width: 320px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  scroll-snap-align: start;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 16px rgba(0,51,102,0.10);
}
.testimonial-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.testimonial-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.testimonial-name {
  font-weight: bold;
  color: var(--primary);
  font-size: 1.05rem;
}
.testimonial-text {
  color: #444;
  font-size: 1rem;
}
@media (max-width: 900px) {
  .statistics-cards {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
  }
}
@media (max-width: 600px) {
  .apartment-search {
    flex-direction: column;
    gap: 0.5rem;
  }
  .statistics-cards {
    flex-direction: column;
    gap: 1rem;
  }
  .testimonial-card {
    min-width: 90vw;
    max-width: 98vw;
  }
}

/* Apartment Listing Page Styles */
.page-title {
  text-align: center;
  margin: 2rem 0 1.5rem 0;
  padding: 1rem;
}
.page-title h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.page-title p {
  color: #666;
  font-size: 1.1rem;
}

/* Filters Section */
.filters-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,51,102,0.06);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.filters-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: end;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.filter-group label {
  font-weight: bold;
  color: var(--primary);
  font-size: 0.95rem;
}
.filter-group input,
.filter-group select {
  padding: 0.7rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
}
.filter-group input:focus,
.filter-group select:focus {
  border: 1.5px solid var(--primary);
}
.amenities-checkboxes {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 0.7em;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  padding-bottom: 0.2em;
}
.checkbox-label {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 0.3em;
  margin-bottom: 0;
  white-space: nowrap;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.apply-filters-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}
.apply-filters-btn:hover {
  background: #002244;
}

/* Results Section */
.results-section {
  margin-bottom: 2rem;
}
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}
.results-header h2 {
  color: var(--primary);
  font-size: 1.5rem;
}
.results-count {
  color: #666;
  font-size: 1rem;
}
.results-count span {
  font-weight: bold;
  color: var(--primary);
}

/* Apartment Grid */
.apartment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

/* Enhanced Apartment Cards */
.apartment-card {
  height: 100%;
  min-height: 420px;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
}
.apartment-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 24px rgba(0,51,102,0.12);
}
.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.apartment-card:hover .card-image img {
  transform: scale(1.05);
}
.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #666;
}
.wishlist-btn:hover {
  background: #fff;
  color: #e74c3c;
  transform: scale(1.1);
}
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #27ae60;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}
.card-content {
  padding: 1.2rem;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}
.card-header h3, .card-header-title, .card-header > *:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}
.price {
  background: var(--gold-gradient);
  color: #222;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: bold;
  white-space: nowrap;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.gender {
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: bold;
  color: #fff;
}
.gender.male {
  background: #007bff;
}
.gender.female {
  background: #e83e8c;
}
.location {
  color: #666;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.card-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.detail-item {
  display: flex;
  align-items: start;
  gap: 0.7rem !important;
  color: #555;
  font-size: 0.9rem;
  flex-direction: row !important;
}
.detail-item i {
  color: var(--primary);
  width: 16px;
}


.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.amenity {
  background: #f8f9fa;
  color: #666;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.amenity i {
  color: var(--primary);
}
.card-actions {
  display: flex;
  justify-content: center;
}
.view-details-btn {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.2s;
  text-align: center;
  width: 100%;
}
.view-details-btn:hover {
  background: #002244;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.page-btn {
  background: #fff;
  border: 1px solid #ddd;
  color: #666;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}
.page-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.page-btn.next {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .filters-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .results-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .apartment-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .card-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  .card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .amenities-checkboxes {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .page-title h1 {
    font-size: 1.5rem;
  }
  .filters-section {
    padding: 1rem;
  }
  .card-content {
    padding: 1rem;
  }
  .amenities-checkboxes {
    grid-template-columns: 1fr;
  }
}

/* Apartment Details Page Styles */
.breadcrumb {
  margin: 1rem 0;
  padding: 0.5rem 0;
}
.breadcrumb nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: #002244;
}
.breadcrumb i {
  color: #999;
  font-size: 0.8rem;
}
.breadcrumb span {
  color: #666;
}

/* Details Grid Layout */
.details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Image Gallery */
.image-gallery {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,51,102,0.06);
  overflow: hidden;
  margin-bottom: 2rem;
}
.main-image {
  position: relative;
  height: 400px;
  overflow: hidden;
}
.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--primary);
}
.gallery-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}
.gallery-nav.prev {
  right: 15px;
}
.gallery-nav.next {
  left: 15px;
}
.thumbnail-images {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
}
.thumbnail {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
  border: 2px solid transparent;
}
.thumbnail:hover {
  opacity: 0.8;
}
.thumbnail.active {
  border-color: var(--primary);
}

/* Apartment Info */
.apartment-info {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,51,102,0.06);
  padding: 2rem;
}
.info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.info-header h1 {
  font-size: 1.8rem;
  color: var(--primary);
  margin: 0;
  flex: 1;
}
.info-badges {
  display: flex;
  gap: 0.5rem;
}
.badge {
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  color: #fff;
}
.badge.gender.male {
  background: #007bff;
}
.badge.gender.female {
  background: #e83e8c;
}
.badge.available {
  background: #27ae60;
}
.info-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.95rem;
}
.meta-item i {
  color: var(--primary);
}

/* Description */
.description {
  margin-bottom: 2rem;
}
.description h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.description p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Room Details */
.room-details {
  margin-bottom: 2rem;
}
.room-details h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.details-grid-small {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.detail-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.detail-card i {
  font-size: 1.5rem;
  color: var(--primary);
}
.detail-text {
  display: flex;
  flex-direction: column;
}
.detail-text strong {
  font-size: 0.9rem;
  color: #666;
}
.detail-text span {
  font-size: 1.1rem;
  font-weight: bold;
  color: #222;
}

/* Utilities */
.utilities {
  margin-bottom: 2rem;
}
.utilities h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.utilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.utility-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.utility-item i {
  font-size: 1.5rem;
  color: var(--primary);
}
.utility-info {
  display: flex;
  flex-direction: column;
}
.utility-info strong {
  font-size: 0.9rem;
  color: #666;
}
.utility-info span {
  font-size: 1rem;
  color: #222;
}

/* Housing Rules */
.housing-rules {
  margin-bottom: 2rem;
}
.housing-rules h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.rule-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.rule-item i {
  font-size: 1.5rem;
  color: var(--primary);
}
.rule-info {
  display: flex;
  flex-direction: column;
}
.rule-info strong {
  font-size: 0.9rem;
  color: #666;
}
.rule-info span {
  font-size: 1rem;
  color: #222;
}

/* Video Section */
.video-section {
  margin-bottom: 2rem;
}
.video-section h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.video-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.video-placeholder {
  width: 100%;
  height: 300px;
  object-fit: cover;
  opacity: 0.8;
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--primary);
  font-size: 1.5rem;
}
.play-btn:hover {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Sidebar */
.details-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Pricing Card */
.pricing-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,51,102,0.06);
  padding: 1.5rem;
}
.pricing-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}
.price-item:last-child {
  border-bottom: none;
}
.price-item.total {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--primary);
  border-top: 2px solid var(--primary);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* Booking Card */
.booking-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.2rem;
  transition: box-shadow 0.2s, border 0.2s;
  border: 1.5px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}
.booking-card:hover {
  box-shadow: 0 6px 24px rgba(44,62,80,0.10);
  border-color: var(--primary-light);
}
.booking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.booking-id {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1em;
}
.status-badge {
  padding: 0.35em 1.1em;
  border-radius: 1em;
  font-size: 0.98em;
  font-weight: 600;
  color: #fff;
  background: var(--gray);
  box-shadow: 0 1px 4px rgba(44,62,80,0.07);
  letter-spacing: 0.5px;
}
.status-badge.status-pending { background: var(--warning); }
.status-badge.status-confirmed { background: var(--success); }
.status-badge.status-cancelled { background: var(--danger); }
.status-badge.status-completed { background: var(--primary); }

.booking-body {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}
.booking-info, .booking-apartment, .booking-actions {
  flex: 1 1 220px;
  min-width: 200px;
}
.booking-info {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.booking-guest {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.guest-avatar {
  width: 48px;
  height: 48px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  color: var(--primary);
}
.guest-info h4 {
  margin: 0 0 0.2em 0;
  font-size: 1.1em;
  color: var(--primary);
}
.guest-meta span {
  display: inline-block;
  margin-left: 0.7em;
  color: var(--gray);
  font-size: 0.97em;
}
.booking-dates {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}
.date-range {
  display: flex;
  gap: 1.2em;
}
.date-item {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}
.date-label {
  color: var(--gray);
  font-size: 0.93em;
}
.date-value {
  color: var(--primary);
  font-weight: 600;
}
.booking-nights {
  margin-top: 0.3em;
  color: var(--info);
  font-size: 0.98em;
  font-weight: 500;
}
.booking-apartment {
  display: flex;
  gap: 1.1em;
  align-items: flex-start;
}
.apartment-image {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(44,62,80,0.08);
  flex-shrink: 0;
}
.apartment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.apartment-details h4 {
  margin: 0 0 0.2em 0;
  font-size: 1.08em;
  color: var(--primary);
}
.apartment-location {
  color: var(--gray);
  font-size: 0.97em;
  margin-bottom: 0.3em;
}
.apartment-features {
  display: flex;
  gap: 0.7em;
  flex-wrap: wrap;
}
.apartment-features .feature {
  display: flex;
  align-items: center;
  gap: 0.3em;
  color: var(--info);
  font-size: 0.97em;
}
.booking-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7em;
  min-width: 160px;
}
.booking-price {
  font-size: 1.15em;
  color: var(--success);
  font-weight: 700;
  margin-bottom: 0.2em;
}
.price-note {
  color: var(--gray);
  font-size: 0.93em;
  font-weight: 400;
}
.action-buttons {
  display: flex;
  gap: 0.5em;
}
.action-buttons .btn {
  border: none;
  border-radius: 50%;
  width: 2.2em;
  height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  background: #f4f6fa;
  color: var(--primary);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: none;
  margin: 0 2px;
  outline: none;
}
.action-buttons .btn:focus {
  box-shadow: 0 0 0 2px var(--primary-light);
}
.action-buttons .btn-success {
  background: var(--success);
  color: #fff;
}
.action-buttons .btn-success:hover,
.action-buttons .btn-success:focus {
  background: #219150;
  color: #fff;
}
.action-buttons .btn-outline-danger {
  background: #fff0f0;
  color: var(--danger);
  border: 1.5px solid #ffd6d6;
}
.action-buttons .btn-outline-danger:hover,
.action-buttons .btn-outline-danger:focus {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.action-buttons .btn-outline-secondary {
  background: #f4f6fa;
  color: var(--primary);
  border: 1.5px solid #e0e0e0;
}
.action-buttons .btn-outline-secondary:hover,
.action-buttons .btn-outline-secondary:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.action-buttons .btn i {
  margin: 0;
  font-size: 1.1em;
}
@media (max-width: 600px) {
  .action-buttons {
    gap: 0.3em;
  }
  .action-buttons .btn {
    width: 2em;
    height: 2em;
    font-size: 1em;
  }
}
@media (max-width: 900px) {
  .booking-body {
    flex-direction: column;
    gap: 1.2rem;
  }
  .booking-apartment {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7em;
  }
}
@media (max-width: 600px) {
  .booking-card {
    padding: 1.1rem 0.5rem;
  }
  .booking-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
  }
  .booking-body {
    gap: 0.7rem;
  }
  .booking-actions {
    align-items: stretch;
    min-width: 0;
  }
  .action-buttons {
    justify-content: flex-start;
  }
}

/* Share Card */
.share-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,51,102,0.06);
  padding: 1.5rem;
}
.share-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.share-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  color: #fff;
}
.share-btn.facebook {
  background: #1877f2;
}
.share-btn.whatsapp {
  background: #25d366;
}
.share-btn.telegram {
  background: #0088cc;
}
.share-btn.copy-link {
  background: #666;
}
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Contact Card */
.contact-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,51,102,0.06);
  padding: 1.5rem;
}
.contact-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.contact-info {
  margin-bottom: 1rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  color: #666;
  font-size: 1rem;
}
.contact-item i {
  color: var(--primary);
  width: 20px;
}
.contact-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-top: auto;
}
.contact-btn:hover {
  background: #002244;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .details-sidebar {
    order: -1;
  }
}
@media (max-width: 768px) {
  .info-header {
    flex-direction: column;
    gap: 1rem;
  }
  .info-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  .details-grid-small {
    grid-template-columns: 1fr;
  }
  .utilities-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }
  .main-image {
    height: 300px;
  }
  .thumbnail-images {
    padding: 0.5rem;
  }
  .thumbnail {
    width: 60px;
    height: 45px;
  }
}
@media (max-width: 480px) {
  .apartment-info {
    padding: 1rem;
  }
  .info-header h1 {
    font-size: 1.5rem;
  }
  .main-image {
    height: 250px;
  }
  .gallery-nav {
    width: 35px;
    height: 35px;
  }
  .play-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* Booking Page Styles */
.apartment-summary {
  margin-bottom: 2rem;
}
.summary-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,51,102,0.06);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 200px 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}
.summary-image {
  border-radius: 12px;
  overflow: hidden;
}
.summary-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.summary-info h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.summary-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.detail-row .label {
  color: #666;
  font-size: 0.9rem;
}
.detail-row .value {
  font-weight: bold;
  color: #222;
}
.detail-row .value.gender.male {
  color: #007bff;
}
.detail-row .value.price {
  color: var(--primary);
  font-size: 1.1rem;
}
.summary-price {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1rem;
}
.summary-price .price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.summary-price .price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
.summary-price .price-item.total {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--primary);
  border-top: 1px solid #ddd;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

/* Booking Form Section */
.booking-form-section {
  margin-bottom: 2rem;
}
.form-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,51,102,0.06);
  padding: 2rem;
}
.form-container h2 {
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Form Sections */
.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}
.form-section:last-child {
  border-bottom: none;
}
.form-section h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group.full-width {
  grid-column: 1 / -1;
}
.form-group label {
  font-weight: bold;
  color: var(--primary);
  font-size: 0.95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
  font-family: 'Tajawal', sans-serif;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border: 1.5px solid var(--primary);
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.form-help {
  color: #666;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

/* File Upload */
.file-upload {
  position: relative;
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}
.file-upload:hover {
  border-color: var(--primary);
  background: #f8f9fa;
}
.file-upload input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #666;
}
.upload-placeholder i {
  font-size: 2rem;
  color: var(--primary);
}
.upload-placeholder span {
  font-size: 0.9rem;
}

/* Payment Methods */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.payment-method {
  position: relative;
  cursor: pointer;
}
.payment-method input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.method-content {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.payment-method input[type="radio"]:checked + .method-content {
  border-color: var(--primary);
  background: #f0f8ff;
}
.payment-method:hover .method-content {
  border-color: var(--primary);
}
.method-content i {
  font-size: 1.5rem;
  color: var(--primary);
}
.method-content span {
  font-weight: bold;
  color: #222;
}

/* Additional Students */
.additional-students {
  margin-top: 1rem;
}
.add-student-btn {
  background: #f8f9fa;
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 1rem;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: bold;
}
.add-student-btn:hover {
  border-color: var(--primary);
  background: #f0f8ff;
}

/* Terms Section */
.terms-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}
.checkbox-label a:hover {
  color: #002244;
}

/* Form Actions */
.form-actions {
  margin-top: 2rem;
  text-align: center;
}
.submit-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.submit-btn:hover {
  background: #002244;
}

/* Responsive Design for Booking Page */
@media (max-width: 1024px) {
  .summary-card {
    grid-template-columns: 150px 1fr 250px;
  }
  .summary-image {
    height: 120px;
  }
  .summary-price {
    padding: 0.8rem;
  }
}

@media (max-width: 768px) {
  .form-container {
    padding: 1.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .payment-methods {
    grid-template-columns: repeat(2, 1fr);
  }
  .summary-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .summary-image {
    height: 200px;
  }
  .summary-price {
    order: -1;
  }
}

@media (max-width: 480px) {
  .form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .form-container h2 {
    font-size: 1.3rem;
  }
  .form-section h3 {
    font-size: 1.1rem;
  }
  .file-upload {
    padding: 1.5rem;
  }
  .upload-placeholder i {
    font-size: 1.5rem;
  }
  .method-content {
    padding: 0.8rem;
  }
  .method-content i {
    font-size: 1.2rem;
  }
}

/* Payment Page Styles */
.payment-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Video Instruction */
.video-instruction {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,51,102,0.06);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.video-instruction h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.video-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  margin-bottom: 1rem;
}
.video-placeholder {
  width: 100%;
  height: 250px;
  object-fit: cover;
  opacity: 0.8;
}
.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--primary);
  font-size: 1.5rem;
}
.play-btn:hover {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.1);
}
.video-description {
  color: #666;
  font-size: 0.95rem;
  text-align: center;
}

/* Payment Form Container */
.payment-form-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,51,102,0.06);
  padding: 2rem;
}
.payment-form-container h2 {
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Card Input */
.card-input {
  position: relative;
  display: flex;
  align-items: center;
}
.card-input input {
  padding-right: 80px;
}
.card-icons {
  position: absolute;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  color: #666;
}
.card-icons i {
  font-size: 1.2rem;
}

/* CVV Input */
.cvv-input {
  position: relative;
  display: flex;
  align-items: center;
}
.cvv-input input {
  padding-right: 40px;
}
.cvv-input i {
  position: absolute;
  right: 1rem;
  color: #666;
  cursor: help;
}

/* Security Notice */
.security-notice {
  background: #f0f8ff;
  border: 1px solid #cce7ff;
  border-radius: 12px;
  padding: 1rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.security-icon {
  color: var(--primary);
  font-size: 1.5rem;
}
.security-text h4 {
  color: var(--primary);
  margin-bottom: 0.3rem;
  font-size: 1rem;
}
.security-text p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* Pay Now Button */
.pay-now-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}
.pay-now-btn:hover {
  background: #002244;
}

/* Order Summary Section */
.order-summary-section {
  position: sticky;
  top: 100px;
}
.summary-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,51,102,0.06);
  padding: 1.5rem;
}
.summary-card h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Apartment Summary Info */
.apartment-summary-info {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}
.apartment-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.apartment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.apartment-details h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.apartment-details p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.apartment-details i {
  color: var(--primary);
  width: 16px;
}

/* Price Breakdown */
.price-breakdown h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.price-items {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}
.price-item.total {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--primary);
  border-top: 1px solid #ddd;
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}

/* Payment Methods Summary */
.payment-methods-summary {
  margin: 1.5rem 0;
}
.payment-methods-summary h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.method-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.9rem;
}
.method-item i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Important Notes */
.important-notes {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}
.important-notes h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.important-notes ul {
  list-style: none;
  padding: 0;
}
.important-notes li {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  padding-right: 1.5rem;
  position: relative;
}
.important-notes li:before {
  content: "•";
  color: var(--primary);
  position: absolute;
  right: 0;
  font-weight: bold;
}

/* Responsive Design for Payment Page */
@media (max-width: 1024px) {
  .payment-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .order-summary-section {
    position: static;
  }
}

@media (max-width: 768px) {
  .payment-form-container {
    padding: 1.5rem;
  }
  .video-instruction {
    padding: 1rem;
  }
  .video-placeholder {
    height: 200px;
  }
  .summary-card {
    padding: 1rem;
  }
  .methods-grid {
    grid-template-columns: 1fr;
  }
  .apartment-summary-info {
    flex-direction: column;
    text-align: center;
  }
  .apartment-image {
    align-self: center;
  }
}

@media (max-width: 480px) {
  .payment-form-container h2,
  .video-instruction h2 {
    font-size: 1.3rem;
  }
  .video-placeholder {
    height: 150px;
  }
  .play-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  .security-notice {
    flex-direction: column;
    text-align: center;
  }
  .card-input input {
    padding-right: 60px;
  }
  .card-icons i {
    font-size: 1rem;
  }
}

/* Additional fixes for booking and payment pages */
.booking-form-section .form-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,51,102,0.06);
  padding: 2rem;
}

.payment-form-section .payment-form-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,51,102,0.06);
  padding: 2rem;
}

/* Ensure proper spacing for main content */
main {
  padding-top: 120px;
  min-height: calc(100vh - 120px - 80px);
}

/* Fix for breadcrumb navigation */
.breadcrumb {
  margin-bottom: 2rem;
}

.breadcrumb nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb i {
  color: #666;
  font-size: 0.8rem;
}

.breadcrumb span {
  color: #666;
  font-weight: bold;
}

/* Ensure container has proper max-width */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Fix for form validation styles */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
  border-color: #e74c3c;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
  border-color: #27ae60;
}

/* Loading overlay styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  text-align: center;
  color: var(--primary);
}

.loading-spinner i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.loading-spinner p {
  font-size: 1.1rem;
  margin: 0;
}
.contact-hero-content {
	padding-top: 60px;
}
.contact-hero h1 {
color: #ffff !Important;	
}

.booking-hero h1 {
color: #ffff !Important;	
}
.booking-hero-content {
	padding-top: 60px;
}
.filters-section {
	padding: 30px !Important;
}

.hero-section .container {
	max-width: 100vw !Important;
}

.login-btn {
  background: var(--primary);
  color: #fff!important;
  font-weight: bold;
  font-size: 1.05rem;
  padding: 0.6rem 1.6rem;
  border-radius: 8px;
  border: none;
  outline: none;
  box-shadow: 0 2px 8px rgba(191,149,63,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.login-btn:hover, .login-btn:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,51,102,0.12);
}
.login-btn a {
  color: #fff!important;
  text-decoration: none!important;
}
@media (max-width: 480px) {
  .login-btn {
    width: 100%;
    font-size: 1rem;
    padding: 0.8rem 0;
    justify-content: center;
  }
}

/* ==== Login Page Styles ==== */
body.login-page {
  background: linear-gradient(135deg, #f5f5f5 60%, #fcf6ba 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Tajawal', Arial, sans-serif;
}
.login-container {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 32px rgba(0,51,102,0.10), 0 1.5px 0 #fff;
  padding: 2.7rem 2.2rem 2.2rem 2.2rem;
  max-width: 380px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.7rem;
  position: relative;
  overflow: hidden;
}
.login-container:before {
  content: "";
  position: absolute;
  top: -60px; left: -60px;
  width: 120px; height: 120px;
  background: var(--gold-gradient);
  opacity: 0.13;
  border-radius: 50%;
  z-index: 0;
}
.login-container:after {
  content: "";
  position: absolute;
  bottom: -50px; right: -50px;
  width: 100px; height: 100px;
  background: var(--gold-gradient);
  opacity: 0.10;
  border-radius: 50%;
  z-index: 0;
}
.login-container h2 {
  color: var(--primary)!important;
  font-size: 1.7rem;
  margin-bottom: 0.7rem;
  font-weight: bold;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  z-index: 1;
}
.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 1;
}
.login-form label {
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.3rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.input-group {
  position: relative;
  width: 100%;
}
.input-group i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #bbb;
  font-size: 1.1rem;
  pointer-events: none;
  transition: color 0.2s;
}
.login-form input {
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  border: 1.5px solid #eee;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  font-family: 'Tajawal', sans-serif;
  background: #fafbfc;
  box-shadow: 0 1px 4px rgba(0,51,102,0.03);
}
.login-form input:focus {
  border: 1.5px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,51,102,0.08);
}
.login-btn {
  width: 100%;
  justify-content: center;
  font-size: 1.13rem;
  padding: 1rem 0;
  border-radius: 10px;
  font-weight: bold;
  background: var(--primary);
  color: #fff!important;
  box-shadow: 0 2px 8px rgba(0,51,102,0.10);
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.login-btn:hover, .login-btn:focus {
  background: var(--secondary);
  color: #fff!important;
  box-shadow: 0 4px 16px rgba(191,149,63,0.13);
}
.login-footer {
  margin-top: 1rem;
  text-align: center;
  color: #666;
  font-size: 0.97rem;
  z-index: 1;
}
.login-footer a {
  color: var(--primary);
  text-decoration: underline;
  margin-right: 0.3rem;
  transition: color 0.2s;
}
.login-footer a:hover {
  color: var(--secondary);
}
@media (max-width: 600px) {
  .login-container {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    max-width: 98vw;
  }
  .login-container h2 {
    font-size: 1.2rem;
  }
  .login-btn {
    font-size: 1rem;
    padding: 0.8rem 0;
  }
}
@media (max-width: 400px) {
  .login-container {
    border-radius: 10px;
  }
}

.shihab-highlight {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-shadow: 0 4px 18px rgba(191,149,63,0.18), 0 1px 0 #fff;
  font-size: 1.35em;
  padding: 0 0.18em;
  margin: 0 0.12em;
  border-bottom: 3px solid;
  border-image: var(--gold-gradient) 1;
  border-width: 0 0 3px 0;
  display: inline-block;
  line-height: 1.1;
}

/* سكشن البحث بعد الهيرو - تطوير متقدم */
.search-section {
  margin-top: 2.2rem;
  margin-bottom: 2.7rem;
  padding: 2.2rem 0 1.2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 900px;
  border-radius: 2.2rem;
  background: linear-gradient(120deg, #fffbe6 60%, #f7f3e7 100%);
  box-shadow: 0 4px 32px rgba(191,163,63,0.10), 0 1.5px 0 #fff;
  position: relative;
}
.main-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2.2rem;
  background: rgba(255,255,255,0.98);
  border-radius: 2.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  padding: 1.2rem 2.2rem 1.2rem 2.2rem;
  max-width: 900px;
  width: 100%;
  justify-content: center;
  align-items: flex-end;
}
.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 150px;
  flex: 1 1 160px;
  margin-bottom: 0.5rem;
}
.filter-group label {
  font-size: 1.02rem;
  font-weight: 700;
  color: #bfa33f;
  margin-bottom: 0.3em;
  letter-spacing: 0.5px;
}
.filter-group input[type="text"],
.filter-group input[type="number"],
.filter-group select {
  border: 1.5px solid #e6c97a;
  border-radius: 1.5rem;
  padding: 0.6rem 1.1rem;
  font-size: 1.05rem;
  background: #fff;
  color: #222;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(191,163,63,0.06);
}
.filter-group input:focus,
.filter-group select:focus {
  border-color: #bfa33f;
  box-shadow: 0 2px 8px rgba(191,163,63,0.13);
  outline: none;
}
.amenities-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-top: 0.2rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.98rem;
  background: #f7f3e7;
  border-radius: 1.2rem;
  padding: 0.3em 0.9em 0.3em 0.9em;
  border: 1px solid #e6c97a;
  cursor: pointer;
  transition: background 0.18s, border 0.18s;
}
.checkbox-label input[type="checkbox"] {
  accent-color: #bfa33f;
  margin-left: 0.3em;
}
.checkbox-label:hover, .checkbox-label input[type="checkbox"]:focus + span {
  background: #fffbe6;
  border-color: #bfa33f;
}
.apply-filters-btn {
  background: var(--gold-gradient, linear-gradient(90deg,#bfa33f,#e6c97a));
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.85rem 2.2rem;
  font-size: 1.13rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.13s;
  box-shadow: 0 1px 6px rgba(191,163,63,0.10);
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.7rem;
  margin-right: auto;
  margin-left: auto;
}
.apply-filters-btn:hover, .apply-filters-btn:focus {
  background: linear-gradient(90deg,#e6c97a,#bfa33f);
  box-shadow: 0 2px 12px rgba(191,163,63,0.18);
  transform: translateY(-2px) scale(1.04);
}
@media (max-width: 900px) {
  .main-search-form {
    padding: 1.1rem 0.7rem;
    gap: 1.1rem 1.1rem;
  }
  .search-section {
    padding: 1.2rem 0 0.5rem 0;
  }
}
@media (max-width: 600px) {
  .main-search-form {
    flex-direction: column;
    gap: 0.9rem;
    padding: 0.7rem 0.7rem;
    align-items: stretch;
  }
  .search-section {
    padding: 0.7rem 0 0.2rem 0;
    border-radius: 1.2rem;
  }
  .filter-group {
    min-width: 0;
    flex: 1 1 100%;
  }
}

/* تقليل ارتفاع سكشن البحث ليكون أكثر دمجًا */
.search-section {
  padding: 1.1rem 0 0.4rem 0;
}
.main-search-form {
  padding: 0.7rem 1.1rem 0.7rem 1.1rem;
  gap: 0.7rem 1.2rem;
}
.filter-group {
  margin-bottom: 0.2rem;
}
.apply-filters-btn {
  margin-top: 0.3rem;
}
@media (max-width: 900px) {
  .main-search-form {
    padding: 0.6rem 0.4rem;
    gap: 0.7rem 0.7rem;
  }
  .search-section {
    padding: 0.6rem 0 0.2rem 0;
  }
}
@media (max-width: 600px) {
  .main-search-form {
    gap: 0.6rem;
    padding: 0.4rem 0.4rem;
  }
  .search-section {
    padding: 0.3rem 0 0.1rem 0;
  }
}

/* تصغير حجم عناصر سكشن البحث لتكون أكثر دمجًا */
.search-section {
  padding: 0.7rem 0 0.2rem 0;
  max-width: 750px;
  border-radius: 1.2rem;
}
.main-search-form {
  padding: 0.4rem 0.7rem 0.4rem 0.7rem;
  gap: 0.4rem 0.7rem;
  border-radius: 1.2rem;
  max-width: 750px;
}
.filter-group label {
  font-size: 0.93rem;
  margin-bottom: 0.18em;
}
.filter-group input[type="text"],
.filter-group input[type="number"],
.filter-group select {
  font-size: 0.97rem;
  padding: 0.38rem 0.7rem;
  border-radius: 0.9rem;
}
.amenities-checkboxes {
  gap: 0.3rem 0.7rem;
}
.checkbox-label {
  font-size: 0.91rem;
  border-radius: 0.7rem;
  padding: 0.18em 0.6em 0.18em 0.6em;
}
.apply-filters-btn {
  font-size: 0.99rem;
  padding: 0.5rem 1.2rem;
  border-radius: 1.1rem;
  margin-top: 0.15rem;
}
@media (max-width: 900px) {
  .main-search-form {
    padding: 0.3rem 0.2rem;
    gap: 0.4rem 0.4rem;
  }
  .search-section {
    padding: 0.3rem 0 0.1rem 0;
    border-radius: 0.7rem;
  }
}
@media (max-width: 600px) {
  .main-search-form {
    gap: 0.3rem;
    padding: 0.2rem 0.2rem;
  }
  .search-section {
    padding: 0.1rem 0 0.05rem 0;
    border-radius: 0.5rem;
  }
  .filter-group label {
    font-size: 0.89rem;
  }
  .filter-group input[type="text"],
  .filter-group input[type="number"],
  .filter-group select {
    font-size: 0.91rem;
    padding: 0.28rem 0.5rem;
    border-radius: 0.6rem;
  }
  .apply-filters-btn {
    font-size: 0.93rem;
    padding: 0.38rem 0.7rem;
    border-radius: 0.7rem;
  }
}

/* ======= Footer Custom Styles ======= */
.site-footer.custom-footer {
  background: linear-gradient(120deg, #0a2342 60%, #19335c 100%);
  color: #fff;
  font-family: 'Tajawal', Arial, sans-serif;
  margin-top: 2.5rem;
  direction: rtl;
}
.site-footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 2.2rem 0 1.2rem 0;
}
.footer-col {
  min-width: 140px;
  margin-bottom: 1.2rem;
}
.footer-brand span {
  color: #ffe082;
  font-weight: bold;
  font-size: 1.35rem;
  letter-spacing: 1px;
}
.footer-title {
  font-size: 1.13rem;
  font-weight: bold;
  color: #ffe082;
  margin-bottom: 0.7rem;
  border-bottom: 2px solid #ffe08233;
  display: inline-block;
  padding-bottom: 0.2em;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.7em;
  font-size: 1.01rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.18s;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.footer-links a:hover {
  color: #ffe082;
}
.footer-links i {
  color: #ffe082;
  font-size: 1.08em;
  min-width: 1.2em;
  text-align: center;
  transition: color 0.18s;
}
.footer-links a:hover i,
.footer-links li:hover i {
  color: #fff;
}
.footer-stat {
  background: #19335c;
  border-radius: 10px;
  padding: 0.5em 1em;
  text-align: center;
  min-width: 60px;
  margin-left: 0.2em;
}
.footer-stat div:first-child {
  font-size: 1.13rem;
  color: #ffe082;
  font-weight: bold;
}
.footer-stat div:last-child {
  font-size: 0.93rem;
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid #2d3a4a;
  margin-top: 1.5rem;
  padding: 0.7rem 0 0.2rem 0;
  text-align: center;
  color: #bfc9d1;
  font-size: 0.97rem;
}
.footer-bottom a {
  color: #ffe082;
  text-decoration: underline;
  margin: 0 0.2em;
  transition: color 0.18s;
}
.footer-bottom a:hover {
  color: #fff;
}
@media (max-width: 900px) {
  .site-footer .footer-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.2rem 0 0.7rem 0;
  }
  .footer-col {
    min-width: 0;
    margin-bottom: 0.7rem;
  }
  .footer-brand {
    margin-bottom: 1.1rem;
  }
}
@media (max-width: 600px) {
  .site-footer .footer-content {
    padding: 0.7rem 0 0.3rem 0;
    gap: 1rem;
  }
  .footer-title {
    font-size: 1.01rem;
  }
  .footer-stat {
    padding: 0.3em 0.7em;
    font-size: 0.97rem;
  }
}

.footer-col:last-child {
  text-align: initial;
}
.footer-col:last-child .footer-links {
  align-items: initial;
}
.footer-col:last-child .footer-links li {
  justify-content: initial;
}

.footer-col:last-child .footer-links li:first-child {
  direction: rtl;
  unicode-bidi: initial;
  text-align: right;
}
.footer-col:last-child .footer-links li:first-child .phone-ltr {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

.footer-social a {
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
  border-radius: 50%;
  padding: 0.18em 0.22em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-social a:hover, .footer-social a:focus {
  transform: scale(1.18) translateY(-2px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.13);
  color: #fff !important;
}
.footer-social a[aria-label="واتساب"]:hover {
  background: #25d366;
}
.footer-social a[aria-label="فيسبوك"]:hover {
  background: #1877f3;
}
.footer-social a[aria-label="تليجرام"]:hover {
  background: #229ed9;
}

.detail-card strong, .detail-card span {
  color: #222;
}
.detail-card .beds-available {
  color: #27ae60 !important;
  font-weight: bold;
}
.detail-card .beds-booked {
  color: #e74c3c !important;
  font-weight: bold;
}

.apartment-code {
  color: #b71c1c;
  background: #fffbe7;
  border-radius: 8px;
  padding: 0.2em 0.7em;
  font-weight: bold;
  font-size: 0.95em;
  margin-right: 0.5em;
  margin-left: 0.5em;
  letter-spacing: 1px;
  align-self: flex-end;
}
.beds-available {
  color: #27ae60 !important;
  font-weight: bold;
}
.beds-booked {
  color: #e74c3c !important;
  font-weight: bold;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}
.apartment-card {
  min-height: 480px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.other-details {
  background: #fffbe7;
  border-radius: 10px;
  padding: 0.7em 1em;
  margin: 1em 0 0.5em 0;
  font-size: 1em;
}
.other-details h4 {
  color: #b71c1c;
  font-size: 1.05em;
  margin-bottom: 0.4em;
}
.other-details ul {
  margin: 0;
  padding-right: 1.2em;
  color: #b71c1c;
  font-size: 0.98em;
}

/* Advanced Apartments Table Styling */
.apartments-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 1rem;
  font-size: 1.05rem;
  table-layout: auto;
}
.apartments-table thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 1rem 0.7rem;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 2px solid var(--primary-light);
  text-align: right;
  white-space: nowrap;
}
.apartments-table tbody tr {
  transition: background 0.2s;
}
.apartments-table tbody tr:nth-child(even) {
  background: #f8fafd;
}
.apartments-table tbody tr:hover {
  background: #eaf6ff;
}
.apartments-table td {
  padding: 0.85rem 0.7rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  max-width: 180px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.apartments-table td:last-child {
  text-align: center;
}
.apartments-table .badge {
  font-size: 0.95em;
  padding: 0.3em 0.8em;
  border-radius: 1em;
  font-weight: 600;
}
.apartments-table .badge-success {
  background: var(--success);
  color: #fff;
}
.apartments-table .badge-danger {
  background: var(--danger);
  color: #fff;
}
.apartments-table button.btn {
  border: none;
  background: #f4f6fa;
  color: var(--primary);
  border-radius: 50%;
  width: 2.2em;
  height: 2.2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 2px;
  font-size: 1.1em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: none;
}
.apartments-table button.btn:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(44,62,80,0.08);
}
.apartments-table button.btn-danger {
  background: #fff0f0;
  color: var(--danger);
}
.apartments-table button.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}
@media (max-width: 900px) {
  .apartments-table thead th, .apartments-table td {
    padding: 0.6rem 0.3rem;
    font-size: 0.98em;
  }
}
@media (max-width: 600px) {
  .apartments-table thead {
    display: none;
  }
  .apartments-table, .apartments-table tbody, .apartments-table tr, .apartments-table td {
    display: block;
    width: 100%;
  }
  .apartments-table tr {
    margin-bottom: 1.2em;
    box-shadow: 0 2px 8px rgba(44,62,80,0.06);
    border-radius: 8px;
    background: #fff;
    padding: 0.7em 0.5em;
  }
  .apartments-table td {
    border: none;
    position: relative;
    padding-right: 45%;
    min-height: 2.2em;
    text-align: right;
    white-space: normal;
  }
  .apartments-table td:before {
    content: attr(data-label);
    position: absolute;
    right: 0.7em;
    top: 0.7em;
    font-weight: bold;
    color: var(--primary);
    font-size: 0.98em;
  }
  .apartments-table td:last-child {
    text-align: center;
    padding-right: 0;
  }
}

/* Advanced Bookings Filters Bar Styling */
.filters-bar {
  background: #f8fafd;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(44,62,80,0.04);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  justify-content: space-between;
}
.filters-bar .search-input {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 2em;
  box-shadow: 0 1px 4px rgba(44,62,80,0.04);
  padding: 0.2em 1em;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 220px;
}
.filters-bar .search-input input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.05em;
  padding: 0.6em 0.5em;
  width: 100%;
  color: var(--primary);
}
.filters-bar .search-input i {
  color: var(--gray);
  font-size: 1.1em;
  margin-right: 0.5em;
}
.filters-bar .filter-group {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: #fff;
  border-radius: 1.5em;
  padding: 0.3em 1em;
  box-shadow: 0 1px 4px rgba(44,62,80,0.03);
  min-width: 120px;
  flex: 1 1 120px;
}
.filters-bar .filter-group label {
  color: var(--primary);
  font-weight: 500;
  font-size: 1em;
  margin-left: 0.3em;
}
.filters-bar .filter-group select,
.filters-bar .filter-group input[type="text"] {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1em;
  color: var(--primary);
  padding: 0.4em 0.2em;
  min-width: 80px;
}
.filters-bar .date-range-picker {
  display: flex;
  align-items: center;
  gap: 0.3em;
}
.filters-bar .date-range-picker i {
  color: var(--info);
  font-size: 1.1em;
}
.filters-bar .view-toggle {
  display: flex;
  gap: 0.3em;
  background: #fff;
  border-radius: 1.5em;
  box-shadow: 0 1px 4px rgba(44,62,80,0.03);
  padding: 0.2em 0.7em;
}
.filters-bar .view-toggle button {
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 1.2em;
  padding: 0.3em 0.7em;
  border-radius: 1.5em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.filters-bar .view-toggle button.active,
.filters-bar .view-toggle button:hover {
  background: var(--primary);
  color: #fff;
}
@media (max-width: 900px) {
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    padding: 1rem 0.5rem;
  }
  .filters-bar .search-input,
  .filters-bar .filter-group,
  .filters-bar .view-toggle {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}

/* Advanced Stats Bar Styling */
.stats-bar {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0 1.5rem 0;
  padding: 1.2rem 1rem;
  background: #f8fafd;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(44,62,80,0.04);
  justify-content: flex-start;
  flex-wrap: wrap;
}
.stat-box {
  background: #fff;
  border-radius: 1.2em;
  box-shadow: 0 1px 6px rgba(44,62,80,0.07);
  padding: 1.1em 2.2em 1.1em 1.2em;
  min-width: 170px;
  display: flex;
  align-items: center;
  gap: 1.1em;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
  border: 1.5px solid #f0f0f0;
}
.stat-box:hover {
  box-shadow: 0 6px 24px rgba(44,62,80,0.10);
  transform: translateY(-3px) scale(1.03);
  border-color: var(--primary-light);
}
.stat-box i {
  font-size: 2.2em;
  color: var(--primary);
  background: #f0f4fa;
  border-radius: 50%;
  padding: 0.4em;
  margin-left: 0.5em;
  box-shadow: 0 1px 4px rgba(44,62,80,0.06);
}
.stat-title {
  color: var(--gray);
  font-size: 1.01em;
  font-weight: 500;
  margin-bottom: 0.2em;
}
.stat-value {
  color: var(--primary);
  font-size: 1.45em;
  font-weight: 900;
  letter-spacing: 1px;
}
@media (max-width: 900px) {
  .stats-bar {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0.5rem;
  }
  .stat-box {
    min-width: 120px;
    padding: 0.8em 1.2em 0.8em 0.8em;
    font-size: 0.98em;
  }
}
@media (max-width: 600px) {
  .stats-bar {
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.7rem 0.3rem;
  }
  .stat-box {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    font-size: 0.97em;
  }
}

/* Bookings Action Buttons - Larger Background */
.action-buttons .btn {
  width: 2.8em;
  height: 2.8em;
  font-size: 1.25em;
}
@media (max-width: 600px) {
  .action-buttons .btn {
    width: 2.2em;
    height: 2.2em;
    font-size: 1.08em;
  }
}

/* Advanced User Card Styling */
.user-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(44,62,80,0.07);
  padding: 1.5rem 1.2rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s, border 0.2s;
  border: 1.5px solid #f0f0f0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.user-card:hover {
  box-shadow: 0 6px 24px rgba(44,62,80,0.10);
  border-color: var(--primary-light);
}
.user-header {
  display: flex;
  align-items: center;
  gap: 1.1em;
  margin-bottom: 0.5em;
}
.user-avatar {
  width: 56px;
  height: 56px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  color: var(--primary);
  font-weight: 900;
  box-shadow: 0 1px 4px rgba(44,62,80,0.06);
}
.user-info h4 {
  margin: 0 0 0.2em 0;
  font-size: 1.15em;
  color: var(--primary);
}
.user-meta span {
  display: inline-block;
  margin-left: 0.7em;
  color: var(--gray);
  font-size: 0.97em;
}
.user-details {
  display: flex;
  gap: 1.5em;
  flex-wrap: wrap;
  margin-bottom: 0.5em;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  min-width: 120px;
}
.detail-label {
  color: var(--gray);
  font-size: 0.97em;
  font-weight: 500;
}
.detail-value {
  color: var(--primary);
  font-size: 1.08em;
  font-weight: 700;
}
.role-badge {
  display: inline-block;
  padding: 0.25em 1em;
  border-radius: 1em;
  font-size: 0.97em;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  margin-left: 0.3em;
}
.role-badge.role-admin { background: var(--info); }
.role-badge.role-staff { background: var(--secondary); }
.role-badge.role-owner { background: var(--success); }
.user-actions {
  display: flex;
  gap: 0.5em;
  justify-content: flex-end;
  margin-top: 0.5em;
}
.user-actions .btn {
  border: none;
  border-radius: 50%;
  width: 2.5em;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15em;
  background: #f4f6fa;
  color: var(--primary);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: none;
  margin: 0 2px;
  outline: none;
}
.user-actions .btn:focus {
  box-shadow: 0 0 0 2px var(--primary-light);
}
.user-actions .btn:hover {
  background: var(--primary);
  color: #fff;
}
.user-actions .btn-danger {
  background: #fff0f0;
  color: var(--danger);
}
.user-actions .btn-danger:hover,
.user-actions .btn-danger:focus {
  background: var(--danger);
  color: #fff;
}
.user-actions .btn-success {
  background: var(--success);
  color: #fff;
}
.user-actions .btn-success:hover,
.user-actions .btn-success:focus {
  background: #219150;
  color: #fff;
}
.user-actions .btn i {
  margin: 0;
  font-size: 1.1em;
}
@media (max-width: 900px) {
  .user-details {
    gap: 0.7em;
  }
  .user-card {
    padding: 1.1rem 0.7rem;
  }
}
@media (max-width: 600px) {
  .user-card {
    padding: 0.7rem 0.3rem;
    font-size: 0.97em;
  }
  .user-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
  }
  .user-details {
    flex-direction: column;
    gap: 0.5em;
  }
  .user-actions {
    justify-content: flex-start;
    gap: 0.3em;
  }
  .user-actions .btn {
    width: 2em;
    height: 2em;
    font-size: 1em;
  }
}

/* === Custom Fixes for Mobile Header & Sidebar === */

@media (max-width: 992px) {
  .header-content {
    flex-direction: row-reverse;
  }
  .header-content .logo {
    order: 1;
  }
  .header-content .login-btn {
    order: 2;
  }
  .header-content .nav-bar {
    order: 3;
  }
}



/* --- Sidebar Navigation Styles --- */
.nav-bar {
  display: block;
  position: static;
  top: auto;
  right: 0;
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  transition: none;
  z-index: auto;
  flex-direction: row;
  padding: 0;
}
.nav-bar ul {
  display: flex;
  flex-direction: row;
  gap: 1.5em;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-bar li {
  margin: 0;
}
.nav-bar a {
  display: block;
  padding: 0.5em 1em;
  color: #19335c;
  text-decoration: none;
  font-size: 1.1em;
  border-radius: 0.8em;
  transition: background 0.18s, color 0.18s;
}
.nav-bar a:hover, .nav-bar a:focus {
  background: #ffe082;
  color: #19335c;
}
/* Sidebar styles only for small screens */
@media (max-width: 900px) {
  .nav-bar {
    position: fixed;
    top: 0;
    right:-240px;
    width: 240px;
    height: 100vh;
    background: linear-gradient(90deg, #fff 80%, #fcf6ba 100%);
    box-shadow: -2px 0 12px rgba(0,0,0,0.08);
    transition: right 0.25s cubic-bezier(.4,0,.2,1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding-top: 3.5rem;
    color:white;
  }
  .nav-bar.active {
    right: 0;
  }
  .nav-bar ul {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }
  .nav-bar li {
    margin: 0.7em 0;
  }
  .floating-menu-btn {
    display: block;
  }
  .close-menu-btn {
    display: block;
  }
}
/* overlay styles */
.page-overlay {
  pointer-events: none;
}
.page-overlay.active {
  pointer-events: auto;
}
/* .page-overlay.active {
  display: block;
} */
/* زر القائمة العائم يظهر فقط على الشاشات الصغيرة */
.floating-menu-btn {
  position: relative;
  top:0; /* تم إنزاله أكثر للأسفل */
  left: -150px; ;
  z-index: 3000; /* أعلى من أي عنصر */
  background: linear-gradient(90deg, #fff 80%, #fcf6ba 100%);
  color: var(--secondary);
  border: none;
  border-radius: 50%;
  width: 2.7em;
  height: 2.7em;
  font-size: 1.3em;
  box-shadow: 0 2px 8px #ffe08255;
  cursor: pointer;
  display: none;
}
.floating-menu-btn i{position: relative;
left:-15px;}
@media (max-width: 900px) {
  .floating-menu-btn {
    display: block !important;
  }
}
/* زر إغلاق القائمة */
.close-menu-btn {
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 1101;
  background: #ffe082;
  color: #19335c;
  border: none;
  border-radius: 50%;
  width: 2.7em;
  height: 2.7em;
  font-size: 1.3em;
  box-shadow: 0 2px 8px #ffe08255;
  cursor: pointer;
  display: none;
}

/* Features Section Styles */
.features-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: var(--transition);
  border: 1px solid #e9ecef;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.feature-card h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-card p {
  color: #6c757d;
  line-height: 1.6;
  font-size: 1rem;
}

/* Testimonials Section Styles */
.testimonials-section {
  padding: 4rem 0;
  background: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--secondary);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--secondary);
  position: absolute;
  top: -10px;
  right: 20px;
  font-family: serif;
}

.testimonial-content {
  margin-bottom: 1.5rem;
  font-style: italic;
  color: #495057;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.testimonial-info h4 {
  color: var(--primary);
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.testimonial-info span {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Responsive Design for Features and Testimonials */
@media (max-width: 768px) {
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card,
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}
