/* ASEO Floorplan Pro - static floor plans. Colors and fonts follow the site's Elementor globals. */
.aseo-sfp {
  --sfp-accent: var(--e-global-color-accent, #596354);
  --sfp-accent-2: var(--e-global-color-c3cd34d, var(--e-global-color-primary, #8a6348));
  --sfp-text: var(--e-global-color-text, #262426);
  --sfp-muted: #5f5d5f;
  --sfp-line: var(--e-global-color-3aa947f, #e6e3dc);
  --sfp-card: #fff;
  --sfp-soft: var(--e-global-color-8667b7d, #f7f5f0);
  --sfp-head: var(--e-global-typography-primary-font-family, inherit);
  --sfp-btn-font: var(--e-global-typography-accent-font-family, inherit);
  color: var(--sfp-text);
  margin: 0 auto;
  max-width: 1200px;
}
.aseo-sfp *, .aseo-sfp *::before, .aseo-sfp *::after { box-sizing: border-box; }

.aseo-sfp-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 28px; }
.aseo-sfp-filter button {
  appearance: none; background: transparent; border: 1px solid var(--sfp-accent); border-radius: 999px;
  color: var(--sfp-accent); cursor: pointer; font-family: var(--sfp-btn-font); font-size: 13px; font-weight: 600;
  letter-spacing: 1px; padding: 9px 20px; text-transform: uppercase; transition: background .15s, color .15s;
}
.aseo-sfp-filter button:hover, .aseo-sfp-filter button.is-active { background: var(--sfp-accent); color: #fff; }
.aseo-sfp-filter button:focus-visible, .aseo-sfp-btn:focus-visible, .aseo-sfp-img:focus-visible { outline: 3px solid var(--sfp-accent-2); outline-offset: 2px; }

/* Fixed column grid: 3 columns for up to 6 plans, 4 for 7+. Same card width in every row; a part-filled last row is centered. */
.aseo-sfp-grid { --sfp-cols: 3; --sfp-gap: 24px; display: flex; flex-wrap: wrap; gap: var(--sfp-gap); justify-content: center; }
.aseo-sfp-grid[data-cols="4"] { --sfp-cols: 4; }
.aseo-sfp-card {
  background: var(--sfp-card); border: 1px solid var(--sfp-line); border-radius: 12px; display: flex;
  flex: 0 0 calc((100% - (var(--sfp-cols) - 1) * var(--sfp-gap)) / var(--sfp-cols)); flex-direction: column; min-width: 0; overflow: hidden;
}
@media (max-width: 1024px) { .aseo-sfp-grid, .aseo-sfp-grid[data-cols="4"] { --sfp-cols: 2; } }
.aseo-sfp-card[hidden] { display: none; }

/* Same image height on every card; the whole drawing shows (contain), centered. */
.aseo-sfp .aseo-sfp-img { align-items: center; background: #fff; border-bottom: 1px solid var(--sfp-line); box-sizing: border-box; display: flex; flex: 0 0 auto; height: 260px; justify-content: center; overflow: hidden; padding: 16px; }
a.aseo-sfp-img { cursor: zoom-in; }
.aseo-sfp .aseo-sfp-img img { display: block; height: 100% !important; max-height: 100% !important; max-width: 100% !important; object-fit: contain !important; object-position: center; width: 100% !important; }
.aseo-sfp-noimg { background: var(--sfp-soft); color: var(--sfp-muted); font-family: var(--sfp-head); font-size: 20px; }

.aseo-sfp-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 20px 22px 22px; text-align: center; }
.aseo-sfp .aseo-sfp-name { color: var(--sfp-text); font-family: var(--sfp-head); font-size: 22px; font-weight: 500; line-height: 1.25; margin: 0; }
.aseo-sfp .aseo-sfp-specs { color: var(--sfp-muted); font-size: 15px; margin: 0; }
.aseo-sfp .aseo-sfp-price { color: var(--sfp-accent-2); font-family: var(--sfp-head); font-size: 19px; font-weight: 600; margin: 6px 0 0; }
.aseo-sfp .aseo-sfp-deposit { color: var(--sfp-muted); font-size: 14px; margin: 0; }
.aseo-sfp .aseo-sfp-desc { color: var(--sfp-muted); font-size: 14px; line-height: 1.5; margin: 4px 0 0; }
.aseo-sfp .aseo-sfp-avail { color: var(--sfp-accent); font-size: 14px; font-weight: 600; letter-spacing: .5px; margin: 2px 0 0; text-transform: uppercase; }

.aseo-sfp-btn {
  background: var(--sfp-accent); border: 1px solid var(--sfp-accent); border-radius: 8px; color: #fff !important;
  display: inline-block; font-family: var(--sfp-btn-font); font-size: 13px; font-weight: 600; letter-spacing: 1px;
  line-height: 1.35 !important; margin-top: auto; padding: 13px 18px; text-decoration: none !important; text-transform: uppercase; transition: filter .15s;
}
.aseo-sfp-cta { margin-top: auto; padding-top: 10px; }
.aseo-sfp-cta .aseo-sfp-btn { display: block; margin-top: 12px; }
.aseo-sfp-btn:hover { filter: brightness(.92); }
.aseo-sfp .aseo-sfp-avail-none { color: var(--sfp-muted); font-weight: 500; letter-spacing: 0; text-transform: none; }
.aseo-sfp .aseo-sfp-fees { color: var(--sfp-muted); font-size: 14px; line-height: 1.6; margin: 0 auto 24px; max-width: 900px; text-align: center; }

.aseo-sfp-notes { color: var(--sfp-muted); font-size: 14px; line-height: 1.6; margin: 28px auto 0; max-width: 900px; text-align: center; }
.aseo-sfp-notes p { margin: 0 0 8px; }
.aseo-sfp-empty { background: var(--sfp-soft); border-radius: 12px; padding: 32px 20px; text-align: center; }
.aseo-sfp-empty p { margin: 0 0 16px; }
.aseo-sfp-admin-note { background: #fff8e5; border-left: 4px solid #dba617; font-size: 14px; margin: 0 0 16px; padding: 10px 14px; }

.aseo-sfp-dialog { border: 0; border-radius: 12px; max-height: 92vh; max-width: min(1100px, 94vw); padding: 0; }
.aseo-sfp-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.aseo-sfp-dialog img { display: block; height: auto; max-height: 88vh; max-width: 100%; object-fit: contain; padding: 24px; width: auto; }
.aseo-sfp-close {
  background: #fff; border: 0; border-radius: 50%; color: #222; cursor: pointer; font-size: 28px; height: 40px;
  line-height: 40px; position: absolute; right: 8px; top: 8px; width: 40px;
}

@media (max-width: 600px) {
  .aseo-sfp-grid { gap: 16px; }
  .aseo-sfp-grid, .aseo-sfp-grid[data-cols="4"] { --sfp-cols: 1; }
  .aseo-sfp .aseo-sfp-img { height: 220px; }
  .aseo-sfp .aseo-sfp-name { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .aseo-sfp-filter button, .aseo-sfp-btn { transition: none; }
}
