.primary-button, .small-button { height: 40px; border: 0; border-radius: 12px; padding: 0 14px; font: 700 14px inherit; cursor: pointer; }
.primary-button { background: #0759d6; color: #fff; }
.small-button { background: #eaf2ff; color: #0759d6; }
.market-form, .panel form { display: grid; gap: 8px; }
.market-form input, .market-form textarea, .panel input, .panel textarea, .panel select { width: 100%; border: 1px solid #d5e0ec; border-radius: 12px; padding: 10px 12px; font: 16px inherit; }
.market-sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.market-sub a { padding: 8px 12px; border-radius: 999px; background: #eaf2ff; color: #0759d6; text-decoration: none; font-weight: 700; }
.market-hero p { max-width: 640px; }
.market-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.market-card { display: block; background: #fff; border: 1px solid #e3ebf5; border-radius: 16px; overflow: hidden; text-decoration: none; color: #0d2b52; }
.market-card img { width: 100%; height: 160px; object-fit: cover; display: block; background: #eaf2ff; }
.market-card div { padding: 12px 14px 14px; }
.market-card b { display: block; font-size: 16px; }
.market-card p { margin: 6px 0 0; color: #60758d; }
.market-search { display: flex; gap: 8px; margin: 0 0 16px; }
.catalog-hero .market-search { margin-top: 18px; }
.catalog-hero .market-search input { border: 0; }
.market-search input { flex: 1; height: 46px; border: 1px solid #d5e0ec; border-radius: 12px; padding: 0 12px; font: 16px inherit; }
.item-row, .menu-offer { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid #e7edf4; }
.menu-offer img { width: 96px; height: 76px; object-fit: cover; border-radius: 10px; background: #edf2f7; }
.menu-offer b { display: block; color: #0d2b52; font-size: 15px; }
.menu-offer .detail-price { font-size: 18px; margin: 6px 0 0; }
.menu-offer .pay-now { width: auto; min-width: 132px; height: 42px; padding: 0 16px; }
.menu-offer.offer-focus { border-radius: 12px; outline: 2px solid #0759d6; outline-offset: 4px; }
.menu-live { margin: 0 0 14px; padding: 14px; border: 1px solid #ffe08a; border-radius: 14px; background: #fffaf0; }
.menu-live[hidden] { display: none !important; }
.menu-live b { display: block; color: #09264c; }
.menu-live p { margin: 6px 0 0; color: #5d4b22; }
.menu-live-form { display: grid; gap: 8px; margin-top: 10px; }
.menu-live-form textarea { width: 100%; border: 1px solid #e7d7a2; border-radius: 10px; padding: 8px 10px; font: 16px inherit; }
.menu-live-contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.menu-live-contact a { font-weight: 700; color: #0759d6; }
.item-row img { width: 92px; height: 72px; object-fit: cover; border-radius: 10px; background: #eaf2ff; }
.buy-result { margin-top: 10px; padding: 12px; border-radius: 12px; background: #f4f7fb; }
.buy-result a { display: inline-block; margin: 6px 8px 0 0; font-weight: 700; color: #0759d6; }
.market-note { color: #9b1c1c; font-weight: 700; }
.catalog-page .empty-state { padding: 28px; text-align: center; background: #f7f9fc; border-radius: 12px; color: #657a93; }
.hero.hero-food { background-image: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=2200&q=90'); }
.hero.hero-shop { background-image: url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?auto=format&fit=crop&w=2200&q=90'); }
.hero.hero-service { background-image: url('https://images.unsplash.com/photo-1562322140-8baeececf3df?auto=format&fit=crop&w=2200&q=90'); }
.search.market-search-bar { grid-template-columns: 1.35fr 1.15fr 180px; }
.property-grid > .empty-state { grid-column: 1 / -1; padding: 28px; text-align: center; background: #f7f9fc; border-radius: 12px; color: #657a93; }
.market-search select { height: 46px; border: 1px solid #d5e0ec; border-radius: 12px; padding: 0 12px; font: 16px inherit; background: #fff; color: #0d2b52; }
.pool-food .catalog-hero { background: linear-gradient(115deg, #3a2412, #c56a12); }
.pool-shop .catalog-hero { background: linear-gradient(115deg, #10281c, #1f7a45); }
.pool-service .catalog-hero { background: linear-gradient(115deg, #1c2144, #3d4cb5); }
.catalog-hero .eyebrow { color: #ffe7b0; }
#ownerStats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.owner-sector { display: grid; gap: 6px; margin: 4px 0 0; min-width: 180px; font-weight: 700; font-size: 13px; }
.owner-request { margin-bottom: 12px; }
.owner-request .request-row { border-top: 0; padding-top: 0; }
.owner-request form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.owner-request input { flex: 1 1 160px; height: 40px; border: 1px solid #d5e0ec; border-radius: 10px; padding: 0 12px; font: 16px inherit; }
.owner-items { display: grid; gap: 0; }
.owner-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #e6eef6; }
.owner-item p { margin: 4px 0 0; color: #60758d; font-size: 13px; }
.owner-item-actions { display: flex; gap: 8px; flex: none; }
.owner-item-form, .owner-edit { margin-top: 16px; padding-top: 8px; border-top: 1px solid #e6eef6; }
.owner-item-form[hidden], .owner-edit[hidden], .add-service[hidden] { display: none !important; }
.add-service { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 92px; margin: 0 0 8px; border: 1.5px dashed #0759d6; border-radius: 16px; background: #f4f8ff; color: #0759d6; font: 800 16px inherit; cursor: pointer; }
.add-service span { width: 46px; height: 46px; border-radius: 50%; background: #0759d6; color: #fff; display: grid; place-items: center; font-size: 32px; line-height: 1; }
.add-service-actions { display: flex; gap: 8px; align-items: center; }
.owner-thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; background: #eaf2ff; flex: none; }
.photo-field input[type=file] { padding: 8px 0; }
.photo-field > span { display: block; font-weight: 700; margin-bottom: 6px; }
.photo-field small { display: block; color: #60758d; }
.photo-picks, .offer-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.photo-pick { position: relative; width: 72px; height: 56px; border-radius: 8px; overflow: hidden; background: #eaf2ff; }
.photo-pick img, .offer-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pick button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #09264c; color: #fff; cursor: pointer; line-height: 1; padding: 0; }
.offer-thumbs button { width: 36px; height: 28px; padding: 0; border: 1px solid #d5e0ec; border-radius: 6px; overflow: hidden; background: #eaf2ff; cursor: pointer; }
.offer-thumbs button.active { outline: 2px solid #0759d6; }
.photo-preview { width: 140px; height: 100px; object-fit: cover; border-radius: 12px; margin-top: 8px; background: #eaf2ff; }
.photo-preview[hidden] { display: none !important; }
.profile-glance { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; margin-bottom: 16px; }
.profile-glance img { width: 120px; height: 88px; object-fit: cover; border-radius: 12px; background: #eaf2ff; }
.profile-glance h2 { margin: 0 0 4px; }
.profile-glance p { margin: 0; color: #60758d; }
.profile-glance a { display: inline-block; margin-top: 8px; color: #0759d6; font-weight: 700; text-decoration: none; }
@media (max-width: 780px) {
  .search.market-search-bar { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .market-grid { grid-template-columns: 1fr; }
  .market-search { flex-direction: column; }
  .market-search select, .market-search .primary-button { width: 100%; }
  .owner-item { align-items: flex-start; flex-direction: column; }
  .profile-glance { grid-template-columns: 1fr; }
}
