/* =========================================================
   Modern Single Property Templates
   - rem-mod-hero  : editorial header + sticky sidebar
   - rem-mod-split : content-left grid + sticky booking card
   Flexbox/grid layout, responsive. Core sections emit Bootstrap
   .row/.col-* markup; those are re-flowed (scoped to .rem-mod-single).
   ========================================================= */

.rem-mod-single {
  --rem-line: #e6e1d6;
  color: #1f1b16;
  background-color: #f7f8fa;
  padding: 30px 16px 50px;
  box-sizing: border-box;
}
.rem-mod-single *,
.rem-mod-single *::before,
.rem-mod-single *::after { box-sizing: border-box; }
.rem-mod-container { margin: 0 auto; width: 100%; }
.rem-mod-single img { max-width: 100%; height: auto; }

/* ============ HERO header (editorial) ============ */
.rem-mod-hero { background-color: #f7f5ef; }
.rem-mod-hero .rem-mod-pagehead {
  display: block;
  margin-bottom: 18px;
}
.rem-mod-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 14px;
}
/* Featured ribbon (filled) from rem_property_ribbon 'box' */
.rem-mod-hero .featured-text {
  display: inline-block;
  background-color: #9b3f2c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  line-height: 1;
}
.rem-mod-purpose {
  display: inline-block;
  border: 1px solid #cfc8b8;
  color: #5f63a6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  line-height: 1;
}
.rem-mod-listed {
  color: #9a948a;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.rem-mod-headrow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.rem-mod-hero .rem-mod-title {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1a1611;
}
.rem-mod-headprice { text-align: right; white-space: nowrap; padding-top: 6px; }
.rem-mod-hero .rem-mod-price {
  font-size: 30px;
  font-weight: 600;
  color: #1a1611;
  line-height: 1.1;
}
.rem-mod-price-sub {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #9a948a;
  letter-spacing: 0.02em;
}
.rem-mod-subtitle {
  margin: 10px 0 0;
  font-size: 16px;
  color: #6b6459;
  line-height: 1.5;
}

/* ============ SPLIT header (per attached design) ============ */
.rem-mod-split .rem-mod-shead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-bottom: 22px;
}
.rem-mod-shead-main { min-width: 0; }
.rem-mod-shead-main h1 {
  margin-top: 0;
}
.rem-mod-shead-title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #1a1d24;
}
.rem-mod-shead-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: #6b7280;
  font-size: 16px;
}
.rem-mod-shead-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.rem-mod-shead-meta i { font-size: 13px; color: #9aa0aa; }
.rem-mod-shead-status .fa-circle { color: #ff5a5f; font-size: 8px; }
.rem-mod-shead-stats { margin-top: 14px; }
.rem-mod-shead-stats .inline-property-icons { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.rem-mod-shead-stats .inline-property-icons .rem-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #374151;
  font-weight: 600;
  margin-left: 0;
  border-right: 0 !important;
}
.rem-mod-shead-stats .inline-property-icons .rem-info i { color: #2b2b43; font-size: 16px; }

.rem-mod-shead-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.rem-mod-shead-side .rem-property-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.rem-mod-shead-side .rem-action-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  gap: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2ded5;
  border-radius: 8px;
  background-color: #fff;
  color: #555;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.single-rem_property .rem-mod-shead-side .rem-wishlist-btn i {
  font-size: 15px !important;
  margin-right: 0 !important;
}
.rem-mod-shead-side .rem-action-btn .rem-action-label { font-size: 13px; }
.rem-mod-shead-side .rem-action-btn:hover { border-color: #2b2b43; color: #2b2b43; }
.rem-mod-shead-side .rem-action-btn.active { border-color: #2b2b43; background-color: #2b2b43; color: #fff; }
.rem-mod-shead-side .rem-action-btn.rem-wishlist-btn.active { background-color: #e11d48; border-color: #e11d48; color: #fff; }
.rem-mod-shead-price { text-align: right; white-space: nowrap; }
.rem-mod-shead-price .rem-mod-price { font-size: 30px; font-weight: 800; color: #1a1d24; line-height: 1.05; }
.rem-mod-shead-price .rem-mod-price-sub { display: block; margin-top: 2px; font-size: 13px; color: #9aa0aa; }
.rem-mod-price-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-bottom: 2px;
}

/* ============ Gallery ============ */
.rem-mod-gallery {
  position: relative;
  margin-bottom: 18px;
  border-radius: 0;
  overflow: hidden;
}
.rem-mod-gallery img { display: block; }

/* ============ HERO action bar (below gallery) ============ */
.rem-mod-actionbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 13px 2px;
  border-top: 1px solid var(--rem-line);
  border-bottom: 1px solid var(--rem-line);
  margin-bottom: 22px;
}
.rem-mod-actionbar-left { display: flex; align-items: center; flex-wrap: wrap; }
.rem-mod-actionbar .rem-property-actions { display: flex; align-items: center; }
.rem-mod-actionbar .rem-action-btn,
.rem-mod-actionbar .rem-action-tool {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 18px;
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: #5b554c;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  border-left: 1px solid var(--rem-line);
  transition: color 0.2s ease;
}
.rem-mod-actionbar .rem-property-actions .rem-action-btn:first-child,
.rem-mod-actionbar-left > .rem-action-tool:first-child { border-left: 0; padding-left: 0; }
.rem-mod-actionbar .rem-action-btn i,
.rem-mod-actionbar .rem-action-tool i { font-size: 15px !important; color: #8a8276; }
.single-rem_property .rem-mod-actionbar .rem-wishlist-btn i {font-size: 15px !important; margin: 0 !important;}
.rem-mod-actionbar .rem-action-btn:hover,
.rem-mod-actionbar .rem-action-tool:hover { color: #1a1611; }
.rem-mod-actionbar .rem-action-btn:hover i,
.rem-mod-actionbar .rem-action-tool:hover i { color: #1a1611; }
.rem-mod-actionbar .rem-action-btn.active,
.rem-mod-actionbar .rem-action-btn.active i { color: #9b3f2c; }
.rem-mod-actionbar-right .rem-mod-meta { color: #9a948a; font-size: 13px; }
.rem-mod-actionbar-right .rem-mod-meta i { color: #c8a45a; margin-right: 4px; }

/* ============ HERO stat box (table-alt -> bordered columns) ============ */
.rem-mod-statbox { margin-bottom: 28px; overflow-x: auto; }
.rem-mod-statbox .rem-features.detail-alt {
  width: 100%;
  background-color: transparent;
  border: 1px solid var(--rem-line);
  border-radius: 0;
  border-collapse: separate;
  border-spacing: 0;
}
.rem-mod-statbox .rem-features.detail-alt th {
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #615e5a;
  padding: 16px 20px 4px;
  white-space: nowrap;
  vertical-align: bottom;
}
.rem-mod-statbox .rem-features.detail-alt td {
  text-align: left;
  font-size: 19px;
  color: #2a2620;
  padding: 0 20px 16px;
  white-space: nowrap;
}
.rem-mod-statbox .rem-features.detail-alt th:not(:first-child),
.rem-mod-statbox .rem-features.detail-alt td:not(:first-child) { border-left: 1px solid #ece8df; }
.rem-mod-statbox .rem-features.detail-alt th i { margin-right: 5px; color: #b7ad9c; }

/* ============ SPLIT inline stat bar ============ */
.rem-mod-statbar {
  background-color: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 26px;
}
.rem-mod-statbar .inline-property-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.rem-mod-statbar .inline-property-icons .rem-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #374151;
  font-weight: 600;
  border-right: 0 !important;
}
.rem-mod-statbar .inline-property-icons .rem-info i { color: #2b2b43; font-size: 17px; }

/* ============ HERO body: content + sticky sidebar ============ */
.rem-mod-hero .rem-mod-body {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}
.rem-mod-hero .rem-mod-content { flex: 1 1 auto; min-width: 0; }
.rem-mod-hero .rem-mod-sidebar { flex: 0 0 330px; max-width: 330px; width: 100%; }
.rem-mod-hero .rem-mod-sidebar-inner { position: -webkit-sticky; position: sticky; top: 24px; }
.rem-mod-price-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #2b2b43 0%, #1d2533 100%);
  color: #fff;
  border-radius: 0;
  padding: 22px;
  margin-bottom: 20px;
}
.rem-mod-price-card .rem-mod-price-label { color: rgba(255, 255, 255, 0.7); }
.rem-mod-price-card .rem-mod-price { color: #fff; font-size: 28px; font-weight: 800; }

/* ============ SPLIT layout grid ============ */
.rem-mod-split-grid { display: flex; align-items: flex-start; gap: 30px; }
.rem-mod-split-main { flex: 1 1 auto; min-width: 0; }
.rem-mod-split-aside { flex: 0 0 330px; max-width: 330px; width: 100%; }
/* Agent area: no box, no price (price now lives in the header) */
.rem-mod-split-agent { position: -webkit-sticky; position: sticky; top: 24px; }

/* ============ Sections: boxed -> white cards, plain -> no boxes ============ */
.rem-mod-single .rem-section-box { margin-bottom: 24px; }
.rem-mod-single.rem-sections-boxed .rem-section-box {
  background-color: transparent;
  border: 1px solid var(--rem-line);
  border-radius: 0;
  padding: 24px;
  box-shadow: none;
}
.rem-mod-single.rem-sections-plain .rem-section-box {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--rem-line);
}
.rem-mod-single .rem-section-box .section-title { margin-bottom: 16px; padding: 0; border: 0; }
.rem-mod-single .rem-section-box .section-title .title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #1a1611;
  line-height: 1.3;
  border-bottom: 0;
}
.rem-mod-single .rem-section-box .section-title .title i,
.rem-mod-single .rem-section-box .section-title .title .rem-sec-icon { color: #9b3f2c; margin-right: 6px; }
.rem-mod-single .description { color: #45413a; font-size: 16px; line-height: 1.75; }
.rem-mod-single .rem-show-more-content,
.rem-mod-single .rem-show-less-content { color: #9b3f2c; font-weight: 600; text-decoration: none; }

/* ============ Fields: one per row (clean spec list) ============ */
.rem-mod-single .rem-section-box > .details > .row { display: block; margin: 0; }
.rem-mod-single .rem-section-box > .details > .row > [class*="col-"] {
  width: 100%;
  max-width: 100%;
  float: none;
  padding-left: 0;
  padding-right: 0;
  margin-top : 10px;
}
.rem-mod-single .rem-field-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f0ede5;
}
.rem-mod-single .rem-single-field-title { color: #6b6459; font-weight: 600; font-size: 16px; }
.rem-mod-single .rem-single-field-sep { display: none; }
.rem-mod-single .rem-single-field-value { color: #1a1611; font-weight: 700; font-size: 16px; text-align: right; }
.rem-mod-single .details.no-padding { padding: 0; }

/* property features (amenities) keep a comfortable multi-column grid */
.rem-mod-single .property-features-container .row { display: flex; flex-wrap: wrap; margin: 0; }
.rem-mod-single .property-features-container .row > [class*="col-"] { float: none; width: 100%; padding: 0; }
@media (min-width: 600px) {
  .rem-mod-single .property-features-container .row > .col-sm-4 { width: 33.3333%; }
}
.rem-mod-single .property-features-container .detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: #45413a;
  font-weight: 500;
}
.rem-mod-single .property-features-container .detail i { color: #9b3f2c; }

/* ============ Map ============ */
.rem-mod-single .map-container,
.rem-mod-single #map-canvas { width: 100%; min-height: 340px; border-radius: 0; overflow: hidden; }
.rem-mod-single .rem-directions-btn { margin-top: 14px; }

/* ============ Tags ============ */
.rem-mod-single #filter-box { display: flex; flex-wrap: wrap; gap: 8px; }
.rem-mod-single #filter-box .filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: transparent !important;
  color: #45413a;
  padding: 6px 12px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #e6e1d6;
}
.rem-mod-single #filter-box .filter:hover { border-color: #2b2b43; color: #45413a; }

/* ============ Agent card + contact form ============ */
.rem-mod-single .agent-contact-wrapper {
  background-color: transparent;
  border: 1px solid var(--rem-line);
  border-radius: 0;
  padding: 5px;
  margin-bottom: 20px;
  box-shadow: none;
}
.rem-mod-split .rem-gallery-container { margin-top: 0; }
/* Split: agent card without a surrounding box */
.rem-mod-split .agent-contact-wrapper { background: none; border: 0; padding: 0; margin-bottom: 0; border: 1px solid var(--rem-line); }
.rem-mod-single .contact-agent-form .form-group { margin-bottom: 14px; }
.rem-mod-single .contact-agent-form label { display: block; font-size: 13px; font-weight: 600; color: #45413a; margin-bottom: 6px; }
.rem-mod-single .contact-agent-form .form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d8d3c7;
  border-radius: 0;
  font-size: 16px;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rem-mod-single .contact-agent-form .form-control:focus { outline: none; border-color: #2b2b43; box-shadow: 0 0 0 3px rgba(43, 43, 67, 0.12); }
.rem-mod-single .contact-agent-form textarea.form-control { min-height: 110px; resize: vertical; }
.rem-mod-single .contact-agent-form .btn,
.rem-mod-single .rem-mod-content .btn-default {
  display: inline-block;
  color: #fff;
  border: 0;
  border-radius: 0;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.rem-mod-single .contact-agent-form .btn { width: 100%; }
.rem-mod-single .contact-agent-form .btn:hover,
.rem-mod-single .rem-mod-content .btn-default:hover { opacity: 0.9; color: #fff; }

/* ============ Responsive ============ */
@media (max-width: 991px) {
  .rem-mod-hero .rem-mod-body,
  .rem-mod-split-grid { display: block; }
  .rem-mod-hero .rem-mod-sidebar,
  .rem-mod-split-aside { max-width: 100%; margin-top: 30px; }
  .rem-mod-hero .rem-mod-sidebar-inner,
  .rem-mod-split-agent { position: static; }
}
@media (max-width: 600px) {
  .rem-mod-single { padding: 20px 12px 40px; }
  .rem-mod-headrow { flex-direction: column; }
  .rem-mod-headprice { text-align: left; padding-top: 0; }
  .rem-mod-hero .rem-mod-title { font-size: 30px; }
  .rem-mod-hero .rem-mod-price { font-size: 24px; }
  .rem-mod-split .rem-mod-shead { flex-direction: column; }
  .rem-mod-shead-side { align-items: flex-start; }
  .rem-mod-shead-price { text-align: left; }
  .rem-mod-shead-title { font-size: 24px; }
  .rem-mod-single.rem-sections-boxed .rem-section-box { padding: 18px; }
}
