@import url("https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@100..900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main-color: teal;
  --main-color-hover: #2b8f87;
  --bg-color: #fff;
  --bg-color-fade: rgba(255, 255, 255, 0.3);
  --bg-second-color: #e2e2e2;
  --borders: #ddd;
  --text-color: #000;
  --font-family: "Noto Kufi Arabic", sans-serif;
}

::-moz-selection {
  background-color: var(--main-color);
  color: white;
}

::selection {
  background-color: var(--main-color);
  color: white;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  direction: rtl;
}

a {
  color: var(--text-color);
  text-decoration: none;
}
a:hover {
  color: var(--main-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
}
main {
  padding: 1rem 0;
  min-height: 100dvh;
}
main h1,
main h2 {
  padding: 1rem;
  text-align: center;
}

.btn,
button {
  cursor: pointer;
  border: 1px solid var(--main-color);
  background: var(--main-color);
  padding: 7px 13px;
  border-radius: 10px;
  font-family: var(--font-family);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: white;
  transition: 0.3s;
  outline: 0;
}
.btn:hover,
button:hover {
  background: var(--main-color-hover);
  color: white;
  outline: 0;
}
.btn:focus,
button:focus {
  outline: 0;
  border-color: var(--main-color);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
form input,
form select,
form textarea {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--borders);
  border-radius: 8px;
  font-family: var(--font-family);
  padding: 10px;
  outline: 0;
  transition: 0.2s;
}
form input:hover,
form select:hover,
form textarea:hover {
  outline: 0;
}
form input:focus,
form select:focus,
form textarea:focus {
  outline: 0;
  border-color: var(--main-color);
}
form .input-group {
  display: flex;
  flex-direction: column;
}

.alert {
  padding: 12px;
  margin: 15px 0;
  text-align: center;
  border-radius: 4px;
}

.alert-error {
  background-color: #fee;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.alert-success {
  background-color: #efffef;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.error {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  display: block;
}

nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: var(--bg-color-fade);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
nav .container .logo {
  flex: 1;
  display: flex;
  align-items: center;
}
nav .container .logo a {
  font-weight: bold;
  font-size: 25px;
}
nav .container .menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: center;
}
nav .container .menu ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  background: var(--bg-second-color);
  border-radius: 25px;
  list-style: none;
  padding: 5px 24px;
}
nav .container .menu ul li a {
  color: var(--text-color);
}
nav .container .tools {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 1rem;
  flex: 1;
}
nav .container .tools ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}
nav .container .tools ul li .btn {
  font-size: 14px;
  padding: 5px 17px;
  border-radius: 35px;
}
nav .container .tools svg {
  cursor: pointer;
  display: flex;
  height: 22px;
  width: 22px;
}
nav .container .tools .menu-icon {
  display: none;
}
nav .container .tools .menu-icon i {
  display: flex;
  font-size: 30px;
}
nav .container .tools i {
  font-size: 22px;
  cursor: pointer;
  display: flex;
}

.top_bar {
  background-color: var(--bg-color);
}
.top_bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top_bar .container ul {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  padding: 5px 0;
}
.top_bar .container ul li {
  font-size: 13px;
  cursor: pointer;
}
.top_bar .container ul li svg {
  height: 16px;
  width: 16px;
  display: flex;
}
.top_bar .container ul li i {
  font-size: 14px;
  display: flex;
}

.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
}
.floating-whatsapp a {
  background-color: #08d85c;
  height: 60px;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  border-radius: 50px;
}
.floating-whatsapp a i {
  display: flex;
  color: white;
  font-size: 30px;
}
.floating-whatsapp a:hover {
  transform: translateY(-6px);
}

footer {
  border-top: 1px solid var(--borders);
}
footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
}
footer .container p {
  text-align: center;
  font-weight: 300;
  font-size: 11px;
}

.dark-mode {
  --bg-color: #0a0e11;
  --bg-color-fade: rgba(10, 14, 17, 0.3);
  --bg-second-color: #1a242e;
  --borders: #1a242e;
  --text-color: #f0f0f0;
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  color: white;
}
.hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero .hero-background .background-slider {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero .hero-background .background-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero .hero-background .background-slider .slide.active {
  opacity: 1;
}
.hero .hero-background .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}
.hero .hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 20px;
}
.hero .hero-content .container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero .hero-content .container .hero-text {
  text-align: center;
  margin-bottom: 50px;
}
.hero .hero-content .container .hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero .hero-content .container .hero-text p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}
.hero .hero-content .container .search-container {
  background: var(--bg-color-fade);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 10px 25px 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-color);
}
.hero .hero-content .container .search-container .search-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--borders);
}
.hero .hero-content .container .search-container .search-tabs .tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  font-family: var(--font-family);
}
.hero .hero-content .container .search-container .search-tabs .tab-btn.active {
  color: var(--main-color);
}
.hero .hero-content .container .search-container .search-tabs .tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--main-color);
  border-radius: 3px 3px 0 0;
}
.hero .hero-content .container .search-container .search-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 18px;
  align-items: end;
}
.hero .hero-content .container .search-container .form-group {
  display: flex;
  flex-direction: column;
}
.hero .hero-content .container .search-container .form-group select,
.hero .hero-content .container .search-container .form-group input {
  padding: 12px 15px;
  font-family: var(--font-family);
  border: 1px solid var(--borders);
  border-radius: 6px;
  height: 50px;
  font-size: 15px;
  color: var(--text-color);
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: var(--bg-color);
  transition: border-color 0.3s;
}
.hero .hero-content .container .search-container .form-group select:focus,
.hero .hero-content .container .search-container .form-group input:focus {
  outline: none;
  border-color: var(--main-color);
}
.hero .hero-content .container .search-container .form-group select {
  cursor: pointer;
}
.hero .hero-content .container .search-container .search-btn {
  background: var(--main-color);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 25px;
  font-size: 15px;
  height: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.hero .hero-content .container .search-container .search-btn:hover {
  background: var(--main-color-hover);
}
.hero .hero-content .container .hero-stats {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  gap: 40px;
}
.hero .hero-content .container .hero-stats .stat {
  text-align: center;
}
.hero .hero-content .container .hero-stats .stat .number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero .hero-content .container .hero-stats .stat .label {
  font-size: 1rem;
  opacity: 0.9;
}
.hero .slider-controls {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-direction: row-reverse;
}
.hero .slider-controls .slider-prev,
.hero .slider-controls .slider-next {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}
.hero .slider-controls .slider-prev:hover,
.hero .slider-controls .slider-next:hover {
  background: rgba(255, 255, 255, 0.3);
}
.hero .slider-controls .slider-dots {
  display: flex;
  gap: 10px;
}
.hero .slider-controls .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}
.hero .slider-controls .dot.active {
  background: white;
}

.mini-page {
  width: 50%;
  margin: 2rem auto;
  border: 1px solid var(--borders);
  padding: 2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}
@media (max-width: 991px) {
  .mini-page {
    width: auto;
    margin: 1rem;
  }
}
.mini-page .whatsapp-btn {
  margin: 0 auto;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #08d85c;
  width: -moz-fit-content;
  width: fit-content;
  padding: 5px 17px;
  border-radius: 35px;
  color: white;
  transition: 0.3s;
}
.whatsapp-btn:hover {
  background-color: #18b055;
  color: white;
}
.whatsapp-btn i {
  font-size: 20px;
}

.content {
  display: flex;
  gap: 1rem;
}
.content .gallery,
.content .info {
  width: 50%;
  padding: 1rem;
}
.content .gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.content .contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  border-radius: 10px;
  padding: 1rem 2rem;
}
.content .contact .whatsapp-btn {
  width: -moz-fit-content;
  width: fit-content;
}
.content .info .info-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.content .info .info-labels span {
  background: var(--main-color);
  border-radius: 5px;
  padding: 2px 10px;
  color: white;
  border: 1px solid var(--main-color);
  font-weight: bold;
  transition: 0.3s;
}
.content .info .info-labels span:hover {
  background: transparent;
  color: var(--main-color);
}
.content .info .estate-details {
  background: var(--bg-color);
  border-radius: 12px;
  padding: 2rem 0;
  margin-bottom: 2rem;
}
.content .info .estate-details .detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.content .info .estate-details .detail-grid .detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: transparent;
  border-radius: 8px;
  border: 1px solid var(--borders);
  transition: all 0.3s ease;
}
.content .info .estate-details .detail-grid .detail-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.content .info .estate-details .detail-grid .detail-item i {
  font-size: 1.5rem;
  color: var(--main-color);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 219, 191, 0.1);
  border-radius: 8px;
}
.content .info .estate-details .detail-grid .detail-item .detail-content {
  display: flex;
  flex-direction: column;
}
.content .info .estate-details .detail-grid .detail-item .detail-content .label {
  font-size: 1rem;
  color: gray;
}
.content .info .estate-details .detail-grid .detail-item .detail-content .value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
}
.content .info .estate-details .detail-grid .detail-item.full-width {
  grid-column: 1/-1;
}
.content .info .type-rent {
  color: #f39c12;
  background-color: transparent;
  border: 1px solid #f39c12;
  padding: 1px 12px;
  border-radius: 35px;
}
.content .info .type-sell {
  color: #27ae60;
  background-color: transparent;
  border: 1px solid #27ae60;
  padding: 1px 12px;
  border-radius: 35px;
}
.content .info .description-section {
  margin: 2rem 0;
}
.content .info .description-section h3 {
  color: var(--text-color);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--borders);
  padding: 0.5rem;
}
.content .info .description-section .description-content {
  padding: 1.5rem;
  border-radius: 8px;
  line-height: 1.6;
  color: var(--text-color);
}
@media (max-width: 768px) {
  .content .info .detail-grid {
    grid-template-columns: 1fr;
  }
  .content .info .detail-item {
    padding: 0.75rem;
  }
  .content .info .estate-details {
    padding: 1rem;
  }
}
.content .big-image {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.content .big-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease;
}
.content .big-image img:hover {
  transform: scale(1.02);
}
.content .no-image {
  width: 100%;
  height: 100%;
  background: var(--bg-second-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 1.1rem;
}
.content .thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}
.content .thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.content .thumbnail.active {
  border-color: var(--main-color);
}
.content .thumbnail img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.content .thumbnail:hover {
  transform: scale(1.05);
}
.content .image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}
.content .image-modal.active {
  display: flex;
}
.content .modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.content .close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}
.content .modal-navigation {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.content .modal-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 80vh;
}
.content #modalImage {
  max-width: 100%;
  max-height: 80vh;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 8px;
}
.content .nav-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}
.content .nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}
.content .image-counter {
  color: white;
  margin-top: 1rem;
  font-size: 1.1rem;
}
@media (max-width: 768px) {
  .content .content {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .content .big-image {
    height: 300px;
  }
  .content .modal-navigation {
    flex-direction: column;
  }
  .content .nav-btn {
    width: 40px;
    height: 40px;
  }
}

.cards {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.cards .card {
  border: 1px solid var(--borders);
  padding: 5px;
  border-radius: 15px;
  width: calc(33.3333333333% - 1rem);
  transition: 0.3s;
}
.cards .card:hover {
  color: var(--text-color);
  border-color: var(--main-color);
}
.cards .card:hover h3 {
  color: var(--main-color);
}
.cards .card img {
  width: 100%;
  display: block;
  height: 250px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 10px;
}
.cards .card .card-info,
.cards .card .card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
}
.cards .card .card-info h3,
.cards .card .card-footer h3 {
  transition: 0.3s;
}
.cards .card .card-footer {
  flex-direction: row;
  justify-content: space-between;
  padding: 0 1rem 1rem;
}
.cards .card .card-footer span {
  color: gray;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-direction: row-reverse;
}
.cards .card .card-footer .type {
  background: var(--main-color);
  color: white;
  padding: 0 7px;
  border-radius: 5px;
}
.cards .card .card-footer .sell {
  background-color: #08d85c;
}
.cards .card .card-footer .rent {
  background-color: rgb(255, 142, 142);
}

.auth-page {
  max-width: 400px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .top_bar {
    display: none;
  }
  nav {
    padding: 0 1rem;
  }
  nav .container .menu {
    display: none;
    position: absolute;
    width: 100%;
    top: 4rem;
    right: 0;
  }
  nav .container .menu ul {
    flex-direction: column;
    padding: 2rem 0;
    gap: 2rem;
    width: 100%;
    justify-content: center;
    border-radius: 0;
  }
  nav .container .tools ul li .whatsapp-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    display: none;
  }
  nav .container .tools .menu-icon {
    display: flex;
  }
  nav .container .tools .menu-icon i {
    font-size: 35px;
  }
  nav .container .active {
    display: flex;
  }
  .hero {
    height: 60dvh;
  }
  .hero .hero-content .container .hero-text h1 {
    font-size: 2.5em;
  }
  .hero .hero-content .container .search-container .search-form {
    display: flex;
    flex-direction: column;
  }
  .hero .hero-content .container .search-container .form-group {
    width: 100%;
  }
  .hero .hero-content .container .search-container .form-group input,
  .hero .hero-content .container .search-container .form-group select {
    width: 100%;
  }
  .hero .slider-controls {
    display: none;
  }
  .cards {
    padding: 0 1rem;
  }
  .cards .card {
    width: 100%;
  }
  .content {
    padding: 1rem;
    flex-direction: column;
  }
  .content .gallery,
  .content .info {
    width: 100%;
  }
  .content .contact {
    border-radius: 10px;
    flex-direction: column;
  }
  .whatsapp-btn {
    font-size: 13px;
  }
  .auth-page {
    padding: 0 1rem;
  }
}
.dashboard .estates-container {
  padding: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}
.dashboard .estates-container h1 {
  color: var(--text-color);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 2rem;
}
.dashboard .alert-message {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  position: relative;
  transition: all 0.3s ease;
}
.dashboard .alert-message.success {
  background-color: rgba(39, 174, 96, 0.1);
  border: 1px solid #27ae60;
  color: #1e8449;
}
.dashboard .alert-message .close-btn {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.dashboard .alert-message .close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}
.dashboard .add-estate-btn {
  margin-bottom: 1rem;
}
.dashboard .table-wrapper {
  overflow-x: auto;
  background: var(--bg-color);
}
.dashboard .modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}
.dashboard .modal.active {
  opacity: 1;
  visibility: visible;
}
.dashboard .modal .modal-content {
  background: var(--bg-color);
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(-50px);
  border: 1px solid var(--borders);
  transition: transform 0.3s ease;
}
.modal.active .dashboard .modal .modal-content {
  transform: translateY(0);
}
.dashboard .modal .modal-content .modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--borders);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-second-color);
  border-radius: 12px 12px 0 0;
}
.dashboard .modal .modal-content .modal-header h2 {
  margin: 0;
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 600;
}
.dashboard .modal .modal-content .modal-header .close-modal {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.dashboard .modal .modal-content .modal-header .close-modal:hover {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}
.dashboard .modal .modal-content .modal-body {
  padding: 2rem;
}
.dashboard .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.dashboard .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
}
.dashboard .form-group input,
.dashboard .form-group select,
.dashboard .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--borders);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--bg-color);
  font-family: inherit;
}
.dashboard .form-group input:focus,
.dashboard .form-group select:focus,
.dashboard .form-group textarea:focus {
  outline: none;
  border-color: var(--main-color);
}
.dashboard .form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.dashboard .form-group .error-message {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
  font-weight: 500;
}
.dashboard .form-group .labels-input-container {
  margin-bottom: 10px;
}
.dashboard .form-group .labels-input-container .input-with-button {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}
.dashboard .form-group .labels-input-container .input-with-button input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--borders);
  border-radius: 4px;
}
.dashboard .form-group .labels-input-container .input-with-button .add-label-btn {
  padding: 8px 15px;
  background: var(--main-color);
  color: var(--text-color);
  border: none;
  border-radius: 5spx;
  cursor: pointer;
}
.dashboard .form-group .labels-input-container .input-with-button .add-label-btn:hover {
  background: var(--main-color-hover);
}
.dashboard .form-group .labels-input-container .labels-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
}
.dashboard .form-group .labels-input-container .labels-preview .label-tag {
  display: inline-flex;
  align-items: center;
  background: var(--bg-second-color);
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 14px;
  gap: 5px;
}
.dashboard .form-group .labels-input-container .labels-preview .label-text {
  color: var(--text-color);
}
.dashboard .form-group .labels-input-container .labels-preview .remove-label {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard .form-group .labels-input-container .labels-preview .remove-label:hover {
  color: #dc3545;
}
.dashboard .full-width {
  grid-column: 1/-1;
}
.dashboard .full-width #image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.dashboard .full-width #image-preview img {
  width: 100%;
  height: 120px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--borders);
  transition: all 0.3s ease;
}
.dashboard .full-width #image-preview img:hover {
  border-color: var(--main-color);
  transform: scale(1.05);
}
.dashboard .form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--borders);
}
.dashboard .form-actions .cancel-btn,
.dashboard .form-actions .submit-btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 120px;
}
.dashboard .form-actions .cancel-btn {
  background: #6c757d;
  color: var(--text-color);
}
.dashboard .form-actions .cancel-btn:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}
.dashboard .form-actions .submit-btn {
  background: var(--main-color);
  color: white;
}
.dashboard .form-actions .submit-btn:hover {
  background: var(--main-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}
.dashboard .current-images {
  margin-top: 1rem;
}
.dashboard .images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.dashboard .image-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}
.dashboard .image-item:hover {
  border-color: #3498db;
  transform: scale(1.05);
}
.dashboard .image-item img {
  width: 100%;
  height: 150px;
  -o-object-fit: cover;
     object-fit: cover;
}
.dashboard .image-actions {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
}
.dashboard .btn-delete-image {
  background: rgba(231, 76, 60, 0.9);
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.dashboard .btn-delete-image:hover {
  background: #e74c3c;
  transform: scale(1.1);
}
.dashboard .no-images {
  text-align: center;
  color: #6c757d;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}
.dashboard .image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.dashboard .image-preview img {
  width: 100%;
  height: 120px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
  border: 2px solid #3498db;
}
@media (max-width: 768px) {
  .dashboard .estates-container {
    padding: 1rem;
  }
  .dashboard .form-grid {
    grid-template-columns: 1fr;
  }
  .dashboard .modal-body {
    padding: 1.5rem;
  }
  .dashboard .modal-header {
    padding: 1rem 1.5rem;
  }
  .dashboard .estates-table thead {
    display: none;
  }
  .dashboard .estates-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--borders);
    border-radius: 8px;
    padding: 1rem;
  }
  .dashboard .estates-table tbody tr td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    text-align: left;
    border: none;
  }
  .dashboard .estates-table tbody tr td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-color);
    margin-left: 1rem;
  }
  .dashboard .form-actions {
    flex-direction: column;
  }
  .dashboard .form-actions .cancel-btn,
  .dashboard .form-actions .submit-btn {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .dashboard .estates-container h1 {
    font-size: 2rem;
  }
  .dashboard .modal-content {
    margin: 0.5rem;
    max-height: 95vh;
  }
  .dashboard #image-preview {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
  .dashboard #image-preview img {
    height: 80px;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-color);
}
table thead {
  background: var(--bg-second-color);
}
table thead th {
  padding: 1rem;
  text-align: right;
  font-weight: 600;
  color: var(--text-color);
  border-bottom: 2px solid var(--borders);
  font-size: 0.95rem;
}
table tbody tr {
  transition: all 0.3s ease;
}
table tbody tr:hover {
  background: var(--bg-second-color);
}
table tbody tr:not(:last-child) {
  border-bottom: 1px solid var(--borders);
}
table tbody tr td {
  padding: 1rem;
  text-align: right;
  vertical-align: middle;
}
table tbody tr td img {
  width: 60px;
  height: 60px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--borders);
}
table .image-placeholder {
  width: 60px;
  height: 60px;
  background: var(--bg-second-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  border: 2px dashed var(--borders);
}
table .image-placeholder i {
  font-size: 1.5rem;
}
table .type-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
}
table .type-badge.rent {
  background: rgba(243, 156, 18, 0.1);
  color: #b06c0f;
  border: 1px solid rgba(243, 156, 18, 0.3);
}
table .type-badge.sell {
  background: rgba(39, 174, 96, 0.1);
  color: #1e8449;
  border: 1px solid rgba(39, 174, 96, 0.3);
}
table .action-btn {
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 0.5rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
}
table .action-btn.edit {
  background: rgba(52, 152, 219, 0.1);
  color: var(--main-color);
}
table .action-btn.edit:hover {
  background: var(--main-color);
  color: white;
  transform: scale(1.1);
}
table .action-btn.delete {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}
table .action-btn.delete:hover {
  background: #e74c3c;
  color: white;
  transform: scale(1.1);
}