.locations-page {
  padding: 40px 16px 60px;
  max-width: 1120px;
  margin: 0 auto;
}

.locations-hero {
  text-align: center;
  margin-bottom: 32px;
}

.locations-hero h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #0f172a;
}

.locations-hero p {
  color: #6b7280;
  max-width: 640px;
  margin: 0 auto;
}

/* GRID */

.locations-grid-wrapper {
  margin-top: 16px;
}

.locations-empty {
  text-align: center;
  color: #6b7280;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* KARTICA */

.location-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 18px 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-top: 4px solid #14b8a6; /* naglašena linija gore */
  display: flex;
  flex-direction: column;         /* ikona iznad, zatim tekst */
  align-items: center;            /* sve centrirano */
  text-align: center;
  transition: transform 0.15s ease,
              box-shadow 0.15s ease,
              border-color 0.15s ease;
}

.location-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
  border-color: #14b8a6;
}

/* Ikona – SADA IZNAD NASLOVA */

.location-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  color: #ffffff;
  font-size: 20px;
  box-shadow: 0 6px 14px rgba(34, 197, 235, 0.4);
  margin-bottom: 10px;           /* razmak ispod ikone */
}

/* Tekst */

.location-card__body {
  width: 100%;
}

.location-card__title {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.location-card__meta {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #6b7280;
}

.location-card__region {
  color: #0ea5e9;
  font-weight: 500;
}

.location-card__intro {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #4b5563;
}

/* Link */

.location-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #14b8a6;
  font-weight: 600;
}

.location-card__link i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.location-card__link:hover {
  color: #0f766e;
}

.location-card__link:hover i {
  transform: translateX(3px);
}

/* RESPONSIVE */

@media (max-width: 640px) {
  .locations-page {
    padding: 24px 12px 40px;
  }

  .locations-hero h1 {
    font-size: 1.65rem;
  }

  .location-card {
    padding: 16px 14px 14px;
    border-radius: 14px;
  }

  .location-card__title {
    font-size: 1rem;
  }

  .location-card__intro {
    font-size: 0.86rem;
  }
}


/* ============================
   LOKACIJA – GLOBAL LAYOUT
   ============================ */

.location-page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 16px 70px;
}

/* ============================
   HERO / HEADER BLOK
   ============================ */

.location-hero {
  margin-bottom: 32px;
  padding: 18px 22px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ecfeff, #f9fafb);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.location-breadcrumb {
  font-size: 0.86rem;
  margin: 0 0 8px;
  color: #6b7280;
}

.location-breadcrumb a {
  color: #0ea5e9;
  text-decoration: none;
}

.location-breadcrumb a:hover {
  text-decoration: none;
}

.location-hero h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  margin: 0 0 6px;
  color: #0f172a;
  font-weight: 700;
}

.location-hero-meta {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.location-hero-meta i {
  color: #14b8a6;
  font-size: 1rem;
}

.location-hero-region {
  color: #0ea5e9;
  font-weight: 600;
}

.location-hero-intro {
  margin: 4px 0 0;
  max-width: 760px;
  color: #4b5563;
  line-height: 1.7;
  font-size: 0.98rem;
}

/* ============================
   GLAVNI LAYOUT (CONTENT + SIDEBAR)
   ============================ */

.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
  gap: 26px;
}

/* ============================
   CONTENT KARTICA (TinyMCE)
   ============================ */

.location-content {
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 24px 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Najviše je smetalo što sve “lijepi” uz ivicu – dodajemo razmak za sve blokove */
.location-content > *:first-child {
  margin-top: 0;
}
.location-content > *:last-child {
  margin-bottom: 0;
}

/* H1–H3 unutar sadržaja (ako ih TinyMCE generiše) */

.location-content h1,
.location-content h2,
.location-content h3 {
  color: #0f172a;
  font-weight: 700;
  margin: 18px 0 8px;
}

.location-content h1 {
  font-size: 1.6rem;
  border-bottom: 2px solid rgba(148, 163, 184, 0.3);
  padding-bottom: 4px;
}

.location-content h2 {
  font-size: 1.35rem;
  border-left: 4px solid #14b8a6;
  padding-left: 10px;
}

.location-content h3 {
  font-size: 1.15rem;
  color: #0f172a;
}

/* Paragrafi */

.location-content p {
  color: #4b5563;
  line-height: 1.75;
  font-size: 0.98rem;
  margin: 0 0 0.9em;
}

/* Liste – da ne budu zalijepljene na rub */

.location-content ul,
.location-content ol {
  margin: 0.4em 0 1em;
  padding-left: 1.4em;
}

.location-content ul li,
.location-content ol li {
  margin-bottom: 0.35em;
  color: #4b5563;
  line-height: 1.6;
}

/* Malo naglašeni bulleti */

.location-content ul {
  list-style-type: disc;
}

.location-content ul li::marker {
  color: #14b8a6;
}

/* Linkovi u tekstu */

.location-content a {
  color: #0ea5e9;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.location-content a:hover {
  color: #0369a1;
}

/* ============================
   SIDEBAR
   ============================ */

.location-sidebar {
  align-self: flex-start;
}

/* Info kartica */

.location-info-card {
  background: #f9fafb;
  border-radius: 18px;
  padding: 20px 18px 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.45);
  position: sticky;
  top: 90px; /* lijepo stoji dok se skroluje */
}

/* Naslov kartice */

.location-info-card h2 {
  font-size: 1.1rem;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-weight: 700;
}

/* Ikonica u krugu u headeru kartice */

.location-info-card h2 i {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecfeff;
  color: #14b8a6;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.4);
}

/* Svaki red (adresa, telefon, mail...) */

.location-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: #4b5563;
}

/* Ikonice poravnate i ujednačene */

.location-info-row i {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  color: #0ea5e9;
  font-size: 0.9rem;
}

/* Tekst desno od ikone */

.location-info-row div {
  flex: 1;
}

.location-info-row strong {
  display: block;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 2px;
}

.location-info-row span {
  display: inline-block;
}

/* Linkovi u sidebaru */

.location-info-row a {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 500;
}

.location-info-row a:hover {
  text-decoration: none;
}

/* CTA dugme */

.location-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

.location-cta i {
  font-size: 0.9rem;
}

.location-cta:hover {
  filter: brightness(1.05);
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.4);
  transform: translateY(-1px);
}

.location-cta:active {
  transform: translateY(0);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 900px) {
  .location-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-sidebar {
    order: -1;
  }

  .location-info-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .location-page {
    padding: 24px 12px 40px;
  }

  .location-hero {
    padding: 14px 14px 16px;
  }

  .location-hero h1 {
    font-size: 1.7rem;
  }

  .location-content {
    padding: 20px 16px 18px;
  }
}

