/* =====================================================================
   Rentamo.ba — dizajnerski tokeni i komponente
   ===================================================================== */
:root {
  --navy: #102A43;      /* navigacija, naslovi */
  --navy-2: #1B3A5B;
  --teal: #087F8C;      /* glavna dugmad (kontrast s bijelim 4,7:1) */
  --teal-dark: #066670;
  --teal-light: #E8F6F5;/* naglasci */
  --bg: #F7F8FA;        /* topla bijela pozadina */
  --card: #FFFFFF;
  --text: #182230;
  --muted: #526174;     /* sekundarni tekst (6,3:1) */
  --border: #DCE3EA;
  --coral: #F26B5B;     /* štedljiv dekorativni akcent (ne za tekst) */
  --danger: #B42318; --danger-bg: #FEF3F2;
  --warn: #8A5300; --warn-bg: #FFF6E5;
  --ok: #067647; --ok-bg: #ECFDF3;
  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16,42,67,.06), 0 4px 16px rgba(16,42,67,.06);
  --shadow-lg: 0 12px 40px rgba(16,42,67,.14);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --focus: 0 0 0 3px rgba(8,127,140,.35);
  --wrap: 1200px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

/* ---------- Dugmad ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--teal-light); }
.btn-danger { background: #fff; color: var(--danger); border-color: #F4C7C3; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-dark); text-decoration: underline; cursor: pointer; }

/* ---------- Zaglavlje ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.brand img { height: 36px; width: 36px; transition: transform .2s; }
.brand:hover img { transform: translateY(-2px); }
.wordmark { font-family: var(--font); font-size: 1.45rem; font-weight: 800; letter-spacing: -.035em; color: var(--navy); line-height: 1; }
.wordmark span { color: var(--teal); font-weight: 700; }
.brand-light .wordmark { color: #fff; }
.brand-light .wordmark span { color: #7FD6DD; }
@media (max-width: 380px) { .wordmark { font-size: 1.2rem; } }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a { color: var(--navy); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--teal-light); color: var(--teal-dark); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: var(--navy); }
.icon-link:hover { background: var(--teal-light); }
.icon-link svg { width: 22px; height: 22px; }
.dot-count { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral); color: var(--navy); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.menu-toggle { display: none; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); min-height: 44px; font-weight: 600; color: var(--navy); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu[open] summary { border-color: var(--teal); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--teal-light); color: var(--teal-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 260px; padding: 8px; z-index: 50; }
.dropdown a, .dropdown button { display: flex; width: 100%; text-align: left; gap: 8px; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: var(--teal-light); }
.dropdown hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.dropdown .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 12px 2px; }
@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 20px 18px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; }
  .menu-toggle { display: inline-flex; }
  .hide-mobile { display: none !important; }
  .user-menu summary .name { display: none; }
}

/* ---------- Podnožje ---------- */
.site-footer { background: var(--navy); color: #C9D6E3; margin-top: 64px; padding: 44px 0 28px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Hero i pretraga ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 40%; opacity: .38; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,42,67,.35) 0%, rgba(16,42,67,.85) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 56px; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); max-width: 760px; }
.hero p.lead { font-size: 1.12rem; color: #E1EAF2; max-width: 620px; }
.hero .accent { color: #7FD6DD; }
.search-box { background: #fff; color: var(--text); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-lg); margin-top: 28px; }
.search-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.search-tabs label { cursor: pointer; }
.search-tabs input { position: absolute; opacity: 0; }
.search-tabs span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); font-weight: 700; font-size: .9rem; color: var(--navy); }
.search-tabs input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.search-tabs input:focus-visible + span { box-shadow: var(--focus); }
.search-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr .7fr auto; gap: 10px; align-items: end; }
.search-grid .field { margin: 0; }
@media (max-width: 980px) { .search-grid { grid-template-columns: 1fr 1fr; } .search-grid .btn { grid-column: 1 / -1; } }
@media (max-width: 560px) { .search-grid { grid-template-columns: 1fr; } }

/* ---------- Forme ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label, .field > .label { font-weight: 700; font-size: .875rem; color: var(--navy); }
.field .hint { font-size: .82rem; color: var(--muted); }
.field .error { font-size: .85rem; color: var(--danger); font-weight: 600; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=search], input[type=date], input[type=time], select, textarea {
  font: inherit; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: var(--focus); }
.invalid input, .invalid select, .invalid textarea, [aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; padding: 4px 0; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.form-grid .full, .form-grid-3 .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid, .form-grid-3 { grid-template-columns: 1fr; } }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 0 0 18px; background: #fff; }
legend { font-weight: 800; color: var(--navy); padding: 0 6px; }
.input-group { display: flex; align-items: stretch; }
.input-group input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .addon { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--border); border-left: 0; border-radius: 0 10px 10px 0; background: var(--bg); color: var(--muted); font-weight: 700; }

/* ---------- Kalendar (odabir datuma DD.MM.GGGG.) ---------- */
.datefield { position: relative; }
.datefield input { padding-right: 40px; }
.datefield .cal-icon { position: absolute; right: 10px; bottom: 11px; width: 22px; height: 22px; color: var(--muted); pointer-events: none; }
.dp { position: absolute; z-index: 60; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px; width: 300px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 800; color: var(--navy); }
.dp-head button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 18px; color: var(--navy); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-grid .dow { font-size: .75rem; color: var(--muted); font-weight: 700; padding: 4px 0; }
.dp-grid button { height: 38px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: .9rem; cursor: pointer; color: var(--text); }
.dp-grid button:hover:not([disabled]) { background: var(--teal-light); }
.dp-grid button[disabled] { color: #A9B4C0; cursor: not-allowed; text-decoration: line-through; }
.dp-grid button.sel { background: var(--teal); color: #fff; }
.dp-grid button.inrange { background: var(--teal-light); }
.dp-grid button.today { font-weight: 800; box-shadow: inset 0 0 0 1px var(--teal); }
.dp-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: .85rem; }

/* ---------- Kartice oglasa ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.listing-card { position: relative; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.listing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.listing-card .media { position: relative; aspect-ratio: 4 / 3; background: var(--teal-light); overflow: hidden; }
.listing-card .media img { width: 100%; height: 100%; object-fit: cover; }
.listing-card .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: #fff; color: var(--navy); border: 1px solid var(--border); }
.badge-featured { background: var(--coral); color: var(--navy); border-color: var(--coral); }
.badge-teal { background: var(--teal-light); color: var(--teal-dark); border-color: #BFE5E2; }
.badge-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: #ABEFC6; }
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: #FEDF89; }
.badge-danger { background: var(--danger-bg); color: var(--danger); border-color: #FECDCA; }
.badge-muted { background: #F2F4F7; color: var(--muted); }
.badge-demo { background: #FFF6E5; color: #6A3E00; border: 1px dashed #E0A100; }
.listing-card .body { padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.listing-card .title { font-size: 1.02rem; font-weight: 800; color: var(--navy); line-height: 1.3; margin: 0; }
.listing-card .title a { color: inherit; text-decoration: none; }
/* Cijela kartica je klikabilna, ali kontakt dugmad rade nezavisno */
.listing-card .title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.listing-card .loc { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 4px; }
.listing-card .loc svg { width: 16px; height: 16px; flex: none; color: var(--teal); }
.btn svg, .badge svg { width: 18px; height: 18px; flex: none; }
.cbtn-lg svg { width: 20px; height: 20px; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; color: var(--navy); }
.rating > span[aria-hidden] { color: #B7791F; }
.stars { color: #B7791F; letter-spacing: 1px; }
.stars .off { color: #CBD5E0; }
.review { border-top: 1px solid var(--border); padding: 16px 0; }
.review:first-of-type { border-top: 0; }
.review .meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.review .reply { margin-top: 10px; padding: 10px 14px; background: var(--teal-light); border-radius: 10px; font-size: .93rem; }
.rating-bars { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 20px; margin: 10px 0 6px; font-size: .9rem; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 30px; line-height: 1; color: #CBD5E0; cursor: pointer; padding: 4px; border-radius: 6px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #B7791F; }
.star-input input:focus-visible + label { box-shadow: var(--focus); }
.listing-card .specs { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .86rem; color: var(--muted); }
.listing-card .price { font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.listing-card .price small { font-size: .85rem; font-weight: 600; }
.listing-card .stay { font-size: .85rem; color: var(--teal-dark); font-weight: 700; }
.listing-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 12px 16px; border-top: 1px solid var(--border); position: relative; z-index: 2; }
.listing-card .owner { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.contact-icons { display: flex; gap: 6px; flex: none; }
.side-card .contact-icons, .profile-top .contact-icons { flex-wrap: wrap; flex: 1 1 auto; }
.cbtn { position: relative; z-index: 3; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: #fff; color: var(--navy); cursor: pointer; text-decoration: none; }
.cbtn:hover { border-color: var(--teal); background: var(--teal-light); }
.cbtn svg { width: 20px; height: 20px; }
.cbtn.call { color: var(--teal-dark); }
.cbtn.viber { color: #6B4FA8; }
.cbtn.whatsapp { color: #157A3A; }
.cbtn-lg { width: auto; padding: 0 14px; gap: 8px; font-weight: 700; font-size: .92rem; }

/* ---------- Sekcije ---------- */
.section { padding: 48px 0 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-tile { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--navy); font-weight: 700; min-height: 64px; }
.cat-tile:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.cat-tile .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-light); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; flex: none; }
.cat-tile .ic svg { width: 22px; height: 22px; }
.cat-tile small { display: block; font-weight: 600; }
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .loc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .loc-grid { grid-template-columns: 1fr; } }
.loc-tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 170px; display: flex; align-items: flex-end; color: #fff; text-decoration: none; background: var(--navy); }
.loc-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.loc-tile:hover img { transform: scale(1.04); }
.loc-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,42,67,0) 30%, rgba(16,42,67,.88) 100%); }
.loc-tile .txt { position: relative; z-index: 1; padding: 16px; }
.loc-tile strong { display: block; font-size: 1.15rem; }
.loc-tile span { font-size: .9rem; color: #E1EAF2; }
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, var(--teal-dark) 100%); color: #fff; border-radius: 20px; padding: 36px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #D6E2EE; }
.cta-band::before { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; border: 18px solid rgba(242,107,91,.35); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 26px; } }

/* ---------- Pretraga / filteri ---------- */
.search-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; margin-top: 24px; }
.filters { position: sticky; top: 84px; padding: 18px; }
.filters h2 { font-size: 1.05rem; }
.filters .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--teal-light); color: var(--teal-dark); font-weight: 700; font-size: .85rem; text-decoration: none; }
.chip:hover { background: #D3EEEC; }
.filter-toggle { display: none; }
@media (max-width: 960px) {
  .search-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
}
.pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0 8px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: #fff; text-decoration: none; color: var(--navy); font-weight: 700; }
.pagination [aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Stanja ---------- */
.empty { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); }
.empty .ic { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: var(--teal-light); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; }
.empty h3 { margin-bottom: 6px; }
.alert { padding: 12px 16px; border-radius: 12px; border: 1px solid; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; }
.alert-ok { background: var(--ok-bg); border-color: #ABEFC6; color: #054F31; }
.alert-error { background: var(--danger-bg); border-color: #FECDCA; color: #7A271A; }
.alert-info { background: var(--teal-light); border-color: #BFE5E2; color: #0B4F56; }
.alert-warn { background: var(--warn-bg); border-color: #FEDF89; color: #6A3E00; }
.test-banner { background: repeating-linear-gradient(-45deg, #FFF6E5, #FFF6E5 12px, #FFEFD0 12px, #FFEFD0 24px); border: 2px dashed #E0A100; color: #6A3E00; padding: 10px 14px; border-radius: 12px; font-weight: 800; text-align: center; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading { opacity: .6; pointer-events: none; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 90; font-weight: 600; }

/* ---------- Detalj oglasa ---------- */
.breadcrumbs { font-size: .88rem; color: var(--muted); margin: 18px 0 10px; }
.breadcrumbs a { color: var(--muted); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; gap: 8px; border-radius: 18px; overflow: hidden; }
.gallery a { position: relative; display: block; background: var(--teal-light); }
.gallery a:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .more { position: absolute; inset: 0; background: rgba(16,42,67,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 110px; } .gallery a:first-child { grid-column: 1 / 3; grid-row: 1; } .gallery a:nth-child(n+4) { display: none; } }
/* Kalendar dostupnosti (vlasnik) */
.av-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.av-nav strong { color: var(--navy); }
.av-months { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .av-months { grid-template-columns: 1fr; } }
.av-month h4 { margin: 0 0 6px; font-size: .95rem; }
.av-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.av-grid .dow { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.av-day { position: relative; min-height: 48px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font: inherit; font-size: .85rem; cursor: pointer; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; color: var(--text); }
.av-day small { font-size: .66rem; color: var(--muted); }
.av-day:hover:not([disabled]) { border-color: var(--teal); }
.av-day.blocked { background: repeating-linear-gradient(-45deg, #EEF1F4, #EEF1F4 5px, #DDE3E9 5px, #DDE3E9 10px); color: #3D4B5C; }
.av-day.booked { background: #FDE2DF; border-color: #F6B9B1; color: #7A271A; cursor: not-allowed; }
.av-day.pending::after { content: ""; position: absolute; inset: 2px; border: 2px solid #E0A100; border-radius: 6px; pointer-events: none; }
.av-day.past { background: #F7F8FA; color: #A9B4C0; cursor: default; }
.av-day.sel { background: var(--teal); color: #fff; border-color: var(--teal); }
.av-day.sel small { color: #E8F6F5; }
.av-day.inrange { box-shadow: inset 0 0 0 2px var(--teal); }
.av-day:focus-visible { box-shadow: var(--focus); }
.av-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding: 10px 12px; background: var(--teal-light); border-radius: 12px; position: sticky; bottom: 8px; z-index: 5; }
.av-bar span { font-weight: 700; color: var(--navy); margin-right: auto; }
.legend .lg-free { background: #fff; border: 1px solid var(--border); }
.legend .lg-blocked { background: repeating-linear-gradient(-45deg, #EEF1F4, #EEF1F4 3px, #DDE3E9 3px, #DDE3E9 6px); }
.legend .lg-booked { background: #FDE2DF; }
.legend .lg-pending { box-shadow: inset 0 0 0 2px #E0A100; }
/* Karta za odabir lokacije */
.map-picker { margin-bottom: 14px; }
.mp-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.mp-head .label { font-weight: 700; font-size: .875rem; color: var(--navy); }
.mp-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mp-results { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.mp-results .btn { white-space: normal; text-align: left; justify-content: flex-start; height: auto; }
.mp-map { position: relative; height: 340px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: #E5EEF1; cursor: grab; touch-action: none; user-select: none; }
.mp-map:active { cursor: grabbing; }
.mp-map:focus-visible { box-shadow: var(--focus); }
.map-picker.invalid .mp-map { border-color: var(--danger); }
.mp-tile { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.mp-pin { position: absolute; left: 0; top: 0; width: 40px; height: 50px; margin: -48px 0 0 -20px; padding: 0; border: 0; background: none; cursor: grab; z-index: 2; filter: drop-shadow(0 4px 6px rgba(16,42,67,.35)); transition: margin .12s; }
.mp-pin.dragging { cursor: grabbing; margin-top: -56px; }
.mp-pin svg { width: 100%; height: 100%; display: block; }
.mp-pin:focus-visible { outline: 3px solid var(--coral); border-radius: 50% 50% 8px 8px; }
.mp-zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 3; }
.mp-zoom button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: #fff; font-size: 22px; font-weight: 700; color: var(--navy); cursor: pointer; box-shadow: var(--shadow); }
.mp-attr { position: absolute; right: 0; bottom: 0; background: rgba(255,255,255,.85); font-size: 11px; padding: 2px 6px; border-top-left-radius: 6px; z-index: 3; }
@media (max-width: 560px) { .mp-map { height: 280px; } }
.gallery-wrap { position: relative; }
.gallery a { cursor: zoom-in; }
.gallery-all { position: absolute; right: 14px; bottom: 14px; box-shadow: var(--shadow); }
/* Pregled fotografija (lightbox) */
.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(10, 22, 36, .96); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: 56px 1fr 92px; }
.lightbox::backdrop { background: rgba(10, 22, 36, .9); }
.lb-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.lb-count { font-weight: 700; color: #E1EAF2; }
.lb-btn { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 12px; width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; align-self: center; justify-self: center; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255,255,255,.25); }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 0; touch-action: pan-y; }
.lb-img { max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; border-radius: 8px; user-select: none; }
.lb-caption { margin-top: 8px; font-size: .9rem; color: #C9D6E3; text-align: center; }
.lb-thumbs { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; justify-content: center; }
.lb-thumbs button { flex: none; width: 88px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; opacity: .6; }
.lb-thumbs button[aria-current="true"] { border-color: #7FD6DD; opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 56px 1fr 64px 76px; }
  .lb-figure { grid-column: 1 / -1; grid-row: 2; }
  .lb-prev { grid-row: 3; grid-column: 1; } .lb-next { grid-row: 3; grid-column: 2; }
  .lb-thumbs { grid-row: 4; justify-content: flex-start; }
  .lb-thumbs button { width: 64px; height: 48px; }
}
.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; margin-top: 24px; align-items: start; }
.detail-side { position: sticky; top: 84px; display: grid; gap: 16px; }
@media (max-width: 980px) { .detail-layout { grid-template-columns: 1fr; } .detail-side { position: static; } }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 16px 0 24px; }
.fact { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; min-width: 0; overflow-wrap: anywhere; }
.detail-layout > *, .detail-side > *, .search-layout > *, .form-grid > *, .form-grid-3 > * { min-width: 0; }
.datefield input { min-width: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } .fact span { font-size: .72rem; } }
.fact span { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.fact strong { color: var(--navy); font-size: 1.05rem; }
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; list-style: none; padding: 0; }
.amenities li { display: flex; gap: 8px; align-items: center; }
.amenities li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23087F8C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; flex: none; }
.side-card { padding: 20px; }
.side-card .price-big { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.quote-lines { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; font-size: .93rem; }
.quote-lines li { display: flex; justify-content: space-between; gap: 12px; }
.quote-lines .total { border-top: 1px solid var(--border); padding-top: 8px; font-weight: 800; color: var(--navy); }
.owner-box { display: flex; gap: 12px; align-items: center; }
.owner-box .avatar { width: 52px; height: 52px; font-size: 1.1rem; }
.map-frame { width: 100%; height: 300px; border: 0; border-radius: 14px; background: var(--teal-light); }
.mini-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.mini-cal .month h4 { font-size: .95rem; margin-bottom: 6px; }
.mini-cal .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: .8rem; }
.mini-cal .days span { padding: 5px 0; border-radius: 6px; }
.mini-cal .days .busy { background: #FDE2DF; color: #7A271A; text-decoration: line-through; }
.mini-cal .days .free { background: var(--teal-light); color: #0B4F56; }
.mini-cal .days .past { color: #A9B4C0; }
.legend { display: flex; gap: 14px; font-size: .85rem; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.mobile-bar { display: none; }
@media (max-width: 980px) {
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--border); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 8px; align-items: center; box-shadow: 0 -6px 20px rgba(16,42,67,.08); }
  .mobile-bar .p { font-weight: 800; color: var(--navy); line-height: 1.2; margin-right: auto; }
  .mobile-bar .p small { display: block; font-weight: 600; }
  body.has-mobile-bar { padding-bottom: 84px; }
}

/* ---------- Paneli (korisnik, agencija, admin) ---------- */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 68px); }
.app-side { background: #fff; border-right: 1px solid var(--border); padding: 18px 12px; position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto; }
.app-side .ws { padding: 10px 12px 14px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.app-side .ws strong { display: block; color: var(--navy); }
.app-side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .94rem; }
.app-side nav a:hover { background: var(--bg); }
.app-side nav a[aria-current="page"] { background: var(--teal-light); color: var(--teal-dark); }
.app-side nav a svg { width: 18px; height: 18px; flex: none; }
.app-side nav .count { margin-left: auto; background: var(--coral); color: var(--navy); font-size: .72rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.app-main { padding: 26px 28px 60px; min-width: 0; }
.app-main.admin { background: #F3F5F8; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 1.6rem; }
.side-toggle { display: none; }
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-side { position: fixed; left: 0; top: 68px; bottom: 0; width: 280px; z-index: 35; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); height: auto; }
  .app-side.open { transform: none; }
  .side-toggle { display: inline-flex; margin-bottom: 12px; }
  .app-main { padding: 18px 16px 60px; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { padding: 16px 18px; }
.stat span { font-size: .8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.stat strong { display: block; font-size: 1.6rem; color: var(--navy); font-weight: 800; }
.stat small { display: block; }
.panel-card { padding: 20px; margin-bottom: 18px; }
.panel-card h2 { font-size: 1.15rem; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th, table.t td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.t th { background: #FAFBFC; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
table.t th a { color: inherit; text-decoration: none; }
table.t tr:last-child td { border-bottom: 0; }
table.t td .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.toolbar .field { margin: 0; min-width: 150px; }
.inline-form { display: inline; }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 8px; } }
.copy-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; margin-bottom: 8px; }
.copy-row span { color: var(--muted); font-size: .82rem; display: block; }
.copy-row strong { color: var(--navy); word-break: break-all; }
.secret-box { font-family: ui-monospace, Consolas, monospace; background: var(--navy); color: #7FD6DD; padding: 14px; border-radius: 10px; word-break: break-all; font-size: .95rem; }
code, pre { font-family: ui-monospace, Consolas, monospace; font-size: .88rem; }
pre { background: #0E2236; color: #E1EAF2; padding: 14px; border-radius: 12px; overflow-x: auto; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--teal); }
.view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.view-toggle a { padding: 8px 12px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .88rem; }
.view-toggle a[aria-current="page"] { background: var(--navy); color: #fff; }

/* ---------- Poruke ---------- */
.inbox { display: grid; grid-template-columns: 340px 1fr; gap: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: 520px; }
.inbox-list { border-right: 1px solid var(--border); overflow-y: auto; max-height: 72vh; }
.inbox-list a { display: block; padding: 14px 16px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.inbox-list a:hover { background: var(--bg); }
.inbox-list a[aria-current="page"] { background: var(--teal-light); }
.inbox-list .t { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; color: var(--navy); }
.inbox-list .s { font-size: .86rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-list .unread .t::after { content: ""; width: 9px; height: 9px; background: var(--coral); border-radius: 50%; flex: none; margin-top: 6px; }
.thread { display: flex; flex-direction: column; min-height: 520px; }
.thread-head { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.thread-msgs { flex: 1; padding: 18px; overflow-y: auto; max-height: 56vh; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--border); white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: var(--teal); color: #fff; border-color: var(--teal); }
.msg.system { align-self: center; background: var(--teal-light); border-color: #BFE5E2; font-size: .88rem; color: #0B4F56; max-width: 92%; }
.msg time { display: block; font-size: .74rem; opacity: .8; margin-top: 4px; }
.thread form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.thread form textarea { min-height: 48px; height: 48px; }
@media (max-width: 860px) { .inbox { grid-template-columns: 1fr; } .inbox.has-thread .inbox-list { display: none; } }

/* ---------- Profili ---------- */
.profile-hero { background: #fff; border-bottom: 1px solid var(--border); }
.profile-cover { height: 220px; background: linear-gradient(120deg, var(--navy), var(--teal-dark)); background-size: cover; background-position: center; }
.profile-top { display: flex; gap: 20px; align-items: flex-end; margin-top: -54px; padding-bottom: 20px; flex-wrap: wrap; }
.profile-logo { width: 112px; height: 112px; border-radius: 20px; border: 4px solid #fff; background: var(--teal-light); box-shadow: var(--shadow); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; color: var(--teal-dark); flex: none; }
.profile-logo img { width: 100%; height: 100%; object-fit: cover; }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 800; color: var(--teal-dark); background: var(--teal-light); padding: 3px 9px; border-radius: 999px; }
.agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.agent { display: flex; gap: 12px; align-items: center; padding: 14px; }

/* ---------- Paketi ---------- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pricing { grid-template-columns: 1fr; } }
.plan { padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.plan.popular { border: 2px solid var(--teal); }
.plan .amount { font-size: 2rem; font-weight: 800; color: var(--navy); }
.plan ul { padding-left: 18px; margin: 0 0 8px; color: var(--muted); }

/* ---------- Štampa (uputstvo za uplatu) ---------- */
@media print {
  .site-header, .site-footer, .app-side, .no-print, .mobile-bar { display: none !important; }
  .app-shell { display: block; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

/* Pristanak na kolačiće (Google Analytics) */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; background: #fff; color: var(--navy); border: 1px solid rgba(16,42,67,.12); border-radius: 14px; box-shadow: 0 12px 40px rgba(16,42,67,.22); padding: 16px 18px; display: grid; gap: 12px; font-size: .92rem; }
.cookie-banner p { margin: 0; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.has-mobile-bar .cookie-banner { bottom: 84px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.site-footer .footer-bottom a { color: inherit; }
@media print { .cookie-banner { display: none !important; } }
/* ---------- Mobitel: bez vodoravnog pomjeranja stranice ---------- */
/* Sigurnosna mreža: ništa ne smije proširiti stranicu u stranu (clip ne kvari ljepljivo zaglavlje kao overflow:hidden) */
html, body { max-width: 100%; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
img, video, iframe, svg { max-width: 100%; }
.site-header .wrap > *, .header-actions > * { min-width: 0; }
.cat-grid, .loc-grid, .grid-cards, .pricing, .form-grid, .facts { min-width: 0; }
.cat-grid > *, .grid-cards > *, .detail-layout > *, .pricing > * { min-width: 0; }
.cat-tile span { min-width: 0; overflow-wrap: anywhere; }
h1, h2, h3, p, dd, td, li { overflow-wrap: break-word; }
.dropdown { max-width: calc(100vw - 16px); }
@media (max-width: 560px) {
  .site-header .wrap { gap: 8px; padding: 0 12px; }
  .header-actions { gap: 2px; }
  .header-actions .btn { padding: 8px 12px; min-height: 40px; font-size: .875rem; }
  .icon-link { width: 40px; height: 40px; }
  .user-menu summary { padding: 4px; border-color: transparent; }
  .wordmark { font-size: 1.2rem; }
  .brand img { width: 32px; height: 32px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cat-tile { padding: 10px; gap: 8px; }
  .cat-tile .ic { width: 34px; height: 34px; }
}
@media (max-width: 360px) {
  .wordmark { display: none; }
  .header-actions .btn { padding: 8px 10px; }
}
.dropdown svg { width: 18px; height: 18px; flex: none; }
.dropdown button span small { color: var(--muted); }