:root {
  --orange: #e68a44;
  --orange-dark: #d67a35;
  --dark-blue: #111827;
  --gray-text: #6b7280;
  --light-bg: #f4f6f9;
  --border: #e8ecf1;
  --blue-verified: #3b82f6;
  --card-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.builder-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 48px;
}

.breadcrumb {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 18px;
}

.breadcrumb span {
  margin: 0 8px;
  color: #d1d5db;
}

/* HERO */
.builder-hero {
  position: relative;
  margin-bottom: 28px;
}

.builder-hero__banner {
  height: 220px;
  border-radius: 14px 14px 0 0;
  background:
    linear-gradient(160deg, #1f2937 0%, #374151 45%, #4b5563 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 2px,
      transparent 2px,
      transparent 28px
    );
  background-blend-mode: overlay;
}

.profile-header-card {
  position: relative;
  z-index: 2;
  margin: -72px 24px 0;
  background: #fff;
  border-radius: 14px;
  padding: 28px 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

.profile-info-side {
  display: flex;
  gap: 22px;
  flex: 1;
  min-width: 0;
}

.profile-logo-container {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.profile-logo {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #f3f4f6;
  background: #fff;
}

.profile-logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-size: 36px;
}

.rating-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #eee;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

.rating-badge i {
  color: #facc15;
  font-size: 10px;
}

.details-wrap {
  flex: 1;
  min-width: 0;
}

.details-wrap h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  color: var(--dark-blue);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.verified-label {
  background: #eff6ff;
  color: var(--blue-verified);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.builder-tagline {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.5;
}

.meta-stack {
  margin-bottom: 14px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  color: var(--gray-text);
  margin-bottom: 6px;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-row span i {
  color: var(--orange);
  font-size: 13px;
}

.loc-row {
  font-size: 12px;
  color: var(--gray-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.loc-row i {
  color: var(--orange);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-chip {
  font-size: 11px;
  background: #f9fafb;
  border: 1px solid #eef0f3;
  padding: 6px 14px;
  border-radius: 20px;
  color: #4b5563;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-chip i {
  color: var(--orange);
  font-size: 10px;
}

.profile-action-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 240px;
  flex-shrink: 0;
}

.btn-contact {
  background: var(--orange);
  color: #fff;
  padding: 13px 16px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.btn-contact:hover {
  background: var(--orange-dark);
}

.btn-chat {
  background: #fff;
  color: var(--dark-blue);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-chat:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.respond-text {
  font-size: 11px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* STATS ROW */
.builder-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.builder-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
}

.builder-stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #fff7ed;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.builder-stat-card__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.builder-stat-card__content b {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-blue);
  line-height: 1.2;
  word-break: break-word;
}

.builder-stat-card__content span {
  font-size: 12px;
  color: var(--gray-text);
}

/* MAIN LAYOUT */
.builder-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.about-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
}

.about-section__title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-section__title i {
  color: var(--orange);
  font-size: 16px;
}

.about-section__text {
  margin: 0 0 18px;
  color: var(--gray-text);
  line-height: 1.8;
  font-size: 14px;
}

.about-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #eef0f3;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.about-trust-badge i {
  color: var(--orange);
}

.listings-section .section-head {
  margin: 0 0 18px;
}

.listings-section .section-head + .property-grid {
  margin-bottom: 36px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-head h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-blue);
  margin: 0;
}

.section-head h3 small {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-text);
}

.empty-listing-msg {
  grid-column: 1 / -1;
  color: var(--gray-text);
  font-size: 14px;
  margin: 0;
  padding: 12px 0;
}

/* PROPERTY GRID */
.property-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.property-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.property-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.property-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.1);
}

.card-img {
  position: relative;
  height: 200px;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  z-index: 2;
}

.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: none;
}

.fav-btn:hover {
  color: #ef4444;
}

.price-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--orange);
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  z-index: 2;
}

.card-content {
  padding: 18px 20px 14px;
}

.prop-code {
  float: right;
  font-size: 10px;
  color: #9ca3af;
}

.card-content h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-blue);
  clear: both;
}

.loc-text {
  font-size: 12px;
  color: var(--gray-text);
  margin-bottom: 14px;
  display: block;
}

.loc-text i {
  color: var(--orange);
  margin-right: 5px;
}

.spec-bar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #f3f4f6;
  padding-top: 14px;
}

.spec-item {
  font-size: 11px;
  color: var(--gray-text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.spec-item i {
  color: #d1d5db;
  font-size: 12px;
}

.card-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-text {
  font-size: 11px;
  color: #9ca3af;
}

.details-btn {
  color: var(--orange);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.details-btn i {
  font-size: 9px;
}

.card-actions {
  padding: 0 20px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.card-connect-btn {
  border: none;
  background: #0d6efd;
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  flex: 1;
}

.card-connect-btn:hover:not(:disabled) {
  background: #0b5ed7;
}

.card-connect-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.card-actions .btn-share-property {
  min-height: 40px;
  z-index: 2;
}

/* SIDEBAR */
.builder-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 20px;
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
}

.sidebar-card h4 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--dark-blue);
}

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.enquiry-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 12px;
  background: #fafbfc;
}

.enquiry-field i {
  color: #9ca3af;
  font-size: 14px;
  flex-shrink: 0;
}

.enquiry-field input,
.enquiry-field textarea {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 13px;
  color: var(--dark-blue);
  outline: none;
  font-family: inherit;
}

.enquiry-field--textarea {
  align-items: flex-start;
  padding-top: 10px;
}

.enquiry-field--textarea i {
  margin-top: 12px;
}

.enquiry-field textarea {
  resize: vertical;
  min-height: 88px;
}

.btn-enquiry {
  width: 100%;
  margin-top: 4px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-enquiry:hover {
  background: var(--orange-dark);
}

.map-preview {
  position: relative;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(160deg, #dbeafe 0%, #bfdbfe 35%, #93c5fd 100%);
}

.map-preview__pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.map-preview__pin--1 {
  top: 28%;
  left: 22%;
}

.map-preview__pin--2 {
  top: 48%;
  left: 58%;
}

.map-preview__pin--3 {
  top: 62%;
  left: 36%;
}

.map-preview__card {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-preview__label {
  font-size: 10px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.map-preview__card strong {
  font-size: 14px;
  color: var(--dark-blue);
}

.map-preview__link {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  margin-top: 2px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .builder-main-layout {
    grid-template-columns: 1fr;
  }

  .builder-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .builder-container {
    padding: 12px 14px 36px;
  }

  .builder-hero__banner {
    height: 160px;
    border-radius: 12px 12px 0 0;
  }

  .profile-header-card {
    margin: -56px 12px 0;
    flex-direction: column;
    padding: 20px 18px;
  }

  .profile-info-side {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .details-wrap h2 {
    justify-content: center;
    font-size: 22px;
  }

  .meta-row,
  .trust-row,
  .about-trust-row {
    justify-content: center;
  }

  .loc-row {
    justify-content: center;
  }

  .profile-action-side {
    width: 100%;
  }

  .builder-stats-row {
    grid-template-columns: 1fr;
  }

  .property-grid {
    grid-template-columns: 1fr;
  }

  .builder-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .builder-hero__banner {
    height: 130px;
  }

  .profile-logo-container {
    width: 90px;
    height: 90px;
  }

  .builder-stat-card {
    padding: 16px;
  }

  .builder-stat-card__content b {
    font-size: 18px;
  }
}
