/* ========================================
   🎨 PREMIUM DESIGN - SABRANIX APARTMENT
   ======================================== */

/* === تحسين النصوص === */
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  color: #2c3e50;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* === Gradient Text === */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #011f70 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   🎪 CAROUSEL - تحسينات
   ======================================== */
.carousel-item {
  position: relative;
}

.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
  z-index: 1;
}

.carousel-item img {
  transition: transform 8s ease;
}

.carousel-item.active img {
  transform: scale(1.1);
}

.carousel-caption {
  z-index: 2;
  text-shadow: 0 4px 15px rgba(0,0,0,0.8);
  animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-caption h2 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.carousel-caption p {
  font-size: 1.3rem;
  font-weight: 300;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
  opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

/* ========================================
   🏠 CARDS - تصميم Premium
   ======================================== */
#houses .card {
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  background: #fff;
}

#houses .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

#houses .card:hover::before {
  opacity: 1;
}

#houses .card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

/* Card Image */
.card .ratio img {
  transition: transform 0.6s ease;
  filter: brightness(0.95);
}

.card:hover .ratio img {
  transform: scale(1.15) rotate(2deg);
  filter: brightness(1.1);
}

.card .ratio {
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  position: relative;
}

.card .ratio::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover .ratio::after {
  opacity: 1;
}

/* Card Body */
.card-body {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
}

.card h4 {
  color: #2c3e50;
  transition: color 0.3s ease;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.card:hover h4 {
  color: #0827b3;
}

/* Features Icons */
.card .gap-2 span,
.card .gap-3 span {
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: default;
}

.card:hover .gap-2 span:hover,
.card:hover .gap-3 span:hover {
  transform: translateY(-3px);
  color: #667eea !important;
}

/* Price Badge */
.card .text-primary {
  background: linear-gradient(135deg, #0a30da 0%, #0f36e6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* ========================================
   🔘 BUTTONS - تصميم Premium
   ======================================== */
.btn-primary {
  background: linear-gradient(135deg, #0d198a 0%, #709efa 100%);
  border: none;
  padding: 12px 35px;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #639ef7 0%,  #0e1da0 100%);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(12, 37, 151, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px);
}



.btn-danger {
  background: linear-gradient(135deg, #9b1111 0%, #f58383 100%);
  border: none;
  padding: 12px 35px;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}
/* ========================================
   📝 SECTIONS - Titles & Description
   ======================================== */
section h1, section h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

section h1::after, section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #2858c0);
  border-radius: 10px;
}

section p {
  line-height: 1.9;
  color: #555;
}

/* Intro Section Animation */
.container.my-5.py-4 {
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   🗺️ MAP - تحسينات
   ======================================== */
#map iframe {
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

#map iframe:hover {
  transform: scale(1.02);
}

/* ========================================
   🦶 FOOTER - Premium Design
   ======================================== */
footer {
  background: linear-gradient(135deg, #0a0a11 0%, #16213e 100%);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #4b82a2, #667eea);
  animation: gradientSlide 3s ease infinite;
}

@keyframes gradientSlide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

footer a {
  color: #e0e0e0;
  transition: all 0.3s ease;
  position: relative;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #667eea;
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

footer a:hover {
  color: #667eea;
  transform: translateX(5px);
}

footer i {
  transition: all 0.3s ease;
}

footer a:hover i {
  transform: scale(1.3) rotate(10deg);
  color: #667eea;
}

/* ========================================
   📱 RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .carousel-caption h2 {
    font-size: 1.8rem;
  }
  
  .carousel-caption p {
    font-size: 1rem;
  }
  
  .carousel-item img {
    height: 350px !important;
  }
  
  #houses .card {
    max-width: 100%;
  }
  
  section h1::after, section h2::after {
    width: 60px;
  }
}

@media (max-width: 576px) {
  .carousel-item img {
    height: 280px !important;
  }
  
  .carousel-caption h2 {
    font-size: 1.4rem;
  }
  
  .btn-primary {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}

/* ========================================
   ✨ LOADING ANIMATION (Optional)
   ======================================== */
.card {
  animation: cardAppear 0.6s ease forwards;
  opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}








/* ========================================
   📊 ADMIN TABLES
   ======================================== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table {
  min-width: 1000px; /* نقصنا الحجم شوية */
  margin-bottom: 0;
  border: 1px solid #ccc; /* كادر خفيف */
  font-size: 0.9rem; /* نصغرو النص شوية */
}

.table th,
.table td {
  padding: 8px 10px;   
  /*vertical-align: middle;*/
}

.table-hover tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.1);
}

/* الأزرار */
.table .btn {
  padding: 4px 8px;
  font-size: 0.8rem;
  border-radius: 4px;
}

.table .btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.table .btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
}





.container, .main-content {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}



/* تنقيص الفراغ بين BUTTON و TITLE */
section.container.my-5.py-4 {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#houses {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#houses h1 {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 3rem !important;
}





