/* Public discovery layout. Loaded last; the partner portal has its own styles. */
:root { --discovery-ink: #102a43; --discovery-muted: #48627a; --discovery-blue: #086ab3; --discovery-line: #cee0ee; }
body:has(.discovery-home), body:has(.discovery-page) { background: #f5f9fc; }
body:has(.discovery-home)::before, body:has(.discovery-home)::after,
body:has(.discovery-page)::before, body:has(.discovery-page)::after { display: none; }
.discovery-home, .discovery-page { width: 100%; max-width: 1120px; margin: 0 auto; color: var(--discovery-ink); }
.discovery-home *, .discovery-page * { box-sizing: border-box; }
.discovery-home a, .discovery-page a { text-decoration: none; }
.discovery-home h1, .discovery-page h1 { margin: 0; font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.035em; line-height: 1.1; }
.discovery-home h2, .discovery-page h2 { margin: 0; font-size: clamp(1.25rem, 2.7vw, 1.7rem); line-height: 1.25; letter-spacing: -.025em; }
.discovery-home p, .discovery-page p { line-height: 1.55; }
.discovery-overline { margin: 0 0 .65rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.discovery-hero { display: grid; grid-template-columns: 1.35fr 1fr; overflow: hidden; border-radius: 24px; background: #0b3554; color: #fff; }
.discovery-hero-copy { padding: clamp(1.5rem, 4vw, 3rem); }
.discovery-hero-copy > p:not(.discovery-overline) { color: #d7e8f4; font-size: 1rem; margin: 1rem 0 1.5rem; }
.discovery-hero-photo { background: url("../assets/imotski.jpg") center / cover; min-height: 290px; }
.discovery-search { margin: 0; }
.discovery-search-label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .5rem; }
.discovery-search-field { display: flex; align-items: center; gap: .6rem; padding: .4rem; border: 1px solid #b4cddd; border-radius: 14px; background: #fff; color: var(--discovery-ink); box-shadow: 0 3px 12px #16374e06; }
.discovery-search-field > svg { flex: 0 0 20px; width: 20px; height: 20px; margin-left: .45rem; color: var(--discovery-muted); }
.discovery-search-field input { min-width: 0; width: 100%; height: 44px; border: 0; background: transparent; padding: .2rem; color: var(--discovery-ink); font: inherit; font-size: 16px; border-radius: 4px; outline-offset: 2px; }
.discovery-search-field input::placeholder { color: #607485; opacity: 1; }
.discovery-search-field button { min-height: 44px; padding: .7rem .85rem; border: 0; border-radius: 10px; background: var(--discovery-blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.discovery-shortcuts { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-top: .7rem; }
.discovery-shortcuts a { display: inline-flex; align-items: center; min-height: 44px; color: #edf6fc; text-decoration: underline; text-underline-offset: 4px; font-size: .85rem; }
.discovery-section { margin-top: 2rem; }
.discovery-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: 1rem; }
.discovery-section-heading > a { display: inline-flex; align-items: center; min-height: 44px; color: #0862a0; font-size: .88rem; font-weight: 700; }
.discovery-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.discovery-category { position: relative; display: flex; align-items: flex-start; gap: .8rem; min-height: 116px; padding: 1.1rem; border: 1px solid var(--discovery-line); border-radius: 16px; background: #fff; color: var(--discovery-ink); transition: border-color .15s, background-color .15s; }
.discovery-category > svg { flex: 0 0 26px; width: 26px; height: 26px; color: var(--discovery-blue); }
.discovery-category strong { display: block; line-height: 1.25; font-size: 1rem; }
.discovery-category small { display: block; margin-top: .45rem; line-height: 1.45; font-size: .78rem; color: var(--discovery-muted); }
.discovery-chevron { display: none; }
.discovery-category:hover, .discovery-type:hover { border-color: #2781bd; background: #edf6fc; }
.discovery-explore { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem; margin-top: 2rem; background: #e6f1f5; border-radius: 18px; }
.discovery-explore nav { display: grid; gap: .1rem; flex-shrink: 0; }
.discovery-explore a { display: flex; align-items: center; min-height: 44px; font-weight: 700; color: #14517a; }
.discovery-note { margin: 0; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--discovery-line); border-radius: 14px; color: var(--discovery-muted); }
.discovery-business { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.6rem; margin: 2rem 0; border-radius: 18px; background: #e8f2fb; }
.discovery-business p { margin: .5rem 0 0; color: var(--discovery-muted); }
.discovery-business > a { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.1rem; border-radius: 12px; background: #086ab3; color: #fff; font-weight: 700; }
.discovery-home .columns-showcase { margin: 2rem 0 0; padding: 1.5rem; width: 100%; max-width: 100%; border-radius: 20px; background: #103b5e; overflow: hidden; }
.discovery-home .columns-showcase__inner { padding: 0; width: 100%; gap: 1rem; }
.discovery-home .columns-showcase__header { margin: 0; gap: .5rem; }
.discovery-home .columns-showcase__hint { font-size: .9rem; margin: .3rem 0; }
.discovery-home .columns-showcase__grid { margin: 1rem 0; gap: 1rem; }
.discovery-home .columns-card { min-height: 0; }
.discovery-home .columns-card__media { height: 200px; }
.discovery-home .columns-card__body { padding: 1rem; gap: .75rem; }
.discovery-home .columns-card__title { font-size: 1.2rem; }
.discovery-home .columns-card__text { font-size: .88rem; }
.discovery-home .columns-showcase__actions { margin-top: 1rem; }
.discovery-home .columns-showcase__button { min-height: 44px; padding: .7rem 1.25rem; font-size: .9rem; }
.discovery-page { max-width: 960px; padding-bottom: 1.5rem; }
.discovery-page-heading { margin: 0 0 1.4rem; }
.discovery-page-heading h1 { font-size: clamp(1.85rem, 4vw, 2.7rem); }
.discovery-back { display: inline-flex; align-items: center; min-height: 44px; color: #315b7a; font-size: .88rem; font-weight: 700; margin: 0 0 .7rem; }
.discovery-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.discovery-type { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 84px; padding: 1rem; border: 1px solid #bfd7e8; border-radius: 14px; background: #fff; color: #133b59; }
.discovery-type strong { display: block; font-size: 1.05rem; line-height: 1.25; }
.discovery-type small { display: block; color: #5c7182; font-size: .78rem; margin-top: .35rem; }
.discovery-type > span:last-child { font-size: 1.6rem; color: #086ab3; }
.discovery-type[aria-current] { border: 2px solid #086ab3; background: #e7f3fd; }
.discovery-change { border: 1px solid var(--discovery-line); border-radius: 14px; background: #fff; margin: 1rem 0; overflow: hidden; }
.discovery-change summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; cursor: pointer; list-style: none; min-height: 52px; font-size: .88rem; }
.discovery-change summary::-webkit-details-marker { display: none; }
.discovery-change summary > span:last-child { color: #0762a2; font-weight: 700; flex-shrink: 0; }
.discovery-change[open] summary { border-bottom: 1px solid var(--discovery-line); }
.discovery-change .discovery-type-grid { padding: 1rem; }
.discovery-inline-link { display: inline-flex; align-items: center; min-height: 44px; margin: 0 1rem 1rem; color: #0862a0; font-weight: 700; }
.discovery-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.discovery-results .place-card { display: grid; grid-template-columns: 128px minmax(0,1fr); align-items: stretch; padding: .7rem; gap: 1rem; min-height: 176px; border: 1px solid var(--discovery-line); border-radius: 16px; background: #fff; box-shadow: 0 4px 16px #19374b05; transform: none; }
.discovery-results .place-media { width: 100%; height: auto; min-height: 120px; border-radius: 11px; overflow: hidden; background: #e8f0f5; aspect-ratio: auto; }
.discovery-results .place-media img { width: 100%; height: 100%; min-height: 120px; max-height: 230px; object-fit: contain; padding: .2rem; }
.discovery-results .place-body { min-width: 0; padding: .15rem 0; display: flex; flex-direction: column; gap: .4rem; }
.discovery-results .place-top { display: flex; align-items: start; flex-wrap: wrap; gap: .2rem .6rem; font-size: .65rem; }
.discovery-results .place-top > * { font-size: .65rem; line-height: 1.25; letter-spacing: .04em; }
.discovery-results .place-title { margin: 0; font-size: 1.15rem; line-height: 1.25; color: #132d45; }
.discovery-results .place-description { margin: 0; font-size: .83rem; line-height: 1.5; color: #496176; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.discovery-results .card-tags { gap: .3rem; }
.discovery-results .card-tag { font-size: .7rem; min-height: 0; border-radius: 6px; padding: .2rem .4rem; background: #f0f6fb; border: 0; }
.discovery-results .place-card-cta { display: flex; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .4rem; border: 0; font-size: .82rem; color: #0964a1; }
.discovery-empty { padding: 1.5rem; margin: 1rem 0; background: #fff; border: 1px solid var(--discovery-line); border-radius: 16px; }
.discovery-empty p { color: var(--discovery-muted); margin: .7rem 0; }
.discovery-empty a { display: flex; align-items: center; min-height: 44px; color: #0964a1; font-weight: 700; }
.discovery-search-summary { color: var(--discovery-muted); font-size: .9rem; margin: 1rem 0; }
.discovery-navigation { display: flex; justify-content: flex-end; gap: 1rem; width: min(1120px, calc(100% - 32px)); margin: 0 auto 1rem; }
.discovery-navigation a { display: flex; align-items: center; gap: .5rem; padding: .5rem .8rem; min-height: 44px; color: #365673; font-weight: 700; font-size: .9rem; text-decoration: none; border-radius: 10px; }
.discovery-navigation svg { width: 20px; height: 20px; }
.discovery-navigation a[aria-current] { color: #065f9f; background: #deedf8; }
.discovery-navigation a:focus-visible, .discovery-home a:focus-visible, .discovery-page a:focus-visible,
.discovery-home button:focus-visible, .discovery-page button:focus-visible, .discovery-search input:focus-visible,
.discovery-change summary:focus-visible { outline: 3px solid #edab14; outline-offset: 3px; }
.business-profile .profile-cover { max-height: 300px; object-fit: contain; }
.business-profile .profile-section { padding: 1.2rem; }
.profile-offers { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.profile-offers a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .8rem; border: 1px solid #c9deef; border-radius: 10px; text-decoration: none; color: #0964a1; font-weight: 700; }
.discovery-business-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; gap: 1rem; }
.discovery-business-steps li { padding: 1.2rem; border: 1px solid var(--discovery-line); background: #fff; border-radius: 16px; color: var(--discovery-ink); }
.discovery-business-steps strong { display: block; }
.discovery-business-steps p { color: var(--discovery-muted); line-height: 1.6; }
@media (max-width: 1000px) {
  .discovery-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discovery-results { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .discovery-home, .discovery-page { padding: 0; }
  .discovery-hero { display: block; position: relative; isolation: isolate; border-radius: 18px; }
  .discovery-hero-photo { position: absolute; inset: 0; z-index: -1; min-height: 0; }
  .discovery-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, #042842ed, #062a45c7); }
  .discovery-hero-copy { padding: 1.4rem 1.1rem 1rem; }
  .discovery-home h1 { font-size: 2rem; }
  .discovery-hero-copy > p:not(.discovery-overline) { margin: .75rem 0 1.1rem; font-size: .9rem; }
  .discovery-search-field { gap: .35rem; }
  .discovery-search-field > svg { display: none; }
  .discovery-search-field input { padding-left: .4rem; }
  .discovery-search-field button { padding: .65rem .7rem; font-size: .9rem; }
  .discovery-shortcuts { gap: 0 .75rem; }
  .discovery-shortcuts a { font-size: .76rem; }
  .discovery-section { margin-top: 1.5rem; }
  .discovery-section-heading { margin-bottom: .65rem; }
  .discovery-category-grid { gap: .6rem; }
  .discovery-category { flex-direction: column; padding: .9rem; gap: .7rem; min-height: 136px; }
  .discovery-category strong { font-size: .95rem; }
  .discovery-category small { font-size: .76rem; margin-top: .35rem; }
  .discovery-category > svg { flex-basis: 25px; width: 25px; height: 25px; }
  .discovery-explore { display: block; padding: 1.2rem; margin-top: 1.5rem; }
  .discovery-explore nav { margin-top: .7rem; }
  .discovery-business { display: block; padding: 1.2rem; }
  .discovery-business > a { margin-top: 1rem; font-size: .88rem; }
  .discovery-home .columns-showcase { padding: 1.1rem; }
  .discovery-page-heading { margin-bottom: 1rem; }
  .discovery-back { margin-bottom: .4rem; }
  .discovery-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .discovery-type { min-height: 80px; padding: .85rem; }
  .discovery-type strong { font-size: 1rem; }
  .discovery-change summary { padding: .85rem; font-size: .8rem; }
  .discovery-change .discovery-type-grid { padding: .75rem; }
  .discovery-results .place-card { grid-template-columns: 106px minmax(0,1fr); gap: .85rem; min-height: 172px; }
  .discovery-results .place-title { font-size: 1.05rem; }
  .discovery-results .place-top .category-count { display: none; }
  .discovery-navigation { position: fixed; bottom: 0; left: 0; right: 0; z-index: 240; width: 100%; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: .4rem .5rem max(.4rem, env(safe-area-inset-bottom)); background: #fffffff5; border-top: 1px solid #d1e1ee; box-shadow: 0 -4px 20px #102c4910; backdrop-filter: blur(12px); }
  .discovery-navigation a { flex-direction: column; justify-content: center; gap: .25rem; padding: .35rem; font-size: .7rem; min-height: 50px; }
  body:has(.discovery-navigation) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body:has(.discovery-home) .page-root, body:has(.discovery-page) .page-root { padding-top: .8rem; }
  .business-profile .profile-cover { max-height: 190px; }
  .discovery-business-steps { grid-template-columns: 1fr; }
  .discovery-business-steps p { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .discovery-category { transition: none; } }
