/* ============================================================
   Coworking Workspace page (pages/workspace.html)
   Scoped with the .ws- prefix; uses the tokens from style.css.
   ============================================================ */

.ws-hero { position: relative; background: var(--black); color: var(--white); overflow: hidden; padding: 150px 0 90px; }
.ws-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 420px at 85% 20%, rgba(196,30,40,.35), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(196,30,40,.18), transparent 60%); pointer-events: none; }
.ws-hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.ws-crumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--gray-400); margin-bottom: 18px; }
.ws-crumb a { color: var(--gray-300); }
.ws-crumb i { font-size: 9px; }
.ws-status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 13px; font-weight: 600; }
.ws-status i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); animation: wsPulse 2s infinite; }
.ws-status.closed i { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.2); }
@keyframes wsPulse { 50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
.ws-hero h1 { color: var(--white); font-family: var(--font-display); font-size: clamp(38px, 5.2vw, 66px); line-height: 1.02; letter-spacing: -.02em; margin: 20px 0 18px; }
.ws-hero h1 em { font-style: normal; color: var(--red-light); }
.ws-hero p.lead { font-size: 18px; line-height: 1.6; color: var(--gray-300); max-width: 520px; }
.ws-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.ws-btn-ghost { display: inline-flex; align-items: center; gap: 10px; padding: 18px 30px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); color: var(--white); font-weight: 600; font-size: 15px; transition: var(--transition); }
.ws-btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.ws-from { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; color: var(--gray-400); }
.ws-from b { display: block; font-family: var(--font-display); font-size: 24px; color: var(--white); }

.ws-collage { position: relative; height: 520px; }
.ws-collage figure { position: absolute; margin: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.ws-collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-collage .a { inset: 0 18% 22% 0; }
.ws-collage .b { width: 52%; height: 46%; right: 0; bottom: 0; border: 6px solid var(--black); }
.ws-float { position: absolute; background: var(--white); color: var(--text); border-radius: 16px; padding: 12px 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg); font-size: 13px; }
.ws-float i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(196,30,40,.1); color: var(--red); font-size: 16px; }
.ws-float b { display: block; font-family: var(--font-display); font-size: 17px; }
.ws-float.f1 { left: -26px; bottom: 34%; }
.ws-float.f2 { right: 4%; top: -14px; }

.ws-band { background: var(--red); color: var(--white); }
.ws-band .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.ws-band div { padding: 26px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,.18); }
.ws-band div:last-child { border-right: 0; }
.ws-band b { color: var(--white); display: block; font-family: var(--font-display); font-size: 30px; }
.ws-band span { font-size: 13px; opacity: .85; }

.ws-sec { padding: 100px 0; }
.ws-sec.soft { background: var(--bg-soft); }
.ws-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.ws-head h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin: 14px 0 12px; letter-spacing: -.01em; }
.ws-head h2 em { font-style: normal; color: var(--red); }
.ws-head p { color: var(--text-sub); font-size: 16px; line-height: 1.6; }

/* rooms */
.ws-rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ws-room { background: var(--white); border: var(--border); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: var(--transition); }
.ws-room:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.ws-room-pic { height: 170px; position: relative; background: var(--dark-2); }
.ws-room-pic img { width: 100%; height: 100%; object-fit: cover; }
.ws-room-pic .ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #1a1a1a, #3a1013); color: rgba(255,255,255,.85); font-size: 42px; }
.ws-room-pic .badge { position: absolute; top: 12px; left: 12px; background: var(--white); color: var(--text); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.ws-room-pic .badge.vip { background: var(--red); color: var(--white); }
.ws-room-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ws-room h3 { font-family: var(--font-display); font-size: 20px; }
.ws-room p { color: var(--text-sub); font-size: 14px; line-height: 1.5; }
.ws-room-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ws-room-meta span { font-size: 12px; background: var(--bg-soft); border: var(--border); border-radius: 999px; padding: 4px 10px; }
.ws-room-price { margin-top: auto; padding-top: 14px; border-top: var(--border); display: flex; justify-content: space-between; align-items: end; font-size: 13px; color: var(--text-sub); }
.ws-room-price b { font-family: var(--font-display); font-size: 22px; color: var(--text); }

/* booking configurator */
.ws-book { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.ws-panel { background: var(--white); border: var(--border); border-radius: 24px; padding: 28px; }
.ws-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: var(--bg-soft); border-radius: 18px; margin-bottom: 26px; }
.ws-seg button { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; text-align: left; color: var(--text); background: transparent; transition: var(--transition); }
.ws-seg button i { font-size: 18px; color: var(--gray-500); }
.ws-seg button b { display: block; font-size: 15px; }
.ws-seg button small { color: var(--text-sub); font-size: 12px; }
.ws-seg button.on { background: var(--white); box-shadow: var(--shadow-sm); }
.ws-seg button.on i { color: var(--red); }
.ws-seg em { font-style: normal; font-size: 10px; background: var(--red); color: #fff; border-radius: 999px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px; }
.ws-step { margin-bottom: 24px; }
.ws-step h4 { display: flex; gap: 10px; align-items: center; font-size: 15px; margin-bottom: 12px; }
.ws-step h4 span { width: 26px; height: 26px; border-radius: 50%; background: var(--black); color: #fff; display: grid; place-items: center; font-size: 12px; }
.ws-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ws-opt { border: 2px solid var(--border-col); border-radius: 16px; padding: 14px; text-align: left; background: var(--white); color: var(--text); transition: var(--transition); position: relative; }
.ws-opt:hover { border-color: rgba(196,30,40,.4); }
.ws-opt.on { border-color: var(--red); background: rgba(196,30,40,.04); }
.ws-opt b { display: block; font-size: 14px; }
.ws-opt small { display: block; color: var(--text-sub); font-size: 12px; margin-top: 2px; }
.ws-opt .tg { position: absolute; top: -9px; right: 10px; font-size: 10px; font-weight: 700; background: var(--red); color: #fff; padding: 2px 8px; border-radius: 999px; }
.ws-addons label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: var(--border); border-radius: 14px; margin-bottom: 8px; font-size: 14px; cursor: pointer; }
.ws-addons label span { margin-left: auto; font-weight: 600; }
.ws-sum { position: sticky; top: 100px; background: var(--black); color: var(--white); border-radius: 24px; padding: 28px; overflow: hidden; }
.ws-sum::after { content: ""; position: absolute; right: -80px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(rgba(196,30,40,.45), transparent 70%); }
.ws-sum .k { font-size: 11px; letter-spacing: .14em; color: var(--gray-400); font-weight: 700; }
.ws-sum h3 { color: var(--white); font-family: var(--font-display); font-size: 24px; margin: 8px 0 4px; }
.ws-sum .meta { color: var(--gray-400); font-size: 13px; line-height: 1.5; }
.ws-sum .price { margin: 22px 0 6px; display: flex; align-items: baseline; gap: 8px; }
.ws-sum .price b { font-family: var(--font-display); font-size: 46px; letter-spacing: -.02em; }
.ws-sum .price span { color: var(--gray-400); font-size: 14px; }
.ws-sum .save { font-size: 12px; color: #86efac; min-height: 16px; }
.ws-sum ul { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 9px; font-size: 14px; color: var(--gray-200); }
.ws-sum li i { color: var(--red-light); margin-right: 8px; }
.ws-sum .btn { width: 100%; justify-content: center; position: relative; z-index: 1; }
.ws-sum .fine { font-size: 12px; color: var(--gray-500); margin-top: 12px; text-align: center; }
.ws-live { font-size: 11px; color: var(--gray-500); margin-top: 6px; text-align: center; }

/* price table */
.ws-table-wrap { overflow-x: auto; border: var(--border); border-radius: 20px; background: var(--white); }
.ws-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
.ws-table th, .ws-table td { padding: 14px 18px; text-align: left; border-bottom: var(--border); }
.ws-table thead th { background: var(--black); color: var(--white); font-weight: 600; font-size: 13px; }
.ws-table tbody tr:last-child td { border-bottom: 0; }
.ws-table td:first-child { font-weight: 600; }
.ws-table td.p { font-family: var(--font-display); font-weight: 700; }
.ws-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-soft); border: var(--border); border-radius: 999px; margin: 0 auto 22px; }
.ws-toggle button { padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--text); background: transparent; }
.ws-toggle button.on { background: var(--black); color: var(--white); }

/* amenities */
.ws-amen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ws-amen div { background: var(--white); border: var(--border); border-radius: 20px; padding: 24px; transition: var(--transition); }
.ws-amen div:hover { border-color: rgba(196,30,40,.35); box-shadow: var(--shadow-sm); }
.ws-amen i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(196,30,40,.08); color: var(--red); font-size: 20px; margin-bottom: 16px; }
.ws-amen h4 { font-size: 16px; margin-bottom: 6px; }
.ws-amen p { font-size: 14px; color: var(--text-sub); line-height: 1.55; }

/* wednesday */
.ws-wed { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: linear-gradient(110deg, var(--red-dark), var(--red)); color: var(--white); border-radius: 28px; padding: 34px 40px; }
.ws-wed .big { font-family: var(--font-display); font-size: 56px; line-height: 1; }
.ws-wed .big small { display: block; font-size: 13px; font-family: var(--font-body); opacity: .8; letter-spacing: .12em; }
.ws-wed h3 { color: var(--white); font-family: var(--font-display); font-size: 26px; margin-bottom: 6px; }
.ws-wed p { opacity: .9; line-height: 1.5; }
.ws-wed .btn { background: var(--white); color: var(--red); }

/* steps */
.ws-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.ws-steps div { position: relative; padding: 26px; background: var(--white); border: var(--border); border-radius: 20px; }
.ws-steps div::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; color: var(--red); font-weight: 700; }
.ws-steps h4 { font-size: 17px; margin: 12px 0 6px; }
.ws-steps p { font-size: 14px; color: var(--text-sub); line-height: 1.5; }

/* faq */
.ws-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.ws-faq details { background: var(--white); border: var(--border); border-radius: 18px; padding: 0 22px; }
.ws-faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.ws-faq summary::-webkit-details-marker { display: none; }
.ws-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--red); transition: transform .2s; }
.ws-faq details[open] summary::after { transform: rotate(45deg); }
.ws-faq details p { padding: 0 0 20px; color: var(--text-sub); line-height: 1.6; font-size: 15px; }

/* location */
.ws-loc { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: stretch; }
.ws-loc-card { background: var(--black); color: var(--white); border-radius: 24px; padding: 34px; display: grid; gap: 24px; }
.ws-loc-card h4 { font-size: 12px; letter-spacing: .14em; color: var(--gray-400); margin-bottom: 8px; }
.ws-loc-card p, .ws-loc-card a { color: var(--gray-200); line-height: 1.6; display: block; }
.ws-hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; color: var(--gray-200); }
.ws-map { border-radius: 24px; overflow: hidden; border: var(--border); min-height: 380px; }
.ws-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* final cta */
.ws-final { text-align: center; background: var(--black); color: var(--white); border-radius: 32px; padding: 70px 30px; position: relative; overflow: hidden; }
.ws-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 250px at 50% 0%, rgba(196,30,40,.45), transparent 70%); }
.ws-final > * { position: relative; }
.ws-final h2 { color: var(--white); font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px); margin-bottom: 14px; }
.ws-final p { color: var(--gray-300); max-width: 520px; margin: 0 auto 28px; }

/* sticky mobile bar */
.ws-mbar { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; background: var(--black); color: var(--white); border-radius: 18px; padding: 10px 10px 10px 18px; align-items: center; gap: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.35); transform: translateY(140%); transition: transform .3s ease; }
.ws-mbar.show { transform: none; }
.ws-mbar small { display: block; color: var(--gray-400); font-size: 11px; }
.ws-mbar b { font-family: var(--font-display); font-size: 18px; }
.ws-mbar .btn { margin-left: auto; padding: 12px 18px; font-size: 14px; }

@media (max-width: 1100px) {
  .ws-rooms, .ws-amen { grid-template-columns: repeat(2, 1fr); }
  .ws-book { grid-template-columns: 1fr; }
  .ws-sum { position: relative; top: auto; }
}
@media (max-width: 900px) {
  .ws-hero { padding: 120px 0 60px; }
  .ws-hero .container { grid-template-columns: 1fr; gap: 40px; }
  .ws-collage { height: 380px; }
  .ws-float.f1 { left: 8px; }
  .ws-steps { grid-template-columns: repeat(2, 1fr); }
  .ws-loc { grid-template-columns: 1fr; }
  .ws-wed { grid-template-columns: 1fr; text-align: center; padding: 30px 24px; }
  .ws-mbar { display: flex; }
}
@media (max-width: 600px) {
  .ws-sec { padding: 70px 0; }
  .ws-band .container { grid-template-columns: repeat(2, 1fr); }
  .ws-band div:nth-child(2) { border-right: 0; }
  .ws-band div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .ws-rooms, .ws-amen, .ws-steps { grid-template-columns: 1fr; }
  .ws-seg { grid-template-columns: 1fr; }
  .ws-panel, .ws-sum { padding: 22px; border-radius: 20px; }
  .ws-collage { height: 300px; }
  .ws-float { display: none; }
  .ws-sum .price b { font-size: 38px; }
}

.ws-loc-card h4 { color: var(--gray-400); }
.ws-book > *, .ws-hero .container > *, .ws-loc > * { min-width: 0; }
.ws-opt small { overflow-wrap: anywhere; }
.ws-sum .btn, .ws-sum { box-sizing: border-box; max-width: 100%; }
