/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: none;
}
*::-webkit-scrollbar { display: none; }

:root {
  --primary:        #0891b2;
  --primary-dark:   #0e7490;
  --foreground:     #2d3748;
  --muted:          #718096;
  --border:         rgba(0,0,0,0.08);
  --bg:             #ffffff;
  --bg-alt:         #f7fafc;
  --card:           #ffffff;
  --radius:         0.75rem;
  --radius-xl:      1.25rem;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.14);
  --transition:     0.25s ease;
  --font:           'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--foreground);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, select { font-family: var(--font); }
ul { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(8,145,178,0.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.25rem;
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.btn-ghost:hover { color: var(--primary); background: var(--bg-alt); }

.btn-link {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}
.btn-link:hover { color: var(--primary-dark); }

/* ============================================================
   LOGO
   ============================================================ */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--foreground);
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.85; }

.logo__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.logo--light { color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

/* Nav */
.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .nav { display: flex; } }

.nav__link {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--foreground);
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav__link:hover { color: var(--primary); }
.nav__link:hover::after { width: 100%; }

/* Header actions */
.header__actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 768px) { .header__actions { display: flex; } }

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.burger:hover { background: var(--bg-alt); }
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) { .burger { display: none; } }

/* Mobile nav */
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.mobile-nav.open {
  max-height: 400px;
  padding: 1rem 0 1.5rem;
}

.mobile-nav__link {
  display: block;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: var(--foreground);
  font-size: 1rem;
  transition: color var(--transition), background var(--transition);
}
.mobile-nav__link:hover { color: var(--primary); background: var(--bg-alt); }

.mobile-nav__actions {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem 0;
}
.mobile-nav__actions .btn-ghost { flex: 1; justify-content: center; }
.mobile-nav__actions .btn-primary { flex: 1; }

@media (min-width: 768px) { .mobile-nav { display: none !important; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 580px;
  height: calc(100svh - 72px);
  max-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.28) 50%, rgba(0,0,0,0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
  width: 100%;
}

.hero__title {
  font-size: clamp(1.75rem, 5vw, 3.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  max-width: 820px;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* Search card */
.search-card {
  width: 100%;
  max-width: 1000px;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
}

.search-card__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .search-card__fields { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .search-card__fields { grid-template-columns: repeat(4, 1fr); }
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.search-field:hover { background: var(--bg-alt); }

.search-field__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
}

.search-field__body {
  flex: 1;
  min-width: 0;
}
.search-field__body label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 2px;
}
.search-field__body input,
.search-field__body select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9375rem;
  color: var(--foreground);
}
.search-field__body input::placeholder { color: var(--muted); }
.search-field__body select { cursor: pointer; }

.search-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 1.0625rem;
  font-weight: 700;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.search-card__btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 18px rgba(8,145,178,0.4);
  transform: translateY(-1px);
}
.search-card__btn svg { transition: transform var(--transition); }
.search-card__btn:hover svg { transform: scale(1.15); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 5rem 0;
}
@media (min-width: 1024px) { .section { padding: 7rem 0; }
}

.section--alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}
.section-header p {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   DESTINATIONS GRID
   ============================================================ */
.destinations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 480px) {
  .destinations-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .destinations-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Destination card */
.dest-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.dest-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.dest-card__img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.dest-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.dest-card:hover .dest-card__img-wrap img { transform: scale(1.08); }

.dest-card__body {
  padding: 1.25rem;
}
.dest-card__body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.dest-card__meta { margin-bottom: 1rem; }

.rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.star {
  width: 15px;
  height: 15px;
  fill: #f59e0b;
  flex-shrink: 0;
}
.rating span { font-size: 0.875rem; font-weight: 600; }
.rating__count { color: var(--muted); font-weight: 400; }

.dest-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.dest-card__price-from {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.dest-card__price-val {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

.feature-card {
  text-align: center;
  transition: transform var(--transition);
}
.feature-card:hover { transform: translateY(-6px); }

.feature-card__icon {
  width: 80px;
  height: 80px;
  background: rgba(8,145,178,0.1);
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: background var(--transition), box-shadow var(--transition);
}
.feature-card__icon svg {
  width: 38px;
  height: 38px;
  color: var(--primary);
  transition: color var(--transition);
}
.feature-card:hover .feature-card__icon {
  background: var(--primary);
  box-shadow: 0 8px 24px rgba(8,145,178,0.35);
}
.feature-card:hover .feature-card__icon svg { color: #fff; }

.feature-card h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}
.feature-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.9375rem;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { max-width: 800px; margin: 0 auto; }

.testimonial-card {
  background: var(--card);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
@media (min-width: 768px) { .testimonial-card { padding: 3.5rem 4rem; }
}

.testimonial-card.fade-out { opacity: 0; transform: translateY(8px); }

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}
.testimonial-stars .star { width: 20px; height: 20px; }

.testimonial-quote {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--foreground);
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.testimonial-quote::before { content: "“"; }
.testimonial-quote::after  { content: "”"; }

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(8,145,178,0.2);
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 1rem; color: var(--foreground); }
.testimonial-role { font-size: 0.875rem; color: var(--muted); }

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.testimonial-btn:hover {
  background: rgba(8,145,178,0.12);
  color: var(--primary);
  transform: scale(1.08); }

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.testimonial-dot {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
  width: 8px;
}
.testimonial-dot.active {
  background: var(--primary);
  width: 28px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0f172a;
  color: #fff;
  padding: 4rem 0 2rem;
}
@media (min-width: 1024px) { .footer { padding: 5rem 0 2.5rem; }
}

/* Newsletter */
.newsletter {
  background: rgba(8,145,178,0.12);
  border: 1px solid rgba(8,145,178,0.25);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 3.5rem;
}
@media (min-width: 768px) { .newsletter { padding: 3rem 4rem; }
}

.newsletter h3 {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.newsletter p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.75rem;
  font-size: 0.9375rem;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto;
}
@media (min-width: 540px) {
  .newsletter__form { flex-direction: row; }
}

.newsletter__input-wrap {
  position: relative;
  flex: 1;
}
.newsletter__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,0.45);
  pointer-events: none;
}
.newsletter__input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter__input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter__input:focus { border-color: var(--primary); }

.newsletter__btn {
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

/* Footer grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand__text { color: rgba(255,255,255,0.6); line-height: 1.7; font-size: 0.9rem; }

.footer-col h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #fff;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--primary); }
.footer-col--contacts li { color: rgba(255,255,255,0.65); font-size: 0.9rem; }

/* Footer bottom */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.875rem; }

.social-links { display: flex; gap: 0.75rem; }

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  max-height: 90svh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s ease;
  position: relative;
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.modal__close:hover { background: rgba(0,0,0,0.65); transform: scale(1.1); }

.modal__img-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
}
@media (min-width: 480px) { .modal__img-wrap { height: 320px; }
}

.modal__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 60%);
}

.modal__badge {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  letter-spacing: 0.03em;
}

.modal__body { padding: 1.75rem 1.5rem 2rem; }
@media (min-width: 480px) { .modal__body { padding: 2rem 2rem 2.5rem; }
}

.modal__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.modal__title {
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.modal__desc {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.modal__highlights {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.modal__highlights li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--foreground);
}
.modal__highlights li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.modal__cta { width: 100%; padding: 1rem; font-size: 1rem; border-radius: var(--radius); }

/* ============================================================
   SCROLL-IN ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}