/* Platform features: directory, deals, projects, premium, video, account, admin, app shell */

.skip { position: absolute; left: -9999px; top: 8px; background: var(--jade); color: var(--jade-ink); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.small { font-size: 14px; }
.pre { white-space: pre-line; }
.selectable { user-select: all; }
.pad-bottom { padding-bottom: 64px; }
.center-cta { text-align: center; margin-top: 32px; }
.h-sub { font-size: 24px; margin-block: 36px 14px; }
.lead-p { font-size: 17px; color: var(--ink-2); }
.btn-small { padding: 7px 12px; font-size: 13px; }
.btn-install { background: var(--brass); color: #1b1407; }
label.field.inline { flex-direction: row; align-items: center; gap: 8px; }
label.field.inline select, label.field.inline input { width: auto; }
.offline-bar { background: var(--brass-soft); color: var(--ink); text-align: center; padding: 8px 16px; font-size: 14px; }

/* nav: more items → switch to menu earlier */
.main-nav a.nav-account { border: 1px solid var(--line); }
@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; font-size: 16px; }
}

/* ---------- tags & cards ---------- */
.tag-premium { background: linear-gradient(135deg, #c9a24c, #a7812f); color: #1b1407; }
.tag-featured { background: var(--surface); color: var(--jade); box-shadow: inset 0 0 0 1.5px var(--jade); }
.tag-video { background: rgba(21,32,43,.78); color: #fff; }
.tag-proj { background: var(--ink); color: var(--paper); }
.card { position: relative; }
.card h3 a, .biz-card h3 a { color: inherit; text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stretch:focus-visible { outline: none; }
.card:focus-within, .biz-card:focus-within { outline: 2px solid var(--brass); outline-offset: 2px; }
.card-premium { border-color: color-mix(in srgb, var(--brass) 70%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brass) 45%, transparent), var(--shadow); }
@media (min-width: 900px) {
  .grid > .card-premium:first-child { grid-column: span 2; }
  .grid > .card-premium:first-child .card-media { aspect-ratio: 16 / 9; }
}
.heart { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.heart svg { width: 20px; height: 20px; fill: none; stroke: #15202b; stroke-width: 1.8; }
.heart[aria-pressed="true"] svg { fill: #d0453a; stroke: #d0453a; }
.detail-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.detail-tags .heart { position: static; margin-left: auto; box-shadow: none; border: 1px solid var(--line); }

/* ---------- sponsored banner ---------- */
.sponsor { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--ink); color: var(--paper); border-radius: 16px; overflow: hidden; text-decoration: none; margin-top: 8px; }
.sponsor-media { aspect-ratio: 16 / 10; max-width: 100%; }
.sponsor-media img, .sponsor-media svg { width: 100%; height: 100%; object-fit: cover; }
.sponsor-body { padding: 28px 32px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.sponsor-body h2 { font-size: clamp(24px, 3vw, 34px); color: var(--paper); }
.sponsor-body p { margin: 0; opacity: .85; }
.sponsor-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #d3ad5e; font-weight: 700; }
.sponsor-facts { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; opacity: .9; }
.sponsor-facts b { color: #d3ad5e; }
.sponsor:hover .sponsor-body h2 { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .sponsor { grid-template-columns: 1fr; } .sponsor-body { padding: 20px; } }
.side-sponsor { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--ink); color: var(--paper); text-decoration: none; }
.side-sponsor b { font-family: var(--display); font-weight: 400; font-size: 20px; }
@media (max-width: 900px) { .side-sponsor { display: none; } }

/* ---------- coupons ---------- */
.coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.coupon-grid.one { grid-template-columns: 1fr; }
@media (max-width: 400px) { .coupon-grid { grid-template-columns: 1fr; } }
.coupon { display: grid; grid-template-columns: 118px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative; }
.coupon-amt { background: var(--jade); color: var(--jade-ink); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 14px 10px; gap: 6px; position: relative; }
.coupon-amt::after { content: ""; position: absolute; right: -1px; top: 8px; bottom: 8px; border-right: 2px dashed var(--surface); }
.coupon-amt b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; }
.coupon-amt span { font-size: 12px; opacity: .9; line-height: 1.3; }
.coupon-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.coupon-body h3 { font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1.4; }
.coupon-body p { margin: 0; font-size: 13px; }
.coupon-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; font-size: 13px; }
.coupon-link { font-size: 13px; text-decoration: none; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; letter-spacing: .08em; background: var(--brass-soft); border: 1.5px dashed var(--brass); padding: 5px 10px; border-radius: 6px; color: var(--ink); }
.btn-small.btn-primary, .coupon .btn-small { background: var(--jade); color: var(--jade-ink); }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); }
.chip-deal { background: var(--brass-soft); color: var(--ink); }

/* ---------- business directory ---------- */
.cat-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-bottom: 22px; }
@media (max-width: 900px) { .cat-row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .cat-row { grid-template-columns: repeat(3, 1fr); } }
.cat { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font: inherit; color: var(--ink); }
.cat:hover { border-color: var(--jade); }
.cat b { font-size: 13px; font-weight: 600; text-align: center; line-height: 1.3; }
.cat small { font-size: 12px; color: var(--muted); }
.cat-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--jade-soft); position: relative; }
.cat-ico::after { content: ""; position: absolute; inset: 9px; border-radius: 3px; background: var(--jade); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.cat-food { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11h18a9 9 0 0 1-18 0zM8 3v5M12 2v6M16 3v5'  stroke='black' stroke-width='2' fill='black'/%3E%3C/svg%3E"); }
.cat-grocery { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 3h3l3 12h11l3-9H7' stroke='black' stroke-width='2.4' fill='none'/%3E%3Ccircle cx='9' cy='20' r='2'/%3E%3Ccircle cx='18' cy='20' r='2'/%3E%3C/svg%3E"); }
.cat-beauty { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c3 4 6 7 6 11a6 6 0 0 1-12 0c0-4 3-7 6-11z'/%3E%3C/svg%3E"); }
.cat-education { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3L1 9l11 6 9-5v7h2V9zM5 13v4c0 2 3 4 7 4s7-2 7-4v-4l-7 4z'/%3E%3C/svg%3E"); }
.cat-services { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 5h13v11H1zM14 9h5l4 4v3h-9z'/%3E%3Ccircle cx='5' cy='19' r='2.5'/%3E%3Ccircle cx='18' cy='19' r='2.5'/%3E%3C/svg%3E"); }
.cat-travel { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%3E%3C/svg%3E"); }
.cat-shopping { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 7h14l1 15H4zM9 7a3 3 0 0 1 6 0' stroke='black' stroke-width='2' fill='black'/%3E%3C/svg%3E"); }
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
@media (max-width: 400px) { .biz-grid { grid-template-columns: 1fr; } }
.biz-card { position: relative; display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; transition: box-shadow .2s; }
.biz-card:hover { box-shadow: var(--shadow); }
.biz-logo { flex: none; width: 60px; height: 60px; border-radius: 14px; background: var(--jade-soft); color: var(--jade); display: grid; place-items: center; overflow: hidden; font-family: var(--display); font-size: 22px; }
.biz-logo img { width: 100%; height: 100%; object-fit: cover; }
.biz-logo.big { width: 88px; height: 88px; font-size: 32px; border-radius: 18px; }
.biz-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.biz-body h3 { font-family: var(--body); font-weight: 600; font-size: 17px; line-height: 1.35; }
.biz-body p { margin: 0; font-size: 14px; }
.biz-desc { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.biz-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.biz-head { display: flex; gap: 18px; align-items: center; margin-top: 8px; }
.biz-head h1 { margin: 6px 0 2px; }
.biz-head p { margin: 0; }
.biz-toolbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.biz-toolbar input { max-width: 280px; }
@media (max-width: 600px) { .biz-toolbar input { max-width: none; } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--jade); border-color: var(--jade); color: var(--jade-ink); }
.photo-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 18px; }
.photo-row img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; width: 100%; }
.photo-row.small { grid-template-columns: repeat(auto-fill, minmax(72px, 90px)); margin-top: 8px; }

/* ---------- projects ---------- */
.proj-card .eyebrow { font-size: 11px; }

/* ---------- video (loads only on tap) ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0b1114; max-width: 100%; }
.video.tall { aspect-ratio: 9 / 16; max-width: 360px; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.video-play img, .video-play svg { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.video-play:focus-visible { outline: 3px solid var(--brass); outline-offset: -3px; }
.play-ico { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 6px 22px rgba(0,0,0,.35); transition: transform .15s; }
.play-ico::after { content: ""; position: absolute; left: 31px; top: 24px; border-left: 22px solid var(--jade); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.video-play:hover .play-ico { transform: scale(1.08); }
.video-kind { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 6px; }
.video-link { font-size: 14px; margin: 8px 0 0; }

/* ---------- advertise packages ---------- */
.pkg-group { font-size: 22px; margin-block: 34px 14px; }
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .pkgs { grid-template-columns: 1fr; } }
.pkg { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.pkg-hi { border: 2px solid var(--brass); }
.pkg-flag { position: absolute; top: -12px; left: 20px; background: var(--brass); color: #1b1407; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pkg h3 { font-size: 20px; }
.pkg-price { font-family: var(--display); font-size: 30px; font-variant-numeric: tabular-nums; }
.pkg-price small { font-family: var(--body); font-size: 14px; color: var(--muted); }
.pkg ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: 15px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- two CTAs ---------- */
.two-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.two-cta .cta { flex-direction: column; align-items: flex-start; }
.cta-brass { background: var(--brass-soft); color: var(--ink); }
.cta-brass .btn { background: var(--ink); color: var(--paper); }
@media (max-width: 860px) { .two-cta { grid-template-columns: 1fr; } }

/* ---------- account & admin ---------- */
.acct-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.acct-top .muted { margin-right: auto; }
.new-row { display: flex; gap: 10px; flex-wrap: wrap; margin-block: 16px 8px; }
.form.narrow { max-width: 460px; grid-template-columns: 1fr; }
.form small.muted { font-weight: 400; font-size: 12px; }
fieldset.checks { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; }
fieldset.checks legend { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0 4px; }
.ad-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ad-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.ad-row:last-child { border-bottom: 0; }
.ad-row > div:first-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ad-row b { font-weight: 600; word-break: break-word; }
.ad-row p { margin: 4px 0 0; color: var(--ink-2); }
.ad-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }
.ad-actions.col { flex-direction: column; align-items: flex-end; }
@media (max-width: 700px) { .ad-row { flex-direction: column; } .ad-actions.col { align-items: flex-start; } }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.st-pending { background: var(--brass-soft); color: var(--ink); }
.st-published { background: var(--jade-soft); color: var(--ink); }
.st-rejected { background: color-mix(in srgb, var(--danger) 16%, var(--surface)); color: var(--ink); }
.st-archived { background: var(--sunk); color: var(--muted); }
.facts .blank { border-bottom: 0; }

/* ---------- app tab bar (phones & tablets) ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 11px; padding: 4px 2px; min-width: 0; }
  .tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current="page"] { color: var(--jade); font-weight: 600; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .float-chat { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .float-chat a { width: 46px; height: 46px; font-size: 12px; }
}

/* header fit at laptop widths */
.brand-text, .langs button { white-space: nowrap; }
@media (min-width: 1181px) and (max-width: 1320px) {
  .main-nav a { padding: 8px 8px; font-size: 14px; }
  .header-row { gap: 12px; }
  .langs button { padding: 4px 8px; }
}

/* New projects: stage tabs, stage tags, room table, facilities */
.stage-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag-stage { background: var(--brass); color: #fff; }
.tag-stage-new { background: var(--ok); }
.tag-stage-old { background: var(--ink-2); }
.tag-pet { background: #fff; color: var(--ink); }
.proj-rooms { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.price-ask { font-size: 18px; color: var(--brass); }
.proj-note { margin-top: 18px; max-width: 60em; }
.room-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 6px; }
.room-table th, .room-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.room-table th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--sunk); }
.fac-list { columns: 2 220px; gap: 24px; padding-left: 18px; margin: 6px 0 0; }
.fac-list li { margin-bottom: 6px; break-inside: avoid; }

/* Advertise: free offer + contact */
.offer-card { position: relative; background: var(--brass-soft); border: 1px solid color-mix(in srgb, var(--brass) 40%, transparent); border-radius: 20px; padding: 30px 28px 22px; max-width: 760px; }
.offer-flag { display: inline-block; background: var(--brass); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.offer-card h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }
.offer-list { padding-left: 20px; margin: 14px 0; }
.offer-list li { margin-bottom: 6px; }
.offer-contact { margin-top: 28px; max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; }
.offer-contact h2 { font-size: 24px; margin-bottom: 8px; }
.offer-contact .hero-talk-btns { margin-top: 16px; }
.offer-contact .btn { border-radius: 999px; }
.grid.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid.grid-4 { grid-template-columns: 1fr; } }
