/* GdeSlavimo design system - ported from design_handoff_gdeslavimo
   (_ds/.../styles.css tokens/components + gs-theme.css wine/champagne palette),
   merged into one production file. Font: Archivo. Radius: 0 everywhere. */
/* Archivo self-hostovan (22.10.2026): @import ka Google Fonts je bio serijski
   blokirajuci zahtev (CSS -> import -> font). Varijabilni 100-900, latin +
   latin-ext sveden na Latin Extended-A (c, c, dj, s, z). Fajlovi u fonts/. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/archivo-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/archivo-latin-ext.woff2') format('woff2'); unicode-range: U+0100-017F, U+0218-021B; }

:root {
  --color-bg: #f8f3ed;
  --color-surface: #f0e7dd;
  --color-text: #2b1d21;
  --color-accent: #8e2c48;
  --color-accent-2: #b8925a;
  --color-divider: #c9ae86;

  --color-neutral-100: #f6eee4;
  --color-neutral-200: #ece2d6;
  --color-neutral-300: #ddd0c1;
  --color-neutral-400: #c2b2a1;
  --color-neutral-500: #a39282;
  --color-neutral-600: #847466;
  --color-neutral-700: #66584e;
  --color-neutral-800: #4a3e37;
  --color-neutral-900: #2e2522;

  --color-accent-100: #faeef1;
  --color-accent-200: #f2d6de;
  --color-accent-300: #e2b0be;
  --color-accent-400: #c97a90;
  --color-accent-500: #a8445f;
  --color-accent-600: #7a2240;
  --color-accent-700: #641a34;
  --color-accent-800: #4c1427;
  --color-accent-900: #330d1a;

  --color-accent-2-100: #f8f1e6;
  --color-accent-2-200: #eedfc6;
  --color-accent-2-300: #ddc39b;
  --color-accent-2-500: #b8925a;
  --color-accent-2-700: #7d5f33;
  --color-accent-2-800: #5c4524;

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-heading-weight: 800;
  --font-body: "Archivo", system-ui, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --radius-sm: 0px; --radius-md: 0px; --radius-lg: 0px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #4c1427 12%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #4c1427 14%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #4c1427 18%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; } h2 { font-size: 32px; } h3 { font-size: 25px; }
h4 { font-size: 20px; } h5 { font-size: 16px; }
h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.hr { height: 2px; border: 0; margin: var(--space-4) 0; background: var(--color-divider); }

/* photography prints in colour on this site (wedding venues, not the grayscale system default) */
.grayscale { filter: none; }

/* - buttons - */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); justify-content: flex-start; text-align: left; }

/* - forms - */
.field > label { display: block; font-size: 12px; margin-bottom: 5px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit; font-size: 14px;
  color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input, .seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.radio .dot { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--color-divider); }
.radio:hover .dot { border-color: var(--color-accent); }
.radio input:checked + .dot { border-color: var(--color-accent); background: var(--color-accent); box-shadow: inset 0 0 0 4px var(--color-bg); }
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.seg { display: inline-flex; overflow: hidden; border: 1px solid var(--color-divider); border-radius: var(--radius-md); }
.seg-opt { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.checkbox-sq { width: 16px; height: 16px; flex: none; border: 1.5px solid var(--color-divider); box-sizing: border-box; display: inline-block; }
.checkbox-sq.on { background: var(--color-accent); box-shadow: inset 0 0 0 3px var(--color-bg); border-color: var(--color-accent); }

/* - tags - */
.tag { display: inline-flex; align-items: center; font-size: 11px; letter-spacing: 0.02em; padding: 3px 10px; border-radius: calc(var(--radius-md) * 0.75); }
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-neutral { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* - navigation - */
.nav { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4); border-bottom: 2px solid var(--color-divider); }
.gs-nav-pad { padding: 16px 48px; }
.nav-brand { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 18px; margin-right: auto; }
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent); }
.nav-links { display: flex; align-items: center; gap: 22px; }

/* - dialog - */
.dialog-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: var(--space-4); background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent); z-index: 1000; }
.dialog { width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-lg); }
.dialog-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 20px; }
.dialog-body { font-size: 14px; opacity: 0.85; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }

/* - layout helpers used across the rebuilt templates - */
.gs-wrap { max-width: 1280px; margin: 0 auto; }
.gs-container { max-width: 1280px; margin: 0 auto; background: var(--color-bg); }
.gs-kicker { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-accent-700); }
.gs-muted { color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.gs-sq { width: 6px; height: 6px; background: var(--color-accent); display: inline-block; flex: none; }

/* - generic page wrapper used by Hub/Lokacija/Usluge/Kategorija/fallback content - */
.gs-page { padding: 32px 48px 64px; }
.gs-page-header { margin-bottom: 24px; }
.gs-breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px;
  font-size: 13px; color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.gs-breadcrumb a { color: inherit; text-decoration: none; }
.gs-breadcrumb a:hover { color: var(--color-accent); }
.gs-page-title { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
.gs-subnav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.gs-subnav a {
  display: inline-block; background: #fff; border: 1px solid var(--color-divider);
  padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--color-text); text-decoration: none;
}
.gs-subnav a:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.gs-empty {
  background: var(--color-surface); border: 1px dashed var(--color-divider);
  padding: 40px; text-align: center; color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.gs-section-body { font-size: 17px; line-height: 28px; max-width: 72ch; }
.gs-section-body p { margin: 0 0 16px; }
@media (max-width: 900px) {
  .gs-page { padding: 24px 20px 48px; }
}

/* - mega menu - */
.gs-nav-wrap { position: relative; z-index: 30; }
.gs-mega-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--color-bg); border-bottom: 2px solid var(--color-divider);
  box-shadow: var(--shadow-lg); display: none; z-index: 30;
}
.gs-mega-panel.is-open { display: block; }
.gs-mega-inner {
  padding: 32px 48px 36px; display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 40px; max-height: calc(100vh - 80px); overflow-y: auto; box-sizing: border-box;
}
.gs-mega-inner[hidden] { display: none; }
.gs-mega-left { display: flex; flex-direction: column; gap: 12px; padding-right: 32px; border-right: 2px solid var(--color-divider); }
.gs-mega-title { font-weight: 800; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; color: var(--color-text); text-decoration: none; }
.gs-mega-title:hover { color: var(--color-accent); }
.gs-mega-note { margin: 0; font-size: 14px; line-height: 22px; }
.gs-mega-right { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px 28px; align-content: start; }
.gs-mega-col { display: flex; flex-direction: column; gap: 6px; }
.gs-mega-col-title {
  display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px;
  color: var(--color-text); text-decoration: none; padding-bottom: 6px;
  border-bottom: 2px solid var(--color-divider); margin-bottom: 2px;
}
.gs-mega-col-title:hover { color: var(--color-accent); }
.gs-mega-link { font-size: 14px; color: var(--color-text); text-decoration: none; }
.gs-mega-link:hover { color: var(--color-accent); }
.gs-mega-ostali { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--color-divider); padding-top: 14px; }
.gs-mega-ostali-grid { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* - saved venues (♡) - */
.gs-heart {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border: 0; cursor: pointer; border-radius: 50%;
  background: rgba(26, 16, 19, 0.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.gs-heart:hover { background: rgba(26, 16, 19, 0.75); }
.gs-heart.is-saved { color: var(--color-accent); background: #fff; }
.gs-heart.is-saved svg { fill: var(--color-accent); }

/* - phone (header) - */
.gs-phone-link { display: flex; align-items: center; gap: 6px; color: var(--color-accent); font-weight: 700; font-size: 14px; white-space: nowrap; text-decoration: none; }
.gs-phone-link:hover { color: var(--color-accent-600); }

/* - social icons (footer) - */
.gs-footer-social { display: flex; gap: 14px; margin-top: 4px; }
.gs-footer-social a { color: var(--color-text); text-decoration: none; display: flex; }
.gs-footer-social a:hover { color: var(--color-accent); }

.gs-saved-nav { position: relative; display: flex; align-items: center; gap: 6px; }
.gs-saved-badge {
  display: none; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 4px; background: var(--color-accent); color: #fff;
  font-size: 11px; font-weight: 800; border-radius: 0;
}
.gs-saved-menu {
  display: none; position: absolute; right: 0; top: 100%; margin-top: 8px;
  background: var(--color-bg); border: 2px solid var(--color-divider); box-shadow: var(--shadow-lg);
  min-width: 260px; max-width: 320px; z-index: 40;
}
.gs-saved-menu.is-open { display: block; }

/* - mobile nav toggle - */
.gs-menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: 0; cursor: pointer; padding: 0; }
.gs-menu-toggle span { display: block; height: 2px; background: var(--color-text); }
/* Hidden on desktop - the hover mega-menu already covers navigation there.
   Only becomes the visible accordion toggle on mobile (see @media below). */
.gs-nav-expand { all: unset; display: none; }
@media (max-width: 900px) {
  .gs-menu-toggle { display: flex; order: 2; }
  .nav { flex-wrap: wrap; }
  .nav-links { order: 3; flex-basis: 100%; display: none; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 2px solid var(--color-divider); margin-top: 12px; }
  .nav-links.is-open { display: flex; }
  .nav .btn-secondary { order: 2; }
  .gs-mega-panel { display: none !important; }
  .gs-phone-link { order: 2; }
  .gs-phone-text { display: none; }

  /* Mobile nav accordion: tapping the item's own text still navigates
     straight to its hub page; tapping the chevron button next to it expands
     a flat list of that section's sub-links in place, since the desktop
     mega panel (hover-only, disabled above via display:none) isn't usable
     by touch. */
  .gs-nav-item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
  .gs-nav-item .gs-nav-trigger { padding: 8px 0; }
  .gs-nav-chevron-desktop { display: none; }
  .gs-nav-expand { display: flex; justify-content: center; width: 32px; height: 32px; flex: none; color: var(--color-text); }
  .gs-nav-expand svg { transition: transform .2s ease; }
  .gs-nav-expand[aria-expanded="true"] svg { transform: rotate(180deg); }
  .gs-mobile-submenu { display: flex; flex-direction: column; gap: 2px; flex-basis: 100%; padding: 4px 0 10px 14px; }
  .gs-mobile-submenu[hidden] { display: none; }
  .gs-mobile-submenu-group { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-accent-700); text-decoration: none; padding: 10px 0 2px; }
  .gs-mobile-submenu-label { cursor: default; }
  .gs-mobile-submenu-link { font-size: 14px; color: var(--color-text); text-decoration: none; padding: 6px 0; }
}
@media (max-width: 600px) {
  .gs-nav-pad { padding: 12px 16px; gap: 6px; }
  .nav-brand span:last-child { font-size: 15px; }
  .gs-saved-nav { display: none; }
  .gs-phone-link { display: none !important; }
  .nav .btn-secondary { padding: 8px 12px; font-size: 13px; }
  .gs-footer-grid { padding: 32px 20px 28px !important; grid-template-columns: 1fr 1fr !important; }
  .gs-footer-bottom { padding: 16px 20px !important; }
}
@media (max-width: 420px) {
  .gs-footer-grid { grid-template-columns: 1fr !important; }
}

/* Kategorija/lokacija filter sidebar + results listing (page.php +
   gs-kategorija.js). The sidebar's minmax(200px,240px) column leaves almost
   no width for the results column on phones, and each "Lista"-view card is
   itself a 3-column grid that gets crushed the same way. Stack both. */
@media (max-width: 680px) {
  .gs-kat-layout { grid-template-columns: 1fr !important; gap: 24px !important; }
  .gs-lista-card { grid-template-columns: 1fr !important; gap: 12px !important; }
  .gs-lista-card > div:last-child { border-left: 0 !important; padding-left: 0 !important; border-top: 2px solid var(--color-divider); padding-top: 12px !important; }
  .gs-mreza-grid { grid-template-columns: 1fr !important; }
  .gs-faq-layout { grid-template-columns: 1fr !important; gap: 16px !important; }
  .gs-faq-layout > h2 { margin-bottom: 4px !important; }
}

/* A long vertical list of cities/opštine (sometimes 15-40+ items) reads fine
   as a sidebar list on desktop/tablet, but on a phone it pushes the actual
   results far down the page. Below 680px, swap each such list for a single
   <select> dropdown carrying the same options; above that width, hide the
   dropdown and show the list as before. Both nodes stay in the DOM - this
   is a pure CSS swap, not a JS reflow. */
.gs-filter-select-mobile { display: none; }
@media (max-width: 680px) {
  .gs-filter-select-mobile { display: block; width: 100%; }
  /* !important: these lists carry an inline style="display:flex" (set
     alongside their desktop layout), which otherwise always beats a plain
     class selector regardless of media query - same rule as elsewhere in
     this file whenever overriding an inline style="" from the markup. */
  .gs-filter-list-desktop { display: none !important; }
}
