/* Patches mobile responsiveness on top of styles.css */
@media (max-width: 960px) {
  .hero h1 br { display: none; }
  .hero h1 br + * { margin-left: 0; }
}

@media (max-width: 700px) {
  /* grids: never wider than the screen */
  .cards { grid-template-columns: 1fr !important; }
  .news-grid { grid-template-columns: 1fr !important; }
  .loc-grid { grid-template-columns: 1fr !important; }
  .price-grid { grid-template-columns: 1fr !important; }
  .stats { grid-template-columns: 1fr 1fr !important; }
  .gallery { grid-template-columns: 1fr 1fr !important; }
  .two-col, .grid-2, .contact-grid, .footer-grid { grid-template-columns: 1fr !important; }

  /* hero */
  .hero h1 { font-size: 1.9rem !important; line-height: 1.25; word-break: break-word; }
  .hero p.lead { font-size: 1rem; }
  .hero-badge { font-size: .8rem; padding: 8px 13px; }

  /* buttons stack full width */
  .hero .btn, .section .btn { display: block; width: 100%; margin: 0 0 10px !important; }
  .nav-cta .btn, .btn--inline { display: inline-block; width: auto; }

  /* everything must wrap */
  body, .container, section, .cards, .card, .news-card, .price-card { max-width: 100%; }
  p, h1, h2, h3, li { overflow-wrap: break-word; word-wrap: break-word; }

  /* tables scroll instead of breaking the layout */
  table { display: block; overflow-x: auto; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr !important; }
  .hero h1 { font-size: 1.65rem !important; }
  .page-hero h1 { font-size: 1.5rem !important; }
}

/* hard guard against any horizontal overflow on phones */
@media (max-width: 760px) {
  html, body { overflow-x: clip !important; }
  * { min-width: 0 !important; }
  .archive-filter, .hero-badges, .btn-row { flex-wrap: wrap !important; max-width: 100% !important; }
  .archive-filter button { flex: 0 0 auto; }
}

/* ---------- final phone overrides ---------- */
@media (max-width: 760px) {
  .archive-filter { display:flex !important; flex-wrap: wrap !important; justify-content:center !important; }
  .archive-filter button { width: auto !important; max-width: none !important; flex: 0 0 auto !important; }
  .page-hero p, .page-hero h1 { max-width: 100% !important; white-space: normal !important; overflow-wrap: anywhere !important; }
  .hero h1, .section-head h2, .section-head p { max-width: 100% !important; overflow-wrap: anywhere !important; }
  .stats, .cards, .news-grid, .gallery, .loc-grid, .price-grid { width: 100% !important; }
  .container { overflow-x: clip; }
}

/* hero ozadje na telefonu – sredina slike naj bo vidna */
@media (max-width: 700px) {
  .hero {
    background-position: center 70%;
    background-image:
      linear-gradient(160deg, rgba(18,18,18,.90) 0%, rgba(22,20,20,.78) 60%, rgba(80,24,21,.55) 100%),
      url('../assets/hero-streliste.jpg');
  }
  .hero-badge { line-height: 1.35; text-align: left; }
}
@media (max-width: 700px) {
  .hero, .page-hero {
    background-image:
      linear-gradient(180deg, rgba(31,31,31,1) 0%, rgba(31,31,31,.88) 38%, rgba(20,18,18,.45) 70%, rgba(20,18,18,.3) 100%),
      url('../assets/hero-streliste.jpg');
    background-size: auto, 175% auto;
    background-position: center, 58% 100%;
    background-repeat: no-repeat;
  }
}
/* telefon: slika fiksne velikosti na dnu, zgornji rob se nežno prelije v temno */
@media (max-width: 700px) {
  .hero, .page-hero {
    background-image:
      linear-gradient(0deg, rgba(20,18,18,.28) 0px, rgba(24,22,22,.6) 200px, #1f1f1f 440px),
      url('../assets/hero-streliste.jpg');
    background-size: 100% 100%, 860px auto;
    background-position: 0 0, 58% 100%;
  }
}
@media (max-width: 700px) {
  .page-hero { padding-bottom: 150px !important; background-size: 100% 100%, 720px auto; }
  body.plavajoce .page-hero + section { margin-top: -24px; }
}
@media (max-width: 700px) {
  .loc-card .loc-head { flex-wrap: wrap; }
  .loc-card .loc-head .tag { white-space: nowrap; font-size: .74rem; padding: 6px 13px; }
  .loc-card .loc-head .rs-line { white-space: nowrap; }
}
