/* ===================================================================
   Apartmány Skryjova — styles
   Brand: deep red (#b71c22 / #e1242b), accent coral (#f15c5d),
   white background, dark text (#1f2430)
   =================================================================== */

:root {
  --red:        #d8232a;
  --red-dark:   #b71c22;
  --red-light:  #f15c5d;
  --ink:        #1f2430;
  --ink-soft:   #50586a;
  --bg:         #ffffff;
  --bg-alt:     #f6f7f9;
  --line:       #e7e9ee;
  --radius:     16px;
  --shadow:     0 18px 40px -22px rgba(31, 36, 48, .35);
  --maxw:       1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.center-block { max-width: 620px; margin-left: auto; margin-right: auto; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 .6em;
}

.lead { font-size: 1.08rem; color: var(--ink-soft); margin: 0 0 1.1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: .98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

.btn-primary {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(183, 28, 34, .65);
}
.btn-primary:hover { color: #fff; box-shadow: 0 16px 30px -12px rgba(183, 28, 34, .7); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000010; /* musí být nad vloženým rezervačním iframem (z-index 1000001) */
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 116px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 92px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav > a { color: var(--ink); font-weight: 600; font-size: .96rem; }
.nav > a:hover { color: var(--red); text-decoration: none; }
.nav .nav-cta { color: #fff; }
.nav .nav-cta:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px; height: 3px; border-radius: 3px; background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(241, 92, 93, .55), transparent 60%),
    linear-gradient(135deg, #c41f25 0%, #8f1418 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(115deg, transparent 60%, rgba(255,255,255,.06) 60%, rgba(255,255,255,.06) 66%, transparent 66%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 6vw, 68px) 24px;
  max-width: 840px;
}
.hero .eyebrow { color: #ffd9da; }
.hero h1 { color: #fff; margin-bottom: .3em; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.hero-lead { font-size: 1.05rem; color: rgba(255,255,255,.92); max-width: 580px; margin: 0 0 1.5em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.8em; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.1); }

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0; padding: 0;
}
.hero-badges li {
  position: relative;
  padding-left: 22px;
  font-weight: 600;
  font-size: .95rem;
  color: rgba(255,255,255,.95);
}
.hero-badges li::before {
  content: "✓";
  position: absolute; left: 0;
  font-weight: 900;
  color: #ffd9da;
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 48px; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffe4e5, #ffd0d1);
  margin-bottom: 16px;
}
.feature h3 { margin-bottom: .35em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---------- Nearby ---------- */
.nearby {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.nearby-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  padding: 28px 28px;
}
.nearby-card h3 { color: var(--red-dark); }
.nearby-card p { margin: 0; color: var(--ink-soft); }

/* ---------- Galerie (jednořádkový slider) ---------- */
.gallery-slider { position: relative; }
.gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;            /* Firefox */
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px;
}
.gallery::-webkit-scrollbar { display: none; } /* WebKit */
.gal-item {
  flex: 0 0 auto;
  width: clamp(240px, 30vw, 340px);
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--line);
  cursor: pointer;
  box-shadow: 0 10px 24px -20px rgba(31, 36, 48, .5);
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gal-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(31, 36, 48, .35));
  opacity: 0;
  transition: opacity .3s ease;
}
.gal-item:hover img,
.gal-item:focus-visible img { transform: scale(1.07); }
.gal-item:hover::after { opacity: 1; }

/* navigační šipky slideru */
.gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--red-dark);
  font-size: 1.8rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 22px -8px rgba(31, 36, 48, .45);
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.gal-nav:hover { background: var(--red); color: #fff; }
.gal-prev { left: 6px; }
.gal-next { right: 6px; }
.gal-nav[hidden] { display: none; }

@media (max-width: 600px) {
  .gal-nav { display: none; } /* na mobilu se posouvá prstem */
  .gallery { scroll-snap-type: x proximity; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000030; /* nad hlavičkou (1000010) i rezervačním iframem (1000001) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 17, 22, .94);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  user-select: none;
}
.lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  border: 0;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background .2s ease, transform .15s ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 18px; right: 18px; font-size: 1.4rem; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }
.lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .85);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
}
body.lb-open { overflow: hidden; }

@media (max-width: 600px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-btn { width: 44px; height: 44px; font-size: 1.5rem; }
}

/* ---------- Booking ---------- */
.booking-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  min-height: 120px;
}
.booking-box p { margin: 0; }
#mevris-booking-engine iframe { width: 100% !important; }

/* Na mobilu se formulář nevkládá – ukáže se jen tlačítko na samostatnou stránku. */
.booking-mobile { display: none; }
@media (max-width: 860px) {
  #mevris-booking-engine { display: none; }
  .booking-mobile {
    display: block;
    text-align: center;
    padding: 22px 12px;
  }
  .booking-mobile p {
    margin: 0 0 20px;
    color: var(--ink-soft);
    font-size: .98rem;
  }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: stretch;
}
.contact-name { font-size: 1.5rem; font-weight: 800; margin: 0; }
.contact-role { color: var(--ink-soft); margin: 0 0 22px; }
.contact-list { list-style: none; margin: 0 0 18px; padding: 0; }
.contact-list li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ci-label {
  flex: 0 0 80px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--red);
  padding-top: 3px;
}
.ci-value { font-weight: 600; }
.contact-legal { font-size: .85rem; color: var(--ink-soft); margin: 0 0 22px; }

.contact-map {
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 360px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  color: rgba(255,255,255,.9);
  padding: 54px 0;
  text-align: center;
  background:
    radial-gradient(900px 360px at 85% -30%, rgba(241, 92, 93, .5), transparent 60%),
    linear-gradient(135deg, #c41f25 0%, #8f1418 100%);
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(115deg, transparent 62%, rgba(255,255,255,.05) 62%, rgba(255,255,255,.05) 68%, transparent 68%);
  pointer-events: none;
}
.site-footer::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -90px;
  width: 240px; height: 240px;
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 50%;
  pointer-events: none;
}
.footer-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-contact { margin: 0; font-size: .95rem; color: rgba(255,255,255,.92); }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-copy { margin: 0; font-size: .85rem; color: rgba(255,255,255,.7); }
.footer-copy a { color: inherit; font-weight: 400; text-decoration: underline; }
.footer-copy a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 116px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 0 16px;
    transform: translateY(-130%);
    transition: transform .28s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav > a { padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin: 14px 24px 0; text-align: center; border-radius: 999px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .contact-grid { grid-template-columns: 1fr; }
}
