* {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root {
  --primary: #3a164e;
  --white: #fff;
  --border: #e0e0e0;
}

body {
  background-color: #c4c5c6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 0;
  margin: 0;
}

.pwa-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.main-section {
  width: 400px;
  max-width: 100%;
  background-color: #fbfbfb;
  position: relative;

  /* padding: 0px 1.3rem; */
}
.app_padding {
  padding: 0px 1.2rem;
}
header {
  padding: 0px 1.2rem;
  padding-bottom: 5px;
  background-color: white;
}

.badge {
  padding: 10px;
  height: min-content;
}
.uppercase {
  text-transform: uppercase;
}

/* --------font-sizes classes------------ */

.fs_10 {
  font-size: 10px;
}
.fs_12 {
  font-size: 12px;
}
.fs_14 {
  font-size: 14px;
}
.fs_16 {
  font-size: 16px;
}
.fs_18 {
  font-size: 18px;
}
.fs_20 {
  font-size: 20px;
}
.fs_22 {
  font-size: 22px;
}
.fs_24 {
  font-size: 24px;
}
.fs_26 {
  font-size: 26px;
}
.fs_28 {
  font-size: 28px;
}
.fs_30 {
  font-size: 30px;
}
.fs_32 {
  font-size: 32px;
}
.fs_34 {
  font-size: 34px;
}
.fs_36 {
  font-size: 36px;
}
.fs_38 {
  font-size: 38px;
}
.fs_40 {
  font-size: 40px;
}
.fs_42 {
  font-size: 42px;
}
.fs_44 {
  font-size: 44px;
}
.fs_46 {
  font-size: 46px;
}
.fs_48 {
  font-size: 48px;
}
.fs_50 {
  font-size: 50px;
}
.fs_52 {
  font-size: 52px;
}
.fs_54 {
  font-size: 54px;
}
.fs_56 {
  font-size: 56px;
}
.fs_58 {
  font-size: 58px;
}
.fs_60 {
  font-size: 60px;
}
/* _______________Caroucel____________________ */

.carousel-item img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.carousel-indicators .active {
  background-color: var(--primary) !important;
  border-radius: 48% !important;
  width: 15px !important;
  height: 7px !important;
}

.carousel-indicators [data-bs-target] {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: 1;
}
.carousel-caption {
  position: absolute;
  /* right: 15%; */
  bottom: 1.25rem;
  padding: 0px 0px !important;
  left: 2% !important;
  top: 10px;
  color: #fff;
  text-align: center;
  width: min-content;
}

.text-bg-primary {
  background-color: var(--primary) !important;
}
/* --------Detail Section----- */

.detail_section {
  border: var(--border);
}

.detail_section {
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 20px;
  /* background-color: #fafafa; */
  margin: 5px 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
}

.detail-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  color: #d0cccc;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-content {
  flex: 1;
}

.detail-label {
  font-size: 12px;
  margin-bottom: 2px;
  font-weight: 400;
}

.detail-value {
  font-size: 13px;
  color: #2b2b2b;
  font-weight: 500;
  line-height: 1.6;
}

.contact_section {
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 12px 10px;
  background-color: #fff;
  margin: 10px 0;
}

.contact-item {
  display: flex;
  align-items: center;
}

.contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.contact-name {
  font-size: 16px;
  margin-left: 10px;
  font-weight: 600;
  color: #2b2b2b;
}

/* ____________---About -section------------- */

.about_title {
  font-size: 14px;
  font-weight: 500;
  color: #2b2b2b;
  margin: 0px 0 6px 0;
  padding-left: 5px;
}

.about_section {
  border-radius: 15px;
  border: 1px solid var(--border);
  padding: 10px 20px 10px 20px;
}

.property-title {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
  line-height: 1.8;
}

.features-title {
  font-size: 16px;
  color: #333;
  margin-bottom: 7px;
}

.feature-text {
  font-size: 12px;
  color: #333;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
/* Address section */
.address_title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 20px 0 10px 0;
  padding-left: 5px;
}

.address-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.address-icon {
  width: 20px;
  height: 20px;
  position: relative;
  top: 2px;
  margin-right: 10px;
  color: #333;
  font-size: 16px;
}

.address-text {
  font-size: 16px;
  color: #333;
}
.map-container {
  width: 100%;
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  margin: 15px 0;
  position: relative;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: transparent;
  cursor: default;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  position: relative;
  z-index: 1;
}

/* ______________swiper cards______________ */

.related-ads-section {
  margin-top: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.swiper {
  width: 100%;
  height: auto;
  padding-bottom: 10px;
}

/* .swiper-slide {
} */

/* Instead, let Swiper handle the width automatically, or if you need custom width: */
.swiper-slide {
  /* flex-shrink: 0; */
  max-width: 200px !important;

  /* Let slidesPerView control the width instead of forcing 200px */
}

.property-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  max-width: 200px; /* Control card width here instead */
  width: 100%;
}

.property-image {
  width: 100%;
  height: 130px;
  object-fit: cover;
  position: relative;
  border-radius: 12px;
}

.featured-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
}

.property-content {
  padding: 12px;
}

.property-price {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.property-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.3;
}

.property-features {
  display: flex;
  gap: 15px;
  align-items: center;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #888;
  margin-bottom: 0;
}

.feature-icon {
  width: 16px;
  height: 16px;
  color: #888;
}

.swiper-pagination {
  position: relative;
  margin-top: 15px;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: #ccc;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background-color: var(--primary);
  width: 16px;
  border-radius: 4px;
}
footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  background-color: #fbfbfb;
  border-top: 1px solid var(--border);
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}
.footer_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
  gap: 10px;
  padding: 10px 10px;
}

.primary_btn {
  background-color: var(--primary);
  color: var(--white);
  font-size: 16px;
  padding: 10px;
  border-radius: 8px;
  border: none;
}

/* Hide map controls */
.map-container iframe {
  pointer-events: none;
}

.map-container {
  position: relative;
  overflow: hidden;
}

.map-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  pointer-events: none;
}

/* Hide zoom controls and other UI elements */
.gm-style-cc,
.gm-style-mtc,
.gmnoprint,
.gm-bundled-control,
.gm-control-active {
  display: none !important;
}

/* Loader styles */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}

.loader-text {
  margin-top: 15px;
  color: var(--primary);
  font-weight: 500;
}

/* Share button styles */
.share-btn {
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: max-content;
}

.share-btn:hover {
  background-color: rgba(37, 99, 235, 0.1);
  transform: scale(1.1);
}

/* Toast notification styles */
.toast-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #28a745;
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.toast-notification.show {
  opacity: 1;
}

/* Default avatar styles */
.default-avatar {
  width: 50px;
  height: 50px;
  background: #e9ecef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 20px;
  border: 2px solid #dee2e6;
}

.contact-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #dee2e6;
}
.btn-close{
    background-size: 15px;
}

.offcanvas-title{
    font-size: 22px ;
    font-weight: bold;
    margin: auto;
}
.offcanvas {
  max-width: 400px;
  height: 31%;
  min-height: 31%;
  margin: auto;
  z-index: 99999;
  /* right: 15px !important; */
}

@media screen and (max-width: 600px) {
  .pwa-container {
    width: 100%;
  }

  .main-section {
    width: 100% !important;
  }

  .app-title {
    font-size: 1.5rem;
  }
  footer {
    width: 100%;
  }
  .offcanvas {
  max-width: 100%;
}
}
