/* ============================================================
   Prague Boats — Partner site — Modernized theme
   Overrides the original styles.css without changing markup.
   ============================================================ */

:root {
  --c-navy-900: #06183b;
  --c-navy-800: #0b285b;
  --c-navy-700: #143775;
  --c-navy-500: #2a52a5;
  --c-navy-300: #6b8bc9;
  --c-accent:    #c89656;
  --c-accent-d:  #a87a3f;
  --c-bg:        #f5f7fb;
  --c-bg-soft:   #eaeff8;
  --c-card:      #ffffff;
  --c-text:      #1b2440;
  --c-text-2:    #4a5570;
  --c-muted:     #8390a8;
  --c-border:    #e1e7f2;
  --c-danger:    #c0392b;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow-1: 0 2px 8px rgba(11,40,91,.06);
  --shadow-2: 0 8px 28px rgba(11,40,91,.10);
  --shadow-3: 0 18px 48px rgba(11,40,91,.18);

  --t-fast: 150ms cubic-bezier(.2,.7,.3,1);
  --t-base: 280ms cubic-bezier(.2,.7,.3,1);
  --t-slow: 480ms cubic-bezier(.2,.7,.3,1);
}

/* ---------- Base ---------- */
html, body { overflow-x: hidden; }
body {
  background: var(--c-bg);
  background-image:
    radial-gradient(1200px 800px at 10% -10%, rgba(11,40,91,.08), transparent 60%),
    radial-gradient(900px 700px at 110% 0%, rgba(200,150,86,.08), transparent 60%);
  color: var(--c-text);
  font-family: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body p { line-height: 1.65; }
body a { color: var(--c-navy-700); transition: color var(--t-fast); }
body a:hover { color: var(--c-accent); }
body hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border), transparent);
  margin: 32px 0;
}

/* Wider container on large screens for breathing room */
@media (min-width: 1200px) {
  .container { width: 1200px; }
}

/* ---------- Sticky brand header ---------- */
body .content { width: 100%; margin-left: 0; padding: 0; }
body .content > .head,
body .content > .link,
body .content > a.link { /* fallback */ }

body .content .head {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 24px;
  margin-bottom: 36px;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body .content .logo {
  width: 130px;
  margin: 0;
}

/* Language switcher */
body .content .head .langs {
  position: static;
  margin: 0;
  padding: 0 18px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  height: 42px;
  line-height: 42px;
  min-width: 88px;
  border-radius: 999px;
  background: var(--c-navy-800);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11,40,91,.25);
  font-size: 14px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
body .content .head .langs:hover {
  background: var(--c-navy-700);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(11,40,91,.32);
}
body .content .head .langs > span {
  position: static;
  display: inline-block;
  margin-left: 6px;
  transform: rotate(0);
  transition: transform var(--t-fast);
}
body .content .head .langs:hover > span { transform: rotate(180deg); }
body .content .head .langs i { font-size: 9px; }
body .content .head .langs ul {
  display: none;
  position: absolute;
  top: 100%;
  right: 24px;
  margin-top: 8px;
  padding: 6px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  min-width: 88px;
  text-align: center;
}
body .content .head .langs:hover ul { display: block; }
body .content .head .langs ul li { line-height: 1.2; }
body .content .head .langs ul a {
  display: block;
  padding: 10px 14px;
  color: var(--c-navy-800);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: background var(--t-fast);
}
body .content .head .langs ul a:hover { background: var(--c-bg-soft); color: var(--c-navy-800); }

/* ---------- Cruise cards grid ---------- */
body .content {
  display: block;
}
/* Make the cards section a grid */
body .content > .link,
body .content > a.link { /* placeholder */ }

body .content .link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  margin: 0 24px 14px 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-navy-800);
  text-decoration: none;
  font-size: 17px;
  line-height: 1.35;
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition:
    transform var(--t-base),
    box-shadow var(--t-base),
    border-color var(--t-base),
    color var(--t-base);
}
body .content .link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--c-navy-800), var(--c-navy-500));
  transform: scaleY(.4);
  transform-origin: 50% 50%;
  transition: transform var(--t-base);
}
body .content .link:hover {
  background: #fff;
  color: var(--c-navy-900);
  border-color: var(--c-navy-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
body .content .link:hover::before {
  transform: scaleY(1);
  background: linear-gradient(180deg, var(--c-accent), var(--c-accent-d));
}
body .content .link i {
  float: none;
  margin: 0 0 0 auto;
  font-size: 18px;
  color: var(--c-navy-500);
  transition: transform var(--t-base), color var(--t-base);
}
body .content .link:hover i {
  transform: translateX(4px);
  color: var(--c-accent);
}

@media (min-width: 768px) {
  /* Side-by-side cards on tablet+ */
  body .content { display: flex; flex-wrap: wrap; align-items: stretch; }
  body .content .head { flex: 0 0 100%; max-width: 100%; }
  body .content .link {
    flex: 0 0 calc(50% - 32px);
    max-width: calc(50% - 32px);
    margin: 0 8px 16px 24px;
  }
  body .content .link:nth-child(2n + 1) { margin-left: 24px; margin-right: 8px; }
  body .content .link:nth-child(2n) { margin-left: 8px; margin-right: 24px; }
}
@media (min-width: 1100px) {
  body .content .link,
  body .content .link:nth-child(2n + 1),
  body .content .link:nth-child(2n) {
    flex: 0 0 calc(33.333% - 24px);
    max-width: calc(33.333% - 24px);
    margin: 0 8px 18px 8px;
  }
  body .content { padding: 0 16px 40px; }
  body .content .head { margin-left: -16px; margin-right: -16px; flex: 0 0 calc(100% + 32px); max-width: none; padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 767px) {
  body .content .head { padding: 14px 18px; }
  body .content .logo { width: 110px; }
  body .content .link {
    margin-left: 18px;
    margin-right: 18px;
    padding: 18px 18px;
    font-size: 15px;
  }
}

/* ---------- Modal ---------- */
body .modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: var(--c-bg);
  z-index: 100;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
body .modal.active {
  display: block;
  animation: modal-in .35s cubic-bezier(.2,.7,.3,1);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
body .modal .container { max-width: 980px; }
body .modal .modal-content {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 0 60px;
  float: none;
}

/* Modal header — hero with cover */
body .modal .modal-content .header {
  position: relative;
  width: 100%;
  margin: 0 0 36px 0;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  box-shadow: 0 12px 32px rgba(11,40,91,.18);
}
@supports not (aspect-ratio: 1) {
  body .modal .modal-content .header { padding-top: 42%; }
  body .modal .modal-content .header > picture { position: absolute; inset: 0; }
}
body .modal .modal-content .header picture,
body .modal .modal-content .header img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body .modal .modal-content .header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(6,24,59,0) 0%,
    rgba(6,24,59,.15) 45%,
    rgba(6,24,59,.7) 80%,
    rgba(6,24,59,.92) 100%);
  pointer-events: none;
}
body .modal .modal-content .header h2 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 28px 40px 32px;
  color: #fff;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -.005em;
  font-weight: 700;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
  background: none;
  text-align: left;
  width: auto;
  filter: none;
  z-index: 2;
}
body .modal .modal-content .header a.close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 46px;
  height: 46px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--c-navy-800);
  border: 0;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--t-fast), transform var(--t-fast), color var(--t-fast);
}
body .modal .modal-content .header a.close:hover {
  background: var(--c-navy-800);
  color: #fff;
  transform: rotate(90deg);
}
body .modal .modal-content .header a.close i { font-size: 16px; }

/* Modal content typography */
body .modal .modal-content > p,
body .modal .modal-content .row .desc p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--c-text);
  padding: 0 40px;
  margin: 0 0 6px;
}
body .modal .modal-content > p { margin-bottom: 4px; }
body .modal .modal-content > hr {
  margin: 28px 40px 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border), transparent);
}

body .modal .modal-content h3 {
  margin: 44px 40px 18px;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--c-border);
  font-size: 24px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: .005em;
  color: var(--c-navy-800);
  text-align: left;
}

/* Section rows — only those with .title + .desc become cards */
body .modal .modal-content .row {
  margin: 0 40px 22px;
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body .modal .modal-content .row::before,
body .modal .modal-content .row::after { content: " "; display: table; }
body .modal .modal-content .row::after { clear: both; }

/* Card style only for content sections (has both title + desc) */
body .modal .modal-content > .row:has(> .title) {
  padding: 22px 26px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--t-fast);
}
body .modal .modal-content > .row:has(> .title):hover {
  box-shadow: var(--shadow-2);
}

body .modal .modal-content .row .title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent-d);
  padding: 0 0 10px;
  margin: 0;
  width: 100%;
  text-align: left;
  border-bottom: 1px dashed var(--c-border);
  margin-bottom: 14px;
}
body .modal .modal-content .row .desc {
  width: 100%;
  padding: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
}
body .modal .modal-content .row .desc p { padding: 0; }
body .modal .modal-content .row .desc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
body .modal .modal-content .row .desc ul li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 26px;
}
body .modal .modal-content .row .desc ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(200,150,86,.18);
  margin: 0;
}

/* Info box — icon absolutely positioned so <strong> + text node flow naturally */
body .modal .modal-content .info {
  position: relative;
  margin: 30px 40px;
  padding: 22px 28px 22px 110px;
  min-height: 100px;
  border: 0;
  border-left: 4px solid var(--c-navy-700);
  background: linear-gradient(135deg, rgba(11,40,91,.06), rgba(200,150,86,.06));
  border-radius: var(--r-md);
  font-style: normal;
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text-2);
  display: block;
}
body .modal .modal-content .info i.icon {
  position: absolute;
  top: 22px;
  left: 28px;
  font-size: 28px;
  color: var(--c-navy-700);
  margin: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-1);
  float: none;
}
body .modal .modal-content .info strong {
  display: block;
  font-style: normal;
  color: var(--c-navy-800);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  padding: 0;
  letter-spacing: .02em;
}

/* Timetable */
body .modal .modal-content .timetable {
  margin: 0 40px 24px;
  padding: 0;
  list-style: none;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
}
body .modal .modal-content .timetable li {
  padding: 22px 24px;
  font-size: 16px;
  color: var(--c-text);
  line-height: 1.55;
  width: auto;
}
body .modal .modal-content .timetable li:nth-child(1) {
  flex: 0 0 32%;
  background: linear-gradient(135deg, var(--c-navy-800), var(--c-navy-700));
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 15px;
  display: flex;
  align-items: center;
}
body .modal .modal-content .timetable li:nth-child(2) {
  flex: 1 1 60%;
}
body .modal .modal-content .timetable li:nth-child(2) i.icon {
  color: var(--c-accent);
  font-size: 18px;
  margin-right: 8px;
}

/* Gallery (.photos) */
body .modal .modal-content .photos {
  margin: 0 40px 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
body .modal .modal-content .photos::before,
body .modal .modal-content .photos::after { display: none; }
body .modal .modal-content .photos a {
  position: relative;
  display: block;
  width: 100%;
  float: none;
  margin: 0;
  padding: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
@supports not (aspect-ratio: 1) {
  body .modal .modal-content .photos a { height: 0; padding-bottom: 75%; }
}
body .modal .modal-content .photos a img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
body .modal .modal-content .photos a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6,24,59,0);
  transition: background var(--t-base);
}
body .modal .modal-content .photos a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
body .modal .modal-content .photos a:hover img { transform: scale(1.06); }
body .modal .modal-content .photos a:hover::after { background: rgba(6,24,59,.25); }

/* Download buttons (.links a) */
body .modal .modal-content .links {
  margin: 0 40px 24px;
  text-align: left;
}
body .modal .modal-content .links a {
  display: inline-flex;
  margin: 0 12px 12px 0;
  padding: 0;
  background: linear-gradient(135deg, var(--c-navy-800), var(--c-navy-700));
  color: #fff;
  text-decoration: none;
  text-align: left;
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
body .modal .modal-content .links a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
  background: linear-gradient(135deg, var(--c-accent-d), var(--c-accent));
  color: #fff;
}
body .modal .modal-content .links a span {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 14px 22px;
  font-size: 15px;
  line-height: 1.3;
  background: transparent;
  color: inherit;
  font-weight: 600;
}
body .modal .modal-content .links a:hover span { background: transparent; color: #fff; }
body .modal .modal-content .links a span strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.2;
}
body .modal .modal-content .links a span i {
  font-size: 22px;
  margin: 0;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
body .modal .modal-content .links p {
  padding: 8px 0 0;
  color: var(--c-muted);
  font-size: 14px;
  font-style: italic;
}
body .modal .modal-content .links p small { font-size: 13px; }

/* Video container */
body .modal .modal-content > .row:has(.resp-container),
body .modal .modal-content > .row .resp-container {
  /* The video row should not have card styling */
}
body .modal .modal-content > .row .resp-container { padding-top: 56.25%; }
body .modal .modal-content > .row .resp-container iframe {
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  background: #000;
}

/* Embed code blocks */
body .modal .modal-content .embed {
  margin: 0 40px 16px;
  padding: 18px 22px;
  font-family: 'SF Mono', Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.55;
  color: #d6e1ff;
  background: linear-gradient(180deg, #0b1a3a, #06122a);
  border: 1px solid #1a2c54;
  border-radius: var(--r-md);
  display: block;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: auto;
}

/* Pricelist & seating images that may appear inline */
body .modal .modal-content img.img-responsive,
body .modal .modal-content picture img {
  border-radius: var(--r-sm);
}
/* But not inside the header (already rounded by header itself) */
body .modal .modal-content .header img,
body .modal .modal-content .header picture img { border-radius: 0; }

/* ---------- Responsive tuning ---------- */
@media (max-width: 991px) {
  body .modal .modal-content .header h2 { font-size: 36px; padding: 22px 28px 26px; }
  body .modal .modal-content > p,
  body .modal .modal-content > hr,
  body .modal .modal-content h3,
  body .modal .modal-content .row,
  body .modal .modal-content .info,
  body .modal .modal-content .timetable,
  body .modal .modal-content .photos,
  body .modal .modal-content .links,
  body .modal .modal-content .embed { margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 680px) {
  body .modal .modal-content .header {
    aspect-ratio: 16 / 10;
    border-radius: 0 0 var(--r-md) var(--r-md);
  }
  body .modal .modal-content .header h2 {
    font-size: 28px;
    padding: 18px 22px 22px;
  }
  body .modal .modal-content .header a.close {
    width: 40px; height: 40px; top: 14px; right: 14px;
  }
  body .modal .modal-content > p,
  body .modal .modal-content > hr,
  body .modal .modal-content h3,
  body .modal .modal-content .row,
  body .modal .modal-content .info,
  body .modal .modal-content .timetable,
  body .modal .modal-content .photos,
  body .modal .modal-content .links,
  body .modal .modal-content .embed { margin-left: 16px; margin-right: 16px; }
  body .modal .modal-content .row { padding: 18px 18px; }
  body .modal .modal-content .timetable { display: block; }
  body .modal .modal-content .timetable li { width: 100%; flex: 0 0 100%; }
  body .modal .modal-content .info { padding: 70px 18px 18px; min-height: 0; }
  body .modal .modal-content .info i.icon { width: 44px; height: 44px; font-size: 20px; top: 16px; left: 18px; }
  body .modal .modal-content h3 { font-size: 20px; margin-top: 32px; }
  body .modal .modal-content .photos { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  body .modal .modal-content .links a { width: 100%; margin-right: 0; }
}
@media (max-width: 380px) {
  body .modal .modal-content .header h2 { font-size: 24px; }
}

/* ---------- Magnific Popup polish ---------- */
.mfp-bg { background: rgba(6,24,59,.94); opacity: 1; }
.mfp-figure::after { box-shadow: 0 8px 32px rgba(0,0,0,.6); border-radius: var(--r-md); background: transparent; }
.mfp-image-holder .mfp-content { max-width: 1200px; }
img.mfp-img { padding: 24px 0; }
.mfp-close { font-size: 36px; opacity: .8; }
.mfp-close:hover { opacity: 1; }
.mfp-counter { color: #cdd6ee; }
