/* ==========================================================================
   Fresh Makelaars – Theme 2 – Single house page
   ========================================================================== */

#fresh-makelaars.fm2-single {
  background: var(--fm2-bg);
  min-height: 100vh;
  margin-top: 16px;
}

/* ── Gallery ──────────────────────────────────────────────── */
#fresh-makelaars .fm2-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 540px;
  gap: 16px;
}

@media (max-width: 768px) {
  #fresh-makelaars .fm2-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
}

#fresh-makelaars .fm2-gallery-featured {
  display: block;
  position: relative;
  overflow: hidden;
  height: 100%;
}

#fresh-makelaars .fm2-gallery-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
  border-radius: 16px;
}

#fresh-makelaars .fm2-gallery-featured:hover .fm2-gallery-featured-img {
  transform: scale(1.02);
}

#fresh-makelaars .fm2-gallery-status {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  background: var(--fm2-blue);
  z-index: 2;
}

#fresh-makelaars .fm2-gallery-status--available { background: #16a34a; }
#fresh-makelaars .fm2-gallery-status--sold      { background: #dc2626; }
#fresh-makelaars .fm2-gallery-status--offer     { background: #d97706; }

#fresh-makelaars .fm2-gallery-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
  height: 100%;
}

#fresh-makelaars .fm2-gallery-col-thumb {
  display: block;
  overflow: hidden;
  position: relative;
  height: 100%;
  border-radius: 16px;
}

#fresh-makelaars .fm2-gallery-col-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

#fresh-makelaars .fm2-gallery-col-thumb:hover img {
  transform: scale(1.05);
}

#fresh-makelaars .fm2-gallery-col-thumb--more img {
  opacity: .4;
}

#fresh-makelaars .fm2-gallery-more-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  pointer-events: none;
  background: rgba(0, 0, 0, .35);
}

/* ── Property header ──────────────────────────────────────── */
#fresh-makelaars .fm2-prop-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 32px 0 24px;
}

#fresh-makelaars .fm2-prop-header-left {
  background-color: #f8f9fa;
  padding: 30px;
  margin-top: -100px;
  z-index: 2;
  border-radius: 16px;
  grid-column: span 4;
  margin: -100px 20px 0px 20px;
  position: relative;
}

#fresh-makelaars .fm2-prop-header .fm2-prop-header-info {
  display: flex;
  justify-content: space-between;
}

#fresh-makelaars .fm2-prop-header-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  background: var(--fm2-blue);
  margin-bottom: 10px;
}

#fresh-makelaars .fm2-prop-header-badge--available { background: #16a34a; }
#fresh-makelaars .fm2-prop-header-badge--sold      { background: #dc2626; }
#fresh-makelaars .fm2-prop-header-badge--offer     { background: #d97706; }

#fresh-makelaars .fm2-prop-header-location {
  font-size: 13px;
  font-weight: 600;
  color: var(--fm2-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 6px;
}

#fresh-makelaars .fm2-prop-header-address {
  font-size: 38px;
  font-weight: 800;
  color: var(--fm2-text);
  margin: 0 0 10px;
  line-height: 1.2;
}

#fresh-makelaars .fm2-prop-header-matterport {
  display: inline-block;
  font-size: 13px;
  color: var(--fm2-blue);
  text-decoration: none;
  margin-top: 6px;
}

#fresh-makelaars .fm2-prop-header-right {
  grid-column: span 2;
  text-align: left;
  flex-shrink: 0;
}

#fresh-makelaars .fm2-prop-header-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--fm2-blue);
  margin: 0 0 14px;
  white-space: nowrap;
}

/* ── Back button ──────────────────────────────────────────── */
#fresh-makelaars .fm2-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 0;
  background: none;
  border: none;
  color: var(--fm2-text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: color var(--fm2-transition);
}

#fresh-makelaars .fm2-back-btn:hover {
  color: var(--fm2-text);
}

/* ── CTA buttons ──────────────────────────────────────────── */
#fresh-makelaars .fm2-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--fm2-radius);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--fm2-transition), transform var(--fm2-transition);
}

#fresh-makelaars .fm2-btn--primary {
  background: var(--fm2-blue);
  color: #fff;
}

#fresh-makelaars .fm2-btn--primary:hover {
  background: var(--fm2-blue-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Stats bar ────────────────────────────────────────────── */
#fresh-makelaars .fm2-stats-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  list-style: none;
  margin: 0;
  padding: 18px 0;
  flex-wrap: wrap;
  gap: 0;
}

#fresh-makelaars .fm2-stats-bar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 20px 8px 0;
  margin-right: 20px;
  font-size: 16px;
  color: var(--fm2-text);
}

#fresh-makelaars .fm2-stats-bar-item:last-child {
  border-right: none;
}

#fresh-makelaars .fm2-stats-bar-item svg {
  color: var(--fm2-blue);
  flex-shrink: 0;
}

/* ── Tabs ─────────────────────────────────────────────────── */
#fresh-makelaars .fm2-tabs-container {
  margin-top: 32px;
}

#fresh-makelaars .fm2-tabs-nav {
  display: flex;
  gap: 0;
  background-color: #f8f9fa;
}

#fresh-makelaars .fm2-tab-btn {
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--fm2-text-muted);
  background: none;
  border-bottom: 2px solid transparent !important;
  border-top: none;
  border-left: none;
  border-right: none;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--fm2-transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

#fresh-makelaars .fm2-tab-btn:hover,
#fresh-makelaars .fm2-tab-btn:focus,
#fresh-makelaars .fm2-tab-btn.is-active {
  background-color: #f8f9fa;
  border-bottom: 2px solid var(--fm2-blue) !important;
  outline: none;
  color: var(--fm2-blue);
}

#fresh-makelaars .fm2-tab-btn-count {
  background: var(--fm2-blue-light);
  color: var(--fm2-blue);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
}

#fresh-makelaars .fm2-tab-panels {
  padding: 28px 0;
}

#fresh-makelaars .fm2-tab-panel {
  display: none;
}

#fresh-makelaars .fm2-tab-panel.is-active {
  display: block;
}

/* ── Tabs + sidebar layout ────────────────────────────────── */
#fresh-makelaars .fm2-tabs-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

#fresh-makelaars .fm2-tabs-sidebar-layout .fm2-tabs-container {
  min-width: 0;
}

#fresh-makelaars .fm2-contact-sidebar {
  position: sticky;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Contact card ─────────────────────────────────────────── */
#fresh-makelaars .fm2-contact-card {
  background-color: #f8f9fa;
  border: none;
  box-shadow: none;
  border-radius: var(--fm2-radius);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 300px;
}

#fresh-makelaars .fm2-contact-card-logo {
  width: 100%;
  max-height: 80px;
  object-fit: contain;
  object-position: left;
  margin-bottom: 4px;
}

#fresh-makelaars .fm2-contact-card-photo {
  width: 100%;
  height: 200px;
  border-radius: var(--fm2-radius);
  object-fit: contain;
  margin-bottom: 8px;
}

#fresh-makelaars .fm2-contact-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--fm2-text);
  margin: 0;
}

#fresh-makelaars .fm2-contact-card-address {
  font-size: 16px;
  color: var(--fm2-text-muted);
  margin: 0;
  line-height: 1.5;
}

#fresh-makelaars .fm2-contact-card-link {
  font-size: 16px;
  color: var(--fm2-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

#fresh-makelaars .fm2-contact-card-link:hover {
  text-decoration: underline;
}

#fresh-makelaars .fm2-contact-card-link-phone::before {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5e8a' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 12a19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 3.6 1.27h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L7.91 9a16 16 0 0 0 6.08 6.08l1.96-1.95a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
}

#fresh-makelaars .fm2-contact-card-link-email::before {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5e8a' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Floating CTA ─────────────────────────────────────────── */
#fresh-makelaars .fm2-float-cta {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--fm2-border);
  border-radius: 40px;
  padding: 8px 14px 8px 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13), 0 1px 4px rgba(0, 0, 0, 0.08);
}

#fresh-makelaars .fm2-float-cta-favicon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

#fresh-makelaars .fm2-float-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 20px;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

#fresh-makelaars .fm2-float-cta-btn:hover {
  transform: translateY(-1px);
}

#fresh-makelaars .fm2-float-cta-btn--primary {
  background: var(--fm2-blue);
  color: #fff;
}

#fresh-makelaars .fm2-float-cta-btn--primary:hover {
  background: var(--fm2-blue-dark);
  color: #fff;
}

#fresh-makelaars .fm2-float-cta-btn--secondary {
  background: var(--fm2-blue-light);
  color: var(--fm2-blue-dark);
}

#fresh-makelaars .fm2-float-cta-btn--secondary:hover {
  background: #d6eaf5;
  color: var(--fm2-blue-dark);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  #fresh-makelaars .fm2-tabs-sidebar-layout {
    grid-template-columns: 1fr;
  }

  #fresh-makelaars .fm2-contact-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  #fresh-makelaars .fm2-contact-card {
    flex: 1 1 260px;
  }
}

@media (max-width: 1024px) {
  #fresh-makelaars .fm2-prop-header {
    grid-template-columns: 1fr;
  }

  #fresh-makelaars .fm2-prop-header-left {
    grid-column: span 1;
    margin: 0;
  }

  #fresh-makelaars .fm2-prop-header-right {
    grid-column: span 1;
    text-align: left;
  }

  #fresh-makelaars .fm2-prop-header .fm2-prop-header-info {
    flex-direction: column;
    gap: 12px;
  }

  #fresh-makelaars .fm2-prop-header-address {
    font-size: 26px;
  }

  #fresh-makelaars .fm2-stats-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  #fresh-makelaars .fm2-prop-header-address {
    font-size: 22px;
  }

  #fresh-makelaars .fm2-prop-header-left {
    padding: 20px;
  }

  #fresh-makelaars .fm2-stats-bar-item {
    display: flex;
    align-items: start;
    line-height: 16px;
    font-size: 14px !important;
  }

  #fresh-makelaars .fm2-gallery {
    grid-template-columns: 1fr;
    height: auto;
  }

  #fresh-makelaars .fm2-gallery-featured {
    height: 220px;
  }

  #fresh-makelaars .fm2-gallery-col {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: none;
    height: 150px;
  }

  #fresh-makelaars .fm2-tabs-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  #fresh-makelaars .fm2-stats-bar {
    gap: 4px;
  }

  #fresh-makelaars .fm2-stats-bar-item {
    border-right: none;
    padding: 6px 0;
    margin-right: 12px;
  }

  #fresh-makelaars .fm2-tab-btn {
    padding: 10px 14px;
    font-size: 13px;
  }

  #fresh-makelaars .fm2-float-cta {
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-radius: 16px;
    justify-content: center;
  }
}
