.mrp-property-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  max-width: 1180px;
  margin: 24px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.mrp-property-single-layout *,
.mrp-property-single-layout *::before,
.mrp-property-single-layout *::after {
  box-sizing: border-box;
}

.mrp-property-single-main,
.mrp-property-single-sidebar {
  min-width: 0;
}

.mrp-property-gallery {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.mrp-property-gallery-featured,
.mrp-property-main-image {
  width: 100%;
}

.mrp-property-main-image {
  border-radius: 12px;
  overflow: hidden;
  background: #f5f6f8;
  aspect-ratio: 16 / 9;
  max-height: 430px;
}

.mrp-property-main-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mrp-property-gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.mrp-property-gallery-thumb {
  display: block;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: #f5f6f8;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.mrp-property-gallery-thumb.is-active {
  border-color: #1d4ed8;
}

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

.mrp-property-single-content {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 20px;
  margin-top: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

.mrp-property-single-content h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
}

.mrp-property-single-price {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 16px;
}

.mrp-property-description {
  overflow-wrap: anywhere;
}

.mrp-property-single-sidebar {
  position: sticky;
  top: 24px;
}

.mrp-property-facts-card,
.mrp-property-map {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

.mrp-property-facts-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.mrp-property-facts-card dl {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}

.mrp-property-facts-card dt {
  font-weight: 700;
  color: #374151;
}

.mrp-property-facts-card dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mrp-property-facts-card a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mrp-contact-owner-button,
.mrp-contact-owner-button-full {
  display: none !important;
}

.mrp-property-map {
  margin-top: 16px;
  padding: 0;
  overflow: hidden;
}

.mrp-property-map iframe {
  display: block;
  width: 100%;
  min-height: 260px;
  border: 0;
}

@media (max-width: 900px) {
  .mrp-property-single-layout {
    grid-template-columns: 1fr;
  }
  .mrp-property-single-sidebar {
    position: static;
  }
}

@media (max-width: 520px) {
  .mrp-property-single-layout {
    padding: 0 10px;
    gap: 16px;
  }
  .mrp-property-facts-card dl {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .mrp-property-facts-card dd {
    margin-bottom: 8px;
  }
}

/* v1.0.16: show full property images and improve Add Property form */
.mrp-property-main-image {
  background: #f3f4f6;
}

.mrp-property-main-img {
  object-fit: contain !important;
  background: #f3f4f6;
}

.mrp-property-gallery-thumb img,
.mrp-sortable-image img {
  object-fit: contain !important;
  background: #f3f4f6;
}

.mrp-property-form-pro {
  max-width: 980px;
  margin: 28px auto;
  padding: 0;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
  overflow: hidden;
}

.mrp-property-form-pro *,
.mrp-property-form-pro *::before,
.mrp-property-form-pro *::after {
  box-sizing: border-box;
}

.mrp-form-header {
  padding: 28px;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.mrp-form-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1d4ed8;
  margin-bottom: 8px;
}

.mrp-form-header h3 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
}

.mrp-form-header p {
  margin: 0;
  max-width: 760px;
  color: #475569;
}

.mrp-form-section {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(0,0,0,.07);
}

.mrp-form-section h4 {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.2;
}

.mrp-property-form-pro label {
  display: block;
  font-weight: 700;
  color: #111827;
  margin-bottom: 14px;
}

.mrp-property-form-pro input[type="text"],
.mrp-property-form-pro input[type="email"],
.mrp-property-form-pro input[type="number"],
.mrp-property-form-pro select,
.mrp-property-form-pro textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 15px;
  line-height: 1.4;
}

.mrp-property-form-pro textarea {
  min-height: 130px;
  resize: vertical;
}

.mrp-property-row {
  display: grid;
  gap: 16px;
}

.mrp-property-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mrp-property-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mrp-amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mrp-property-form-pro .mrp-amenity-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  font-weight: 600;
  cursor: pointer;
}

.mrp-amenity-check input {
  margin: 0;
}

.mrp-image-upload-label {
  margin-bottom: 0 !important;
}

.mrp-dropzone {
  margin-top: 8px;
  padding: 28px;
  border: 2px dashed #93c5fd;
  border-radius: 16px;
  background: #eff6ff;
  text-align: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.mrp-dropzone strong,
.mrp-dropzone span {
  display: block;
}

.mrp-dropzone span {
  margin-top: 6px;
  color: #475569;
  font-weight: 500;
}

.mrp-dropzone.is-dragover {
  background: #dbeafe;
  border-color: #2563eb;
  transform: translateY(-1px);
}

.mrp-property-file-input {
  display: none !important;
}

.mrp-upload-help {
  display: block;
  margin-top: 10px;
  color: #64748b;
  font-weight: 500;
}

.mrp-selected-files {
  margin-top: 12px;
  font-size: 14px;
  color: #334155;
}

.mrp-selected-files ul {
  margin: 8px 0 0 18px;
}

.mrp-sortable-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mrp-sortable-image {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  cursor: grab;
}

.mrp-sortable-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
}

.mrp-sortable-image span {
  display: block;
  padding: 6px;
  font-size: 11px;
  text-align: center;
  color: #475569;
  background: #fff;
}

.mrp-sortable-image.is-dragging {
  opacity: .45;
}

.mrp-property-form-pro .mrp-property-button {
  margin: 24px 28px 28px;
  width: calc(100% - 56px);
  border: 0;
  border-radius: 14px;
  padding: 15px 18px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  background: #1d4ed8;
  color: #fff;
}

@media (max-width: 800px) {
  .mrp-property-row.two,
  .mrp-property-row.three,
  .mrp-amenities-grid {
    grid-template-columns: 1fr;
  }
  .mrp-form-header,
  .mrp-form-section {
    padding: 20px;
  }
  .mrp-property-form-pro .mrp-property-button {
    margin: 20px;
    width: calc(100% - 40px);
  }
}

/* v1.0.17: full screen property image viewer with zoom and arrows */
.mrp-property-main-image {
  border: 0;
  padding: 0;
  cursor: zoom-in;
  appearance: none;
  -webkit-appearance: none;
}

.mrp-property-main-image:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

body.mrp-property-viewer-open {
  overflow: hidden;
}

.mrp-property-fullscreen-viewer {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  background: rgba(2, 6, 23, .94);
}

.mrp-property-fullscreen-viewer.is-open {
  display: block;
}

.mrp-property-fullscreen-backdrop {
  position: absolute;
  inset: 0;
}

.mrp-property-fullscreen-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 74px 74px 86px;
  box-sizing: border-box;
}

.mrp-property-fullscreen-image-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: pan-y;
}

.mrp-property-fullscreen-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  transition: transform .12s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.mrp-property-fullscreen-close,
.mrp-property-fullscreen-arrow,
.mrp-property-fullscreen-toolbar button {
  border: 0;
  background: rgba(255,255,255,.14);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.mrp-property-fullscreen-close:hover,
.mrp-property-fullscreen-arrow:hover,
.mrp-property-fullscreen-toolbar button:hover {
  background: rgba(255,255,255,.25);
}

.mrp-property-fullscreen-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 34px;
  line-height: 1;
  z-index: 4;
}

.mrp-property-fullscreen-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 76px;
  border-radius: 18px;
  font-size: 54px;
  line-height: 1;
  z-index: 4;
}

.mrp-property-fullscreen-prev {
  left: 18px;
}

.mrp-property-fullscreen-next {
  right: 18px;
}

.mrp-property-fullscreen-toolbar {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(8px);
  color: #fff;
  z-index: 4;
}

.mrp-property-fullscreen-toolbar button {
  min-width: 42px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
}

.mrp-property-fullscreen-count {
  min-width: 58px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  opacity: .95;
}

@media (max-width: 640px) {
  .mrp-property-fullscreen-stage {
    padding: 64px 10px 78px;
  }
  .mrp-property-fullscreen-arrow {
    width: 42px;
    height: 58px;
    font-size: 40px;
    border-radius: 14px;
  }
  .mrp-property-fullscreen-prev {
    left: 8px;
  }
  .mrp-property-fullscreen-next {
    right: 8px;
  }
  .mrp-property-fullscreen-toolbar {
    width: calc(100% - 20px);
    justify-content: center;
    border-radius: 18px;
  }
}
