/* ===== Buggy Garden Tour — dopunski stil za sekcije unutar karting.hr šablone ===== */

:root {
  --brand: #ff3334;
  --brand-dark: #d92829;
  --ink: #232323;
  --ink-2: #555;
  --bg-gray: #f5f6f8;
  --line: #ececec;
}

/* na buggy stranici slike ne smiju izlaziti */
body.buggy-body img { max-width: 100%; height: auto; }

/* ===== Hero (preko cijele širine, ispod menija) ===== */
.hero-buggy {
  position: relative;
  background-color: #232323; /* fallback ako slika ne uspije učitati */
  background-image: url('../images/buggy/buggy-4.jpg');
  background-position: center 35%;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 560px;
}
.hero-buggy::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.7) 100%);
}
.hero-buggy .hero-inner {
  position: relative; z-index: 2; color: #fff; padding: 90px 0;
  width: 100%; max-width: 100%; word-wrap: break-word; overflow-wrap: break-word;
}
.hero-buggy h1 {
  color: #fff !important; font-weight: 800; font-size: 60px; line-height: 1.05;
  text-transform: uppercase; margin: 0 0 20px;
  word-wrap: break-word; overflow-wrap: break-word;
}
.hero-buggy h1 span { color: var(--brand); }
.hero-buggy .lead {
  font-size: 19px; color: #f0f0f0; margin: 0 0 28px; max-width: 720px;
}

.btn-buggy {
  display: inline-block; background: var(--brand); color: #fff !important;
  padding: 14px 32px; font-weight: 700; text-transform: uppercase;
  border-radius: 4px; text-decoration: none; letter-spacing: .5px;
  transition: .2s; border: 2px solid var(--brand);
}
.btn-buggy:hover { background: #fff; color: var(--brand) !important; text-decoration: none; }
.btn-buggy.ghost { background: transparent; border-color: #fff; }
.btn-buggy.ghost:hover { background: #fff; color: #111 !important; }

/* ===== Section blok (white / gray) ===== */
.buggy-section { padding: 80px 0; }
.buggy-section.gray { background: var(--bg-gray); }
.buggy-section .sec-title { text-align: center; margin-bottom: 50px; }
.buggy-section .sec-title .eyebrow {
  display: block; color: var(--brand); font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; font-size: 13px; margin-bottom: 10px;
}
.buggy-section .sec-title h2 {
  font-size: 36px; text-transform: uppercase; margin: 0 0 14px; letter-spacing: 1px;
  color: var(--ink);
}
.buggy-section .sec-title .sep {
  display: block; width: 60px; height: 3px; background: var(--brand);
  margin: 0 auto 18px; border-radius: 2px;
}
.buggy-section .sec-title p { color: var(--ink-2); max-width: 760px; margin: 0 auto; font-size: 16px; }

/* ===== Tour cards ===== */
.tour-card {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand);
  padding: 26px 22px; height: 100%; transition: .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.04); display: flex; flex-direction: column;
}
.tour-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.12); transform: translateY(-4px); }
.tour-card h4 {
  font-weight: 800; text-transform: uppercase; color: var(--ink);
  margin: 0 0 12px; font-size: 20px;
}
.tour-card h4 .duration { color: var(--brand); }
.tour-card .route { color: var(--ink-2); font-size: 14px; line-height: 1.65; margin: 0 0 10px; }
.tour-card .desc { color: var(--ink-2); font-size: 14px; margin: 0 0 14px; }
.tour-card .price { font-weight: 700; color: var(--brand); margin: auto 0 0; font-size: 16px; }

/* ===== Gallery ===== */
.buggy-gallery a {
  display: block; overflow: hidden; position: relative;
  border-radius: 4px; background: #111; margin-bottom: 24px;
}
.buggy-gallery a img {
  width: 100%; height: 260px; object-fit: cover;
  transition: transform .5s, opacity .3s; display: block;
}
.buggy-gallery a:hover img { transform: scale(1.06); opacity: .85; }
.buggy-gallery a::after {
  content: '+'; color: #fff; font-size: 28px; font-weight: 700; line-height: 1;
  position: absolute; right: 14px; bottom: 10px; opacity: 0; transition: .2s;
  background: var(--brand); width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.buggy-gallery a:hover::after { opacity: 1; }

/* ===== Video (9:16 vertikalno za Shorts) ===== */
.video-frame {
  position: relative; padding-bottom: 177.77%;
  height: 0; overflow: hidden; background: #000; border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Click-to-play facade */
.video-facade { cursor: pointer; }
.video-facade .video-thumb {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; transition: transform .4s, opacity .3s;
}
.video-facade::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45) 100%);
}
.video-facade:hover .video-thumb { transform: scale(1.04); opacity: .9; }
.video-facade .video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,51,52,.95); color: #fff; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(0,0,0,.45); z-index: 2; padding: 0;
  transition: transform .2s, background .2s;
}
.video-facade .video-play i { font-size: 26px; margin-left: 5px; }
.video-facade:hover .video-play { transform: translate(-50%, -50%) scale(1.08); background: #ff3334; }

.video-link {
  display: block; text-align: center; margin-top: 10px;
  font-size: 13px; color: var(--ink-2); text-decoration: none;
}
.video-link:hover { color: var(--brand); }
.video-link i { margin-right: 4px; }

/* ===== Info cards (cjenik / ruta) ===== */
.info-card {
  background: #fff; border: 1px solid var(--line); padding: 18px;
  text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.05);
  height: 100%;
}
.info-card h3 {
  font-weight: 800; text-transform: uppercase; color: var(--brand);
  margin: 6px 0 18px; font-size: 22px; letter-spacing: 1px;
}
.info-card a { display: block; }
.info-card img { margin: 0 auto; max-height: 720px; max-width: 100%; height: auto; }

/* ===== CTA (poziv) ===== */
.cta-call { background: #111; color: #fff; padding: 70px 0; text-align: center; }
.cta-call h3 { color: #fff !important; font-weight: 700; margin: 0 0 10px; font-size: 28px; }
.cta-call p { color: #cfcfcf; margin: 0 0 22px; }
.cta-call .phone { color: var(--brand); font-weight: 800; font-size: 40px; letter-spacing: 1px; margin-bottom: 22px; }
.cta-call .phone a { color: inherit; text-decoration: none; }

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .hero-buggy h1 { font-size: 44px !important; }
  .hero-buggy .lead { font-size: 17px; }
  .buggy-section { padding: 60px 0; }
  .buggy-section .sec-title h2 { font-size: 28px !important; }
}

@media (max-width: 767px) {
  .hero-buggy { min-height: 460px; }
  .hero-buggy h1 { font-size: 36px !important; line-height: 1.1; }
  .hero-buggy .hero-inner { padding: 70px 0; }
  .hero-buggy .lead { font-size: 16px; }
  .btn-buggy { padding: 12px 22px; font-size: 14px; }
  .buggy-section { padding: 50px 0; }
  .buggy-section .sec-title { margin-bottom: 32px; }
  .buggy-section .sec-title h2 { font-size: 24px !important; }
  .tour-card { padding: 22px 18px; }
  .info-card { padding: 12px; }
  .info-card h3 { font-size: 18px; }
  .video-frame { padding-bottom: 130%; } /* manje vertikalno na mobitelu */
}

@media (max-width: 575px) {
  .hero-buggy { min-height: 420px; }
  .hero-buggy h1 { font-size: 30px !important; }
  .hero-buggy .hero-inner { padding: 60px 0; }
  .hero-buggy .lead { font-size: 15px; }
  .buggy-gallery a img { height: 200px; }
  .cta-call { padding: 50px 0; }
  .cta-call h3 { font-size: 22px; }
  .cta-call .phone { font-size: 28px; }
  .btn-buggy.ghost { margin-top: 10px; margin-left: 0; }
  .info-card img { max-height: 520px; }
}

@media (max-width: 374px) {
  .hero-buggy h1 { font-size: 26px !important; }
  .buggy-section .sec-title h2 { font-size: 20px !important; }
}
