.ipms-login-wrap,.ipms-dashboard-wrap{}
.ipms-login-wrap{max-width:520px;margin:60px auto;padding:20px}
.ipms-login-card,.ipms-frontend-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 12px 28px rgba(15,23,42,.06)}
.ipms-login-card{padding:32px}
.ipms-login-error,.ipms-error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;border-radius:12px;padding:12px 14px;margin:0 0 16px}
.ipms-success{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534;border-radius:12px;padding:12px 14px;margin:0 0 16px}
.ipms-dashboard-wrap{display:flex;flex-direction:column;gap:24px}
.ipms-theme-nav{margin-bottom:8px}
.ipms-dashboard-menu-list{display:flex;flex-wrap:wrap;gap:12px;list-style:none;margin:0;padding:0}
.ipms-dashboard-menu-list li{margin:0}
.ipms-dashboard-menu-list a{display:inline-block;padding:12px 16px;border-radius:12px;background:#fff1f2;color:#b91c1c;text-decoration:none;font-weight:700}
.ipms-dashboard-menu-list a:hover{background:#fee2e2}
.ipms-frontend-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;flex-wrap:wrap}
.ipms-front-actions{display:flex;gap:12px;flex-wrap:wrap}
.ipms-btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 18px;border-radius:12px;background:#b91c1c;color:#fff !important;text-decoration:none;border:1px solid #b91c1c;cursor:pointer;font-weight:700;line-height:1.2}
.ipms-btn:hover{background:#991b1b;border-color:#991b1b}
.ipms-btn.ghost{background:#fff;color:#b91c1c !important;border:1px solid #fca5a5}
.ipms-btn.ghost:hover{background:#fff5f5}
.ipms-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.ipms-card-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.ipms-frontend-card{padding:22px}
.ipms-frontend-card.stat strong{display:block;font-size:34px;color:#b91c1c}
.ipms-frontend-card.stat span{color:#6b7280}
.ipms-log-item{padding:12px 0;border-bottom:1px solid #f1f5f9}
.ipms-log-item strong{display:block;margin-bottom:4px}
.ipms-filters{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.ipms-filters input,.ipms-filters select,.ipms-create-form input,.ipms-create-form textarea,.ipms-create-form select,.ipms-ops-form input,.ipms-ops-form textarea{width:100%;padding:12px 14px;border:1px solid #d1d5db;border-radius:12px;background:#fff;color:#111827}
.ipms-property-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.ipms-display-shell{display:flex;flex-direction:column;gap:14px}
.ipms-thumb{height:260px;background-size:cover;background-position:center;border-radius:14px;border:1px solid #e5e7eb}
.ipms-mini-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.ipms-mini-gallery-item{height:72px;border-radius:10px;background-size:cover;background-position:center;border:1px solid #e5e7eb}
.ipms-property-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.ipms-property-top h3{margin:0 0 4px;font-size:22px;color:#111827}
.ipms-address{margin:0;color:#6b7280}
.ipms-badge{white-space:nowrap;background:#fff1f2;color:#b91c1c;border:1px solid #fecaca;padding:10px 12px;border-radius:999px;font-weight:700}
.ipms-tags{display:flex;gap:8px;flex-wrap:wrap}
.ipms-tags span{background:#f8fafc;color:#334155;border:1px solid #e2e8f0;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:700}
.ipms-summary-row{display:flex;flex-wrap:wrap;gap:16px;color:#334155;font-size:14px}
.ipms-details-panel{display:flex;flex-direction:column;gap:10px}
.ipms-detail-group{border:1px solid #e5e7eb;border-radius:14px;background:#fff}
.ipms-detail-group summary{cursor:pointer;padding:14px 16px;font-weight:700;color:#111827}
.ipms-detail-body{padding:0 16px 16px}
.ipms-detail-row{display:grid;grid-template-columns:180px 1fr;gap:12px;padding:10px 0;border-top:1px solid #f1f5f9}
.ipms-detail-row:first-child{border-top:none}
.ipms-ops-form,.ipms-create-form{display:flex;flex-direction:column;gap:12px}
.ipms-ops-form{padding-top:6px;border-top:1px solid #eef2f7}
.ipms-ops-form label,.ipms-create-form label{display:flex;flex-direction:column;gap:8px;font-weight:700;color:#111827}
.ipms-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ipms-action-row{display:flex;gap:12px;flex-wrap:wrap}
.ipms-form-message{margin-top:8px;font-weight:600}
.ipms-newest-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ipms-newest-item{border:1px solid #e5e7eb;border-radius:14px;padding:10px;background:#fff}
.ipms-newest-thumb{height:120px;border-radius:10px;background-size:cover;background-position:center;margin-bottom:8px;border:1px solid #e5e7eb}
@media (max-width: 900px){
  .ipms-card-grid,.ipms-card-grid.two,.ipms-property-grid,.ipms-row,.ipms-newest-grid{grid-template-columns:1fr}
  .ipms-mini-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ipms-detail-row{grid-template-columns:1fr}
}


.ipms-current-thumb{display:block;width:100%;height:160px;border-radius:12px;background-size:cover;background-position:center;border:1px solid #e5e7eb;background-color:#f8fafc}
.ipms-current-thumb-empty{display:flex;align-items:center;justify-content:center;color:#6b7280;font-weight:600}


.ipms-pagination{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:22px}
.ipms-page-link{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;color:#b91c1c;text-decoration:none;font-weight:700}
.ipms-page-link:hover{background:#fff1f2}
.ipms-page-link.current{background:#b91c1c;border-color:#b91c1c;color:#fff}
.ipms-newest-item{text-decoration:none;color:inherit;display:block}
.ipms-newest-item:hover{box-shadow:0 10px 20px rgba(15,23,42,.06)}
.ipms-inline-check{flex-direction:row !important;align-items:center;gap:10px;font-weight:600 !important}
.ipms-inline-check input[type="checkbox"]{width:auto}
.ipms-current-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ipms-current-gallery-item{display:block;height:72px;border-radius:10px;background-size:cover;background-position:center;border:1px solid #e5e7eb}


.ipms-user-card{padding:14px 0;border-bottom:1px solid #f1f5f9}
.ipms-user-meta{display:flex;flex-direction:column;gap:4px;margin-bottom:10px}
.ipms-user-actions{display:flex;gap:10px;flex-wrap:wrap}
@media (max-width: 640px){
  .ipms-login-wrap{margin:24px auto;padding:12px}
  .ipms-login-card,.ipms-frontend-card{padding:16px}
  .ipms-dashboard-menu-list{display:grid;grid-template-columns:1fr 1fr}
  .ipms-frontend-header{gap:12px}
  .ipms-front-actions{width:100%}
  .ipms-front-actions .ipms-btn{flex:1 1 calc(50% - 8px)}
  .ipms-thumb{height:200px}
  .ipms-mini-gallery-item{height:64px}
  .ipms-filters{flex-direction:column}
  .ipms-filters .ipms-btn{width:100%}
}


.ipms-newest-item{
  position:relative;
  overflow:hidden;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  will-change:transform;
}
.ipms-newest-item::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg, transparent 0%, rgba(255,255,255,.28) 35%, transparent 70%);
  transform:translateX(-120%);
  transition:transform .7s ease;
  pointer-events:none;
}
.ipms-newest-item:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 28px rgba(15,23,42,.10);
  border-color:#fecaca;
}
.ipms-newest-item:hover::after{
  transform:translateX(120%);
}
.ipms-newest-thumb{
  transition:transform .35s ease;
  will-change:transform;
}
.ipms-newest-item:hover .ipms-newest-thumb{
  transform:scale(1.03);
}
@media (prefers-reduced-motion: reduce){
  .ipms-newest-item,
  .ipms-newest-thumb,
  .ipms-newest-item::after{
    transition:none !important;
    transform:none !important;
  }
}


.ipms-frontend-card.stat{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:132px;
}
.ipms-frontend-card.stat strong{
  line-height:1;
  margin-bottom:10px;
}
.ipms-frontend-card.stat span{
  font-size:14px;
  font-weight:600;
  letter-spacing:.2px;
}


.ipms-forgot-form{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid #e5e7eb;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.ipms-forgot-form label{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-weight:600;
  color:#111827;
}


.ipms-forgot-toggle{
  margin-top:16px;
  background:transparent;
  border:none;
  color:#b91c1c;
  font-weight:700;
  cursor:pointer;
  padding:0;
  text-align:left;
}
.ipms-forgot-toggle:hover{
  text-decoration:underline;
}
.ipms-forgot-wrap{
  margin-top:8px;
}

/* BUC Apartments public shortcode */
.buc-apartments-wrap{--buc-red:#b91c1c;--buc-red-dark:#7f1d1d;--buc-gray:#4b5563;--buc-light:#f8fafc;--buc-border:#e5e7eb;display:flex;flex-direction:column;gap:24px;margin:20px 0}
.buc-apartments-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap;padding:28px;border:1px solid var(--buc-border);border-radius:24px;background:linear-gradient(135deg,#ffffff 0%,#f9fafb 45%,#fff1f2 100%);box-shadow:0 18px 40px rgba(15,23,42,.08)}
.buc-kicker{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:#fee2e2;color:var(--buc-red);font-weight:800;font-size:12px;letter-spacing:.08em;text-transform:uppercase;margin-bottom:12px}
.buc-apartments-hero h2{margin:0 0 8px;color:#111827;font-size:clamp(28px,4vw,44px);line-height:1.08}
.buc-apartments-hero p{margin:0;color:var(--buc-gray);max-width:620px;font-size:16px;line-height:1.65}
.buc-location-search{min-width:min(100%,380px);background:#ffffff;border:1px solid var(--buc-border);border-radius:18px;padding:16px;box-shadow:0 12px 28px rgba(15,23,42,.06)}
.buc-location-search label{display:block;margin-bottom:8px;color:#111827;font-weight:800}
.buc-location-row{display:flex;gap:10px}
.buc-location-row select{flex:1;min-width:0;padding:13px 14px;border:1px solid #d1d5db;border-radius:13px;background:#fff;color:#111827}
.buc-location-row button,.buc-whatsapp-btn{display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:13px;background:var(--buc-red);color:#fff!important;text-decoration:none;font-weight:800;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.buc-location-row button{padding:13px 18px}
.buc-location-row button:hover,.buc-whatsapp-btn:hover{background:var(--buc-red-dark);transform:translateY(-1px);box-shadow:0 12px 24px rgba(185,28,28,.22)}
.buc-apartment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.buc-apartment-card{overflow:hidden;border:1px solid var(--buc-border);border-radius:24px;background:#fff;box-shadow:0 18px 38px rgba(15,23,42,.08);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.buc-apartment-card:hover{transform:translateY(-5px);box-shadow:0 24px 50px rgba(15,23,42,.12);border-color:#fecaca}
.buc-apartment-image{height:250px;background:#f3f4f6;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;color:#6b7280;font-weight:800}
.buc-apartment-body{padding:18px;display:flex;flex-direction:column;gap:12px}
.buc-apartment-location{align-self:flex-start;background:#f3f4f6;color:#374151;border:1px solid #e5e7eb;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:800}
.buc-apartment-body h3{margin:0;color:#111827;font-size:21px;line-height:1.28}
.buc-whatsapp-btn{width:100%;padding:14px 16px;margin-top:4px}
.buc-whatsapp-btn.disabled{background:#9ca3af;cursor:not-allowed;box-shadow:none;transform:none}
.buc-empty-state{padding:28px;border:1px dashed #fecaca;border-radius:20px;background:#fff7f7;color:#7f1d1d;font-weight:800;text-align:center}
@media (max-width: 1024px){.buc-apartment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 640px){.buc-apartments-hero{padding:20px}.buc-location-row{flex-direction:column}.buc-apartment-grid{grid-template-columns:1fr}.buc-apartment-image{height:220px}}
@media (prefers-reduced-motion: reduce){.buc-apartment-card,.buc-location-row button,.buc-whatsapp-btn{transition:none!important;transform:none!important}}
