:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-strong: #f8fbff;
  --text: #17324d;
  --muted: #60758b;
  --line: rgba(29, 70, 106, 0.12);
  --primary: #0f6ea8;
  --primary-deep: #0b4f83;
  --accent: #39b5b0;
  --accent-soft: #d9f3ef;
  --sand: #f3e0b8;
  --danger: #b2434d;
  --danger-bg: #fbe5e7;
  --success: #1e7d68;
  --success-bg: #def5ed;
  --shadow: 0 18px 40px rgba(18, 55, 90, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(57, 181, 176, 0.12), transparent 28%),
    linear-gradient(180deg, #f9fbfe 0%, var(--bg) 100%);
  color: var(--text);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(249, 251, 254, 0.88);
  border-bottom: 1px solid rgba(29, 70, 106, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 8px rgba(57, 181, 176, 0.12);
}

.brand-text {
  font-size: 1.1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
}

.main-nav a,
.header-action,
.secondary-button,
.card-button,
.modal-close,
.primary-button {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--primary);
}

.header-action,
.primary-button,
.card-button {
  border: none;
  border-radius: 999px;
  font-weight: 700;
}

.header-action {
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 110, 168, 0.22);
}

.header-action:hover,
.header-action:focus-visible,
.primary-button:hover,
.primary-button:focus-visible,
.card-button:hover,
.card-button:focus-visible {
  transform: translateY(-1px);
}

.hero-section,
.destinations-section,
.results-section,
.offers-section,
.reviews-section {
  padding: 40px 0 24px;
}

.hero-section {
  padding-top: 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 30px;
  align-items: stretch;
}

.hero-copy,
.hero-visual,
.search-panel,
.destination-card,
.hotel-card,
.offer-card,
.review-card,
.site-footer,
.modal-dialog {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 38px;
  border-radius: var(--radius-xl);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.hero-text,
.section-heading p,
.destination-card p,
.hotel-description,
.offer-card p,
.review-card p,
.footer-copy,
.visual-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1rem;
}

.search-panel {
  margin-top: 30px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.98));
}

.search-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.field span {
  font-size: 0.95rem;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(29, 70, 106, 0.14);
  background: #fff;
  color: var(--text);
  outline: none;
}

.field input:focus,
.field select:focus,
.secondary-button:focus-visible,
.card-button:focus-visible,
.modal-close:focus-visible,
.header-action:focus-visible,
.main-nav a:focus-visible,
.primary-button:focus-visible {
  border-color: rgba(15, 110, 168, 0.4);
  box-shadow: 0 0 0 4px rgba(15, 110, 168, 0.14);
  outline: none;
}

.search-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.primary-button {
  min-height: 54px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 18px 32px rgba(15, 110, 168, 0.18);
}

.search-hint {
  margin: 0;
  max-width: 360px;
}

.form-message,
.toast-message,
.active-filter,
.empty-state,
.results-count {
  font-size: 0.97rem;
}

.form-message {
  min-height: 24px;
  margin: 16px 0 0;
  font-weight: 600;
}

.form-message.is-error {
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: 14px;
  padding: 12px 14px;
}

.form-message.is-success,
.toast-message.is-success {
  color: var(--success);
  background: var(--success-bg);
  border-radius: 14px;
  padding: 12px 14px;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 32px;
  background:
    radial-gradient(circle at 20% 20%, rgba(243, 224, 184, 0.7), transparent 22%),
    radial-gradient(circle at 78% 24%, rgba(57, 181, 176, 0.3), transparent 24%),
    linear-gradient(145deg, #0d6a9f, #56c4bf 55%, #f6eed7 130%);
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
}

.hero-visual::before {
  inset: auto -40px -60px auto;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.22);
}

.hero-visual::after {
  inset: 40px auto auto -50px;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.18);
}

.visual-card {
  position: relative;
  z-index: 1;
  border-radius: 26px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.visual-card-main {
  margin-top: 12px;
}

.visual-card-main strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.visual-label {
  display: inline-flex;
  padding: 8px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(15, 110, 168, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.visual-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-weight: 700;
}

.visual-card-small {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(247, 250, 253, 0.95);
  color: var(--primary-deep);
  font-weight: 700;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading > p,
.section-heading > div > p:last-child {
  max-width: 480px;
}

.destinations-grid,
.hotels-grid,
.offers-grid,
.reviews-grid {
  display: grid;
  gap: 20px;
}

.destinations-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.destination-card,
.offer-card,
.review-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.destination-card:hover,
.hotel-card:hover,
.offer-card:hover,
.review-card:hover {
  transform: translateY(-3px);
}

.destination-art,
.hotel-art,
.modal-art {
  position: relative;
  overflow: hidden;
}

.destination-art {
  height: 160px;
  border-radius: 20px;
  margin-bottom: 18px;
  background-size: cover;
}

.destination-art::before,
.hotel-art::before,
.modal-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(9, 41, 71, 0.1) 100%),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.35), transparent 22%);
}

.destination-sun {
  background: linear-gradient(145deg, #f5c968, #f7e4b9 45%, #66c2c3 100%);
}

.destination-lakes {
  background: linear-gradient(145deg, #99d0d2, #d9f3ef 40%, #3d77a7 100%);
}

.destination-port {
  background: linear-gradient(145deg, #efcf98, #f7f0de 42%, #85b4d8 100%);
}

.destination-valley {
  background: linear-gradient(145deg, #7bb4a5, #d0ece1 45%, #6d93cf 100%);
}

.destination-shore {
  background: linear-gradient(145deg, #f0d7a7, #f8f1df 40%, #53b1bd 100%);
}

.destination-garden {
  background: linear-gradient(145deg, #8bc1a0, #eef5d8 50%, #d7b27e 100%);
}

.results-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.results-count {
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(15, 110, 168, 0.08);
  color: var(--primary-deep);
  font-weight: 700;
}

.secondary-button,
.card-button,
.modal-close {
  border: 1px solid rgba(29, 70, 106, 0.14);
  background: #fff;
}

.secondary-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
}

.secondary-button:hover,
.secondary-button:focus-visible,
.card-button:hover,
.card-button:focus-visible,
.modal-close:hover,
.modal-close:focus-visible {
  border-color: rgba(15, 110, 168, 0.3);
  color: var(--primary);
}

.active-filter {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(57, 181, 176, 0.12);
  color: var(--primary-deep);
  font-weight: 700;
}

.empty-state {
  margin: 0 0 20px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px dashed rgba(29, 70, 106, 0.22);
  color: var(--muted);
}

.hotels-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hotel-card {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
}

.hotel-card[hidden] {
  display: none;
}

.hotel-art,
.modal-art {
  border-radius: 20px;
  background-size: cover;
}

.hotel-art {
  min-height: 210px;
}

.modal-art {
  min-height: 220px;
}

.art-shoreline {
  background: linear-gradient(145deg, #f6d993, #fff3d8 40%, #63c6c0 100%);
}

.art-aurora {
  background: linear-gradient(145deg, #85b8d2, #f5efe2 42%, #f2cc88 100%);
}

.art-pier {
  background: linear-gradient(145deg, #7ebdc0, #dbf3f5 35%, #6b90bc 100%);
}

.art-pines {
  background: linear-gradient(145deg, #7aa08c, #e7f0e0 42%, #94b8d9 100%);
}

.art-harbor {
  background: linear-gradient(145deg, #72c2c4, #eef9fa 38%, #f3d6a1 100%);
}

.art-panorama {
  background: linear-gradient(145deg, #efca90, #fff5df 42%, #7ca7d6 100%);
}

.art-birch {
  background: linear-gradient(145deg, #8ac3af, #edf8ef 45%, #afc9da 100%);
}

.art-lighthouse {
  background: linear-gradient(145deg, #f3d084, #fff3d4 42%, #4ca5bf 100%);
}

.hotel-body {
  display: flex;
  flex-direction: column;
}

.hotel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.hotel-location {
  color: var(--muted);
  font-weight: 700;
}

.hotel-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 110, 168, 0.09);
  color: var(--primary-deep);
  font-weight: 800;
}

.hotel-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}

.hotel-features li {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--primary-deep);
  font-size: 0.92rem;
  font-weight: 700;
}

.hotel-footer,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

.hotel-price {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 800;
}

.hotel-price span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.card-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
}

.offers-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offer-card {
  background:
    radial-gradient(circle at top right, rgba(57, 181, 176, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.96);
}

.offer-badge {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 110, 168, 0.1);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
}

.reviews-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
}

.site-footer {
  margin: 46px auto 32px;
  width: min(calc(100% - 32px), var(--container));
  padding: 28px 30px;
  border-radius: var(--radius-xl);
}

.footer-grid {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.brand-footer {
  margin-bottom: 14px;
}

.footer-copy {
  max-width: 420px;
  margin: 0;
}

.footer-links {
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--primary);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 53, 0.48);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  border-radius: 28px;
  overflow: hidden;
}

.modal-content {
  padding: 24px 24px 26px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--text);
}

.modal-features {
  margin-top: 18px;
}

.toast-message {
  min-height: 24px;
  margin: 16px 0 0;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 18px;
  }

  .hero-grid,
  .hotels-grid,
  .offers-grid,
  .reviews-grid,
  .destinations-grid {
    grid-template-columns: 1fr;
  }

  .hotel-card {
    grid-template-columns: 1fr;
  }

  .hotel-art {
    min-height: 220px;
  }

  .search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .footer-grid {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .site-header {
    position: static;
  }

  .header-row {
    flex-wrap: wrap;
    padding: 18px 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-copy,
  .hero-visual,
  .search-panel,
  .destination-card,
  .hotel-card,
  .offer-card,
  .review-card,
  .site-footer,
  .modal-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-copy,
  .hero-visual,
  .site-footer {
    padding-top: 24px;
    padding-bottom: 24px;
  }

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

  .search-actions,
  .results-meta,
  .modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-button,
  .secondary-button,
  .card-button {
    width: 100%;
  }

  .hotel-footer {
    align-items: stretch;
    flex-direction: column;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }
}

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero-section,
  .destinations-section,
  .results-section,
  .offers-section,
  .reviews-section {
    padding-top: 24px;
  }

  .header-action {
    width: 100%;
    text-align: center;
  }

  .hotel-topline {
    flex-direction: column;
    align-items: start;
  }
}
