/* Real Estate Property Manager */
.repm-form, .repm-search { margin: 1.5rem 0; padding: 1.25rem; border: 1px solid #e3e6ea; border-radius: 12px; background: #fff; }
.repm-form h2, .repm-inquiry h2 { margin-top: 0; }
.repm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.repm-form p { margin: 0 0 1rem; }
.repm-form label, .repm-search label { display: block; font-weight: 600; font-size: .95rem; }
.repm-form input:not([type=file]), .repm-form select, .repm-form textarea, .repm-search input, .repm-search select { display: block; width: 100%; margin-top: .4rem; padding: .7rem .75rem; border: 1px solid #cbd2d9; border-radius: 7px; background: #fff; font: inherit; box-sizing: border-box; }
.repm-form input[type=file] { display: block; width: 100%; margin-top: .5rem; }
.repm-form small { display: block; margin-top: .35rem; font-weight: 400; color: #666; }
.repm-full { grid-column: 1 / -1; }
.repm-form button, .repm-search button { border: 0; border-radius: 7px; padding: .8rem 1.2rem; cursor: pointer; background: #174f3b; color: #fff; font-weight: 700; }
.repm-form button:hover, .repm-search button:hover { filter: brightness(.92); }
.repm-notice { padding: 1rem; margin: 1rem 0; background: #f4f6f8; border-radius: 8px; }
.repm-success { background: #eaf7ed; border: 1px solid #b8e0c0; }
.repm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.repm-card { min-width: 0; overflow: hidden; border: 1px solid #e3e6ea; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.04); }
.repm-card-image { position: relative; display: block; height: 230px; background: #f0f2f4; overflow: hidden; }
.repm-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.repm-card-image:hover img { transform: scale(1.03); }
.repm-badge { position: absolute; top: 12px; left: 12px; padding: .35rem .55rem; background: #174f3b; color: #fff; border-radius: 5px; font-size: .8rem; font-weight: 700; }
.repm-card-body { padding: 1rem; }
.repm-card h3 { margin: .35rem 0; font-size: 1.15rem; }
.repm-card h3 a, .repm-details-link { text-decoration: none; }
.repm-price { color: #174f3b; font-size: 1.25rem; font-weight: 800; }
.repm-location { color: #626b73; margin: .4rem 0 .8rem; }
.repm-facts { display: flex; flex-wrap: wrap; gap: .5rem .85rem; padding: .7rem 0; font-size: .9rem; color: #454d55; }
.repm-facts span { display: inline-block; }
.repm-details-link { display: inline-block; margin-top: .4rem; font-weight: 700; }
.repm-no-image { display: grid; height: 100%; place-items: center; color: #6c757d; }
.repm-no-results { grid-column: 1 / -1; padding: 1.5rem; }
.repm-reset { margin-left: .75rem; }
.repm-pagination { display: flex; gap: .4rem; margin: 1rem 0; }
.repm-pagination a { padding: .4rem .7rem; border: 1px solid #ddd; border-radius: 5px; text-decoration: none; }
.repm-pagination a.current { background: #174f3b; color: #fff; }
.repm-single { max-width: 1100px; margin: 0 auto; }
.repm-gallery { margin: 1rem 0 2rem; }
.repm-gallery-main { position: relative; min-height: 220px; background: #f1f3f5; border-radius: 12px; overflow: hidden; }
.repm-gallery-slide { display: none; }
.repm-gallery-slide.is-active { display: block; }
.repm-gallery-slide img { display: block; width: 100%; max-height: 620px; object-fit: contain; margin: auto; }
.repm-gallery-thumbs { display: flex; gap: .6rem; overflow-x: auto; padding: .75rem 0; }
.repm-gallery-thumb { padding: 0; border: 2px solid transparent; border-radius: 6px; background: transparent; cursor: pointer; overflow: hidden; flex: 0 0 90px; height: 68px; }
.repm-gallery-thumb.is-active { border-color: #174f3b; }
.repm-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.repm-single-summary { padding: 1.25rem; border: 1px solid #e3e6ea; border-radius: 12px; }
.repm-section, .repm-inquiry { margin: 1.5rem 0; padding: 1.25rem; border: 1px solid #e3e6ea; border-radius: 12px; }
.repm-section h2, .repm-inquiry h2 { margin-top: 0; }
.repm-amenities { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding-left: 1.2rem; }
.repm-owner-list li { padding: .65rem 0; border-bottom: 1px solid #eee; }
.repm-status { display: inline-block; margin-left: .5rem; padding: .15rem .45rem; background: #f0f2f4; border-radius: 4px; font-size: .8rem; }
.repm-admin-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.repm-admin-fields p { margin: .5rem 0; }
@media (max-width: 900px) { .repm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .repm-grid, .repm-form-grid, .repm-admin-fields { grid-template-columns: 1fr; } .repm-card-image { height: 220px; } .repm-full { grid-column: auto; } }

/* Search bar layout inspired by the supplied reference screenshot */
.repm-search { border: 0; background: transparent; padding: 0; margin: 1.25rem 0 1.5rem; }
.repm-search .repm-form-grid { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; }
.repm-search .repm-form-grid p { flex: 1 1 130px; min-width: 120px; margin: 0; }
.repm-search label { font-size: .85rem; color: #343b43; }
.repm-search input, .repm-search select { min-height: 44px; border-color: #d8dee5; border-radius: 8px; margin-top: .35rem; }
.repm-search button { min-height: 44px; background: #c81045; }
.repm-search .repm-reset { display: inline-block; padding: .7rem .4rem; font-size: .9rem; }
.repm-card { box-shadow: 0 2px 9px rgba(20,30,40,.07); }
.repm-card-image { height: 250px; }
.repm-card-body { padding: 1.1rem; }
.repm-price { font-size: 1.35rem; }

/* Owner dashboard property cards */
.repm-owner-grid { align-items: start; }
.repm-owner-card .repm-card-body { padding: 1rem; }
.repm-owner-title-price { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .75rem; }
.repm-owner-title-price h3 { margin: 0; overflow-wrap: anywhere; font-size: 1.05rem; }
.repm-owner-title-price .repm-price { text-align: right; font-size: 1rem; overflow-wrap: anywhere; }
.repm-owner-card .repm-status { margin: .75rem 0 0; }
.repm-owner-card .repm-details-link { display: block; }

/* Horizontal property-listing layout (no favourite/heart control) */
.repm-listings { display: flex; flex-direction: column; gap: 1.1rem; margin: 1.5rem 0; }
.repm-listing-card { display: grid; grid-template-columns: minmax(260px, 27%) minmax(0, 1fr); align-items: stretch; min-height: 285px; border-radius: 2px; overflow: hidden; }
.repm-listing-card .repm-card-image { height: 100%; min-height: 285px; border-radius: 0; }
.repm-listing-card .repm-card-image img { min-height: 285px; }
.repm-listing-card .repm-card-body { padding: 1.35rem 1.6rem; }
.repm-listing-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 1.5rem; }
.repm-listing-heading h3 { margin: 0; font-size: 1.35rem; line-height: 1.35; }
.repm-listing-heading h3 a { color: inherit; text-decoration: none; }
.repm-listing-heading .repm-price { text-align: right; white-space: nowrap; font-size: 1.45rem; }
.repm-listing-card .repm-location { margin-top: .7rem; }
.repm-listing-card .repm-facts { margin-top: .5rem; }
.repm-owner-listings .repm-owner-card .repm-card-body { padding: 1.35rem 1.6rem; }
.repm-owner-listings .repm-owner-title-price { grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; }
.repm-owner-listings .repm-owner-title-price h3 { font-size: 1.35rem; line-height: 1.35; }
.repm-owner-listings .repm-owner-title-price .repm-price { font-size: 1.45rem; white-space: nowrap; }
.repm-owner-listings .repm-owner-card .repm-status { margin-top: .9rem; }
.repm-owner-listings .repm-owner-card .repm-details-link { margin-top: .65rem; }
@media (max-width: 760px) {
  .repm-listing-card { grid-template-columns: 1fr; }
  .repm-listing-card .repm-card-image, .repm-listing-card .repm-card-image img { height: 240px; min-height: 240px; }
  .repm-listing-heading { grid-template-columns: 1fr; gap: .5rem; }
  .repm-listing-heading .repm-price { text-align: left; white-space: normal; }
  .repm-owner-listings .repm-owner-title-price { grid-template-columns: 1fr; gap: .5rem; }
  .repm-owner-listings .repm-owner-title-price .repm-price { text-align: left; white-space: normal; }
  .repm-listing-card .repm-card-body, .repm-owner-listings .repm-owner-card .repm-card-body { padding: 1rem; }
}


/* v1.1.4 layout repair: keep title and price from overlapping and prevent narrow cards */
.repm-listings,
.entry-content .repm-listings,
.elementor-widget-shortcode .repm-listings {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  gap: 1.1rem;
}
.repm-listings .repm-listing-card {
  display: grid !important;
  grid-template-columns: minmax(0, 34%) minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
}
.repm-listings .repm-listing-card > .repm-card-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 285px !important;
  box-sizing: border-box !important;
}
.repm-listings .repm-listing-card > .repm-card-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 285px !important;
  object-fit: cover !important;
}
.repm-listings .repm-listing-card > .repm-card-body {
  min-width: 0 !important;
  width: auto !important;
  box-sizing: border-box !important;
  padding: 1.35rem 1.6rem !important;
}
.repm-listings .repm-listing-heading,
.repm-owner-listings .repm-owner-title-price {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  column-gap: 1.25rem !important;
  row-gap: .4rem !important;
  min-width: 0 !important;
}
.repm-listings .repm-listing-heading h3,
.repm-owner-listings .repm-owner-title-price h3 {
  flex: 1 1 220px !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  margin: 0 !important;
}
.repm-listings .repm-listing-heading .repm-price,
.repm-owner-listings .repm-owner-title-price .repm-price {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-align: right !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.3 !important;
}
.repm-owner-listings .repm-owner-card .repm-status {
  display: inline-block;
  margin: .85rem 0 0 !important;
}
.repm-owner-listings .repm-owner-card .repm-details-link {
  display: inline-block;
  margin: .7rem 0 0 !important;
}
@media (max-width: 760px) {
  .repm-listings .repm-listing-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .repm-listings .repm-listing-card > .repm-card-image,
  .repm-listings .repm-listing-card > .repm-card-image img {
    height: 240px !important;
    min-height: 240px !important;
  }
  .repm-listings .repm-listing-heading,
  .repm-owner-listings .repm-owner-title-price {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .repm-listings .repm-listing-heading .repm-price,
  .repm-owner-listings .repm-owner-title-price .repm-price {
    text-align: left !important;
  }
}


/* v1.1.6 — Add New Property long-page form design */
.repm-property-editor {
  width: 100%; max-width: 1180px; margin: 1.5rem auto; padding: clamp(1rem, 2.4vw, 2rem);
  border: 1px solid #e3e8ed; border-radius: 12px; background: #fff; color: #202b35;
  box-sizing: border-box;
}
.repm-property-editor * { box-sizing: border-box; }
.repm-property-editor .repm-form-heading { padding: 0 0 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid #e8edf1; }
.repm-property-editor .repm-form-heading h2 { margin: 0 0 .4rem; font-size: clamp(1.45rem, 2vw, 1.8rem); line-height: 1.3; color: #1d2933; }
.repm-property-editor .repm-form-heading p { margin: 0; color: #6b7782; font-size: .95rem; }
.repm-property-editor .repm-form-section { margin: 0 0 1.25rem; padding: 1.4rem 1.45rem 1.25rem; border: 1px solid #e3e8ed; border-radius: 10px; background: #fff; }
.repm-property-editor .repm-section-heading { display: flex; align-items: flex-start; gap: .85rem; margin: 0 0 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid #edf0f3; }
.repm-property-editor .repm-section-number { display: inline-flex; flex: 0 0 34px; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 8px; background: #f2f5f7; color: #53616d; font-size: .8rem; font-weight: 700; }
.repm-property-editor .repm-section-heading h3 { margin: 0 0 .25rem; color: #202b35; font-size: 1.12rem; line-height: 1.35; }
.repm-property-editor .repm-section-heading p { margin: 0; color: #74808b; font-size: .88rem; font-weight: 400; }
.repm-property-editor .repm-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 265px)); align-items: start; gap: 1.15rem 1.4rem; }
.repm-property-editor .repm-form-grid p { min-width: 0; margin: 0; }
.repm-property-editor .repm-form-grid .repm-span-2 { grid-column: span 2; }
.repm-property-editor .repm-form-grid .repm-span-full { grid-column: 1 / -1; }
.repm-property-editor label { display: block; margin: 0; color: #27323c; font-size: .91rem; font-weight: 600; line-height: 1.4; }
.repm-property-editor input:not([type=file]), .repm-property-editor select, .repm-property-editor textarea {
  display: block; width: 100%; max-width: 100%; min-height: 48px; margin-top: .45rem; padding: .72rem .85rem;
  border: 1px solid #cbd5de; border-radius: 8px; background: #fff; color: #26323c; font: inherit; font-weight: 400;
  box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.repm-property-editor textarea { min-height: 112px; resize: vertical; }
.repm-property-editor input:not([type=file])::placeholder, .repm-property-editor textarea::placeholder { color: #a0acb6; opacity: 1; }
.repm-property-editor input:not([type=file]):focus, .repm-property-editor select:focus, .repm-property-editor textarea:focus { outline: none; border-color: #8b9ca9; box-shadow: 0 0 0 3px rgba(91, 116, 133, .12); }
.repm-property-editor input[type=file] { display: block; width: 100%; max-width: 100%; margin-top: .55rem; padding: .65rem; border: 1px dashed #cbd5de; border-radius: 8px; background: #f9fbfc; font: inherit; }
.repm-property-editor small { display: block; margin-top: .45rem; color: #75818b; font-size: .82rem; font-weight: 400; line-height: 1.5; }
.repm-property-editor .repm-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .4rem 0 0; }
.repm-property-editor .repm-form-actions p { margin: 0; color: #6f7b85; font-size: .85rem; }
.repm-property-editor .repm-form-actions button { flex: 0 0 auto; min-height: 46px; padding: .8rem 1.4rem; border-radius: 8px; background: #174f3b; }
@media (max-width: 900px) {
 .repm-property-editor .repm-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .repm-property-editor .repm-form-grid .repm-span-2 { grid-column: span 2; }
}
@media (max-width: 600px) {
 .repm-property-editor { padding: 1rem; }
 .repm-property-editor .repm-form-section { padding: 1rem; }
 .repm-property-editor .repm-form-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
 .repm-property-editor .repm-form-grid .repm-span-2, .repm-property-editor .repm-form-grid .repm-span-full { grid-column: auto; }
 .repm-property-editor .repm-form-actions { align-items: stretch; flex-direction: column; }
 .repm-property-editor .repm-form-actions button { width: 100%; }
}

/* ---- Frontend form: media uploads ---- */
.repm-property-editor .repm-upload-block h4 { margin: 0 0 .85rem; color: #202b35; font-size: 1.02rem; line-height: 1.35; }
.repm-property-editor .repm-upload-block p { margin: 0 0 1.1rem; }
.repm-property-editor .repm-upload-btn {
	position: relative; display: inline-flex; align-items: center; gap: .5rem; min-height: 38px; padding: 0 1rem; border-radius: 8px;
	background: #263238; color: #fff; font-size: .8rem; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 2px 6px rgba(38,50,56,.22);
}
.repm-property-editor .repm-upload-btn:hover { background: #37474f; }
.repm-property-editor .repm-upload-btn:focus-within { outline: 2px solid #5b7485; outline-offset: 2px; }
.repm-property-editor .repm-upload-btn input[type=file] {
	position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; opacity: 0; overflow: hidden; clip: rect(0 0 0 0);
}
.repm-property-editor .repm-upload-names { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.repm-property-editor .repm-upload-names:empty { display: none; }
.repm-property-editor .repm-upload-names li { max-width: 100%; margin: 0; padding: .3rem .65rem; border-radius: 999px; background: #eef2f5; color: #34464d; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repm-property-editor .repm-upload-block > small { margin-top: .85rem; color: #b0bcc4; font-weight: 700; font-size: .75rem; }

/* ---- Listing page: floor plans, documents, video ---- */
.repm-floorplans { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.repm-floorplan img { display: block; width: 100%; height: auto; border: 1px solid #e3e6ea; border-radius: 8px; }
.repm-documents { margin: 0; padding: 0; list-style: none; }
.repm-documents li { padding: .55rem 0; border-bottom: 1px solid #edf0f3; }
.repm-doc-ext { margin-left: .4rem; padding: .1rem .45rem; border-radius: 4px; background: #eef2f5; color: #53636a; font-size: .72rem; font-weight: 700; }
.repm-video-embed { position: relative; max-width: 100%; }
.repm-video-embed iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; }
.repm-video-file { display: block; width: 100%; max-width: 100%; margin-top: 1rem; border-radius: 8px; background: #000; }

/* =========================================================================
   Figtree – main font for everything the plugin prints on the frontend
   ========================================================================= */
:root { --repm-font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
.repm-single, .repm-form, .repm-search, .repm-listings, .repm-owner-list, .repm-notice, .repm-card, .repm-property-editor, .repm-inquiry { font-family: var(--repm-font); }
.repm-form input, .repm-form select, .repm-form textarea, .repm-form button,
.repm-search input, .repm-search select, .repm-search button,
.repm-single button { font-family: inherit; }

/* =========================================================================
   Single property page
   ========================================================================= */
/* The plugin prints its own title in the header block, so hide the theme's duplicate. */
.repm-single-property .entry-header { display: none; }

.repm-single { --repm-ink: #232b33; --repm-muted: #5d6975; --repm-line: #e6e9ed; --repm-brand: #c8184a; max-width: 1100px; margin: 0 auto; color: var(--repm-ink); }

.repm-single-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem 2rem; align-items: start; margin: 1.6rem 0 1rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--repm-line); }
.repm-sh-main { padding-top: 2.1rem; min-width: 0; }
.repm-sh-title { margin: 0 0 1.1rem; font-family: var(--repm-font); font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 500; line-height: 1.2; color: var(--repm-ink); overflow-wrap: anywhere; }
.repm-sh-address { margin: 0; font-size: .95rem; font-weight: 500; color: #4a5560; }
.repm-sh-side { display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; text-align: right; }
.repm-tag { display: inline-block; padding: .3rem .8rem; border-radius: 6px; background: #eff1f4; color: #36404a; font-size: .8rem; font-weight: 500; line-height: 1.3; }
.repm-sh-price { margin-top: .5rem; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 500; line-height: 1.1; color: #000; white-space: nowrap; }
.repm-sh-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.repm-request-btn {
	display: inline-block; margin-top: .6rem; padding: .85rem 2.2rem; border-radius: 6px; background: var(--repm-brand); color: #fff !important;
	font-size: 1rem; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; text-decoration: none !important; transition: filter .15s;
}
.repm-request-btn:hover, .repm-request-btn:focus { filter: brightness(.92); }
html { scroll-behavior: smooth; }
.repm-single [id^="repm-"] { scroll-margin-top: 90px; }

/* Sections */
.repm-single .repm-block { margin: 0; padding: 2rem 0; border: 0; border-bottom: 1px solid var(--repm-line); border-radius: 0; }
.repm-single .repm-block:last-child { border-bottom: 0; }
.repm-single .repm-block > h2 { margin: 0 0 1.25rem; font-family: var(--repm-font); font-size: 1.45rem; font-weight: 700; line-height: 1.3; color: var(--repm-ink); }
.repm-single .repm-subsection { margin-top: 1.75rem; }
.repm-single .repm-subsection > h3 { margin: 0 0 .8rem; font-family: var(--repm-font); font-size: 1.05rem; font-weight: 700; }
.repm-prose { margin-bottom: 1.4rem; line-height: 1.7; }
.repm-prose p:last-child { margin-bottom: 0; }

.repm-fact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem 2rem; margin: 0 0 .5rem; padding: 0; }
.repm-fact { margin: 0; padding: 0 0 .85rem; border-bottom: 1px solid #f0f2f4; }
.repm-fact dt { margin: 0 0 .2rem; font-size: .8rem; font-weight: 500; color: var(--repm-muted); text-transform: uppercase; letter-spacing: .03em; }
.repm-fact dd { margin: 0; font-size: 1.02rem; font-weight: 600; overflow-wrap: anywhere; }
.repm-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; }
.repm-chip { padding: .3rem .8rem; border-radius: 999px; background: #fdebf0; color: var(--repm-brand); font-size: .8rem; font-weight: 700; }

.repm-single .repm-amenities { margin: 0; }
.repm-contact-owner { margin: 0 0 .6rem; }
.repm-map { position: relative; width: 100%; height: 420px; margin: .5rem 0 1rem; overflow: hidden; border-radius: 12px; background: #eef1f4; }
.repm-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.repm-map-address { margin: 0 0 .5rem; font-weight: 500; color: #4a5560; }

.repm-single .repm-inquiry-form { margin: 1rem 0 0; max-width: 640px; }
.repm-recaptcha { margin: 0 0 1rem; }
.repm-recaptcha-note { margin: 0 0 1rem; }

@media (max-width: 860px) { .repm-fact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.repm-single-header { grid-template-columns: 1fr; }
	.repm-sh-main { padding-top: 0; }
	.repm-sh-side { align-items: flex-start; text-align: left; order: -1; }
	.repm-sh-tags { justify-content: flex-start; }
	.repm-sh-price { white-space: normal; }
	.repm-request-btn { width: 100%; text-align: center; }
	.repm-fact-list { grid-template-columns: 1fr; }
	.repm-map { height: 320px; }
}

/* Frontend form: address search */
.repm-property-editor .repm-address-search gmp-place-autocomplete { display: block; width: 100%; max-width: 560px; margin-top: .55rem; color-scheme: light; }

/* v1.4.2 — property grid card: price on top, tag underneath */
.repm-listings .repm-price-block { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; margin: 0 0 .9rem; }
.repm-listings .repm-price-block .repm-price { margin: 0 !important; text-align: left !important; white-space: normal !important; color: #232b33; font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.repm-listings .repm-price-block .repm-tag { display: inline-block; padding: .3rem .8rem; border-radius: 6px; background: #eff1f4; color: #36404a; font-size: .8rem; font-weight: 500; line-height: 1.3; }
.repm-listings .repm-listing-heading { display: block !important; }
.repm-listings .repm-listing-heading h3 { font-size: 1.1rem !important; font-weight: 600; }

/* ==========================================================================
   v1.5.0 — property grid: filter bar + 3-column card grid
   (used by [repm_property_grid] and [repm_my_properties])
   ========================================================================== */
.repm-filterbar, .repm-results-bar, .repm-pgrid, .repm-owner-list { --repm-brand: #c8184a; --repm-ink: #232b33; --repm-muted: #5d6975; --repm-line: #dfe3e8; font-family: var(--repm-font, inherit); color: var(--repm-ink); box-sizing: border-box; }
.repm-filterbar *, .repm-results-bar *, .repm-pgrid * { box-sizing: border-box; }

/* Filter bar */
.repm-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin: 1.25rem 0 1.5rem; padding: 0; border: 0; background: transparent; }
.repm-searchbox { display: flex; flex: 1 1 260px; max-width: 360px; min-width: 220px; border: 1px solid var(--repm-line); border-radius: 8px; background: #fff; overflow: hidden; }
.repm-searchbox input { flex: 1; min-width: 0; margin: 0; padding: .7rem .9rem; border: 0; outline: 0; background: transparent; font: inherit; font-size: .95rem; color: var(--repm-ink); box-shadow: none; }
.repm-searchbox input:focus { box-shadow: inset 0 0 0 2px rgba(200,24,74,.25); }
.repm-searchbox .repm-searchbtn { display: grid; place-items: center; width: 52px; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--repm-brand); color: #fff; cursor: pointer; }
.repm-searchbox .repm-searchbtn:hover { filter: brightness(.93); }
.repm-searchbox .repm-icon { width: 22px; height: 22px; }

.repm-dd { position: relative; }
.repm-dd > summary { display: inline-flex; align-items: center; gap: .55rem; padding: .62rem .95rem; border: 1px solid var(--repm-line); border-radius: 8px; background: #fff; font-size: .95rem; line-height: 1.3; color: var(--repm-ink); cursor: pointer; list-style: none; user-select: none; }
.repm-dd > summary::-webkit-details-marker { display: none; }
.repm-dd > summary:hover { border-color: #bfc6ce; }
.repm-dd[open] > summary, .repm-dd.is-active > summary { border-color: var(--repm-brand); }
.repm-dd.is-active > summary { font-weight: 600; }
.repm-dd[open] .repm-chevron { transform: rotate(180deg); }
.repm-chevron { transition: transform .15s ease; flex: none; }
.repm-dd-panel { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; display: grid; gap: .75rem; width: 240px; max-width: calc(100vw - 2rem); padding: 1rem; border: 1px solid var(--repm-line); border-radius: 10px; background: #fff; box-shadow: 0 10px 28px rgba(20,30,40,.14); }
.repm-dd-panel label { display: block; margin: 0; font-size: .82rem; font-weight: 600; color: var(--repm-muted); }
.repm-dd-panel input, .repm-dd-panel select { display: block; width: 100%; min-height: 40px; margin: .3rem 0 0; padding: .5rem .65rem; border: 1px solid var(--repm-line); border-radius: 7px; background: #fff; font: inherit; font-size: .95rem; color: var(--repm-ink); }
.repm-dd-panel button { min-height: 40px; padding: .5rem 1rem; border: 0; border-radius: 7px; background: var(--repm-brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.repm-dd-panel button:hover { filter: brightness(.93); }
.repm-filterbar .repm-reset { margin: 0 0 0 .25rem; font-size: .9rem; color: var(--repm-brand); text-decoration: none; }
.repm-filterbar .repm-reset:hover { text-decoration: underline; }

/* Results bar */
.repm-results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 0 1.25rem; }
.repm-count { margin: 0; font-size: 1.05rem; font-weight: 700; color: #3b4651; }
.repm-results-title { margin: 0 0 .25rem; font-size: 1.4rem; font-weight: 700; }
.repm-sort { display: inline-flex; align-items: center; gap: .6rem; margin: 0; font-size: .95rem; color: var(--repm-muted); }
.repm-sort select { min-width: 170px; margin: 0; padding: .6rem .8rem; border: 1px solid var(--repm-line); border-radius: 8px; background-color: #fff; font: inherit; color: var(--repm-ink); }

/* Card grid */
.repm-pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; margin: 1rem 0 1.5rem; align-items: start; }
.repm-pgrid .repm-no-results { grid-column: 1 / -1; padding: 1.5rem 0; }
.repm-pcard { min-width: 0; overflow: hidden; border: 0; border-radius: 2px; background: #fff; box-shadow: 0 1px 6px rgba(20,30,40,.14); transition: box-shadow .2s ease, transform .2s ease; }
.repm-pcard:hover { box-shadow: 0 6px 18px rgba(20,30,40,.18); transform: translateY(-2px); }
.repm-pcard-photo { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; background: #eef0f2; overflow: hidden; text-decoration: none; }
.repm-pcard-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.repm-pcard:hover .repm-pcard-photo img { transform: scale(1.03); }
.repm-pcard-photo .repm-no-image { position: absolute; inset: 0; display: grid; place-items: center; color: #6c757d; font-size: .9rem; }
.repm-pbadge { position: absolute; top: 12px; left: 12px; padding: .28rem .75rem; border-radius: 999px; background: #232b33; color: #fff; font-size: .8rem; font-weight: 700; line-height: 1.3; }
.repm-pbadge.is-featured { background: #ffb400; }
.repm-pbadge.is-new { background: #62c100; }
.repm-pbadge.is-open { background: #2d7ff9; }
.repm-pstatus { position: absolute; top: 12px; right: 12px; padding: .28rem .7rem; border-radius: 999px; background: #fff; color: #36404a; font-size: .78rem; font-weight: 600; line-height: 1.3; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.repm-pstatus.is-pending { background: #fff4d6; color: #7a5a00; }
.repm-pstatus.is-draft { background: #eceff2; color: #5d6975; }
.repm-pstatus.is-publish { background: #e3f6e8; color: #1c6b34; }

.repm-pcard-body { padding: 1.15rem 1.2rem 1.25rem; }
.repm-pcard-title { margin: 0 0 .8rem; font-size: 1.2rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.repm-pcard-title a { color: inherit; text-decoration: none; }
.repm-pcard-title a:hover { text-decoration: underline; }
.repm-pcard-pricerow { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; margin: 0 0 .85rem; min-height: 1.9rem; }
.repm-pcard .repm-price { margin: 0; color: var(--repm-ink); font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.repm-pcard .repm-tag { display: inline-block; padding: .3rem .8rem; border-radius: 6px; background: #eff1f4; color: #36404a; font-size: .85rem; font-weight: 500; line-height: 1.3; }
.repm-pcard .repm-tag.repm-call { font-weight: 700; }
.repm-pcard-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; margin: 0 0 .85rem; font-size: .95rem; color: #454d55; }
.repm-pcard-facts span { display: inline-flex; align-items: center; gap: .45rem; }
.repm-pcard-facts b { font-weight: 700; color: var(--repm-ink); }
.repm-pcard-facts .repm-icon { color: #9aa3ad; flex: none; }
.repm-pcard-type { margin: 0 0 .5rem; font-size: .95rem; color: #454d55; }
.repm-pcard-city { display: flex; align-items: center; gap: .3rem; margin: 0; font-size: .85rem; color: var(--repm-muted); }
.repm-pcard-city .repm-icon { width: 14px; height: 14px; flex: none; }

@media (max-width: 960px) { .repm-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .repm-pgrid { grid-template-columns: 1fr; gap: 1.2rem; }
  .repm-searchbox { flex-basis: 100%; max-width: none; }
  .repm-dd-panel { left: 0; }
  .repm-results-bar { align-items: flex-start; }
}

/* =========================================================================
   Agent card (property cards + single property page)
   ========================================================================= */
.repm-agent-card { display: flex; align-items: center; gap: 1rem; padding: .85rem 1.1rem; border-radius: 18px; background: #f5f5f6; font-family: var(--repm-font); }
.repm-agent-logo { flex: 0 0 76px; width: 76px; height: 58px; display: flex; align-items: center; justify-content: center; }
.repm-agent-logo .repm-agent-logo-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.repm-agent-initials { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #dfe3e8; color: #4a5560; font-size: 1.05rem; font-weight: 700; }
.repm-agent-info { min-width: 0; flex: 1; }
.repm-agent-name { margin: 0 0 .15rem; color: #59616a; font-size: 1.05rem; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.repm-agent-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem 1.6rem; }
.repm-agent-added { color: #1d2327; font-size: 1rem; font-weight: 500; }
.repm-agent-phone { color: #0f1418 !important; font-size: 1rem; font-weight: 700; text-decoration: none !important; border-bottom: 2px solid #e5393f; line-height: 1.35; white-space: nowrap; }
.repm-agent-phone:hover, .repm-agent-phone:focus { color: #000 !important; border-bottom-color: #b3171d; }

.repm-pcard-agent { padding: 0 1.2rem 1.25rem; }
.repm-pcard-agent .repm-agent-card { padding: .7rem .9rem; border-radius: 16px; }
.repm-pcard-agent .repm-agent-logo { flex-basis: 60px; width: 60px; height: 46px; }
.repm-pcard-agent .repm-agent-initials { width: 44px; height: 44px; font-size: .95rem; }
.repm-pcard-agent .repm-agent-name { font-size: .95rem; }
.repm-pcard-agent .repm-agent-added, .repm-pcard-agent .repm-agent-phone { font-size: .9rem; }

.repm-agent-card.is-single { max-width: 640px; padding: 1rem 1.4rem; }
.repm-agent-card.is-single .repm-agent-logo { flex-basis: 96px; width: 96px; height: 72px; }
.repm-agent-about { max-width: 720px; margin: 1.2rem 0 .6rem; }
.repm-agent-email { margin: .4rem 0 0; }

@media (max-width: 480px) {
	.repm-agent-card.is-single .repm-agent-logo { flex-basis: 64px; width: 64px; height: 52px; }
}

/* Frontend form: agent chooser */
.repm-property-editor .repm-agent-modes { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin: 0 0 1.2rem; }
.repm-property-editor .repm-agent-modes label { display: inline-flex; align-items: center; gap: .55rem; margin: 0; cursor: pointer; font-weight: 600; }
.repm-property-editor .repm-agent-modes input[type=radio] { display: inline-block; width: auto; min-height: 0; margin: 0; padding: 0; accent-color: #174f3b; }
.repm-property-editor [data-repm-agent-new][hidden], .repm-property-editor [data-repm-agent-existing][hidden] { display: none; }

/* =========================================================================
   Agent page
   ========================================================================= */
.repm-single-agent .entry-header { display: none; }
.repm-agent-name a { color: inherit; text-decoration: none; }
.repm-agent-name a:hover, .repm-agent-name a:focus { text-decoration: underline; }
.repm-agent-hero { display: flex; align-items: flex-start; gap: 2rem; margin: 1.6rem 0 1rem; padding: 1.8rem 2rem; border-radius: 22px; background: #f5f5f6; }
.repm-agent-hero-logo { flex: 0 0 180px; width: 180px; min-height: 120px; display: flex; align-items: center; justify-content: center; }
.repm-agent-hero-logo .repm-agent-logo-img { display: block; max-width: 100%; max-height: 160px; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.repm-agent-hero-logo .repm-agent-initials { width: 110px; height: 110px; font-size: 2.2rem; }
.repm-agent-hero-body { flex: 1; min-width: 0; }
.repm-agent-hero .repm-sh-title { margin: 0 0 1rem; }
.repm-agent-hero-contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.8rem; margin: 0 0 1.1rem; }
.repm-agent-link { color: var(--repm-ink, #232b33) !important; font-weight: 600; text-decoration: none !important; border-bottom: 1px solid #b8c0c8; overflow-wrap: anywhere; }
.repm-agent-link:hover { border-bottom-color: #232b33; }
.repm-agent-hero .repm-prose { margin: 0; max-width: 760px; }
.repm-count-pill { display: inline-block; margin-left: .4rem; padding: .1rem .65rem; border-radius: 999px; background: #eff1f4; color: #36404a; font-size: .85rem; font-weight: 700; vertical-align: middle; }
.repm-agent-website { margin: .4rem 0 0; }
@media (max-width: 640px) {
	.repm-agent-hero { flex-direction: column; padding: 1.3rem; gap: 1.2rem; }
	.repm-agent-hero-logo { flex-basis: auto; width: 100%; min-height: 0; justify-content: flex-start; }
}

/* =========================================================================
   SOLD ribbon
   ========================================================================= */
.repm-sold-ribbon { --repm-ribbon: 150px; position: absolute; top: 0; left: 0; z-index: 4; width: var(--repm-ribbon); height: var(--repm-ribbon); overflow: hidden; pointer-events: none; }
.repm-sold-ribbon > span {
	position: absolute; top: calc(var(--repm-ribbon) * .22); left: calc(var(--repm-ribbon) * -.36); width: calc(var(--repm-ribbon) * 1.5);
	padding: calc(var(--repm-ribbon) * .07) 0; background: #e2001a; color: #fff; text-align: center; transform: rotate(-45deg);
	font-family: var(--repm-font, inherit); font-size: calc(var(--repm-ribbon) * .17); font-weight: 800; letter-spacing: .08em; line-height: 1;
	box-shadow: 0 2px 8px rgba(0,0,0,.28); text-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.repm-pcard .repm-sold-ribbon { --repm-ribbon: 128px; }
.repm-pcard.is-sold .repm-pcard-photo img { filter: saturate(.85); }
.repm-gallery-main { position: relative; }
.repm-gallery-main .repm-sold-ribbon { --repm-ribbon: clamp(150px, 24%, 260px); }
.repm-tag.repm-tag-sold { background: #e2001a; color: #fff; font-weight: 700; }

/* =========================================================================
   [repm_sold_slider]
   ========================================================================= */
.repm-sold-slider { --repm-ink: #232b33; --repm-muted: #5d6975; --repm-line: #e4e7eb; --repm-green: #1ea85c; --repm-gap: 1.7rem; margin: 1.5rem 0; font-family: var(--repm-font, inherit); color: var(--repm-ink); box-sizing: border-box; }
.repm-sold-slider * { box-sizing: border-box; }
.repm-slider-title { margin: 0 0 1.2rem; text-align: center; font-family: var(--repm-font, inherit); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.2; color: var(--repm-ink); }
.repm-slider-stage { position: relative; padding: 0 30px; }
.repm-slider-track { display: flex; gap: var(--repm-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 2rem .5rem 2.4rem; outline-offset: -4px; }
.repm-slider-track::-webkit-scrollbar { display: none; }
.repm-slide { flex: 0 0 calc((100% - (var(--repm-cols, 3) - 1) * var(--repm-gap)) / var(--repm-cols, 3)); min-width: 0; scroll-snap-align: start; }

.repm-slider-btn { position: absolute; top: 50%; z-index: 5; display: grid; place-items: center; width: 56px; height: 56px; margin-top: -28px; padding: 0; border: 1px solid var(--repm-line); border-radius: 50%; background: #fff; color: var(--repm-ink); box-shadow: 0 4px 14px rgba(20,30,50,.1); cursor: pointer; transition: background .15s, color .15s; }
.repm-slider-btn.is-prev { left: 0; }
.repm-slider-btn.is-next { right: 0; }
.repm-slider-btn:hover, .repm-slider-btn:focus-visible { background: var(--repm-ink); color: #fff; }
.repm-slider-btn[hidden] { display: none; }

.repm-slider-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; min-height: 14px; margin-top: .2rem; }
.repm-slider-dots button { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: #d3d7dc; cursor: pointer; transition: background .15s, transform .15s; }
.repm-slider-dots button:hover { background: #aab1b8; }
.repm-slider-dots button.is-active { background: var(--repm-ink); transform: scale(1.1); }
.repm-slider-dots button:focus-visible { outline: 2px solid var(--repm-ink); outline-offset: 2px; }

/* Card */
.repm-scard { height: 100%; padding: 1.5rem 1.5rem 1.7rem; border: 1px solid var(--repm-line); border-radius: 16px; background: #fff; box-shadow: 0 14px 40px rgba(20,30,50,.10); text-align: center; }
.repm-scard-photo { position: relative; display: block; width: 100%; aspect-ratio: 14 / 9; overflow: hidden; background: #eef0f2; text-decoration: none; }
.repm-scard-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.repm-scard-photo .repm-no-image { display: grid; place-items: center; width: 100%; height: 100%; color: var(--repm-muted); font-size: .9rem; }
.repm-scard .repm-sold-ribbon { --repm-ribbon: 118px; }
.repm-scard-title { margin: 1.3rem 0 0; font-family: var(--repm-font, inherit); font-size: 1.12rem; font-weight: 700; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.repm-scard-title a { color: var(--repm-ink); text-decoration: none; }
.repm-scard-title a:hover, .repm-scard-title a:focus { text-decoration: underline; }
.repm-scard-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .3rem .8rem; width: 78%; margin: 1.1rem auto 0; padding-top: 1.1rem; border-top: 1px solid #eceef1; }
.repm-scard-price { color: var(--repm-green); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.repm-scard-price.is-muted { color: var(--repm-muted); font-size: 1.05rem; }
.repm-scard-facts { color: var(--repm-muted); font-size: .95rem; font-weight: 500; white-space: nowrap; }

@media (max-width: 960px) { .repm-slide { flex-basis: calc((100% - var(--repm-gap)) / 2); } }
@media (max-width: 640px) {
	.repm-slide { flex-basis: 100%; }
	.repm-slider-stage { padding: 0 8px; }
	.repm-slider-btn { width: 44px; height: 44px; margin-top: -22px; }
	.repm-slider-btn.is-prev { left: -2px; }
	.repm-slider-btn.is-next { right: -2px; }
	.repm-scard-meta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .repm-slider-track { scroll-behavior: auto; } }

/* =========================================================================
   Frontend form: new fields + edit mode
   ========================================================================= */
.repm-property-editor .repm-subhead { margin: 1.6rem 0 .8rem; font-size: 1rem; font-weight: 700; color: #202b35; }
.repm-property-editor .repm-check-group { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin: 0 0 1rem; }
.repm-property-editor .repm-check-inline { display: inline-flex; align-items: center; gap: .55rem; margin: 0; cursor: pointer; font-weight: 600; }
.repm-property-editor .repm-check-inline input[type=checkbox] { display: inline-block; width: auto; min-height: 0; margin: 0; padding: 0; accent-color: #174f3b; }
.repm-property-editor [data-repm-open-house-fields][hidden] { display: none; }
.repm-property-editor .repm-existing-media { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.repm-property-editor .repm-existing-media li { display: flex; flex-direction: column; gap: .4rem; width: 110px; margin: 0; font-size: .8rem; }
.repm-property-editor .repm-existing-media img { display: block; width: 110px; height: 82px; object-fit: cover; border-radius: 8px; border: 1px solid #dfe3e8; }
.repm-property-editor .repm-existing-media label { display: inline-flex; align-items: center; gap: .35rem; margin: 0; font-weight: 600; cursor: pointer; }
.repm-property-editor .repm-existing-media input[type=checkbox] { display: inline-block; width: auto; min-height: 0; margin: 0; padding: 0; }
.repm-property-editor .repm-existing-documents li, .repm-property-editor .repm-existing-video li { width: auto; flex-direction: row; align-items: center; gap: .9rem; padding: .5rem .8rem; border: 1px solid #dfe3e8; border-radius: 8px; background: #f8fafb; }
.repm-property-editor .repm-existing-name { overflow-wrap: anywhere; }

/* My Properties: Edit button */
.repm-pcard-actions { padding: 0 1.2rem 1.1rem; }
.repm-edit-btn { display: inline-block; padding: .55rem 1.2rem; border-radius: 8px; background: #232b33; color: #fff !important; font-size: .85rem; font-weight: 700; text-decoration: none !important; transition: background .15s; }
.repm-edit-btn:hover, .repm-edit-btn:focus { background: #3a4651; }
.repm-back { margin: 0 0 1rem; }
