:root {
  --planet-lime: #d7e600;
  --planet-lime-dark: #b6c300;

  --planet-black: #292724;
  --planet-ink: #35322f;
  --planet-muted: #716c64;

  --planet-cream: #f3efe3;
  --planet-paper: #fbfaf7;
  --planet-white: #ffffff;
  --planet-border: #ddd8ce;

  --planet-orange: #d94c28;

  --shadow-soft: 0 4px 18px rgba(41, 39, 36, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--planet-ink);
  background: var(--planet-paper);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.header {
  background: var(--planet-white);
  border-top: 3px solid var(--planet-lime);
  border-bottom: 1px solid var(--planet-border);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  position: relative;

  color: var(--planet-black);
  text-decoration: none;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -1px;
}

.brand::before {
  content: "p";

  width: 30px;
  height: 30px;
  margin-right: 2px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--planet-lime);
  color: #111;

  border-radius: 50%;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.back-link {
  color: var(--planet-muted);
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  color: var(--planet-black);
  text-decoration: underline;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: 56px 0 52px;
  background: var(--planet-cream);
  border-bottom: 1px solid #e8e2d7;
}

.eyebrow {
  margin: 0 0 10px;
  color: #747d00;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.hero h1 {
  margin: 0;

  color: var(--planet-black);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.intro {
  max-width: 760px;
  margin: 20px 0 0;

  color: #56514b;
  font-size: 17px;
}

/* =========================================================
   CONTENT
   ========================================================= */

.content {
  padding-top: 38px;
  padding-bottom: 70px;
}

.status {
  margin-bottom: 20px;
  color: var(--planet-muted);
}

.hidden {
  display: none !important;
}

/* =========================================================
   AVAILABILITY BANNER
   ========================================================= */

.availability-banner {
  margin-bottom: 24px;
  padding: 18px 20px;

  border: 1px solid #e3c688;
  border-left: 5px solid var(--planet-orange);
  border-radius: 4px;

  background: #fff6df;
  color: #4d4031;
}

.availability-banner strong {
  display: block;
  margin-bottom: 4px;
  color: var(--planet-black);
}

/* =========================================================
   FILTERS
   ========================================================= */

.controls {
  display: grid;
  grid-template-columns: 180px 180px 1fr;
  gap: 18px;

  margin-bottom: 22px;
  padding: 22px;

  background: var(--planet-white);
  border: 1px solid var(--planet-border);
  border-radius: 4px;
}

.field {
  min-width: 0;
}

.field label {
  display: block;
  margin-bottom: 7px;

  color: var(--planet-black);
  font-size: 13px;
  font-weight: 700;
}

.field select,
.field input {
  width: 100%;
  height: 44px;

  padding: 0 13px;

  color: var(--planet-black);
  background: var(--planet-white);

  border: 1px solid #cbc6bc;
  border-radius: 3px;

  font: inherit;
}

.field select:focus,
.field input:focus {
  outline: 3px solid rgba(215, 230, 0, 0.35);
  border-color: var(--planet-lime-dark);
}

.field-search {
  min-width: 240px;
}

.result-count {
  margin: 0 0 18px;
  color: var(--planet-muted);
  font-size: 14px;
}

/* =========================================================
   STORES
   ========================================================= */

.stores {
  display: grid;
  gap: 14px;
}

.store-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;

  padding: 22px 24px;

  background: var(--planet-white);
  border: 1px solid var(--planet-border);
  border-radius: 4px;

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.store-card:hover {
  border-color: #c8c1b6;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.store-city {
  margin-bottom: 5px;

  color: #737c00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.store-title {
  margin: 0 0 2px;

  color: var(--planet-black);
  font-size: 19px;
  line-height: 1.25;
}

.store-type,
.store-meta {
  color: var(--planet-muted);
  font-size: 13px;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.download-button,
.download-button-primary,
.download-link {
  min-height: 43px;
  padding: 11px 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--planet-lime);
  border-radius: 2px;

  background: var(--planet-lime);
  color: #202020;

  text-decoration: none;
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.download-button:hover,
.download-button-primary:hover,
.download-link:hover {
  background: #c8d700;
  border-color: #c8d700;
  transform: translateY(-1px);
}

.download-button-secondary,
.store-actions a:nth-child(2) {
  background: var(--planet-white);
  border-color: #aaa398;
  color: var(--planet-black);
}

.download-button-secondary:hover,
.store-actions a:nth-child(2):hover {
  background: var(--planet-cream);
  border-color: #777168;
}

.empty {
  padding: 30px;

  border: 1px dashed #c9c3b9;
  background: var(--planet-white);

  color: var(--planet-muted);
  text-align: center;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  border-top: 1px solid var(--planet-border);
  background: var(--planet-cream);
}

.footer-inner {
  min-height: 90px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  color: #5f5a53;
  font-size: 14px;
}

.footer a {
  color: #395d67;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 820px) {
  .controls {
    grid-template-columns: 1fr;
  }

  .field-search {
    min-width: 0;
  }

  .store-card {
    grid-template-columns: 1fr;
  }

  .store-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand {
    font-size: 23px;
  }

  .brand::before {
    width: 25px;
    height: 25px;
    font-size: 21px;
  }

  .back-link {
    font-size: 12px;
  }

  .hero {
    padding: 38px 0;
  }

  .hero h1 {
    font-size: 36px;
  }

  .intro {
    font-size: 15px;
  }

  .controls {
    padding: 16px;
  }

  .store-card {
    padding: 19px 17px;
  }

  .store-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .store-actions a {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 0;
  }
}

/* =========================================================
   PLANETOPIJA - ACTUAL APP.JS CLASSES
   ========================================================= */

.store {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;

  min-height: 128px;
  padding: 22px 24px;
  margin-bottom: 14px;

  background: #ffffff;
  border: 1px solid #ddd8ce;
  border-radius: 4px;

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.store:hover {
  border-color: #c4beb3;
  box-shadow: 0 4px 18px rgba(41, 39, 36, 0.07);
  transform: translateY(-1px);
}

.store-main {
  min-width: 0;
}

.store-city {
  margin-bottom: 6px;

  color: #747d00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.store-address {
  margin-bottom: 3px;

  color: #292724;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.store-type {
  margin-bottom: 5px;

  color: #716c64;
  font-size: 13px;
}

.store-meta {
  color: #817b72;
  font-size: 12px;
}

.store-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.download {
  min-height: 44px;
  padding: 11px 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #d7e600;
  color: #202020;

  border: 1px solid #d7e600;
  border-radius: 2px;

  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.download:hover {
  background: #c8d700;
  border-color: #c8d700;
  color: #111111;
  text-decoration: none;
  transform: translateY(-1px);
}

/* drugi download link = cjenik usluga */
.store-actions .download:nth-child(2) {
  background: #ffffff;
  color: #292724;
  border-color: #aaa398;
}

.store-actions .download:nth-child(2):hover {
  background: #f3efe3;
  border-color: #777168;
}

@media (max-width: 820px) {
  .store {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .store-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .store {
    padding: 18px 16px;
  }

  .store-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .download {
    width: 100%;
  }
}



/* =========================================================
   PLANETOPIJA - OWNER LOGO
   ========================================================= */

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.owner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.owner-logo img {
  display: block;
  width: auto;
  height: 54px;
  max-width: 210px;
  object-fit: contain;
}

@media (max-width: 760px) {

  .header-right {
    gap: 12px;
  }

  .owner-logo img {
    height: 40px;
    max-width: 150px;
  }

  .back-link {
    display: none;
  }
}
/* PLANETOPIJA - HEADER FINAL */

.header-inner {
  justify-content: flex-end;
}

.header-right {
  margin-left: auto;
}