/* Property details — compact professional layout */

.gm-pd {
  --gm-pd-border: #e8e8e8;
  --gm-pd-muted: #6b7280;
  --gm-pd-soft: #f6f6f6;
  --gm-pd-accent: #fc5e08;
  padding-top: 110px;
  padding-bottom: 40px;
}

@media (max-width: 991px) {
  .gm-pd {
    padding-top: 96px;
    padding-bottom: 32px;
  }
}

.gm-pd__bottom-space {
  height: 24px;
}

/* Header */
.gm-pd .cs_property_header {
  align-items: flex-end;
  gap: 12px 24px;
  margin-bottom: 20px !important;
}

.gm-pd .cs_property_header h2 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem) !important;
}

.gm-pd__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.gm-pd__type-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(252, 94, 8, 0.1);
  color: var(--gm-pd-accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.gm-pd .cs_property_location_text {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--gm-pd-muted);
  font-size: 14px;
  margin-top: 6px;
}

.gm-pd .cs_property_location_text > span:first-child {
  color: #1d1d1d;
  line-height: 1.4;
}

.gm-pd .cs_property_header .cs_property_price {
  color: var(--gm-pd-accent);
  line-height: 1.1;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem) !important;
  margin-bottom: 2px !important;
}

.gm-pd .cs_property_header_right > p {
  color: var(--gm-pd-muted);
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* Hero: portrait gallery + side panel (stats + contact) */
.gm-pd__hero {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  width: 100%;
  margin-bottom: 22px;
}

.gm-pd__gallery {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1.08;
  height: auto;
  background: #1d1d1d;
  box-shadow: 0 10px 28px rgba(29, 29, 29, 0.1);
  overflow: hidden;
}

.gm-pd__gallery .cs_property_badge {
  z-index: 5;
  padding: 5px 12px !important;
  top: 14px !important;
  left: 14px !important;
  background: var(--gm-pd-accent) !important;
  letter-spacing: 0.04em;
  font-size: 12px !important;
  box-shadow: 0 4px 14px rgba(252, 94, 8, 0.35);
}

.gm-pd__gallery-slider {
  position: absolute;
  inset: 0;
  height: 100%;
}

.gm-pd__gallery-slider .slick-list,
.gm-pd__gallery-slider .slick-track {
  height: 100% !important;
}

.gm-pd__slide {
  height: 100% !important;
  display: flex !important;
  align-items: stretch;
  justify-content: stretch;
  background: #1d1d1d;
}

.gm-pd__slide a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: zoom-in;
}

.gm-pd__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.gm-pd__slide a:hover img {
  transform: scale(1.03);
}

.gm-pd__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--heading-color, #1d1d1d);
  box-shadow: 0 4px 14px rgba(29, 29, 29, 0.16);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.gm-pd__nav:hover {
  background: var(--gm-pd-accent);
  color: #fff;
}

.gm-pd__nav--prev {
  left: 12px;
}

.gm-pd__nav--next {
  right: 12px;
}

.gm-pd__gallery .slick-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex !important;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 4;
}

.gm-pd__gallery .slick-dots li {
  margin: 0;
  width: auto;
  height: auto;
}

.gm-pd__gallery .slick-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0;
  line-height: 0;
}

.gm-pd__gallery .slick-dots .slick-active button {
  background: var(--gm-pd-accent);
}

/* Side column: stats + contact fill space beside gallery */
.gm-pd__hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  height: 100%;
}

.gm-pd__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  background: #fff;
  border: 1px solid var(--gm-pd-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(29, 29, 29, 0.04);
  flex: none;
}

.gm-pd__stats > li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  min-width: 0;
  border-right: 1px solid var(--gm-pd-border);
  border-bottom: 0;
}

.gm-pd__stats > li:last-child {
  border-right: 0;
}

.gm-pd__stats-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(252, 94, 8, 0.1);
  color: var(--gm-pd-accent);
  font-size: 14px;
}

.gm-pd__stats-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gm-pd__stats-body .label {
  font-size: 11px;
  line-height: 1.2;
  color: var(--gm-pd-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.gm-pd__stats-body .value {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading-color, #1d1d1d);
  word-break: break-word;
}

.gm-pd__price-card {
  flex: none;
  width: 100%;
  background: #fff;
  border: 1px solid var(--gm-pd-border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(29, 29, 29, 0.04);
}

.gm-pd__price-card-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--heading-color, #1d1d1d);
  line-height: 1.3;
}

.gm-pd__price-list {
  margin: 0;
  padding: 0;
  border: 1px solid var(--gm-pd-border);
  border-radius: 10px;
  overflow: hidden;
}

.gm-pd__price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--gm-pd-border);
}

.gm-pd__price-list li:last-child {
  border-bottom: 0;
}

.gm-pd__price-list li span:first-child {
  color: var(--gm-pd-muted);
  font-size: 12px;
  font-weight: 500;
}

.gm-pd__price-list li span:last-child {
  color: var(--gm-pd-accent);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.gm-pd__hero-side .gm-pd__contact-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gm-pd-border);
  border-radius: 14px;
  padding: 18px 18px 20px !important;
  box-shadow: 0 4px 18px rgba(29, 29, 29, 0.05);
  margin: 0 !important;
}

.gm-pd__hero-side .gm-pd__contact-card .cs_sidebar_widget_content {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
}

/* Contact card shared */
.gm-pd__contact-card.is-static .cs_sidebar_widget_content {
  display: block !important;
}

.gm-pd__contact-heading {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--heading-color, #1d1d1d);
  pointer-events: none;
  cursor: default;
}

.gm-pd__owner-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(252, 94, 8, 0.06);
}

.gm-pd__owner-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.gm-pd__owner-photo {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(252, 94, 8, 0.25);
  background: #fff;
}

.gm-pd__owner-avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gm-pd-accent);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}

.gm-pd__owner-meta {
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
}

.gm-pd__owner-meta strong {
  display: block;
  color: var(--heading-color, #1d1d1d);
  font-size: 15px;
}

.gm-pd__owner-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: #555;
  font-size: 12px;
  word-break: break-word;
}

.gm-pd__owner-line i {
  color: var(--gm-pd-accent);
  width: 14px;
  text-align: center;
}

.gm-pd__owner-aside {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}

.gm-pd__unlock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--gm-pd-accent, #fc5e08);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(252, 94, 8, 0.2);
}

.gm-pd__unlock-btn.is-hidden[hidden] {
  display: none !important;
}

.gm-pd__unlock-btn:hover {
  filter: brightness(0.96);
}

.gm-pd__owner-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  text-align: right;
}

.gm-pd__owner-contact.is-hidden[hidden] {
  display: none !important;
}

.gm-pd__owner-phone-link {
  font-size: 15px;
  font-weight: 700;
  color: #1d1d1d;
  text-decoration: none;
  line-height: 1.2;
}

.gm-pd__owner-phone-link:hover {
  color: var(--gm-pd-accent);
}

.gm-pd__owner-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gm-pd__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  color: #fff !important;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.gm-pd__icon-btn[hidden] {
  display: none !important;
}

.gm-pd__icon-btn:hover {
  transform: scale(1.06);
  color: #fff !important;
  filter: brightness(0.95);
}

.gm-pd__icon-btn--wa {
  background: #25d366;
}

.gm-pd__icon-btn--call {
  background: var(--gm-pd-accent, #fc5e08);
}

.gm-pd__icon-btn i {
  font-size: 16px;
  line-height: 1;
}

.gm-pd__owner-bio {
  margin: 12px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--gm-pd-soft);
  color: #444;
  font-size: 12px;
  line-height: 1.45;
}

.gm-pd__contact-note {
  font-size: 13px;
  color: var(--gm-pd-muted);
  line-height: 1.45;
  margin: 0;
  text-align: right;
}

@media (max-width: 575.98px) {
  .gm-pd__owner-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .gm-pd__owner-aside {
    align-items: stretch;
  }

  .gm-pd__unlock-btn {
    width: 100%;
  }

  .gm-pd__owner-contact {
    justify-content: flex-start;
    text-align: left;
  }

  .gm-pd__contact-note {
    text-align: left;
  }
}

.gm-pd .cs_btn.cs_style_1 {
  justify-content: center;
  min-height: 44px;
  box-shadow: 0 6px 14px rgba(252, 94, 8, 0.2);
}

/* Full-width details below hero */
.gm-pd__details-wrap {
  width: 100%;
}

.gm-pd .cs_single_property_content {
  padding: 20px 22px !important;
  border: 1px solid var(--gm-pd-border) !important;
  box-shadow: 0 4px 18px rgba(29, 29, 29, 0.04);
}

.gm-pd .cs_single_property_content > div,
.gm-pd .gm-pd__block {
  padding-bottom: 16px !important;
  margin-bottom: 16px !important;
  border-bottom: 1px solid var(--gm-pd-border);
}

.gm-pd .cs_single_property_content > div:last-child,
.gm-pd .gm-pd__block:last-child {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  border-bottom: 0;
}

.gm-pd .cs_single_property_content h3 {
  position: relative;
  padding-bottom: 0;
  margin-bottom: 12px !important;
  font-size: 17px !important;
  line-height: 1.3;
}

.gm-pd .cs_single_property_content h3::after {
  display: none;
}

.gm-pd__location-inline {
  margin-top: 0 !important;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--gm-pd-soft);
}

/* Spec grids — 3 columns on wide screens */
.gm-pd .cs_property_info_list,
.gm-pd .cs_financial_info_list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 !important;
  margin: 0;
  border: 1px solid var(--gm-pd-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.gm-pd .cs_property_info_list li,
.gm-pd .cs_financial_info_list li {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin: 0 !important;
  padding: 10px 12px;
  border-bottom: 1px solid var(--gm-pd-border);
  border-right: 1px solid var(--gm-pd-border);
  flex-wrap: nowrap !important;
}

.gm-pd .cs_property_info_list li:nth-child(3n) {
  border-right: 0;
}

.gm-pd .cs_property_info_list li:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.gm-pd .cs_property_info_list span:first-child,
.gm-pd .cs_financial_info_list span:first-child {
  width: auto !important;
  flex: none;
  max-width: 48%;
  color: var(--gm-pd-muted);
  font-weight: 500 !important;
  font-size: 12px;
}

.gm-pd .cs_property_info_list span:last-child,
.gm-pd .cs_financial_info_list span:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--heading-color, #1d1d1d);
  font-size: 13px;
  word-break: break-word;
}

.gm-pd .cs_financial_info_list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gm-pd .cs_financial_info_list li:nth-child(2n) {
  border-right: 0;
}

.gm-pd .cs_financial_info_list li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.gm-pd .cs_financial_info_list li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: 0;
}

/* Amenities / features */
.gm-pd .cs_property_amenties_list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px !important;
}

.gm-pd .cs_property_amenties_list li {
  width: 100% !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--gm-pd-soft);
  flex-wrap: nowrap !important;
  font-size: 13px;
}

.gm-pd .cs_property_amenties_list span:first-child {
  width: auto !important;
  flex: none;
  font-size: 14px;
  line-height: 1.4;
}

/* Inquiry modal */
.gm-inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gm-inquiry-modal.is-open {
  display: flex;
}

.gm-inquiry-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 29, 0.55);
}

.gm-inquiry-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.gm-inquiry-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f3f3f3;
  color: #333;
  cursor: pointer;
}

.gm-inquiry-modal__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1d1d1d;
  padding-right: 28px;
}

.gm-inquiry-modal__text {
  margin: 0 0 18px;
  color: #666;
  font-size: 14px;
  line-height: 1.45;
}

.gm-inquiry-modal__field {
  margin-bottom: 14px;
}

.gm-inquiry-modal__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.gm-inquiry-modal__field label span {
  color: var(--gm-pd-accent);
}

.gm-inquiry-modal__field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  font-size: 14px;
}

.gm-inquiry-modal__field input:focus {
  outline: none;
  border-color: var(--gm-pd-accent);
  box-shadow: 0 0 0 3px rgba(252, 94, 8, 0.12);
}

.gm-inquiry-modal__error {
  margin: 0 0 12px;
  color: #b42318;
  font-size: 13px;
}

body.gm-inquiry-open {
  overflow: hidden;
}

/* Related */
.gm-pd-related {
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  padding: 40px 0 8px;
  margin-top: 28px;
}

.gm-pd-related .cs_section_heading {
  margin-bottom: 24px !important;
}

.gm-pd-related .cs_section_title {
  font-size: clamp(1.4rem, 2vw, 1.85rem) !important;
}

.gm-pd-related__row {
  justify-content: center;
}

.gm-pd-related .cs_card.cs_style_1 {
  height: 100%;
}

.gm-pd-related .cs_card.cs_style_1 .cs_property_price {
  background-color: #1d1d1d !important;
  color: #fff !important;
}

.gm-pd-related .cs_property_location_text > span:first-child,
.gm-pd-related .cs_property_location_text i {
  color: #1d1d1d !important;
}

/* Responsive */
@media (max-width: 991px) {
  .gm-pd__hero {
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    gap: 14px;
  }

  .gm-pd__gallery {
    max-width: 340px;
  }

  .gm-pd .cs_property_info_list,
  .gm-pd .cs_property_amenties_list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .gm-pd .cs_property_info_list li:nth-child(3n) {
    border-right: 1px solid var(--gm-pd-border);
  }

  .gm-pd .cs_property_info_list li:nth-child(2n) {
    border-right: 0;
  }

  .gm-pd .cs_property_info_list li:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--gm-pd-border);
  }

  .gm-pd .cs_property_info_list li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 767px) {
  .gm-pd {
    padding-top: 88px;
  }

  .gm-pd__hero {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .gm-pd__gallery {
    max-width: min(100%, 420px);
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 1 / 1.05;
    border-radius: 14px !important;
  }

  .gm-pd__hero-side {
    width: 100%;
  }

  .gm-pd__stats {
    grid-template-columns: 1fr 1fr;
  }

  .gm-pd__stats > li {
    border-right: 1px solid var(--gm-pd-border);
    border-bottom: 1px solid var(--gm-pd-border);
  }

  .gm-pd__stats > li:nth-child(2n) {
    border-right: 0;
  }

  .gm-pd__stats > li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .gm-pd__stats > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .gm-pd__nav {
    width: 34px;
    height: 34px;
  }

  .gm-pd .cs_property_info_list,
  .gm-pd .cs_property_amenties_list,
  .gm-pd .cs_financial_info_list {
    grid-template-columns: 1fr !important;
  }

  .gm-pd .cs_property_info_list li,
  .gm-pd .cs_financial_info_list li {
    border-right: 0 !important;
  }

  .gm-pd .cs_property_info_list li:not(:last-child),
  .gm-pd .cs_financial_info_list li:not(:last-child) {
    border-bottom: 1px solid var(--gm-pd-border) !important;
  }

  .gm-pd .cs_single_property_content {
    padding: 16px 14px !important;
  }

  .gm-pd-related {
    margin-top: 24px;
    padding-top: 28px;
  }
}

@media (min-width: 1200px) {
  .gm-pd__hero {
    grid-template-columns: 440px minmax(0, 1fr);
    gap: 20px;
  }

  .gm-pd__gallery {
    max-width: 440px;
  }
}
