/* KyrgyzGo Visual Convergence 0.6.2 — owner-approved production layer. */
:root {
  --ink: #142a24;
  --muted: #596b64;
  --brand: #0f493a;
  --brand-2: #1e6a56;
  --paper: #f7f3e9;
  --surface-2: #eef2ec;
  --line: #d9e0da;
  --container: 1320px;
}

html { font-size: 16px; }
body { color: var(--ink); font-size: 16px; background: var(--paper); }
p, li, input, select, textarea, button { font-size: 1rem; }
small, .offer-meta, .trust-row, .detail-price span, .catalog-summary, .form-footnote { font-size: .875rem; }
.temporary-visual-label { display: none !important; }
:focus-visible { outline: 3px solid #f0bd5b; outline-offset: 3px; }

/* Header */
.site-header { background: rgba(250,248,242,.96); }
.nav-wrap { min-height: 72px; }
.brand-copy strong { font-family: Georgia,"Times New Roman",serif; font-size: 1.35rem; letter-spacing: -.01em; text-transform: none; }
.brand-mark { width: 42px; height: 42px; font-size: 1.45rem; }
.main-nav { gap: 18px; font-size: .9375rem; font-weight: 680; }
.main-nav a, .main-nav button { font-size: .9375rem; }
.language-switch { font-size: .875rem; }
.nav-account { padding: 10px 18px; background: var(--brand); color: white; border-color: var(--brand); }
.nav-account:hover { color: white; background: #092f26; }

/* Full-bleed, photo-first Home */
.hero-convergence { padding: 22px 0 0; overflow: visible; background: var(--paper); }
.hero-convergence::before { display: none; }
.hero-stage { position: relative; min-height: 650px; overflow: hidden; border-radius: 22px; color: white; background: #456f61; box-shadow: 0 24px 64px rgba(13,47,38,.18); }
.hero-stage-media, .hero-stage-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-stage-media img { object-position: center 48%; }
.hero-stage-shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(5,30,24,.82) 0%,rgba(5,30,24,.5) 43%,rgba(5,30,24,.08) 74%),linear-gradient(0deg,rgba(5,30,24,.48) 0%,transparent 52%); }
.hero-stage-copy { position: relative; z-index: 2; width: min(700px,64%); padding: 78px 72px 230px; }
.hero-stage-copy .eyebrow { color: #f5deb3; font-size: .875rem; }
.hero-stage-copy h1 { max-width: 680px; margin: 0 0 20px; color: white; font-family: Georgia,"Times New Roman",serif; font-size: clamp(3.75rem,5.5vw,5.75rem); font-weight: 700; line-height: .94; letter-spacing: -.045em; text-shadow: 0 3px 22px rgba(0,0,0,.25); }
.hero-stage-copy p { max-width: 600px; margin: 0; color: rgba(255,255,255,.9); font-size: 1.125rem; line-height: 1.55; }
.hero-search-dock { position: absolute; z-index: 3; left: 44px; right: 44px; bottom: 38px; }
.hero-service-tabs { width: max-content; max-width: 100%; display: flex; overflow-x: auto; border-radius: 15px 15px 0 0; background: rgba(253,252,248,.98); scrollbar-width: none; }
.hero-service-tabs::-webkit-scrollbar { display: none; }
.hero-service-tabs a { min-height: 58px; min-width: 132px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; color: var(--ink); border-right: 1px solid var(--line); font-size: .9375rem; font-weight: 750; white-space: nowrap; }
.hero-service-tabs a:first-child { color: var(--brand); box-shadow: inset 0 -3px var(--brand); }
.hero-service-tabs a:hover { color: var(--brand); background: #f0f4ef; }
.hero-search-v2 { position: relative; margin: 0; display: grid; grid-template-columns: 1.35fr 1fr .7fr auto; padding: 12px; border: 0; border-radius: 0 16px 16px 16px; background: rgba(253,252,248,.98); box-shadow: 0 18px 42px rgba(6,29,23,.24); }
.hero-search-v2 label { min-width: 0; padding: 5px 17px; color: var(--ink); border-right: 1px solid var(--line); }
.hero-search-v2 label > span:first-child { min-height: 24px; display: flex; align-items: center; gap: 7px; color: #344a43; font-size: .875rem; font-weight: 780; }
.hero-search-v2 input { width: 100%; min-height: 38px; padding: 4px 0; color: var(--ink); border: 0; background: transparent; font-size: 1rem; }
.hero-search-v2 .btn { align-self: stretch; min-width: 140px; min-height: 58px; border-radius: 12px; font-size: 1rem; }
.date-field-control { position: relative; display: flex !important; align-items: center; }
.date-field-control input { padding-right: 38px; }
.date-picker-trigger { position: absolute; right: 0; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; color: var(--brand); background: #eaf0eb; }
.hero-search-error { grid-column: 1 / -1; margin: 8px 8px 0; padding: 8px 12px; color: #8e2d28; background: #fbeceb; border-radius: 8px; font-size: .875rem; font-weight: 700; }
.hero-search-error[hidden] { display: none; }

/* Compact trust/value strip */
.trust-strip { padding: 0; background: white; border-bottom: 1px solid var(--line); }
.trust-strip-grid { min-height: 92px; display: grid; grid-template-columns: repeat(4,1fr); }
.trust-strip-grid > div { display: flex; align-items: center; gap: 13px; padding: 18px 24px; border-right: 1px solid var(--line); }
.trust-strip-grid > div:last-child { border-right: 0; }
.trust-strip-grid > div > .ui-icon { width: 30px; height: 30px; color: var(--brand); }
.trust-strip-grid span { display: flex; flex-direction: column; }
.trust-strip-grid strong { font-size: .9375rem; }
.trust-strip-grid small { color: var(--muted); font-size: .8125rem; }

/* Marketplace content begins immediately */
.destination-section { padding: 54px 0 28px; }
.category-section { padding: 34px 0 40px; }
.offers-section { padding: 42px 0 64px; }
.section-heading { margin-bottom: 26px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2rem,3vw,3.25rem); }
.destination-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.destination-card { min-height: 270px; border-radius: 16px; }
.destination-card img { transition: transform .35s ease; }
.destination-card:hover img { transform: scale(1.025); }
.destination-card strong { left: 22px; bottom: 20px; font-size: 1.5rem; }
.photo-category-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.photo-category-grid .category-card { position: relative; min-height: 245px; overflow: hidden; padding: 0; color: white; border: 0; border-radius: 16px; background: #315f51; }
.photo-category-grid .category-card picture, .photo-category-grid .category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.category-card-shade { position: absolute; inset: 28% 0 0; background: linear-gradient(transparent,rgba(4,31,24,.86)); }
.category-card-copy { position: absolute; z-index: 2; inset: auto 18px 17px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px 10px; }
.photo-category-grid .category-card-icon { grid-row: 1 / span 2; width: 43px; height: 43px; margin: 0; color: white; background: rgba(255,255,255,.17); backdrop-filter: blur(8px); }
.photo-category-grid .category-card strong { font-size: 1.15rem; }
.photo-category-grid .category-card small { color: rgba(255,255,255,.82); font-size: .8125rem; }

/* Inventory cards */
.offer-grid { gap: 18px; }
.offer-card { border-radius: 15px; box-shadow: 0 5px 20px rgba(15,73,58,.06); }
.offer-visual { min-height: 225px; }
.offer-body { padding: 18px; }
.offer-card h3 { font-size: 1.15rem; }
.offer-card p { font-size: .9375rem; line-height: 1.5; }
.offer-meta, .trust-row span { font-size: .875rem; }
.price strong { font-size: 1.1rem; }

/* Catalog: compact header, left sidebar, dense 3-column inventory */
.compact-hero { padding: 34px 0 28px; }
.compact-hero h1 { margin-bottom: 8px; font-size: clamp(2.25rem,3.6vw,3.6rem); }
.compact-hero p { margin: 0; font-size: 1rem; }
.catalog-section { padding: 28px 0 70px; }
.catalog-section .container { display: grid; grid-template-columns: 255px minmax(0,1fr); gap: 0 24px; align-items: start; }
.catalog-section .stay-type-tabs { grid-column: 1 / -1; margin-bottom: 20px; }
.catalog-section .stay-filter-toggle { display: none; }
.catalog-section .stay-filter-bar { grid-column: 1; grid-row: 2 / span 5; position: sticky; top: 92px; display: flex; flex-direction: column; align-items: stretch; gap: 13px; max-height: calc(100vh - 112px); overflow-y: auto; margin: 0; padding: 18px; border-radius: 14px; }
.catalog-section .stay-filter-bar label, .catalog-section .stay-filter-bar .filter-grow { min-width: 0; width: 100%; }
.catalog-section .stay-filter-bar input, .catalog-section .stay-filter-bar select { min-height: 44px; padding: 9px 10px; font-size: .9375rem; }
.catalog-section .amenity-filters { display: grid; gap: 7px; }
.catalog-section .amenity-filters label { min-height: 30px; display: flex; align-items: center; gap: 8px; }
.catalog-section .stay-filter-actions { width: 100%; display: grid; grid-template-columns: 1fr; gap: 8px; }
.catalog-section .catalog-summary, .catalog-section .active-filter-chips, .catalog-section > .container > .offer-grid, .catalog-section > .container > .empty-state { grid-column: 2; }
.catalog-summary { margin: 0 0 14px; }
.active-filter-chips { margin: 0 0 15px; }
.catalog-section .offer-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.catalog-section .offer-visual { min-height: 178px; }
.catalog-section .offer-body { padding: 14px; }
.catalog-section .offer-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.catalog-sort select { font-size: .9375rem; }

/* Detail */
.detail-section { padding: 30px 0 72px; }
.detail-grid { grid-template-columns: minmax(0,1fr) 360px; gap: 30px; }
.offer-gallery, .detail-visual.has-temporary-photo { min-height: 480px; border-radius: 16px; }
.gallery-main { width: 100%; height: 480px; object-fit: cover; }
.gallery-thumbs { margin-top: 10px; display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; }
.gallery-thumbs button { height: 76px; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 10px; background: transparent; }
.gallery-thumbs button:hover, .gallery-thumbs button:focus-visible { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { padding: 24px 0 20px; }
.detail-title h1 { font-size: clamp(2.35rem,4vw,4.2rem); }
.detail-copy p { font-size: 1rem; }
.booking-card { top: 88px; padding: 22px; border-radius: 15px; }
.booking-card input, .booking-card textarea { font-size: 1rem; }

/* AI */
.ai-section { padding: 42px 0 70px; }
.ai-page-heading h1 { font-size: clamp(2.75rem,4vw,4.25rem); }
.ai-page-heading p { max-width: 760px; font-size: 1.0625rem; }
.ai-panel { padding: 24px; }
.ai-history { min-height: 330px; }
.ai-message-content > strong, .ai-message > div:last-child > strong { font-size: .875rem; }
.ai-message-content > p, .ai-message > div:last-child > p { font-size: 1rem; line-height: 1.6; }
.ai-user-message { justify-content: flex-end; flex-direction: row; }
.ai-user-message .ai-message-content { max-width: 80%; }
.ai-compose label, .ai-status { font-size: .875rem; }
.ai-compose textarea { font-size: 1rem; }
.ai-privacy, .ai-handoff-note { font-size: .875rem; }

/* Host / Team */
.dashboard-surface { --container: 1240px; font-size: 16px; }
.dashboard-surface main { padding-left: 236px; }
.workspace-nav { width: 236px; padding: 28px 18px; }
.workspace-nav a { font-size: .9375rem; }
.workspace-brand { font-size: 1rem; }
.dashboard-hero { padding: 34px 0 24px; }
.dashboard-hero h1 { margin-bottom: 7px; font-size: clamp(2.2rem,3vw,3.35rem); }
.dashboard-section { padding: 12px 0 64px; }
.metrics-grid { gap: 14px; }
.metrics-grid article { min-height: 142px; padding: 21px; }
.metrics-grid article > span, .metrics-grid article small { font-size: .875rem; }
.metrics-grid article > strong { font-size: 1.75rem; }
.dashboard-heading { margin-top: 44px; }
.dashboard-heading h2 { font-size: clamp(1.75rem,2.4vw,2.55rem); }
.table-shell table { font-size: .9375rem; }
.table-shell th, .table-shell td { padding: 13px 14px; }

/* Auth: restrained, readable, form-first on mobile */
.auth-section { padding: 54px 0 72px; }
.auth-grid { border-radius: 20px; }
.auth-promo { min-height: 520px; padding: 48px; }
.auth-card { padding: 44px; }
.auth-card h1, .auth-card h2 { font-size: clamp(2rem,3vw,2.7rem); }
.auth-card label > span { font-size: .9375rem; }
.auth-card input, .auth-card select, .auth-card textarea { min-height: 48px; font-size: 1rem; }
.auth-bottom { font-size: .9375rem; }

@media (max-width: 1180px) {
  .hero-stage-copy { padding-left: 48px; }
  .hero-search-dock { left: 28px; right: 28px; }
  .hero-service-tabs a { min-width: 116px; padding-inline: 14px; }
  .photo-category-grid { grid-template-columns: repeat(3,1fr); }
  .catalog-section .container { grid-template-columns: 235px minmax(0,1fr); gap: 0 18px; }
  .catalog-section .offer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-surface main { padding-left: 210px; }
  .workspace-nav { width: 210px; }
}

@media (max-width: 960px) {
  .section { padding: 56px 0; }
  .hero-convergence { padding-top: 12px; }
  .hero-stage { min-height: 760px; }
  .hero-stage-shade { background: linear-gradient(180deg,rgba(5,30,24,.28),rgba(5,30,24,.2) 30%,rgba(5,30,24,.8) 72%,rgba(5,30,24,.92)); }
  .hero-stage-copy { width: 100%; padding: 52px 38px 390px; }
  .hero-stage-copy h1 { font-size: clamp(3rem,8vw,4.4rem); }
  .hero-search-dock { left: 20px; right: 20px; bottom: 20px; }
  .hero-service-tabs { width: 100%; border-radius: 14px 14px 0 0; }
  .hero-service-tabs a { min-width: 124px; }
  .hero-search-v2 { grid-template-columns: 1fr 1fr; border-radius: 0 0 14px 14px; }
  .hero-search-v2 label { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-search-v2 label:first-of-type { grid-column: 1 / -1; }
  .hero-search-v2 .btn { grid-column: 1 / -1; }
  .trust-strip-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip-grid > div:nth-child(2) { border-right: 0; }
  .trust-strip-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .destination-grid { grid-template-columns: repeat(3,1fr); }
  .destination-card { min-height: 220px; }
  .photo-category-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .photo-category-grid .category-card { min-width: 210px; min-height: 225px; scroll-snap-align: start; }
  .catalog-section .container { display: block; }
  .catalog-section .stay-filter-toggle { display: inline-flex; margin-bottom: 12px; }
  .catalog-section .stay-filter-bar { position: fixed; z-index: 90; inset: auto 0 0; max-height: 84vh; display: grid; grid-template-columns: 1fr 1fr; overflow-y: auto; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; transform: translateY(105%); transition: transform .22s ease; box-shadow: 0 -20px 60px rgba(0,0,0,.2); }
  .catalog-section .stay-filter-bar.open { transform: translateY(0); }
  .catalog-section .filter-sheet-head, .catalog-section .stay-filter-actions, .catalog-section .amenity-filters { grid-column: 1 / -1; }
  .catalog-section .offer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .offer-gallery, .detail-visual.has-temporary-photo, .gallery-main { min-height: 430px; height: 430px; }
  .auth-grid { grid-template-columns: 1fr; }
  .login-auth-grid .auth-card { order: 1; }
  .login-auth-grid .auth-promo { order: 2; min-height: 330px; }
}

@media (max-width: 800px) {
  .site-header { position: sticky; }
  .main-nav { font-size: 1rem; }
  .mobile-tabbar a { font-size: .75rem; }
  .dashboard-surface main { padding: 0 0 72px; }
  .workspace-nav { width: auto; }
  .dashboard-surface .table-shell { overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .dashboard-surface .table-shell table, .dashboard-surface .table-shell tbody, .dashboard-surface .table-shell tr, .dashboard-surface .table-shell td { display: block; width: 100%; }
  .dashboard-surface .table-shell thead { display: none; }
  .dashboard-surface .table-shell tr { margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 4px 16px rgba(15,73,58,.05); }
  .dashboard-surface .table-shell td { padding: 7px 0; border: 0; }
  .dashboard-surface .table-shell td + td { border-top: 1px solid #edf0ed; }
  .dashboard-surface .status-form { align-items: stretch; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 24px); }
  .hero-stage { min-height: 690px; border-radius: 15px; }
  .hero-stage-media img { object-position: 58% center; }
  .hero-stage-copy { padding: 42px 20px 410px; }
  .hero-stage-copy h1 { max-width: 340px; font-size: clamp(2.55rem,12vw,3.35rem); }
  .hero-stage-copy p { font-size: 1rem; }
  .hero-search-dock { left: 10px; right: 10px; bottom: 10px; }
  .hero-service-tabs a { min-width: 104px; min-height: 52px; flex-direction: column; gap: 3px; padding: 7px 10px; font-size: .75rem; }
  .hero-search-v2 { grid-template-columns: 1fr; padding: 9px; }
  .hero-search-v2 label, .hero-search-v2 label:first-of-type, .hero-search-v2 .btn { grid-column: 1; }
  .hero-search-v2 label { padding: 3px 10px; }
  .hero-search-v2 .btn { min-height: 50px; }
  .trust-strip-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip-grid > div { gap: 9px; padding: 14px 10px; }
  .trust-strip-grid > div > .ui-icon { width: 24px; height: 24px; }
  .trust-strip-grid strong { font-size: .8125rem; }
  .trust-strip-grid small { display: none; }
  .destination-section { padding: 36px 0 22px; }
  .destination-grid { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .destination-card { min-width: 78vw; min-height: 205px; scroll-snap-align: start; }
  .category-section { padding: 30px 0; }
  .offers-section { padding: 34px 0 48px; }
  .catalog-section .stay-filter-bar { grid-template-columns: 1fr; }
  .catalog-section .stay-filter-bar > * { grid-column: 1; }
  .catalog-section .offer-grid { grid-template-columns: 1fr; }
  .catalog-section .offer-visual { min-height: 220px; }
  .catalog-summary { flex-direction: column; align-items: stretch; }
  .offer-gallery, .detail-visual.has-temporary-photo, .gallery-main { min-height: 280px; height: 280px; }
  .gallery-thumbs { grid-template-columns: repeat(4,1fr); }
  .detail-title h1 { font-size: 2.4rem; }
  .ai-panel { padding: 12px; }
  .ai-message-content > p, .ai-message > div:last-child > p { font-size: 1rem; }
  .ai-user-message .ai-message-content { max-width: 92%; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid article { min-height: 125px; padding: 15px; }
  .auth-section { padding: 24px 0 48px; }
  .auth-card { padding: 26px 20px; }
  .auth-promo { padding: 30px 22px; }
}

/* Populated Beta 0.6.3: marketplace-side AI concierge. */
.ai-widget-trigger {
  position:fixed; z-index:145; right:24px; bottom:24px; min-height:52px; padding:0 18px;
  display:flex; align-items:center; gap:9px; border:0; border-radius:999px; color:#fff;
  background:#123a32; box-shadow:0 16px 42px rgba(18,58,50,.3); font:700 1rem/1 inherit;
}
.ai-widget-trigger .ui-icon { width:20px; height:20px; }
.ai-widget {
  position:fixed; z-index:150; top:82px; right:20px; bottom:20px; width:min(420px,calc(100vw - 40px));
  display:flex; flex-direction:column; overflow:hidden; border:1px solid rgba(18,58,50,.18);
  border-radius:24px; background:#fffdf7; box-shadow:0 24px 70px rgba(18,58,50,.28);
}
.ai-widget[hidden] { display:none; }
.ai-widget-header { min-height:76px; padding:16px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px; color:white; background:#123a32; }
.ai-widget-header strong,.ai-widget-header span { display:block; }
.ai-widget-header strong { font-size:1.05rem; }
.ai-widget-header span { margin-top:3px; color:#dbe9e4; font-size:.9rem; }
.ai-widget-controls { display:flex; gap:6px; }
.ai-widget-controls button { width:38px; height:38px; border:1px solid rgba(255,255,255,.24); border-radius:50%; color:#fff; background:transparent; font-size:1.35rem; }
.ai-widget-panel.ai-panel { flex:1; min-height:0; margin:0; padding:14px; border:0; border-radius:0; box-shadow:none; background:#fffdf7; }
.ai-widget-panel .ai-history { flex:1; min-height:0; max-height:none; padding:2px 2px 10px; }
.ai-widget-panel .ai-message { font-size:1rem; }
.ai-widget-panel .ai-compose { position:static; margin-top:10px; padding:12px; border:1px solid var(--line); border-radius:16px; box-shadow:none; }
.ai-widget-panel .ai-compose textarea { min-height:68px; max-height:150px; font-size:1rem; resize:vertical; }
.ai-widget-panel .ai-quick-prompts { margin:4px 0 8px; }
.ai-widget-panel .ai-offer-list { display:grid; gap:8px; overflow:visible; }
.ai-widget-panel .ai-offer-card { min-width:0; padding:10px; display:grid; grid-template-columns:72px 1fr; align-items:center; gap:10px; }
.ai-widget-panel .ai-offer-card img { width:72px; height:72px; grid-row:1 / span 2; border-radius:12px; object-fit:cover; }
.ai-widget-panel .ai-offer-card h3 { margin:0 0 3px; font-size:.96rem; }
.ai-widget-panel .ai-offer-card p,.ai-widget-panel .ai-offer-card small { font-size:.82rem; }
.ai-widget-panel .ai-offer-card .btn { grid-column:2; justify-self:start; min-height:36px; }
.ai-offer-actions,.ai-draft-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.ai-section .ai-offer-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:visible; }
.ai-section .ai-offer-card { min-width:0; height:auto; display:flex; align-items:stretch; flex-direction:column; overflow:hidden; }
.ai-section .ai-offer-card > img { width:100%; height:164px; flex:0 0 auto; border-radius:12px; object-fit:cover; }
.ai-section .ai-offer-card > div:not(.ai-offer-actions) { min-width:0; }
.ai-section .ai-offer-actions { margin-top:auto; }
.ai-offer-card.is-selected { border-color:var(--primary); box-shadow:0 0 0 2px rgba(31,91,70,.16); }
.ai-widget-panel .ai-offer-actions { grid-column:2; }
.ai-widget-panel .ai-offer-actions .btn { grid-column:auto; }
.ai-booking-draft,.ai-booking-result { margin-top:12px; padding:14px; border:1px solid #cddfd8; border-radius:16px; background:#fff; }
.ai-booking-draft > h3,.ai-booking-result > p { margin:6px 0; }
.ai-draft-fields { margin:12px 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.ai-draft-fields label,.ai-draft-consents label { display:flex; flex-direction:column; gap:5px; min-width:0; font-size:.82rem; color:var(--muted); }
.ai-draft-fields input { width:100%; min-width:0; min-height:42px; padding:8px 10px; border:1px solid var(--line); border-radius:10px; font:inherit; color:var(--ink); background:white; }
.ai-draft-quote { margin:10px 0; display:grid; gap:4px; }
.ai-draft-quote span { font-size:.84rem; color:var(--muted); }
.ai-draft-notice,.ai-draft-test-notice,.ai-draft-error { margin:8px 0; font-size:.84rem; line-height:1.4; }
.ai-draft-test-notice { padding:9px 10px; border-radius:10px; color:#694a00; background:#fff4cf; }
.ai-draft-error { color:#a62d2d; }
.ai-draft-consents { margin:10px 0; display:grid; gap:7px; }
.ai-draft-consents label { flex-direction:row; align-items:flex-start; color:var(--ink); }
.ai-draft-consents input { width:18px; height:18px; min-height:0; flex:0 0 18px; margin:3px 0 0; padding:0; }
.trip-list { display:grid; gap:14px; }
.trip-card { padding:20px; display:flex; align-items:center; justify-content:space-between; gap:20px; border:1px solid var(--line); border-radius:18px; background:white; }
.trip-card h2 { margin:5px 0; font-size:1.15rem; }
.trip-card p,.trip-card small { display:block; margin:4px 0; color:var(--muted); }
.trip-card-actions { display:flex; align-items:flex-end; flex-direction:column; gap:10px; }
.ai-widget-footer { padding-top:8px; display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:.9rem; }
.ai-widget.is-minimized { top:auto; bottom:20px; height:76px; }
.ai-widget.is-minimized .ai-widget-panel { display:none; }
.catalog-pagination { margin-top:28px; display:flex; align-items:center; justify-content:center; gap:16px; }

@media (max-width: 800px) {
  body.ai-widget-open { overflow:hidden; }
  .ai-widget-trigger { right:14px; bottom:calc(76px + env(safe-area-inset-bottom)); min-height:48px; padding:0 14px; }
  .ai-widget {
    inset:0; width:100vw; height:100dvh; max-height:100dvh; border:0; border-radius:0; background:#fffdf7;
  }
  .ai-widget-header { min-height:68px; padding-top:max(12px,env(safe-area-inset-top)); }
  .ai-widget-panel.ai-panel { padding:10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .ai-widget-panel .ai-history { min-height:0; max-height:none; }
  .ai-widget-panel .ai-compose { margin-top:8px; }
  .ai-widget-panel .ai-compose textarea { min-height:58px; }
  .ai-section .ai-offer-list { grid-template-columns:1fr; }
  .ai-draft-fields { grid-template-columns:1fr; }
  .ai-section .ai-offer-card > img { height:150px; }
  .ai-booking-draft,.ai-booking-result { padding:12px; }
  .ai-draft-actions .btn,.ai-draft-actions .link-button { flex:1 1 120px; }
  .trip-card { align-items:stretch; flex-direction:column; }
  .trip-card-actions { align-items:stretch; }
  .ai-widget.is-minimized { inset:auto 10px calc(76px + env(safe-area-inset-bottom)) 10px; width:auto; height:68px; border-radius:18px; }
  .ai-widget.is-minimized + .ai-widget-trigger { display:none; }
}

@media (prefers-reduced-motion: reduce) {
  .destination-card img, .catalog-section .stay-filter-bar { transition: none; }
}
.offer-card .test-offer-badge { max-width:max-content; margin:0 0 8px; padding:4px 8px; border:0; border-radius:999px; color:#725f37; background:#f3eee2; font-size:.6875rem; letter-spacing:0; }

.trust-strip-grid small, .photo-category-grid .category-card small { font-size:.875rem; }

/* Owner visual review R2 — targeted convergence refinements. */
body, button, input, select, textarea, .main-nav, .offer-card, .booking-card, .ai-panel, .dashboard-surface {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.brand-copy strong { font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-weight: 780; letter-spacing: -.035em; }
.hero-stage-copy h1 { font-family: Georgia,"Times New Roman",serif; }
.brand-mark { display: block; flex: 0 0 auto; border-radius: 50%; object-fit: contain; background: transparent; }
.brand-light .brand-mark { background: transparent; }
.service-label-short { display: none; }

/* Photo fallbacks are always real category visuals for demo/test cards. */
.offer-visual:has(.offer-cover)::before, .offer-visual:has(.offer-cover)::after { display: none; }
.offer-visual .offer-cover { z-index: 1; }
.offer-card .test-offer-badge { position: relative; z-index: 2; }

/* Housing catalog: dedicated apples-to-apples reference composition. */
.housing-catalog-hero { padding: 22px 0 18px; }
.housing-catalog-hero h1 { font-size: clamp(2rem,3vw,3rem); }
.housing-catalog-hero p { font-size: .9375rem; }
.housing-catalog-surface .catalog-section { padding-top: 18px; }
.housing-catalog-surface .housing-quick-search { grid-column: 1 / -1; width: 100%; display: grid; grid-template-columns: minmax(240px,1.7fr) repeat(3,minmax(140px,.8fr)) auto; gap: 0; margin-bottom: 14px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 9px 28px rgba(15,73,58,.07); }
.housing-quick-search label { min-width: 0; padding: 5px 12px; border-right: 1px solid var(--line); }
.housing-quick-search label > span { min-height: 20px; display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .75rem; font-weight: 760; }
.housing-quick-search input { width: 100%; min-height: 34px; padding: 3px 0; border: 0; background: transparent; font-size: .9375rem; }
.housing-quick-search .btn { align-self: stretch; min-width: 110px; margin-left: 8px; border-radius: 10px; }
.housing-quick-search .hero-search-error { grid-column: 1 / -1; }
.housing-catalog-surface .stay-type-tabs { margin-bottom: 14px; }
.housing-catalog-surface .stay-type-tabs a { min-height: 38px; padding: 8px 13px; font-size: .8125rem; }
.housing-catalog-surface .stay-filter-bar { grid-row: 3 / span 5; padding: 15px; gap: 10px; }
.housing-catalog-surface .catalog-summary { min-height: 42px; }
.housing-catalog-surface .offer-grid { gap: 12px; }
.housing-catalog-surface .offer-visual { min-height: 166px; }
.housing-catalog-surface .offer-body { padding: 12px; }
.housing-catalog-surface .offer-card h3 { min-height: 2.55em; margin: 8px 0 6px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 1rem; line-height: 1.27; }
.housing-catalog-surface .offer-summary { display: none; }
.housing-catalog-surface .trust-row { min-height: 22px; margin: 5px 0 8px; }
.housing-catalog-surface .trust-row span { font-size: .75rem; }
.housing-catalog-surface .accommodation-card-amenities { min-height: 24px; margin: 0 0 9px; gap: 4px; }
.housing-catalog-surface .accommodation-card-amenities span { padding: 4px 6px; font-size: .65rem; }
.housing-catalog-surface .offer-footer { padding-top: 9px; }
.housing-catalog-surface .price strong { font-size: 1rem; }

/* Detail: reference-like gallery and progressive booking card. */
.detail-grid { grid-template-columns: minmax(0,1fr) 342px; gap: 26px; }
.gallery-stage { position: relative; overflow: hidden; border-radius: 16px; }
.offer-gallery, .detail-visual.has-temporary-photo { min-height: 0; }
.gallery-main { height: 420px; border-radius: 16px; }
.gallery-arrow { position: absolute; z-index: 3; top: 50%; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; transform: translateY(-50%); border: 0; border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.92); box-shadow: 0 4px 16px rgba(0,0,0,.18); font-size: 1.8rem; cursor: pointer; }
.gallery-arrow-prev { left: 14px; }
.gallery-arrow-next { right: 14px; }
.gallery-thumbs { grid-template-columns: repeat(6,minmax(0,1fr)); }
.gallery-thumbs button { width: 100%; height: 68px; }
.gallery-thumbs button.is-active { border-color: var(--brand); }
.detail-title { padding: 19px 0 16px; }
.detail-title h1 { max-width: 760px; margin-bottom: 9px; font-size: clamp(2.1rem,3.1vw,3.15rem); line-height: 1.03; }
.detail-price strong { font-size: 1.55rem; }
.booking-card { top: 84px; padding: 17px; }
.booking-test-notice { margin: 0 0 10px; padding: 8px 10px; border: 0; border-radius: 9px; font-size: .72rem; line-height: 1.35; }
.booking-heading { margin-bottom: 10px; }
.booking-price-summary { margin-bottom: 12px; display: flex; align-items: baseline; gap: 6px; }
.booking-price-summary strong { font-size: 1.55rem; letter-spacing: -.025em; }
.booking-price-summary span { color: var(--muted); font-size: .8125rem; }
.booking-core-fields { display: grid; gap: 10px; }
.booking-card form { gap: 10px; }
.booking-card label > span { font-size: .75rem; }
.booking-card input, .booking-card textarea { min-height: 42px; padding: 9px 10px; }
.booking-contact-details { margin-top: 2px; }
.booking-contact-details summary { list-style: none; }
.booking-contact-details summary::-webkit-details-marker { display: none; }
.booking-next-step { min-height: 48px; display: grid; place-items: center; padding: 11px 16px; border-radius: 10px; color: white; background: var(--brand); font-size: .9375rem; font-weight: 800; cursor: pointer; }
.booking-contact-details[open] .booking-next-step { color: var(--brand); background: var(--surface-2); }
.booking-contact-fields { display: grid; gap: 10px; padding-top: 12px; }
.booking-contact-fields .booking-confirmation-notice { margin: 0; font-size: .75rem; }
.booking-contact-fields .consent-option span { font-size: .7rem; }

/* AI preview fixture remains local and read-only. */
.ai-preview-note { width: max-content; max-width: 100%; margin: -10px 0 12px; padding: 5px 9px; border-radius: 999px; color: var(--muted); background: #e9eee9; font-size: .72rem; }
.ai-panel-preview .ai-history { min-height: 270px; }
.ai-panel-preview .ai-quick-prompts { display: flex; }
.ai-panel-preview .ai-compose textarea:disabled { color: #61716b; background: #f4f6f4; opacity: 1; }

/* Host and Team: target-like operating overview without invented analytics. */
.workspace-brand { display: flex; align-items: center; gap: 10px; line-height: 1; }
.workspace-brand img { width: 38px; height: 38px; }
.workspace-brand > span { display: grid; gap: 4px; }
.workspace-brand strong { color: white; font-size: 1rem; letter-spacing: -.02em; text-transform: none; }
.workspace-brand small { color: #f0bd5b; font-size: .65rem; font-weight: 850; letter-spacing: .12em; }
.dashboard-overview-grid { margin-top: 16px; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr); gap: 14px; }
.dashboard-insight-card { min-height: 260px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 5px 20px rgba(15,73,58,.05); }
.dashboard-insight-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.dashboard-insight-card h2 { margin: 2px 0 0; font-size: 1.45rem; }
.dashboard-period { padding: 6px 9px; border-radius: 8px; color: var(--muted); background: var(--surface-2); font-size: .75rem; }
.honest-chart-empty { min-height: 164px; display: grid; place-items: center; align-content: center; gap: 5px; text-align: center; border: 1px dashed #cbd6cf; border-radius: 12px; background: linear-gradient(180deg,#f8faf8,#f1f4f1); }
.honest-chart-empty > span { color: var(--brand-2); font-size: 1.6rem; }
.honest-chart-empty p { max-width: 360px; margin: 0; color: var(--muted); font-size: .8125rem; }
.dashboard-recent-list, .moderation-queue { display: grid; gap: 8px; }
.dashboard-recent-list > a, .moderation-queue > a { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #f5f7f5; }
.dashboard-recent-list span { display: grid; gap: 3px; }
.dashboard-recent-list small { color: var(--muted); font-size: .75rem; }
.moderation-queue strong { font-size: 1.3rem; }
.honest-list-empty { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 4px; color: var(--muted); text-align: center; }

@media (max-width: 960px) {
  .detail-grid { grid-template-columns: minmax(0,1fr); }
  .housing-catalog-surface .housing-quick-search { display: flex; overflow-x: auto; gap: 0; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .housing-quick-search label { flex: 0 0 150px; scroll-snap-align: start; }
  .housing-quick-search .housing-search-place { flex-basis: 220px; }
  .housing-quick-search .btn { flex: 0 0 94px; }
  .dashboard-overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .brand-copy strong { font-size: 1.15rem; }
  .hero-stage { min-height: 625px; }
  .hero-stage-copy { padding: 34px 18px 335px; }
  .hero-stage-copy h1 { max-width: 310px; font-size: clamp(2.35rem,11vw,3rem); }
  .hero-stage-copy p { max-width: 310px; font-size: .9rem; line-height: 1.4; }
  .hero-search-dock { left: 8px; right: 8px; bottom: 8px; }
  .hero-service-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); overflow: visible; }
  .hero-service-tabs a { min-width: 0; min-height: 48px; gap: 2px; padding: 6px 2px; overflow: hidden; font-size: .65rem; }
  .hero-service-tabs .ui-icon { width: 17px; height: 17px; }
  .service-label-long { display: none; }
  .service-label-short { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .hero-search-v2 { grid-template-columns: 1fr 1fr; padding: 7px; }
  .hero-search-v2 label { min-height: 50px; padding: 2px 8px; }
  .hero-search-v2 label:first-of-type { grid-column: 1 / -1; }
  .hero-search-v2 .date-field-label, .hero-search-v2 label:nth-of-type(3) { grid-column: auto; }
  .hero-search-v2 .btn { grid-column: 1 / -1; min-height: 44px; }
  .hero-search-v2 input { min-height: 30px; font-size: .875rem; }
  .hero-search-v2 label > span:first-child { min-height: 18px; font-size: .7rem; }
  .housing-catalog-hero { padding: 17px 0 13px; }
  .housing-catalog-hero h1 { margin-bottom: 4px; font-size: 1.85rem; }
  .housing-catalog-hero p { display: none; }
  .housing-catalog-surface .catalog-section { padding: 12px 0 48px; }
  .housing-catalog-surface .housing-quick-search { margin-bottom: 9px; padding: 6px; display: grid; grid-template-columns: 1fr 1fr; overflow: visible; border-radius: 11px; }
  .housing-quick-search label { min-width: 0; padding: 3px 9px; border-right: 0; border-bottom: 1px solid var(--line); }
  .housing-quick-search .housing-search-place { grid-column: 1 / -1; }
  .housing-quick-search label:nth-of-type(4) { border-bottom: 0; }
  .housing-quick-search label > span { font-size: .65rem; }
  .housing-quick-search input { min-height: 29px; font-size: .8125rem; }
  .housing-quick-search .btn { min-width: 0; min-height: 48px; margin-left: 0; padding-inline: 10px; }
  .housing-catalog-surface .stay-type-tabs { margin-bottom: 9px; flex-wrap: nowrap; overflow-x: auto; }
  .housing-catalog-surface .stay-type-tabs a { flex: 0 0 auto; min-height: 34px; padding: 7px 11px; font-size: .75rem; }
  .housing-catalog-surface .stay-filter-toggle { width: auto; margin: 0 0 8px; }
  .housing-catalog-surface .catalog-summary { margin-bottom: 8px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; }
  .housing-catalog-surface .catalog-summary > div span { display: none; }
  .housing-catalog-surface .catalog-sort > span { display: none; }
  .housing-catalog-surface .catalog-sort select { min-height: 40px; max-width: 170px; }
  .housing-catalog-surface .active-filter-chips { margin-bottom: 9px; }
  .housing-catalog-surface .offer-visual { min-height: 238px; }
  .housing-catalog-surface .offer-body { padding: 13px; }
  .gallery-main { height: 255px; min-height: 255px; }
  .gallery-arrow { width: 36px; height: 36px; }
  .gallery-thumbs { display: flex; }
  .gallery-thumbs button { flex: 0 0 64px; height: 48px; }
  .detail-title { padding: 15px 0 12px; }
  .detail-title h1 { font-size: 1.95rem; line-height: 1.08; }
  .detail-price strong { font-size: 1.25rem; }
  .booking-card { padding: 15px; }
  .booking-card .form-row { grid-template-columns: 1fr 1fr; }
  .ai-preview-note { margin-top: -4px; }
  .ai-panel-preview .ai-history { min-height: 230px; max-height: none; }
  .dashboard-overview-grid { margin-top: 12px; }
  .dashboard-insight-card { min-height: 0; padding: 15px; }
  .dashboard-chart-card { display: none; }
  .workspace-brand img { width: 32px; height: 32px; }
}

