﻿:root {
  --maxw: 1100px;
  --accent: #2b6cb0;
  --accent-dark: #1f4f86;
  --muted: #666;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  color: #111;
  background: var(--bg);
  line-height: 1.5;
}

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

a {
  color: inherit;
}

a:not(.btn) {
  transition: color 0.2s ease;
}

a:not(.btn):hover,
a:not(.btn):focus {
  color: var(--accent);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.language-switch {
  text-align: right;
  margin: 12px 20px 0;
  font-size: 14px;
  color: var(--muted);
}

.language-switch a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 0 0 8px;
}

.language-switch span[aria-current="page"] {
  font-weight: 600;
  color: #222;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 16px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav a[aria-current="page"] {
  color: var(--accent);
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid #d0d7e2;
  color: #111;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
}

.hero {
  padding: 120px 20px;
  margin-bottom: 32px;
  background: url("images/hero.jpg") no-repeat center center;
  background-size: cover;
  color: #fff;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.5);
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero p {
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
  border: 1px solid transparent;
}

.btn:hover,
.btn:focus {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover,
.btn-outline:focus {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-cta {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.features article {
  background: var(--surface);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.features h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.features p {
  margin: 0;
  color: var(--muted);
}

.latest .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h4 {
  margin: 16px 16px 8px;
  font-size: 1.1rem;
}

.card h4 a {
  color: #111;
  text-decoration: none;
}

.card h4 a:hover,
.card h4 a:focus {
  color: var(--accent);
}

.card p {
  margin: 0 16px 24px;
  color: var(--muted);
}

.signup {
  background: var(--surface);
  border-radius: 16px;
  padding: 32px 24px;
  margin: 60px auto 40px;
  box-shadow: var(--shadow);
  text-align: center;
}

.signup p {
  margin: 8px 0 24px;
  color: var(--muted);
}

.signup-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.signup-form input[type="email"] {
  min-width: 260px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  padding: 12px 14px;
  font-size: 1rem;
}

.signup-form input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid #e6e6e6;
  padding: 18px 0;
  margin-top: 40px;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 8px;
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.trip-detail .site-header {
  position: static;
}

.trip-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 32px;
  align-items: center;
  background: var(--surface);
  margin: 32px auto;
  padding: 24px 20px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.trip-hero .trip-badge {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}

.trip-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.trip-summary {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.trip-meta {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #222;
}

.trip-meta strong {
  color: #000;
}

.trip-hero-media img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.trip-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin: 40px auto;
}

.trip-content h2 {
  margin-top: 0;
}

.trip-content ul,
.trip-content ol {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.media-block {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  padding: 56px 0;
  margin: 40px 0;
}

.media-block p {
  color: var(--muted);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.media-grid figure {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.media-grid figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.media-video video {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.trip-gallery {
  margin: 60px auto;
}

.trip-gallery > p {
  color: var(--muted);
  margin: 12px 0 24px;
}

.gallery-featured {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  margin: 0 0 24px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-featured img {
  width: 100%;
  height: clamp(220px, 52vw, 420px);
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-featured:hover,
.gallery-featured:focus {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.28);
}

.gallery-featured:hover img,
.gallery-featured:focus img {
  transform: scale(1.03);
}

.gallery-featured:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.gallery-featured__caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.7);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.gallery-item {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, outline 0.2s ease;
}

.gallery-item:hover,
.gallery-item:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.gallery-item.is-active {
  outline: 3px solid rgba(43, 108, 176, 0.35);
}

.gallery-item.is-active img {
  transform: scale(1.02);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.gallery-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(43, 108, 176, 0.4);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gallery-nav span {
  font-size: 1.1rem;
  pointer-events: none;
}

.gallery-nav:hover,
.gallery-nav:focus {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox img {
  max-width: min(100%, 1100px);
  max-height: min(90vh, 760px);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.45);
}

.gallery-lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #111;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox__nav span {
  font-size: 1.5rem;
  pointer-events: none;
}

.gallery-lightbox__nav--prev {
  left: 24px;
}

.gallery-lightbox__nav--next {
  right: 24px;
}

.gallery-lightbox__nav:hover,
.gallery-lightbox__nav:focus {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.05);
}
.trip-cta {
  text-align: center;
  margin: 60px auto 40px;
  max-width: 640px;
}

.trip-cta p {
  color: var(--muted);
  margin-bottom: 24px;
}

.trip-detail .btn-outline {
  color: var(--accent);
  border-color: var(--accent);
}

.trip-detail .btn-outline:hover,
.trip-detail .btn-outline:focus {
  background: rgba(43, 108, 176, 0.08);
}

.trip-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  gap: 18px;
}

.trip-list li {
  background: var(--surface);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.trip-list-text h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.trip-list-text p {
  margin: 0;
  color: var(--muted);
}

.trip-list .btn {
  min-width: 190px;
  text-align: center;
}


.contact-section {
  margin: 48px 0;
  padding: 32px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.contact-section h2 {
  margin-top: 0;
}

.contact-section p {
  color: var(--muted);
  margin-bottom: 24px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d0d7e2;
  border-radius: 10px;
  font: inherit;
  background: #fdfdfd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

.contact-form button {
  justify-self: start;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-form button:hover,
.contact-form button:focus {
  background: var(--accent-dark);
  transform: translateY(-1px);
}


@media (max-width: 1100px) {
  .features,
  .latest .cards,
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trip-hero {
    grid-template-columns: 1fr;
  }

  .trip-hero-media {
    order: -1;
  }
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    gap: 12px;
    background: var(--surface);
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 16px 20px;
    border-top: 1px solid #e5e9f2;
    display: none;
  }

  .nav.active {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .trip-content {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 640px) {
  .features,
  .latest .cards,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .signup-form {
    flex-direction: column;
  }

  .language-switch {
    text-align: center;
  }

  .trip-list li {
    flex-direction: column;
    align-items: stretch;
  }

  .trip-list .btn {
    width: 100%;
  }

  .gallery-featured img {
    height: clamp(200px, 62vw, 320px);
  }

  .gallery-controls {
    flex-direction: column;
    gap: 12px;
  }

  .gallery-nav {
    width: 100%;
  }

  .gallery-lightbox__close {
    top: 16px;
    right: 16px;
  }

  .gallery-lightbox__nav {
    width: 44px;
    height: 44px;
  }

  .gallery-lightbox__nav--prev {
    left: 12px;
  }

  .gallery-lightbox__nav--next {
    right: 12px;
  }
}
.route-figure {
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed rgba(17, 24, 39, 0.16);
  border-radius: 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.route-figure img {
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.route-figure figcaption {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}

.route-embed {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 18px;
  background: #f9fafb;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.route-embed-frame {
  flex: 1 1 420px;
  min-height: 360px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.route-embed-frame a {
  display: block;
  height: 100%;
}

.route-embed-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.route-embed-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.route-embed-meta {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  color: #1f2937;
}

.route-embed-meta h4 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  color: #111827;
}

.route-embed-meta p {
  margin: 0;
  color: #4b5563;
  line-height: 1.45;
}

.route-embed-placeholder {
  position: relative;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #1f2937;
  background: linear-gradient(135deg, rgba(191, 219, 254, 0.3), rgba(255, 255, 255, 0.8));
  border: 1px dashed rgba(59, 130, 246, 0.45);
}

.route-embed-placeholder p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
}

.route-embed-placeholder code {
  font-family: "Fira Code", "Consolas", "SFMono-Regular", monospace;
  font-size: 0.85rem;
  background: rgba(30, 64, 175, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
  color: #1d4ed8;
}

@media (max-width: 640px) {
  .route-embed {
    padding: 16px;
  }

  .route-embed-frame {
    min-height: 260px;
    border-radius: 14px;
  }
}

@media (max-width: 768px) {
  .trip-route-preview {
    padding: 16px;
  }
}
.trip-route {
  margin: 64px auto 0;
  padding: clamp(20px, 3vw, 32px);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.trip-route + .trip-cta {
  margin-top: clamp(40px, 6vw, 72px);
}

.trip-route-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.trip-route-header h2 {
  margin-bottom: 6px;
}

.trip-route-header p {
  margin: 0;
  max-width: 540px;
  color: #4b5563;
}

@media (max-width: 768px) {
  .trip-route {
    margin-top: 44px;
    padding: 20px;
  }

  .trip-route-header {
    flex-direction: column;
  }

  .trip-route-header p {
    max-width: 100%;
  }
}

