/* === Moderni i responzivni style.css === */

:root {
  --bg: #e8f5fa;
  --panel: #ffffff;
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --accent: #0ea5a4;
  --text: #1f2937;
  --muted: #6b7280;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  --max-width: 1100px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);
  line-height: 1.5;
}

/* === HEADER === */
header {
  background: var(--panel);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 12px 24px;
  margin: 16px auto;
  max-width: var(--max-width);
}

.row-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.row-1 img {
  width: 80px;
  height: auto;
}

.row-1 h1 {
  font-size: 24px;
  color: var(--primary-dark);
  flex: 1;
  font-weight: 700;
}

.row-1 ul {
  display: flex;
  gap: 10px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.row-1 ul li a {
  display: inline-block;
  padding: 8px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.row-1 ul li a:hover {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow);
}

/* === MAIN === */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px;
}

/* === Mapa i sidebar === */
.row-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.row-2 article {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.map {
  width: 100%;
  height: 500px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, #d0f0ff, #e8faff);
}

/* Sidebar kartice */
.row-2 aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
}

/* === RED 3 — kartice / sadržaj === */
.row-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.row-3 article {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  text-align: justify;
}

.row-3 article img {
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  object-fit: cover;
  margin-bottom: 10px;
}

/* === Link sekcija === */
.link ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  margin: 16px auto;
  max-width: var(--max-width);
}

.link ul li a {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  background: orange;
  transition: all 0.2s ease;
}

.link ul li a:hover {
  background: #16a34a;
}

/* === Footer sekcija (.dva) === */
.dva {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  margin: 20px auto;
  max-width: var(--max-width);
  flex-wrap: wrap;
  gap: 12px;
}

.dva img {
  width: 80px;
}

.dva h1 {
  font-size: 22px;
  color: var(--primary-dark);
}

.dva ul {
  display: flex;
  list-style: none;
  gap: 10px;
}

.dva ul li a {
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 8px 14px;
  font-weight: 600;
  transition: 0.2s;
}

.dva ul li a:hover {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .row-2 {
    grid-template-columns: 1fr;
  }
  .map {
    height: 400px;
  }
}

@media (max-width: 600px) {
  header,
  .dva {
    text-align: center;
  }

  .row-1,
  .dva {
    flex-direction: column;
    align-items: center;
  }

  .row-1 ul,
  .dva ul {
    justify-content: center;
  }

  .map {
    height: 320px;
  }
}
