/*
* Imports
*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@100..900&display=swap');

/* 
* Variables
*/
:root {
  --mishnis-primary: #077b7a;
  --mishnis-primary-light: #077b7a1a;
  --mishnis-text: #001533;
  --mishnis-light: #ecf5f5;
  --mishnis-danger: #991B1B;
}

/*
* Global Styles
*/
body {
  background-color: #f8f9fa;
  color: var(--mishnis-text);
  font-family: 'Noto Kufi Arabic', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
@media (max-width: 768px) {
  body {
    padding-bottom: 60px;
    overflow-x: hidden;
  }
}

ul, li {
  list-style: none;
  margin: 0px;
  padding: 0px;
}

a {
  text-decoration: none;
}

/*
* Borders
*/
.border {
  border:2px solid #f3f4f6!important;
}


/*
* Colors
*/
.bg-primary {
  background-color: var(--mishnis-primary)!important;
}
.bg-light {
  background-color: var(--mishnis-light)!important;
}
.bg-light-primary {
  background-color: var(--mishnis-primary-light)!important;
}

/*
* Buttons
*/
.btn-icon {
  border-radius: 100px!important;
  height: 44px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn {
  border-radius: 12px;
}
.btn-primary {
  background-color: var(--mishnis-primary);
  border-color: var(--mishnis-primary);
  color: #fff;
}
.btn-primary.disabled {
  background-color: #0a5f5e;
  border-color: #0a5f5e;
  color: #fff;
}
.btn-primary:hover {
  background-color: #0a5f5e;
  border-color: #0a5f5e;
}
.btn-outline-primary {
  background-color: #fff;
  border-color: var(--mishnis-primary);
  color: var(--mishnis-primary);
}
.btn-outline-primary:hover {
  background-color: var(--mishnis-primary);
  border-color: var(--mishnis-primary);
  color: #fff;
}

.animation-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*
* Cards
*/
.card {
  border-radius: 12px;
  overflow: hidden;
}

/*
* Typography
*/
.text-primary {
  color: var(--mishnis-primary)!important;
}

/*
* Inputs
*/
.form-control,
.form-select {
  border-color: #d9d9d9;
  border-radius: 8px;
}
.form-control::placeholder {
  color: #d5d5d5;
  font-weight: light;
}
.form-select .ts-control:not(.rtl) {
  padding-right: 10px!important;
}
.ts-dropdown {
  background-color: #fff!important;
}

/*
* Pagination
*/
.page-item:first-child .page-link {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}
.page-item:last-child .page-link {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
.page-item.active .page-link {
  background-color: var(--mishnis-primary);
  border-color: var(--mishnis-primary);
}
.page-link,
.page-link:hover {
  color: var(--mishnis-primary);
}

/*
* Alerts
*/
.alert {
  border-radius: 12px;
}

/*
* Mouse
*/
.cursor-pointer {
  cursor: pointer;
}

/*
* main page
*/
main {
  flex: 1;
}

/*
* property card
*/
.property-card-container {
  cursor: pointer;
  border-radius: 12px;
  background-color: #fff;
}
.property-card-container img {
  border-radius: 10px;
  object-fit: cover;
  height: 120px;
  margin: 10px;
}
.property-card-container.premium {
  background-color: var(--mishnis-light);
}
@media (max-width: 500px) {
  .property-card-container h5 {
    font-size: 18px;
  }
}
@media (max-width: 400px) {
  .property-card-container h5 {
    font-size: 15px;
  }
  .property-card-container small {
    font-size: 12px;
  }
  .property-card-container img {
    height: 100px;
  }
  .property-card-container svg {
    width: 16px;
    height: 16px;
  }
  .property-card-container p {
    font-size: 12px;
  }
}

/*
* Homepage
*/
.section-search {
  height: calc(100vmin - 76px);
  display: flex;
  align-items: center;
}
@media (max-width: 767px)
{
  .section-search {
    height: calc(100vmax - 152px);
  }
}
/* Header */
.search-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

/* Card */
.search-form-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem;
  border: 2px solid #f3f4f6;
}

/*
* Modals
*/
.modal-content {
  border-radius: 20px;;
}
.modal-body {
  padding: 1.5rem;
  background-image: url('../images/modal-bg.png');
  background-position: center;
  background-size: cover;
}
.moda-close-btn {
  position: absolute;
  top: .75rem;
  left: 1rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

/* Tabs Design */
.property-type-tabs {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f3f4f6;
}

.tabs-container {
  display: flex;
  gap: 1rem;
  background: #f9fafb;
  padding: 6px;
  border-radius: 12px;
  position: relative;
}

.tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tab-label {
  flex: 1;
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0;
  position: relative;
  user-select: none;
}

.tab-label:hover {
  color: #077b7a;
}

.tab-input:checked + .tab-label {
  background: #ffffff;
  color: #077b7a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08),
              0 1px 3px rgba(0, 0, 0, 0.06);
}

.form-field {
  margin-bottom: 0;
}

/* Search Button */
.search-btn {
  background: #077b7a;
  border: none;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #ffffff;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
  box-shadow: 0 2px 4px rgba(7, 123, 122, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.search-btn:hover {
  background: #065f5e;
}

.search-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(7, 123, 122, 0.2);
}

.search-btn:focus {
  box-shadow: 0 0 0 3px rgba(7, 123, 122, 0.15),
              0 4px 12px rgba(7, 123, 122, 0.3);
}

.btn-icon {
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-form-container {
    padding: 2rem 1rem;
  }

  .search-title {
    font-size: 1.75rem;
  }

  .search-subtitle {
    font-size: 0.9rem;
  }

  .search-form-card {
    padding: 2rem 1.5rem;
  }

  .tab-label {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }

  .tabs-container {
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  .search-form-container {
    padding: 1.5rem 1rem;
  }

  .search-title {
    font-size: 1.5rem;
  }

  .search-subtitle {
    font-size: 0.85rem;
  }

  .search-form-card {
    padding: 1.5rem 1rem;
  }

  .tab-label {
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
  }

  .tabs-container {
    gap: 0.4rem;
    padding: 5px;
  }

  .search-btn {
    padding: 0.65rem 1rem;
    font-size: 1rem;
  }
}

/*
* Property page
*/
.property-view-title,
.property-view-price {
  font-size: 18px;
}
.property-view-info-container {
  background-color: #cae3e3;
  padding: 6px 8px;
  border-radius: 10px;
}
.property-view-image-main {
  max-height: 360px;
  object-fit: cover;
}
.image-viewer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.image-viewer-overlay.active {
  display: flex;
}
.image-viewer-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}
.image-viewer-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}
.image-viewer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 10000;
}
.image-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 10px 20px;
  user-select: none;
  z-index: 1000;
}
.image-viewer-prev {
  left: 20px;
}
.image-viewer-next {
  right: 20px;
}

/*
* offices page
*/
.card-office {
  border-radius: 16px;
  overflow: hidden;
  background-color: #fff;
}
@media (max-width: 500px) {
  .card-office-image {
    height: 240px;
  }
}

/*
* Office Page
*/
.office-profile-socials a {
  color: #077b7a;
  align-items: center;
  display: inline-flex;
  padding: 10px 11px;
  margin: 10px;
  background-color: #D8EBEB;
  border-radius: 30px;
  cursor: pointer;
}
@media (max-width: 600px) {
  .office-profile-socials a {
    padding: 8px 9px;
    margin: 8px;
  }
}

/*
* Apps Banner
*/
.mobile-apps-banner {
  position: fixed;
  bottom: 0px;
  left: 0px;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  z-index: 1000;
}
.google-play-btn {
  background-color: #000;
  border-radius: 12px;
}

/*
* Footer
*/
@media (max-width: 768px) {
  #root {
    min-height: 90vh;
  }
  footer {
    display: none;
  }
}

.navbar a {
  font-weight: 600;
}
.navbar a.active {
  color: var(--mishnis-primary)!important;
}