/* Croatia destination page */

.croatia-page .sub-header {
  display: none;
}

.croatia-hero {
  position: relative;
  width: 100%;
  background: #0b1522;
  overflow: hidden;
  color: #fff;
  line-height: 0; /* remove gap under the img */
}

.croatia-hero-bg {
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  display: block;
  /* Same as the full-bleed image below: entire photo, edge to edge */
  object-fit: unset;
  transform: none;
  filter: none;
}

.croatia-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(6, 14, 26, 0.72) 0%,
      rgba(6, 14, 26, 0.42) 32%,
      rgba(6, 14, 26, 0.18) 58%,
      rgba(6, 14, 26, 0.12) 100%
    ),
    linear-gradient(
      180deg,
      rgba(6, 14, 26, 0.35) 0%,
      transparent 22%,
      transparent 78%,
      rgba(6, 14, 26, 0.35) 100%
    );
}

.croatia-hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 48px 0;
  display: grid;
  grid-template-rows: 1fr auto;
  align-content: stretch;
  line-height: normal;
}

.croatia-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0 0;
  flex-wrap: wrap;
}

.croatia-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.croatia-breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
}

.croatia-breadcrumbs a:hover {
  color: #fff;
}

.croatia-breadcrumbs span[aria-current="page"] {
  color: #fff;
}

.croatia-hero-contact {
  display: flex;
  align-items: center;
  gap: 22px;
}

.croatia-hero-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.croatia-hero-contact a:hover {
  color: #fff;
}

.croatia-hero-copy {
  align-self: center;
  justify-self: start;
  max-width: 520px;
  padding: 12px 0 28px;
  animation: heroCopyIn 0.9s ease both;
}

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.croatia-hero-copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 16px;
  color: #fff;
}

.croatia-hero-copy p {
  font-size: 15px;
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 440px;
}

.croatia-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: #fff;
  background: transparent;
  padding: 13px 26px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}

.croatia-hero-cta:hover {
  background: #fff;
  color: #0a1a2e;
}

.croatia-scroll {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  padding-bottom: 18px;
  opacity: 0.95;
  animation: scrollPulse 2.2s ease-in-out infinite;
}

.croatia-scroll-mouse {
  width: 18px;
  height: 28px;
  border: 1.5px solid #fff;
  border-radius: 10px;
  position: relative;
}

.croatia-scroll-mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 2px;
  height: 6px;
  margin-left: -1px;
  background: #fff;
  border-radius: 1px;
  animation: mouseWheel 1.6s ease-in-out infinite;
}

@keyframes mouseWheel {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.25;
    transform: translateY(5px);
  }
}

@keyframes scrollPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@media (max-width: 700px) {
  .croatia-hero-inner {
    padding: 0 20px;
  }

  .croatia-hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .croatia-hero-copy {
    padding: 12px 0 28px;
  }

  .croatia-hero-copy h1 {
    font-size: 36px;
  }

  .croatia-hero-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.croatia-guide {
  padding: 64px 28px 72px;
  background: #fff;
}

.croatia-guide-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

.croatia-guide-inner .guide-title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 28px;
  line-height: 1.25;
  text-align: left;
}

.croatia-guide-inner h3 {
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  color: #1a1a1a;
  margin: 40px 0 18px;
  line-height: 1.35;
}

.croatia-guide-inner p {
  font-size: 15px;
  line-height: 1.75;
  color: #4a4a4a;
  margin: 0 0 18px;
}

.croatia-guide-inner p:last-child {
  margin-bottom: 0;
}

.croatia-guide-inner strong {
  color: #1a1a1a;
  font-weight: 600;
}

.croatia-guide-inner a {
  color: var(--blue);
  text-decoration: underline;
}

.croatia-guide-secondary .croatia-guide-inner {
  text-align: center;
}

.croatia-guide-secondary .croatia-guide-inner p {
  margin-bottom: 28px;
}

/* Featured yachts */
.featured-yachts {
  padding: 48px 40px 64px;
  max-width: 1400px;
  margin: 0 auto;
}

.featured-yachts h2,
.charter-search h2 {
  text-align: center;
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 36px;
}

.yacht-carousel,
.article-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 12px;
  align-items: center;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px 16px;
  min-width: 0;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-nav {
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 24px;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.carousel-nav:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
}

.carousel-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.yacht-card {
  flex: 0 0 min(340px, 85vw);
  scroll-snap-align: start;
  min-width: 0;
}

.yacht-grid .yacht-card {
  flex: none;
}

.yacht-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0a1a2e;
  margin-bottom: 12px;
}

.yacht-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  color: #666;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-heart.is-active {
  color: var(--blue);
}

.yacht-meta {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 6px;
}

.yacht-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.yacht-card-row h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
}

.yacht-from {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #333;
  margin-left: 6px;
}

.yacht-from::first-line {
  color: #8a7355;
}

.yacht-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-left: auto;
}

.yacht-card-actions a {
  color: var(--blue);
  font-size: 13px;
  text-decoration: underline;
}

.croatia-guide-facts .croatia-guide-inner,
.croatia-guide-secondary .croatia-guide-inner {
  text-align: center;
  max-width: 820px;
}

.croatia-guide-facts .croatia-guide-inner p,
.croatia-guide-secondary .croatia-guide-inner p {
  margin-bottom: 22px;
}

.croatia-guide-facts .croatia-guide-inner a,
.croatia-guide-secondary .croatia-guide-inner a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Landscape breaks — full-bleed, natural photo proportions */
.croatia-break {
  width: 100%;
  background: #0a1a2e;
  line-height: 0;
}

.croatia-break img {
  width: 100%;
  height: auto;
  display: block;
}

.croatia-break-sm img {
  width: 100%;
  height: auto;
}

.croatia-guide-secondary {
  padding-top: 56px;
}

/* Destinations map + list */
.dest-croatia {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 480px;
  background: #f5f6f8;
}

.dest-croatia-map {
  min-height: 420px;
  background: #e8edf3;
}

.dest-croatia-map iframe,
.dest-google-map {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
  display: block;
}

.dest-croatia-list {
  padding: 64px 48px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dest-croatia-list h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
}

.dest-croatia-list li {
  margin-bottom: 14px;
}

.dest-croatia-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--blue);
  font-size: 16px;
  font-weight: 500;
}

.dest-croatia-list a:hover {
  text-decoration: underline;
}

.dest-croatia-list span {
  color: var(--blue);
}

/* Articles */
.croatia-articles {
  padding: 64px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.articles-track .article-card {
  flex: 0 0 min(360px, 85vw);
  scroll-snap-align: start;
  background: #eef2f6;
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
  text-align: left;
  padding: 20px 18px 10px;
  line-height: 1.35;
}

.article-card > p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  padding: 0 18px 24px;
  margin: 0;
}

.article-card-text {
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}

.article-card-text h3 {
  padding: 0 0 14px;
  text-align: left;
}

.article-card-text p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

/* Charter search */
.charter-search {
  padding: 48px 40px 72px;
  max-width: 1400px;
  margin: 0 auto;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  border: 1px solid #e5e7eb;
  margin-bottom: 24px;
  background: #fff;
}

.filter-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  font-size: 13px;
  color: #333;
  border-right: 1px solid #e5e7eb;
  background: transparent;
}

.filter-item.is-active {
  color: var(--navy);
  font-weight: 500;
}

.filter-clear {
  margin-left: 4px;
  color: #999;
}

.filter-more {
  margin-left: auto;
  border-right: none;
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 13px;
  border-right: 1px solid #e5e7eb;
  cursor: pointer;
}

.filter-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-ui {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  transition: background 0.2s;
}

.toggle-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.filter-toggle input:checked + .toggle-ui {
  background: var(--blue);
}

.filter-toggle input:checked + .toggle-ui::after {
  transform: translateX(16px);
}

.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.results-toolbar > p {
  font-size: 14px;
  color: #555;
}

.results-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.search-yacht {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 8px 14px;
  color: #888;
}

.search-yacht input {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  min-width: 140px;
}

.view-toggle {
  display: flex;
  border: 1px solid #e5e7eb;
}

.view-toggle button {
  width: 36px;
  height: 32px;
  color: #888;
}

.view-toggle button.is-active {
  background: var(--navy);
  color: #fff;
}

.sort-btn {
  font-size: 13px;
  color: #555;
  padding: 8px 4px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.chip {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  background: #fff;
  color: #333;
}

.chip-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.yacht-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 20px;
}

/* Contact */
.croatia-contact {
  text-align: center;
  padding: 72px 28px;
  max-width: 720px;
  margin: 0 auto;
}

.croatia-contact h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.croatia-contact p {
  font-size: 15px;
  color: #555;
  margin-bottom: 28px;
}

.croatia-book-btn {
  display: inline-flex;
  max-width: 280px;
  margin: 0 auto;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

/* FAQ */
.croatia-faq {
  padding: 48px 28px 80px;
  max-width: 860px;
  margin: 0 auto;
}

.croatia-faq h2 {
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 36px;
}

.faq-list details {
  border-top: 1px solid #e5e7eb;
}

.faq-list details:last-child {
  border-bottom: 1px solid #e5e7eb;
}

.faq-list summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: #666;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "×";
  font-size: 26px;
}

.faq-answer {
  padding: 0 4px 22px;
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1000px) {
  .dest-croatia {
    grid-template-columns: 1fr;
  }

  .yacht-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-more {
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  .yacht-carousel,
  .article-carousel {
    grid-template-columns: 1fr;
  }

  .carousel-nav {
    display: none;
  }

  .yacht-grid {
    grid-template-columns: 1fr;
  }

  .dest-croatia-list {
    padding: 40px 24px;
  }

  .featured-yachts,
  .croatia-articles,
  .charter-search {
    padding-left: 16px;
    padding-right: 16px;
  }
}
