/* ONE24 — Public Business Page (Module A) demo styles */

.biz-page{max-width:480px;margin:0 auto;background:#fff;min-height:100vh;box-shadow:0 0 60px rgba(0,0,0,.06);}

.biz-cover{
  background:var(--one24-charcoal);
  padding:20px 20px 56px;position:relative;color:#fff;overflow:hidden;
}
.biz-cover .pattern{
  position:absolute;inset:0;opacity:.5;
  background-image:radial-gradient(var(--border-dark) 1.4px,transparent 1.4px);
  background-size:16px 16px;
  mask-image:linear-gradient(to bottom,black,transparent 85%);
}
.biz-top-row{display:flex;justify-content:space-between;align-items:center;position:relative;z-index:1;}
.biz-back{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:#fff;}
.biz-share{
  width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.12);
  display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.2);
}
.biz-identity{position:relative;z-index:1;margin-top:26px;display:flex;align-items:flex-end;gap:14px;}
.biz-logo{
  width:72px;height:72px;border-radius:20px;background:#fff;flex:none;
  display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-md);
  border:3px solid var(--one24-charcoal);
}
.biz-logo img{width:38px;height:38px;}
.biz-name{font-size:21px;font-weight:800;margin-bottom:2px;}
.biz-cat{font-size:12.5px;color:var(--text-on-dark-muted);}

.biz-body{padding:0 18px 100px;margin-top:-30px;position:relative;z-index:2;}

.biz-status-row{
  display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--border);
  border-radius:16px;padding:12px 16px;box-shadow:var(--shadow-sm);margin-bottom:16px;
}
.biz-status{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800;}
.biz-status .dot{width:8px;height:8px;border-radius:50%;background:var(--accent);}
.biz-status.closed .dot{background:#D1483F;}
.biz-status.closed{color:#8a3a34;}
.biz-hours{font-size:12px;color:var(--text-muted);}

.quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:20px;}
.qa-btn{
  display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 6px;
  border:1px solid var(--border);border-radius:14px;background:#fff;font-size:11.5px;font-weight:700;
  color:var(--text);cursor:pointer;
}
.qa-btn .circ{width:42px;height:42px;border-radius:50%;background:var(--bg-soft);display:flex;align-items:center;justify-content:center;}
.qa-btn:active{transform:scale(.96);}

.biz-section{margin-bottom:26px;}
.biz-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;}
.biz-section-head h3{font-size:15.5px;margin:0;}
.biz-section-head a{font-size:12.5px;font-weight:700;color:var(--one24-slate);}

.offer-card{
  background:var(--one24-charcoal);color:#fff;border-radius:16px;padding:16px;display:flex;
  gap:12px;align-items:center;
}
.offer-badge{background:var(--accent);color:var(--accent-text);font-size:11px;font-weight:800;padding:3px 9px;border-radius:999px;display:inline-block;margin-bottom:6px;}
.offer-card h4{font-size:14.5px;margin:0 0 3px;color:#fff;}
.offer-card p{font-size:12.5px;margin:0;color:var(--text-on-dark-muted);}

.menu-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;margin-bottom:14px;}
.menu-tab{
  flex:none;padding:8px 16px;border-radius:999px;font-size:13px;font-weight:700;border:1px solid var(--border);
  background:#fff;color:var(--text-muted);cursor:pointer;
}
.menu-tab.active{background:var(--one24-charcoal);color:#fff;border-color:var(--one24-charcoal);}

.menu-item{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);}
.menu-item:last-child{border-bottom:none;}
.menu-thumb{
  width:58px;height:58px;border-radius:12px;background:var(--bg-soft);flex:none;
  display:flex;align-items:center;justify-content:center;color:var(--one24-slate);border:1px solid var(--border);
}
.menu-item-info{flex:1;min-width:0;}
.menu-item-info h4{font-size:14px;margin:0 0 3px;display:flex;justify-content:space-between;gap:8px;}
.menu-item-info h4 .price{font-family:var(--font-en);color:var(--one24-charcoal);}
.menu-item-info p{font-size:12.5px;margin:0;color:var(--text-muted);}
.avail-off{font-size:11px;color:#B34A42;font-weight:700;}
.menu-panel{display:none;}
.menu-panel.active{display:block;}

.loyalty-card{
  border:1px solid var(--border);border-radius:16px;padding:16px;background:linear-gradient(0deg,#fff,#fff);
}
.loyalty-card h4{font-size:14.5px;margin:0 0 4px;}
.loyalty-card p{font-size:12.5px;margin:0 0 14px;}
.stamps{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap;}
.stamp{
  width:34px;height:34px;border-radius:50%;border:2px dashed var(--border);
  display:flex;align-items:center;justify-content:center;color:var(--border);
}
.stamp.filled{border-style:solid;border-color:var(--accent);background:var(--accent);color:var(--accent-text);}

.review-summary{display:flex;align-items:center;gap:14px;margin-bottom:14px;}
.review-score{font-family:var(--font-en);font-size:32px;font-weight:800;}
.review-stars{color:var(--one24-charcoal);font-size:13px;}
.review-count{font-size:12px;color:var(--text-muted);}
.review-item{padding:12px 0;border-bottom:1px solid var(--border);}
.review-item:last-child{border-bottom:none;}
.review-item .who{font-size:13px;font-weight:700;}
.review-item .stars{font-size:11px;color:var(--one24-charcoal);margin-inline-start:8px;}
.review-item p{font-size:13px;margin:4px 0 0;}

.biz-footer{text-align:center;padding:26px 0 10px;font-size:12px;color:var(--text-muted);}
.biz-footer img{height:16px;display:inline-block;vertical-align:middle;margin-inline-start:4px;}

/* Floating AI assistant */
.ai-fab{
  position:fixed;bottom:22px;inset-inline-end:calc(50% - 240px + 18px);width:54px;height:54px;border-radius:50%;
  background:var(--one24-charcoal);color:var(--accent);display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow-md);cursor:pointer;z-index:40;border:none;
}
@media (max-width:530px){.ai-fab{inset-inline-end:18px;}}

.ai-panel{
  position:fixed;bottom:0;inset-inline:0;z-index:60;display:none;
}
.ai-panel.open{display:flex;justify-content:center;align-items:flex-end;background:rgba(26,26,26,.4);inset-block-start:0;
}
.ai-sheet{
  width:min(420px,100%);background:#fff;border-radius:20px 20px 0 0;max-height:78vh;display:flex;flex-direction:column;
  box-shadow:0 -10px 40px rgba(0,0,0,.25);
}
.ai-sheet-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid var(--border);}
.ai-sheet-head .who{display:flex;align-items:center;gap:10px;}
.ai-sheet-head .avatar{width:34px;height:34px;border-radius:50%;background:var(--one24-charcoal);display:flex;align-items:center;justify-content:center;}
.ai-sheet-head strong{font-size:14px;display:block;}
.ai-sheet-head small{font-size:11px;color:var(--text-muted);}
.ai-close{background:none;border:none;font-size:20px;cursor:pointer;color:var(--text-muted);}
.ai-messages{padding:16px 18px;overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:10px;min-height:220px;}
.ai-msg{max-width:80%;padding:10px 14px;border-radius:14px;font-size:13.5px;line-height:1.5;}
.ai-msg.bot{background:var(--bg-soft);align-self:flex-start;border-bottom-right-radius:4px;}
.ai-msg.user{background:var(--one24-charcoal);color:#fff;align-self:flex-end;border-bottom-left-radius:4px;}
.ai-suggestions{display:flex;flex-wrap:wrap;gap:8px;padding:0 18px 12px;}
.ai-chip{font-size:12px;font-weight:700;border:1px solid var(--border);border-radius:999px;padding:6px 12px;background:#fff;cursor:pointer;}
.ai-input-row{display:flex;gap:8px;padding:14px 18px;border-top:1px solid var(--border);}
.ai-input-row input{
  flex:1;border:1px solid var(--border);border-radius:999px;padding:11px 16px;font-family:inherit;font-size:13.5px;
}
.ai-send{width:42px;height:42px;border-radius:50%;background:var(--one24-charcoal);color:var(--accent);border:none;display:flex;align-items:center;justify-content:center;flex:none;cursor:pointer;}

/* Simple modal (booking / review) */
.modal-overlay{
  position:fixed;inset:0;background:rgba(26,26,26,.45);display:none;align-items:center;justify-content:center;
  z-index:70;padding:20px;
}
.modal-overlay.open{display:flex;}
.modal-box{background:#fff;border-radius:20px;padding:24px;width:min(420px,100%);max-height:88vh;overflow-y:auto;}
.modal-box h3{font-size:17px;margin-bottom:4px;}
.modal-box .sub{font-size:13px;color:var(--text-muted);margin-bottom:18px;}
.form-field{margin-bottom:14px;}
.form-field label{display:block;font-size:12.5px;font-weight:700;margin-bottom:6px;}
.form-field input,.form-field textarea,.form-field select{
  width:100%;border:1px solid var(--border);border-radius:10px;padding:11px 14px;font-family:inherit;font-size:14px;background:#fff;
}
.form-field textarea{resize:vertical;min-height:70px;}
.modal-close{position:absolute;top:16px;inset-inline-end:16px;background:none;border:none;font-size:20px;cursor:pointer;color:var(--text-muted);}
.modal-box{position:relative;}
.modal-success{text-align:center;padding:10px 0;}
.modal-success .ok-circle{
  width:56px;height:56px;border-radius:50%;background:var(--accent);color:var(--accent-text);
  display:flex;align-items:center;justify-content:center;margin:0 auto 16px;
}

@media (max-width:530px){
  .biz-page{box-shadow:none;}
}
