/* ================================================================
   MFY Clean Records — mfy-clean-records.css
================================================================ */
.mfy-cr-block *, .mfy-cr-block *::before, .mfy-cr-block *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.mfy-cr-block {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a1a;
  width: 100%;
}

/* ── Skeleton loader ─────────────────────────────────────────────── */
@keyframes mfy-cr-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.mfy-cr-skel {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 600px 100%;
  animation: mfy-cr-shimmer 1.4s infinite;
  border-radius: 6px;
}
.mfy-cr-skel-img    { height: 180px; width: 100%; border-radius: 10px 10px 0 0; }
.mfy-cr-skel-avatar { height: 56px; width: 56px; border-radius: 50%; }
.mfy-cr-skel-line   { height: 12px; }
.mfy-cr-skel-body   { padding: 16px; }
.mfy-cr-skel-card   { border-radius: 12px; overflow: hidden; border: 1.5px solid #eee; }

/* ── Shared filters ──────────────────────────────────────────────── */
.mfy-cr-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.mfy-cr-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  flex: 1;
}
.mfy-cr-filter-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #888;
}
.mfy-cr-select-wrap {
  position: relative;
}
.mfy-cr-select-wrap::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #666;
  pointer-events: none;
}
.mfy-cr-filter {
  appearance: none;
  width: 100%;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px 36px 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
}
.mfy-cr-filter:focus { border-color: #E87722; }

/* ── Spinner ─────────────────────────────────────────────────────── */
@keyframes mfy-cr-spin { to { transform: rotate(360deg); } }
.mfy-cr-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid #eee;
  border-top-color: #E87722;
  border-radius: 50%;
  animation: mfy-cr-spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

/* ================================================================
   BLOCK 1 — Recent Cleans
================================================================ */
.mfy-cr-rc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .mfy-cr-rc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mfy-cr-rc-grid { grid-template-columns: 1fr; } }

/* Card */
.mfy-cr-rc-card {
  border-radius: 14px;
  border: 1.5px solid #eee;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
}
.mfy-cr-rc-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.09);
  transform: translateY(-2px);
}

/* Photo placeholder area */
.mfy-cr-rc-photo {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mfy-cr-rc-ph-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mfy-cr-rc-ph-emoji {
  font-size: 40px;
  line-height: 1;
}
.mfy-cr-rc-ph-name {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

/* Property type badge — top right */
.mfy-cr-rc-photo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,.92);
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* Card body */
.mfy-cr-rc-body {
  padding: 14px 16px 0;
}
.mfy-cr-rc-suburb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #E87722;
  margin-bottom: 2px;
}
.mfy-cr-rc-suburb svg { color: #E87722; flex-shrink: 0; }
.mfy-cr-rc-datetime {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}
.mfy-cr-rc-svc {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}
.mfy-cr-rc-specs {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #555;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.mfy-cr-rc-spec {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mfy-cr-rc-spec svg { color: #E87722; }

/* Cleaner row */
.mfy-cr-rc-cleaner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
  color: #666;
}
.mfy-cr-rc-cleaner-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #aaa;
  margin-bottom: 1px;
}
.mfy-cr-rc-cleaner-name {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 13px;
}
.mfy-cr-rc-cleaner-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.mfy-cr-rc-cleaner-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #E87722;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
img.mfy-cr-cg-cleaner-img {
    border-radius: 50%;
}
/* Expand / details */
.mfy-cr-rc-expand { border-top: 1px solid #f0f0f0; }
.mfy-cr-rc-expand-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 12px;
  font-family: inherit;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color .2s;
}
.mfy-cr-rc-expand-btn:hover { color: #E87722; }
.mfy-cr-rc-expand-btn svg { transition: transform .2s; }
.mfy-cr-rc-expand-btn.open svg { transform: rotate(180deg); }
.mfy-cr-rc-details { display: none; padding: 12px 16px 14px; border-top: 1px solid #f5f5f5; }
.mfy-cr-rc-details.open { display: block; }
.mfy-cr-rc-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.mfy-cr-rc-price-label { font-size: 13px; color: #555; }
.mfy-cr-rc-price-val   { font-size: 16px; font-weight: 700; color: #1a1a1a; }
.mfy-cr-rc-book-btn {
  display: block;
  width: 100%;
  background: #E87722;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .2s;
}
.mfy-cr-rc-book-btn:hover { background: #cf6510; }

/* ================================================================
   BLOCK 2 — Job Density Map
================================================================ */
.mfy-cr-map-filters {
  display: flex;
  gap: 4px;
  background: #f7f7f7;
  border: 1.5px solid #e0e0e0;
  border-radius: 30px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 16px;
}
.mfy-cr-time-btn {
  background: none;
  border: none;
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.mfy-cr-time-btn:hover { color: #E87722; }
.mfy-cr-time-btn.active {
  background: #E87722;
  color: #fff;
  font-weight: 600;
}

.mfy-cr-map-wrap {
  position: relative;
  border-radius: 16px;
  border: 1.5px solid #eee;
  overflow: hidden;
}
.mfy-cr-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #888;
  background: rgba(255,255,255,.9);
  z-index: 1000;
  border-radius: 16px;
}
/* Leaflet container */
.mfy-cr-map-leaflet {
  width: 100%;
  height: 500px;
  z-index: 1;
  background: #f2f1f0;
}
/* Force grey on all Leaflet panes (water, empty areas) */
.mfy-cr-map-leaflet .leaflet-tile-pane {
  filter: grayscale(1);
}
/* Leaflet tooltip override */
.mfy-cr-leaflet-tip {
  background: #1a1a1a !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.25) !important;
}
.mfy-cr-leaflet-tip::before { display: none !important; }
/* Hide Leaflet attribution (keep OSM credit in legend) */
.mfy-cr-map-leaflet .leaflet-control-attribution {
  font-size: 9px;
  opacity: .6;
}

.mfy-cr-map-legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255,255,255,.97);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12px;
  border: 1px solid #ddd;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  pointer-events: none;
}
.mfy-cr-legend-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #888;
  margin-bottom: 8px;
}
.mfy-cr-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
  margin-bottom: 5px;
}
.mfy-cr-legend-item:last-child { margin-bottom: 0; }
.mfy-cr-legend-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Stats bar */
.mfy-cr-map-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1.5px solid #eee;
  border-top: none;
  border-radius: 0 0 16px 16px;
  margin-top: 0;
  overflow: hidden;
}
@media (max-width: 600px) { .mfy-cr-map-stats { grid-template-columns: repeat(2, 1fr); } }
.mfy-cr-map-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 12px;
  border-right: 1.5px solid #eee;
  text-align: center;
  gap: 6px;
}
.mfy-cr-map-stat:last-child { border-right: none; }
.mfy-cr-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: #E87722;
  line-height: 1;
}
.mfy-cr-stat-lbl {
  font-size: 12px;
  color: #888;
  line-height: 1.3;
}
/* Wrap the map and stats together */
.mfy-cr-map {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.mfy-cr-map-wrap {
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1.5px solid #eee !important;
}

/* ================================================================
   BLOCK 3 — Customer Grid
================================================================ */
.mfy-cr-cg-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}
.mfy-cr-cg-filter { max-width: 220px; }

.mfy-cr-cg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .mfy-cr-cg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mfy-cr-cg-grid { grid-template-columns: 1fr; } }

/* Card */
.mfy-cr-cg-card {
  background: #fff;
  border: 1.5px solid #eee;
  border-radius: 14px;
  padding: 20px;
  transition: box-shadow .2s, transform .2s;
}
.mfy-cr-cg-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.09);
  transform: translateY(-2px);
}

/* Card top row */
.mfy-cr-cg-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}
.mfy-cr-cg-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.mfy-cr-cg-initials {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.mfy-cr-cg-since {
  font-size: 13px;
  font-weight: 600;
  color: #E87722;
  background: #fff3e0;
  border-radius: 20px;
  padding: 3px 12px;
  white-space: nowrap;
}
.mfy-cr-cg-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0;
  letter-spacing: .3px;
}
.mfy-cr-cg-suburb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}
.mfy-cr-cg-suburb svg { color: #E87722; flex-shrink: 0; }

/* Stats row */
.mfy-cr-cg-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.mfy-cr-cg-stat {
  background: #fafafa;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}
.mfy-cr-cg-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: #E87722;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.mfy-cr-cg-stat-lbl {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* Cleaner row */
.mfy-cr-cg-cleaner {
  border-top: 1.5px solid #f0f0f0;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mfy-cr-cg-cleaner-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #aaa;
  margin-bottom: 2px;
}
.mfy-cr-cg-cleaner-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}
.mfy-cr-cg-cleaner-years {
  font-size: 11px;
  color: #888;
}
.mfy-cr-cg-cleaner-img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px #E87722;
  flex-shrink: 0;
}
.mfy-cr-cg-cleaner-initials {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #E87722;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Photo placeholder ───────────────────────────────────────── */
.mfy-cr-rc-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mfy-cr-rc-ph-icon {
  font-size: 40px;
  line-height: 1;
}
.mfy-cr-rc-ph-suburb {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  letter-spacing: .3px;
}

/* Remove black focus border on Leaflet circle click */
.mfy-cr-map-leaflet .leaflet-interactive:focus,
.mfy-cr-map-leaflet path.leaflet-interactive:focus {
  outline: none !important;
}

/* "View clean history" link */
.mfy-cr-cg-history {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1.5px solid #f0f0f0;
  font-size: 13px;
  font-weight: 600;
  color: #E87722;
  text-decoration: none;
  transition: color .2s;
}
.mfy-cr-cg-history:hover { color: #cf6510; }

/* ── Pagination ─────────────────────────────────────────────────── */
.mfy-cr-rc-pagination,
.mfy-cr-cg-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.mfy-cr-page-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: all .2s;
}
.mfy-cr-page-btn:hover:not(:disabled) { border-color: #E87722; color: #E87722; }
.mfy-cr-page-btn.active { background: #E87722; border-color: #E87722; color: #fff; font-weight: 700; }
.mfy-cr-page-btn.dots { border: none; background: none; cursor: default; }
.mfy-cr-page-btn:disabled { opacity: .4; cursor: not-allowed; }
img.mfy-cr-rc-cleaner-img {
    border-radius: 50%;
}