:root {
  --rep-bg: #f8f9ff;
  --rep-surface: #ffffff;
  --rep-surface-soft: #f8f9ff;
  --rep-surface-container-low: #f8f9ff;
  --rep-surface-container-high: #e2e8f0;
  --rep-text: #1e293b; /* Charminar Slate */
  --rep-muted: #64748b;
  --rep-brand: #c29d5b; /* Royal Deccan Gold */
  --rep-brand-hover: #b08d48;
  --rep-border: #e2e8f0; /* Boundary Grey */
  --rep-success: #10b981; /* Trust Green */
  --rep-warning: #FF6716; /* Energy Orange */
  --rep-brand-gradient: linear-gradient(45deg, var(--rep-brand), #d4b47a);
  
  --rep-font-serif: 'Playfair Display', Georgia, serif;
  --rep-font-sans: 'Inter', system-ui, sans-serif;
  
  --rep-radius-lg: 16px;
  --rep-radius-md: 8px;
  --rep-radius-sm: 4px;
  --rep-radius-full: 9999px;
  
  --rep-shadow-soft: 0 4px 20px rgba(45, 52, 54, 0.05);
  --rep-shadow-elevated: 0 10px 30px rgba(45, 52, 54, 0.08);
  
  --rep-space-1: 8px;
  --rep-space-2: 16px;
  --rep-space-3: 24px;
  --rep-space-4: 32px;
  --rep-space-5: 40px;
  --rep-space-6: 48px;
}

.rep-archive {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  font-family: var(--rep-font-sans);
  color: var(--rep-text);
  box-sizing: border-box;
}
.rep-archive-head {
  margin-bottom: 32px;
}
.rep-archive-head h1 {
  font-family: var(--rep-font-serif);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--rep-text);
  margin: 0 0 8px 0;
  line-height: 1.2;
}
.rep-archive-head p {
  font-family: var(--rep-font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--rep-muted);
  max-width: 680px;
  margin: 0;
}

.rep-single {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.25rem;
}

.rep-property-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.rep-grid-home {
  grid-template-columns: 1fr;
}

.rep-home-preview {
  display: grid;
  gap: 1.1rem;
}

.rep-home-preview-title {
  margin: 0;
}

.rep-archive-shell {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

.rep-filter-sidebar {
  background: transparent;
  border: 0;
  padding: 0;
}

.rep-filter-sidebar-inner {
  background: var(--rep-surface-soft);
  border: 1px solid var(--rep-border);
  border-radius: var(--rep-radius-lg);
  padding: 24px;
  box-sizing: border-box;
}

.rep-filter-sidebar-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  width: 100%;
}

.rep-filter-sidebar-head h3 {
  font-family: var(--rep-font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--rep-text);
  margin: 0 0 4px;
}

.rep-filter-sidebar-sub {
  font-family: var(--rep-font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rep-muted);
  margin: 0 0 24px 0;
}

.rep-filter-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  display: none;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0;
}

.rep-filter-form {
  display: grid;
  gap: 1.6rem;
}

.rep-filter-form label,
.rep-filter-group p {
  font-family: var(--rep-font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--rep-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px 0;
  display: block;
}

/* Wrapper for search field with icon */
.rep-search-wrapper {
  position: relative;
  width: 100%;
}
.rep-search-wrapper .rep-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rep-muted);
  font-size: 20px;
  pointer-events: none;
}
.rep-search-wrapper input[type="search"] {
  padding-left: 40px !important;
}

.rep-filter-form input[type="text"],
.rep-filter-form input[type="search"],
.rep-filter-form select,
.rep-multiselect-trigger {
  min-height: 42px;
  border: 1px solid var(--rep-border);
  border-radius: var(--rep-radius-md);
  padding: .55rem .7rem;
  background: #ffffff;
  color: var(--rep-text);
  font-family: var(--rep-font-sans);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.rep-filter-form input[type="text"]:focus,
.rep-filter-form input[type="search"]:focus,
.rep-filter-form select:focus,
.rep-multiselect-dropdown.is-active .rep-multiselect-trigger {
  border-color: var(--rep-brand);
  outline: none;
  box-shadow: 0 0 0 1px var(--rep-brand);
}

.rep-filter-group { display: flex; flex-direction: column; gap: 0.35rem; }
.rep-range-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }

/* Range Sliders */
.rep-range-slider {
  --rep-handle-size: 16px;
  --rep-handle-radius: calc(var(--rep-handle-size) / 2);
  --rep-track-base: var(--rep-border);
  --rep-track-active: var(--rep-brand);
  display: grid;
  gap: .5rem;
  padding: .25rem .1rem .25rem;
  border: 0;
  background: transparent;
}
.rep-range-slider-track {
  --rep-min-ratio: 0;
  --rep-max-ratio: 1;
  --rep-track-height: 4px;
  position: relative;
  height: var(--rep-handle-size);
  overflow: visible;
}
.rep-range-slider-track::before {
  content: "";
  position: absolute;
  left: var(--rep-handle-radius);
  right: var(--rep-handle-radius);
  top: 50%;
  height: var(--rep-track-height);
  transform: translateY(-50%);
  border-radius: var(--rep-radius-full);
  background: var(--rep-track-base);
}
.rep-range-slider-track::after {
  content: "";
  position: absolute;
  top: 50%;
  height: var(--rep-track-height);
  transform: translateY(-50%);
  border-radius: var(--rep-radius-full);
  background: var(--rep-track-active);
  left: calc(var(--rep-handle-radius) + ((100% - var(--rep-handle-size)) * var(--rep-min-ratio)));
  width: calc((100% - var(--rep-handle-size)) * (var(--rep-max-ratio) - var(--rep-min-ratio)));
  transition: left .15s ease, width .15s ease;
}
.rep-range-slider input[type="range"] {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: var(--rep-handle-size);
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  z-index: 1;
}
.rep-range-slider input[type="range"]:active { cursor: pointer; }
.rep-range-slider input[type="range"][data-rep-range-min] { z-index: 2; }
.rep-range-slider input[type="range"][data-rep-range-max] { z-index: 3; }

.rep-range-slider input[type="hidden"] {
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.rep-range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--rep-handle-size);
  height: var(--rep-handle-size);
  border-radius: 50%;
  background: var(--rep-brand);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform .15s ease;
  pointer-events: auto;
  cursor: pointer;
}
.rep-range-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}
.rep-range-slider input[type="range"]::-webkit-slider-runnable-track {
  height: var(--rep-handle-size);
  background: transparent;
}
.rep-range-slider input[type="range"]::-moz-range-thumb {
  width: var(--rep-handle-size);
  height: var(--rep-handle-size);
  border-radius: 50%;
  background: var(--rep-brand);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform .15s ease;
  pointer-events: auto;
  cursor: pointer;
}
.rep-range-slider input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.1);
}
.rep-range-slider input[type="range"]::-moz-range-track {
  height: var(--rep-handle-size);
  background: transparent;
}
.rep-range-slider input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(197, 160, 89, .2), 0 2px 4px rgba(0,0,0,0.1);
}
.rep-range-slider input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(197, 160, 89, .2), 0 2px 4px rgba(0,0,0,0.1);
}
.rep-range-values {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 0;
  gap: 10px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--rep-text);
  margin-top: 4px;
}
.rep-range-values span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: var(--rep-radius-sm);
  background: #ffffff;
  border: 1px solid var(--rep-border);
  color: var(--rep-text);
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,0.01);
}
.rep-range-values span:first-child { margin-right: auto; }
.rep-range-values span:last-child { margin-left: auto; }

/* Checkbox Button Groups */
.rep-checkbox-grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}
.rep-checkbox-grid label {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rep-border);
  background: #ffffff;
  color: var(--rep-text);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  margin: 0 !important;
  min-width: 44px;
  height: 40px;
  box-sizing: border-box;
}
.rep-checkbox-grid label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}
.rep-checkbox-grid label:hover {
  border-color: var(--rep-brand);
}
.rep-checkbox-grid label:has(input[type="checkbox"]:checked) {
  background: var(--rep-brand) !important;
  border-color: var(--rep-brand) !important;
  color: #ffffff !important;
  font-weight: 700;
}
.rep-filter-group:has(input[name="bedrooms[]"]) .rep-checkbox-grid label {
  border-radius: var(--rep-radius-md);
}
.rep-filter-group:has(input[name="bathrooms[]"]) .rep-checkbox-grid label {
  border-radius: var(--rep-radius-full);
}

/* Actions in sidebar form */
.rep-filter-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.rep-filter-actions .rep-btn-primary {
  background: var(--rep-brand) !important;
  border-color: var(--rep-brand) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-align: center;
  border-radius: var(--rep-radius-full) !important;
  padding: 12px 24px !important;
  font-size: 0.95rem !important;
  box-shadow: var(--rep-shadow-soft);
  cursor: pointer;
  transition: all 0.2s ease;
  display: block;
  width: 100%;
}
.rep-filter-actions .rep-btn-primary:hover {
  background: var(--rep-brand-hover) !important;
  border-color: var(--rep-brand-hover) !important;
  box-shadow: var(--rep-shadow-elevated);
}
.rep-filter-actions .rep-btn:not(.rep-btn-primary) {
  border: 0 !important;
  background: transparent !important;
  color: rgba(45, 52, 54, 0.6) !important;
  font-weight: 600 !important;
  text-align: center !important;
  font-size: 0.9rem !important;
  cursor: pointer;
  transition: color 0.2s ease;
  display: block;
  width: 100%;
}
.rep-filter-actions .rep-btn:not(.rep-btn-primary):hover {
  color: var(--rep-brand) !important;
}

.rep-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .75rem;
}

.rep-filter-chip {
  border: 1px solid var(--rep-border);
  border-radius: var(--rep-radius-full);
  padding: .25rem .8rem;
  color: var(--rep-text);
  background: #ffffff;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rep-filter-chip:hover {
  background: var(--rep-surface-soft);
  border-color: var(--rep-brand);
  color: var(--rep-brand);
}
.rep-filter-clear {
  align-self: center;
  font-size: .85rem;
  color: var(--rep-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.rep-filter-clear:hover {
  color: var(--rep-brand);
}

.rep-sorting-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--rep-surface);
  border: 1px solid var(--rep-border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(45, 52, 54, 0.02);
  box-sizing: border-box;
}

.rep-result-count {
  margin: 0;
  color: var(--rep-muted);
  font-family: var(--rep-font-sans);
  font-size: 0.92rem;
  font-weight: 500;
}
.rep-result-count strong {
  color: var(--rep-text);
  font-weight: 700;
}

.rep-sorting-bar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rep-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--rep-surface-container-high); /* #dfeaef */
  border-radius: var(--rep-radius-md);
  border: 0;
}

.rep-view-btn {
  text-decoration: none !important;
  border-radius: var(--rep-radius-sm);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rep-muted);
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  background: transparent;
}
.rep-view-btn .material-symbols-outlined {
  font-size: 20px;
  color: var(--rep-muted);
  transition: color 0.2s ease;
}

.rep-view-btn.is-active {
  background: var(--rep-surface) !important;
  color: var(--rep-brand) !important; /* Royal Deccan Gold */
  box-shadow: 0 2px 6px rgba(45, 52, 54, 0.05);
}
.rep-view-btn.is-active .material-symbols-outlined {
  color: var(--rep-brand);
}

.rep-sort-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.rep-sort-form select {
  background: transparent;
  border: none !important;
  padding: 8px 28px 8px 12px;
  font-family: var(--rep-font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rep-muted);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  outline: none !important;
  box-shadow: none !important;
  min-width: 100px;
}
.rep-sort-form select:focus {
  outline: none !important;
  box-shadow: none !important;
}

.rep-property-card {
  border: 1px solid var(--rep-border);
  border-radius: var(--rep-radius-lg);
  overflow: hidden;
  background: var(--rep-surface);
  box-shadow: var(--rep-shadow-soft);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
}

.rep-property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--rep-shadow-elevated);
}

.rep-property-card-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
}
.rep-property-card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--rep-surface-soft);
}
.rep-property-thumb { display: block; width: 100%; height: 100%; object-fit: cover; }
.rep-property-thumb-placeholder { background: linear-gradient(135deg, #e8f1ef, #f6f8fb); }

/* Badges overlaying image */
.rep-property-card-media-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  z-index: 10;
}
.rep-card-status-badge {
  background: var(--rep-success); /* Heritage Teal */
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--rep-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: inline-block;
}
.rep-card-status-badge.status-for-sale,
.rep-card-status-badge.status-for_sale {
  background: var(--rep-success); /* Heritage Teal #116D6A */
}
.rep-card-status-badge.status-new-launch,
.rep-card-status-badge.status-new_launch {
  background: var(--rep-warning); /* Energy Orange #FF6716 */
}
.rep-card-signature-badge {
  background: var(--rep-brand-gradient);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--rep-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

/* Wishlist Heart Button overlaying image */
.rep-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(45, 52, 54, 0.3);
  border: 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0;
}
.rep-wishlist-btn:hover {
  background: rgba(45, 52, 54, 0.6);
  transform: scale(1.05);
}
.rep-wishlist-btn .material-symbols-outlined {
  font-size: 20px;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  transition: color 0.2s ease, font-variation-settings 0.2s ease;
}
.rep-wishlist-btn:hover .material-symbols-outlined,
.rep-wishlist-btn.is-active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
}
.rep-wishlist-btn.is-active {
  color: var(--rep-warning);
}

.rep-property-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.rep-card-meta-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.rep-card-builder {
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  border-radius: var(--rep-radius-sm);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin: 0;
}
.rep-card-rera {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--rep-success);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rep-card-rera .material-symbols-outlined {
  font-size: 14px;
  font-variation-settings: 'FILL' 1;
}

.rep-property-title {
  margin: 0 0 2px 0;
  font-family: var(--rep-font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--rep-text);
  min-height: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rep-property-location {
  margin: 0 0 8px 0;
  color: var(--rep-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
}
.rep-property-location .material-symbols-outlined {
  font-size: 16px;
  color: var(--rep-muted);
}

/* Card Stats Section */
.rep-card-stats-section {
  border-top: 1px solid var(--rep-border);
  border-bottom: 1px solid var(--rep-border);
  padding: 12px 0;
  margin: 4px 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rep-card-stats-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rep-card-stats-primary .rep-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: flex-start;
}
.rep-card-stats-primary .rep-stat-item:not(:last-child) {
  border-right: 1px solid var(--rep-border);
  padding-right: 8px;
}
.rep-card-stats-secondary {
  border-top: 1px dashed var(--rep-border);
  padding-top: 12px;
}
.rep-card-stats-secondary .rep-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rep-stat-item .rep-stat-icon {
  font-size: 18px;
  color: var(--rep-muted);
}
.rep-stat-item .rep-stat-text {
  font-size: 0.82rem;
  color: var(--rep-text);
  line-height: 1.2;
}
.rep-stat-item .rep-stat-text strong {
  font-weight: 600;
}

/* Card Footer */
.rep-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  gap: 12px;
}
.rep-card-price-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rep-card-price-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--rep-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.rep-property-price {
  margin: 0;
  color: var(--rep-brand); /* Royal Deccan Gold */
  font-family: var(--rep-font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}
.rep-property-price .rep-price-num {
  font-size: 1em;
  font-weight: 800;
  color: var(--rep-brand);
}
.rep-property-price .rep-price-unit {
  font-size: 0.65em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--rep-brand);
  margin-left: 2px;
}
.rep-property-price .rep-price-dash {
  font-size: 0.85em;
  color: var(--rep-brand);
  margin: 0 4px;
  font-weight: 400;
}

.rep-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2d3436; /* Charcoal/Slate */
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: var(--rep-radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
  border: 0;
}
.rep-property-card:hover .rep-card-btn {
  background: #000000;
}


.rep-property-grid.rep-view-list {
  grid-template-columns: 1fr;
}
.rep-property-grid.rep-view-list .rep-property-card-link {
  flex-direction: row;
  align-items: stretch;
}
.rep-property-grid.rep-view-list .rep-property-card-media {
  flex: 0 0 240px;
  width: 240px;
}
.rep-property-grid.rep-view-list .rep-property-card-content {
  padding: 1rem 1.1rem;
}

.rep-archive-pagination-wrap { margin-top: 1rem; }
.rep-load-more-wrap {
  text-align: center;
  margin: .9rem 0 .8rem;
  display: flex;
  justify-content: center;
}
.rep-pagination ul { list-style: none; display: flex; gap: .4rem; padding: 0; flex-wrap: wrap; }

/* Custom multi-select dropdown */
.rep-multiselect-dropdown {
  position: relative;
  width: 100%;
}

.rep-multiselect-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  border: 1px solid #d8e0e8;
  border-radius: 10px;
  padding: .55rem .7rem;
  background: #fff;
  cursor: pointer;
  font-size: .92rem;
  color: #334155;
  text-align: left;
  outline: none;
}

.rep-multiselect-trigger:focus-visible {
  border-color: #0f766e;
}

.rep-multiselect-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 20px);
  display: inline-block;
}

.rep-multiselect-trigger i {
  font-size: 0.8rem;
  color: #64748b;
  transition: transform 0.2s ease;
}

.rep-multiselect-dropdown.is-active .rep-multiselect-trigger i {
  transform: rotate(180deg);
}

.rep-multiselect-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: none;
  max-height: 240px;
  overflow-y: auto;
  box-sizing: border-box;
}

.rep-multiselect-dropdown.is-active .rep-multiselect-menu {
  display: block;
}

.rep-multiselect-no-options {
  padding: 10px 12px;
  color: #64748b;
  font-size: 0.88rem;
  text-align: center;
}

.rep-multiselect-options {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rep-multiselect-option {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-weight: 500 !important;
  color: #334155;
  margin: 0 !important;
}

.rep-multiselect-option:hover {
  background: #f1f5f9;
}

.rep-multiselect-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  border-radius: var(--rep-radius-sm);
  accent-color: var(--rep-brand);
  margin: 0;
  cursor: pointer;
}

.rep-multiselect-option span {
  font-size: 0.88rem;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rep-mobile-filter-toggle {
  display: none;
}

.rep-btn {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: var(--rep-radius-full);
  text-decoration: none;
  border: 1px solid var(--rep-brand);
  color: var(--rep-brand);
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
}
.rep-btn:hover {
  background: var(--rep-brand);
  color: #ffffff;
}

.rep-btn-primary {
  background: var(--rep-brand);
  color: #fff;
  border-color: var(--rep-brand);
}
.rep-btn-primary:hover {
  background: var(--rep-brand-hover);
  border-color: var(--rep-brand-hover);
}

.rep-view-more-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: .25rem;
}

.rep-view-more-wrap .rep-btn {
  min-height: 44px;
  padding: .62rem 2rem;
  border-radius: var(--rep-radius-full);
  line-height: 1.1;
}

@media (min-width: 768px) {
  .rep-grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rep-property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rep-related-grid { grid-template-columns: repeat(2, minmax(0, 360px)); max-width: none; justify-content: start; }
}

@media (min-width: 1024px) {
  .rep-archive-shell { grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
  .rep-filter-sidebar { background: transparent; }
  .rep-filter-sidebar-inner { position: sticky; top: 90px; }
  .rep-property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rep-grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rep-mobile-filter-toggle { display: none; }
}

@media (min-width: 1300px) {
  .rep-archive-shell { grid-template-columns: 360px minmax(0, 1fr); gap: 1.5rem; }
}

@media (max-width: 1023px) {
  body.rep-filters-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  .rep-mobile-filter-toggle {
    display: flex;
    position: sticky;
    top: 60px; /* sit below Salient header */
    left: 0;
    right: 0;
    width: 100%;
    border-radius: var(--rep-radius-md);
    background: var(--rep-brand);
    color: #fff;
    padding: 0.8rem 1.2rem;
    z-index: 99;
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.25);
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 1.25rem;
    border: 0;
    cursor: pointer;
  }

  .admin-bar .rep-mobile-filter-toggle {
    top: 106px; /* 46px admin bar + 60px header */
  }

  .rep-filter-sidebar {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    overflow: hidden;
  }

  .rep-filter-sidebar.is-open {
    display: flex;
  }

  .rep-filter-sidebar-inner {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    padding: 24px;
    box-shadow: 0 -10px 25px rgba(15, 23, 42, 0.15);
    max-height: 85vh;
    max-height: 85dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    animation: repSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes repSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .rep-filter-sidebar-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--rep-border);
    margin-bottom: 1rem;
  }

  .rep-filter-sidebar-head h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rep-text);
  }
  
  .rep-filter-sidebar-head .rep-filter-sidebar-sub {
    display: none;
  }

  .rep-filter-close {
    border: 0;
    background: var(--rep-surface-soft);
    font-size: 1.5rem;
    color: var(--rep-text);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s ease;
    position: static;
  }

  .rep-filter-close:hover {
    background: var(--rep-border);
  }

  .rep-filter-form-sidebar {
    display: grid;
    gap: 1.5rem;
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
  }

  .rep-sorting-bar { flex-wrap: wrap; }
  .rep-property-grid.rep-view-list .rep-property-card-link { flex-direction: column; }
  .rep-property-grid.rep-view-list .rep-property-card-media { width: 100%; flex-basis: auto; }
}

/* Premium single page */
.rep-single {
  --rep-radius-lg: 16px;
  --rep-radius-md: 8px;
  --rep-radius-sm: 4px;
  --rep-shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --rep-shadow-elevated: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --rep-space-1: 8px;
  --rep-space-2: 16px;
  --rep-space-3: 24px;
  --rep-space-4: 32px;
  --rep-space-5: 40px;
  --rep-space-6: 48px;
  --rep-header-offset: 16px;
  max-width: 1440px;
  padding: var(--rep-space-4) var(--rep-space-3) var(--rep-space-6);
  background: var(--rep-bg);
  font-family: 'Inter', sans-serif;
  color: var(--rep-text);
}

.rep-single h1,
.rep-single h2,
.rep-single h3,
.rep-single h4,
.rep-single .font-display {
  font-family: 'Playfair Display', serif;
}

.rep-listing-wrap { display: grid; gap: var(--rep-space-4); color: var(--rep-text); }
.rep-hero-split { display: grid; gap: var(--rep-space-4); }

.rep-hero-details-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rep-hero-details {
  background: var(--rep-surface);
  border-radius: var(--rep-radius-lg);
  border: 1px solid var(--rep-border);
  box-shadow: var(--rep-shadow-soft);
  display: flex;
  flex-direction: column;
  align-content: start;
  gap: 24px;
  padding: 24px;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .rep-hero-details {
    padding: 32px;
  }
}

.rep-side-visit-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}
.rep-side-visit-cta h3 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--rep-text);
}
.rep-side-visit-cta p {
  margin: 0;
  color: var(--rep-muted);
  font-size: 16px;
  line-height: 1.6;
}

.rep-hero-title-area {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
.rep-hero-title-area h1 {
  font-family: var(--rep-font-serif) !important;
  font-size: 48px !important;
  line-height: 56px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: var(--rep-text) !important;
  margin: 0 !important;
}
@media (max-width: 767px) {
  .rep-hero-title-area h1 {
    font-size: 36px !important;
    line-height: 44px !important;
  }
}

.rep-listing-location {
  margin: 0 !important;
  color: var(--rep-muted) !important;
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 400 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-family: var(--rep-font-sans) !important;
}
.rep-listing-location i { color: var(--rep-brand) !important; }
.rep-head-pills { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 12px; }
.rep-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  border-radius: var(--rep-radius-md) !important; /* 8px rounded */
  border: 1px solid var(--rep-border) !important;
  background: var(--rep-bg) !important; /* #f8f9ff */
  color: var(--rep-muted) !important; /* #64748b */
  font-family: var(--rep-font-sans) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
  padding: 4px 12px !important;
  box-shadow: none !important;
}
.rep-pill i {
  font-size: 14px !important;
  color: var(--rep-muted) !important;
}

.rep-listing-price-block {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 32px !important; /* p-8 */
  border-radius: 16px !important; /* rounded-2xl */
  background: var(--rep-text) !important; /* #1e293b */
  color: #ffffff !important;
  border: 1px solid var(--rep-border) !important;
  box-shadow: var(--rep-shadow-soft) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important; /* space-y-4 */
  box-sizing: border-box !important;
}
.rep-price-caption {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.7) !important; /* opacity-70 */
  font-family: var(--rep-font-sans) !important;
  font-size: 14px !important; /* text-label-sm */
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important; /* tracking-widest */
  font-weight: 600 !important;
  line-height: 20px !important;
}
.rep-overall-price {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 36px !important; /* text-h2 font-display text-royal-deccan-gold */
  line-height: 44px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  font-family: var(--rep-font-serif) !important;
  color: var(--rep-brand) !important; /* royal-deccan-gold */
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  row-gap: 4px !important;
}
.rep-overall-price .rep-price-num {
  font-size: 1em !important;
  font-weight: 600 !important;
  color: var(--rep-brand) !important;
}
.rep-overall-price .rep-price-unit {
  font-size: 1em !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: var(--rep-brand) !important;
  opacity: 1 !important;
  margin-left: 4px !important;
  margin-right: 4px !important;
}
.rep-overall-price .rep-price-dash {
  font-size: 1em !important;
  color: var(--rep-brand) !important;
  opacity: 1 !important;
  margin: 0 8px !important;
  font-weight: 600 !important;
}

.rep-price-footer-line {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-top: 24px !important; /* pt-6 */
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important; /* border-white/10 */
}
.rep-sqft-price {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.9) !important; /* text-body-md opacity-90 */
  font-family: var(--rep-font-sans) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
}
.rep-price-amenities {
  display: flex !important;
  gap: 16px !important;
}
.rep-price-amenities i {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 24px !important;
  cursor: pointer !important;
  transition: color 0.2s !important;
}
.rep-price-amenities i:hover {
  color: #ffffff !important;
}

/* Generic Price range formatting utilities */
.rep-price-num {
  font-weight: 700;
}
.rep-price-unit {
  font-size: 0.72em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.9;
  margin-left: 1px;
  display: inline-block;
  vertical-align: baseline;
}
.rep-price-dash {
  font-size: 0.85em;
  opacity: 0.5;
  margin: 0 3px;
  font-weight: 400;
}


.rep-hero-gallery { display: grid; gap: var(--rep-space-2); }
.rep-hero-main {
  border-radius: var(--rep-radius-lg);
  overflow: hidden;
  background: #e5e8e6;
  position: relative;
  box-shadow: var(--rep-shadow-soft);
  aspect-ratio: 3 / 2;
  isolation: isolate;
  width: 100%;
}
.rep-hero-main-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.rep-hero-main:hover .rep-hero-main-img { transform: scale(1.03); }

.rep-hero-badges {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  gap: 12px;
  z-index: 10;
}
.brand-gradient-badge {
  background: var(--rep-brand-gradient);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.rep-badge-rera {
  background: var(--rep-success);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rep-badge-rera i {
  font-size: 16px;
}

.rep-hero-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--rep-space-2);
  align-items: stretch;
}
.rep-thumb-btn {
  border: 1px solid var(--rep-border);
  border-radius: var(--rep-radius-lg);
  padding: 0;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  box-shadow: var(--rep-shadow-soft);
  transition: transform .24s ease, box-shadow .24s ease;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.rep-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fancybox anchor helpers should not occupy grid cells */
.rep-fancybox-item {
  display: none !important;
}
.rep-thumb-btn:hover, .rep-thumb-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 23, 42, .14); }
.rep-thumb-btn.is-active { outline: 2px solid rgba(15,118,110,.35); outline-offset: 2px; }
.rep-lightbox-open { position: absolute; right: var(--rep-space-2); bottom: var(--rep-space-2); border: 1px solid rgba(255,255,255,0.75); background: rgba(7, 15, 18, 0.55); color: #fff; border-radius: 999px; padding: .65rem .95rem; font-weight: 600; cursor: pointer; }

.rep-top-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rep-space-1);
  margin-top: var(--rep-space-1);
}
.rep-top-amenity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #edf6f4;
  color: #11433c;
  padding: 8px 12px;
  font-size: .84rem;
  font-weight: 500;
}
.rep-top-amenity i {
  font-size: .9rem;
  width: 14px;
  text-align: center;
}

.rep-listing-body { display: grid; gap: var(--rep-space-4); }
.rep-listing-main { display: grid; gap: var(--rep-space-4); }
.rep-card-section {
  background: var(--rep-surface);
  border-radius: var(--rep-radius-lg);
  padding: var(--rep-space-4);
  box-shadow: var(--rep-shadow-soft);
}
.rep-card-section h2 { margin: 0 0 var(--rep-space-2); font-size: clamp(1.25rem, 2.4vw, 1.72rem); letter-spacing: -.01em; }
.rep-section-intro { margin: 0 0 var(--rep-space-3); color: var(--rep-muted); line-height: 1.7; }
.rep-prose { color: var(--rep-text); line-height: 1.9; font-size: 1rem; }

.rep-specs-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rep-border);
  padding-bottom: 24px;
  margin-bottom: 32px;
}
.rep-specs-section-header h2 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--rep-text);
}
.rep-specs-id-badge {
  font-size: 14px;
  font-weight: 600;
  color: var(--rep-brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.rep-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 768px) {
  .rep-specs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.rep-spec-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--rep-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--rep-shadow-soft);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.rep-spec-card:hover {
  border-color: var(--rep-brand);
  box-shadow: var(--rep-shadow-elevated);
}
.rep-spec-card i {
  color: var(--rep-brand);
  font-size: 28px;
  line-height: 1;
}
.rep-spec-card-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rep-spec-card-label {
  color: var(--rep-muted);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.rep-spec-card-value {
  color: var(--rep-text);
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.rep-overview-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rep-border);
}
.rep-checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rep-checklist-item i {
  color: var(--rep-success);
  font-size: 20px;
}
.rep-checklist-item span {
  font-size: 16px;
  font-weight: 500;
  color: var(--rep-text);
}

.rep-overview-location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--rep-space-4);
}

.rep-location-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
  margin-top: 24px;
}
.rep-location-grid-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rep-location-grid-label {
  color: var(--rep-muted);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.rep-location-grid-value {
  color: var(--rep-text);
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.rep-map-frame-new {
  height: 320px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--rep-border);
  position: relative;
  box-shadow: var(--rep-shadow-soft);
}
.rep-map-frame-new iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(80%) opacity(80%);
  transition: filter 0.5s ease, opacity 0.5s ease;
}
.rep-map-frame-new:hover iframe {
  filter: grayscale(0%) opacity(100%);
}
.rep-map-pin-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rep-map-pin-inner {
  position: relative;
  width: 48px;
  height: 48px;
}
.rep-map-pin-pulse {
  position: absolute;
  top: -10px;
  left: -20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rep-brand);
  animation: repPulse 2s infinite ease-in-out;
  opacity: 0.5;
}
.rep-map-pin-icon {
  font-size: 48px;
  color: var(--rep-brand);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}
@keyframes repPulse {
  0% {
    transform: scale(0.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.rep-rera-broker-card {
  background: #ffffff;
  border: 1px solid var(--rep-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--rep-shadow-soft);
  box-sizing: border-box;
}
.rep-rera-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--rep-brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
  flex-shrink: 0;
}
.rep-rera-icon-box i {
  font-size: 32px;
}
.rep-rera-details-block {
  display: flex;
  flex-direction: column;
}
.rep-rera-kicker {
  font-size: 14px;
  font-weight: 600;
  color: var(--rep-success);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 4px;
}
.rep-rera-reg-num {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--rep-text);
  margin: 0;
}

#rep-map { width: 100%; min-height: 380px; background: #dce4ea; border-radius: var(--rep-radius-lg); }

.rep-listing-side { display: grid; gap: var(--rep-space-3); }
.rep-side-card {
  background: #ffffff;
  border: 1px solid var(--rep-border);
  border-radius: var(--rep-radius-lg);
  padding: var(--rep-space-3);
  box-shadow: var(--rep-shadow-soft);
  transition: transform .24s ease, box-shadow .24s ease;
  box-sizing: border-box;
}
.rep-side-card:hover { transform: translateY(-2px); box-shadow: var(--rep-shadow-elevated); }
.rep-side-card h3 { margin: 0 0 var(--rep-space-1); }
.rep-side-card p { margin: 0 0 var(--rep-space-2); color: var(--rep-muted); line-height: 1.7; }
.rep-side-card-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.rep-side-card-actions .rep-btn {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s;
}

.rep-side-card-actions .rep-btn-primary.rep-btn-whatsapp {
  border-color: var(--rep-success);
  background: var(--rep-success);
  color: #fff;
}
.rep-side-card-actions .rep-btn-primary.rep-btn-whatsapp:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.rep-side-card-actions .rep-btn:not(.rep-btn-primary) {
  border-color: var(--rep-border);
  background: #fff;
  color: var(--rep-text);
}
.rep-side-card-actions .rep-btn:not(.rep-btn-primary):hover {
  background: var(--rep-surface-soft);
  transform: translateY(-1px);
}

.rep-btn-whatsapp i {
  font-size: 1.1rem;
  line-height: 1;
}

.rep-side-facts { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.rep-side-facts li { font-size: .94rem; color: #334155; }

.rep-related-section { display: grid; gap: var(--rep-space-3); }
.rep-related-head h2 { margin: 0; }
.rep-related-head p { margin: var(--rep-space-1) 0 0; color: var(--rep-muted); }
.rep-related-grid { display: grid; grid-template-columns: 1fr; gap: var(--rep-space-3); max-width: 360px; margin: 0; }
.rep-related-section .rep-property-card { border: 0; box-shadow: var(--rep-shadow-soft); }

.rep-reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.rep-reveal.is-visible { opacity: 1; transform: translateY(0); }

.rep-share-float {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 140;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.rep-share-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 118, 110, .95);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 10px 22px rgba(15, 118, 110, .3);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.rep-share-icon-btn:hover {
  transform: translateX(-2px);
  box-shadow: 0 14px 24px rgba(15, 118, 110, .35);
}

@media (min-width: 1024px) {
  .rep-hero-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .rep-hero-gallery {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "thumbs";
    align-items: stretch;
  }
  .rep-hero-main { grid-area: main; }
  .rep-hero-thumbs {
    grid-area: thumbs;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  .rep-hero-thumbs .rep-thumb-btn {
    aspect-ratio: 1 / 1;
    border-radius: 10px !important;
    overflow: hidden;
  }
  .rep-hero-thumbs .rep-thumb-btn img,
  .rep-hero-thumbs .rep-thumb-btn picture,
  .rep-hero-thumbs .rep-thumb-btn picture img,
  .rep-hero-thumbs .rep-thumb-btn .attachment-thumbnail {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0 !important;
    clip-path: none !important;
  }
  .rep-listing-body { grid-template-columns: 1fr; align-items: start; }
  .rep-overview-location-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }
}

@media (max-width: 1023px) {
  .rep-single { padding: var(--rep-space-3) var(--rep-space-2) var(--rep-space-5); }
  .rep-listing-head { align-items: flex-start; }
  .rep-facts-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .rep-hero-main { aspect-ratio: 16 / 10; }
  .rep-listing-price-block { max-width: 100%; }
}

@media (max-width: 767px) {
  .rep-listing-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--rep-space-3);
  }

  .rep-listing-side {
    display: grid !important;
    gap: var(--rep-space-2);
  }

  .rep-hero-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--rep-space-2);
  }

  .rep-hero-main {
    aspect-ratio: 16 / 10;
    max-height: 360px;
  }

  .rep-hero-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .rep-thumb-btn {
    border-radius: 10px !important;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    width: 100%;
    display: block;
    align-self: stretch;
    justify-self: stretch;
  }

  .rep-thumb-btn img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0 !important;
    object-fit: cover;
  }

  .rep-hero-thumbs .rep-thumb-btn,
  .rep-hero-thumbs .rep-thumb-btn img,
  .rep-hero-thumbs .rep-thumb-btn picture,
  .rep-hero-thumbs .rep-thumb-btn picture img,
  .rep-hero-thumbs .rep-thumb-btn .attachment-thumbnail {
    border-radius: 0 !important;
    clip-path: none !important;
  }

  .rep-lightbox-open {
    padding: .45rem .75rem;
    font-size: .85rem;
  }

  .rep-share-float {
    right: 8px;
    top: auto;
    bottom: 16px;
    transform: none;
    grid-auto-flow: column;
  }

  .rep-side-card-actions .rep-btn {
    width: 100%;
  }
}

/* Mobile Sticky Action Bar styling */
.rep-mobile-sticky-bar {
  display: none;
}

@media (max-width: 1023px) {
  .rep-mobile-sticky-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
  }
  
  .rep-mobile-sticky-bar-inner {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .rep-mobile-sticky-bar-inner .rep-btn {
    flex: 1;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1;
    text-align: center;
  }
  
  .rep-single {
    padding-bottom: calc(var(--rep-space-6) + 80px) !important;
  }
}

/* -------------------------------------------------------------
   Stitch Layout Styling Overrides & Parent Theme Alignments
   ------------------------------------------------------------- */

/* Page background alignments */
body.single-property,
body.archive.post-type-archive-property,
body.page-template-page-properties {
  background-color: var(--rep-bg) !important;
}
body.single-property #ajax-content-wrap,
body.single-property .container-wrap,
body.single-property #ajax-content-wrap .container-wrap,
body.archive.post-type-archive-property #ajax-content-wrap,
body.archive.post-type-archive-property .container-wrap,
body.archive.post-type-archive-property #ajax-content-wrap .container-wrap,
body.page-template-page-properties #ajax-content-wrap,
body.page-template-page-properties .container-wrap,
body.page-template-page-properties #ajax-content-wrap .container-wrap {
  background-color: var(--rep-bg) !important;
  box-shadow: none !important;
}

/* Serif Playfair Display headings on single property details page */
.rep-single h2 {
  font-family: var(--rep-font-serif) !important;
  font-size: 36px !important;
  font-weight: 600 !important;
  line-height: 44px !important;
  color: var(--rep-text) !important;
  margin-top: 0 !important;
  margin-bottom: 24px !important;
}

/* Overview and Location grid cards transparent style (Stitch matches) */
.rep-overview-location-grid .rep-card-section {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Grayscale maps matching Stitch map styles */
#rep-map,
.rep-map-frame-new iframe {
  filter: grayscale(85%) contrast(1.1) brightness(0.95);
  opacity: 0.8;
  transition: filter 0.5s ease, opacity 0.5s ease;
}
.rep-map-frame-new:hover #rep-map,
.rep-map-frame-new:hover iframe {
  filter: grayscale(0%) contrast(1) brightness(1);
  opacity: 1;
}

/* Reset spacing inside address/locality grid items */
.rep-location-grid-item p {
  margin: 0 !important;
  padding: 0 !important;
}

/* Paragraph styling inside body details section */
.rep-prose p {
  color: var(--rep-muted) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}

/* Related section 3-column layout on desktop & tablet */
.rep-related-section .rep-property-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .rep-related-section .rep-property-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
  }
}
.rep-related-section .rep-property-card {
  border: 1px solid var(--rep-border) !important;
  box-shadow: var(--rep-shadow-soft) !important;
  background: var(--rep-surface) !important;
}
