.profile-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}
.license-box h6,
.referral-box h6 {
  font-weight: 600;
  margin-bottom: .7rem;
}
.license-pill {
  display: inline-block;
  background: #f1f3f5;
  border-radius: 20px;
  padding: .35rem .9rem;
  font-size: .85rem;
  margin: .2rem .3rem .2rem 0;
}
.referral-box {
  display: flex;
  gap: 8px;
  margin-top: .6rem;
}
.referral-box input {
  flex: 1;
  border-radius: 8px;
  font-size: .9rem;
}
.btn-copy {
  border-radius: 8px;
  font-size: .85rem;
}

/* =============================================== */
/* ====== Property Title, Shared, and Price ====== */
/* =============================================== */
.property-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.property-header-left {
  min-width: 0;
  flex: 1 1 auto;
}

.property-t {
  margin: 0 0 12px;
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 800;
  color: #1f2937;
}

.property-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.property-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #1fae4b, #35c759);
  color: #ffffff;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(31, 174, 75, 0.22);
}

.property-share-dropdown {
  flex: 0 0 auto;
}

.property-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: all 0.2s ease;
}

.property-share-btn:hover,
.property-share-btn:focus {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
  transform: translateY(-1px);
}

.property-share-btn i {
  font-size: 0.95rem;
}

.property-share-menu {
  min-width: 220px;
  margin-top: 10px;
  border: 1px solid #eceff3;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.property-share-menu .dropdown-item {
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
}

.property-share-menu .dropdown-item:hover {
  background: #f3f4f6;
}

@media (max-width: 767.98px) {
  .property-header {
    gap: 12px;
    margin-bottom: 14px;
  }

  .property-t {
    font-size: 1.35rem;
    margin-bottom: 10px;
  }

  .property-header-meta {
    gap: 10px;
  }

  .property-price-badge {
    font-size: 0.95rem;
    padding: 9px 14px;
  }

  .property-share-btn {
    height: 42px;
    min-width: 42px;
    padding: 0 14px;
    justify-content: center;
  }

  .property-share-menu {
    min-width: 180px;
  }
}

/* ================================= */
/* ====== Property Highlights ====== */
/* ================================= */

.property-highlights-section {
  margin-bottom: 1rem;
}

.property-highlights-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 15px;
}

.property-highlight-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 5px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.property-highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.property-highlight-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-highlight-icon i {
  font-size: 18px;
  color: #495057;
}

.property-highlight-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #5f6b76;
  line-height: 1.35;
  margin: 0;
}

.property-highlight-unit {
  font-size: 11px;
  font-weight: 700;
  color: #5f6b76;
  margin-left: 3px;
}

@media (max-width: 1199.98px) {
  .property-highlights-grid {
    grid-template-columns: repeat(3, minmax(105px, 1fr));
  }
}

@media (max-width: 767.98px) {
  .property-highlights-grid {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 8px;
  }

  .property-highlight-card {
    min-height: 96px;
    padding: 10px 6px;
  }

  .property-highlight-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
  }

  .property-highlight-icon i {
    font-size: 15px;
  }

  .property-highlight-label,
  .property-highlight-unit {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .property-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================= */
/* ===== Premium Property Gallery === */
/* ================================= */
.premium-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.premium-gallery-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
}

.premium-main-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.premium-gallery-stage:hover .premium-main-photo {
  transform: scale(1.01);
}

.premium-gallery-topbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
  pointer-events: none;
}

.gallery-photo-counter,
.gallery-view-all-btn,
.gallery-nav-btn,
.gallery-lightbox-counter,
.gallery-lightbox-close,
.gallery-lightbox-nav {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gallery-photo-counter,
.gallery-lightbox-counter {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.55);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.gallery-view-all-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-view-all-btn:hover {
  transform: translateY(-1px);
  background: #fff;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-nav-btn:hover {
  transform: translateY(-50%) scale(1.04);
  background: #fff;
}

.gallery-nav-prev {
  left: 16px;
}

.gallery-nav-next {
  right: 16px;
}

.gallery-filmstrip,
.gallery-lightbox-thumbs {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.gallery-filmstrip::-webkit-scrollbar,
.gallery-lightbox-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-thumb-card,
.gallery-lightbox-thumb {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumb-card {
  width: 150px;
  height: 96px;
}

.gallery-lightbox-thumb {
  width: 88px;
  height: 64px;
  border-radius: 14px;
}

.gallery-thumb-card:hover,
.gallery-lightbox-thumb:hover {
  transform: translateY(-2px);
}

.gallery-thumb-card::after,
.gallery-lightbox-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumb-card.active::after,
.gallery-lightbox-thumb.active::after {
  border-color: #2cbc0a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.gallery-thumb,
.gallery-lightbox-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: none;
}

.gallery-lightbox.is-open {
  display: block;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
}

.gallery-lightbox-shell {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.gallery-lightbox-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  min-height: 64px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.12) 72%, rgba(0, 0, 0, 0) 100%);
}

.gallery-lightbox-title-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gallery-lightbox-title {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-lightbox-counter {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.82rem;
  font-weight: 600;
}

.gallery-lightbox-close {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  box-shadow: none;
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.gallery-lightbox-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.gallery-lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.20);
}

.gallery-lightbox-nav:hover {
  background: #fff;
}

.gallery-lightbox-prev {
  left: 16px;
}

.gallery-lightbox-next {
  right: 16px;
}

.gallery-lightbox-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.58) 36%, rgba(0, 0, 0, 0.70) 100%);
}

.gallery-lightbox-thumbs {
  gap: 16px;
  padding-bottom: 0;
  justify-content: flex-start;
}

.gallery-lightbox-thumb {
  width: 102px;
  height: 102px;
  border-radius: 0;
  box-shadow: none;
  opacity: 0.88;
}

.gallery-lightbox-thumb::after {
  border-width: 3px;
}

.gallery-lightbox-thumb.active {
  opacity: 1;
}

.gallery-lightbox-thumb.active::after {
  border-color: #4c6fff;
  box-shadow: none;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .gallery-thumb-card {
    width: 132px;
    height: 88px;
  }
}

@media (max-width: 767.98px) {
  .premium-gallery {
    gap: 12px;
  }

  .premium-gallery-stage {
    border-radius: 18px;
  }

  .premium-main-photo {
    aspect-ratio: 4 / 3;
  }

  .premium-gallery-topbar {
    top: 12px;
    left: 12px;
    right: 12px;
    align-items: flex-start;
  }

  .gallery-view-all-btn span {
    display: none;
  }

  .gallery-photo-counter,
  .gallery-view-all-btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.85rem;
  }

  .gallery-nav-btn {
    width: 40px;
    height: 40px;
  }

  .gallery-nav-prev {
    left: 12px;
  }

  .gallery-nav-next {
    right: 12px;
  }

  .gallery-thumb-card {
    width: 108px;
    height: 76px;
    border-radius: 14px;
  }

  .gallery-lightbox-header {
    min-height: 60px;
    padding: 12px 14px;
  }

  .gallery-lightbox-title {
    font-size: 0.96rem;
  }

  .gallery-lightbox-nav {
    width: 56px;
    height: 56px;
    font-size: 1rem;
  }

  .gallery-lightbox-prev {
    left: 12px;
  }

  .gallery-lightbox-next {
    right: 12px;
  }

  .gallery-lightbox-footer {
    padding: 12px;
  }

  .gallery-lightbox-thumbs {
    gap: 12px;
  }

  .gallery-lightbox-thumb {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 480px) {
  .gallery-photo-counter,
  .gallery-lightbox-counter {
    font-size: 0.78rem;
  }

  .gallery-thumb-card {
    width: 92px;
    height: 64px;
    scroll-snap-align: start;
  }

  .gallery-filmstrip {
    scroll-snap-type: x proximity;
  }

  .gallery-lightbox-header {
    min-height: 56px;
    padding: 10px 12px;
    gap: 12px;
  }

  .gallery-lightbox-title {
    font-size: 0.88rem;
  }

  .gallery-lightbox-counter {
    min-height: 24px;
    padding: 0 8px;
  }

  .gallery-lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 1.65rem;
  }

  .gallery-lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 0.92rem;
  }

  .gallery-lightbox-prev {
    left: 8px;
  }

  .gallery-lightbox-next {
    right: 8px;
  }

  .gallery-lightbox-footer {
    padding: 10px 8px 12px;
  }

  .gallery-lightbox-thumbs {
    gap: 8px;
  }

  .gallery-lightbox-thumb {
    width: 72px;
    height: 72px;
  }

  .referral-box {
    flex-direction: column;
  }

  .referral-box input,
  .btn-copy,
  .license-pill {
    width: 100%;
  }

  .license-pill {
    display: block;
    margin-right: 0;
    white-space: normal;
    word-break: break-word;
  }

  .container-fluid.px-3 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

@media (max-width: 767.98px) {
  .border-end {
    border-right: 0 !important;
    border-bottom: 1px solid #e9ecef !important;
  }

  #mapTabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #mapTabs::-webkit-scrollbar {
    display: none;
  }

  #mapTabs .nav-item {
    flex: 0 0 auto;
  }

  #map {
    height: 300px !important;
  }
}


@media (max-width: 767.98px) {
  body,
  .container-fluid,
  .container {
    overflow-x: clip;
  }
}
