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

:root {
  --teal:       #0ABFBF;
  --teal-dark:  #089393;
  --teal-light: #E0F7F7;
  --teal-mid:   #B2EBEB;
  --dark:       #0D3B3B;
  --text:       #1A2E2E;
  --muted:      #5A7A7A;
  --bg:         #F5FEFE;
  --white:      #FFFFFF;
  --card-bg:    #FFFFFF;
  --gray-bg:    #F0FAFA;
  --border:     #D0ECEC;
  --orange:     #FF6B35;
  --green:      #22C55E;
  --shadow:     0 4px 24px rgba(10,191,191,0.10);
  --shadow-lg:  0 8px 40px rgba(10,191,191,0.18);
  --radius:     14px;
  --radius-sm:  8px;
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--teal);
  color: var(--white);
}
.btn--primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--outline {
  border: 2px solid var(--teal);
  color: var(--teal);
}
.btn--outline:hover { background: var(--teal); color: var(--white); }
.btn--white { background: var(--white); color: var(--teal-dark); }
.btn--white:hover { background: var(--teal-light); }
.btn--outline-white { border: 2px solid rgba(255,255,255,0.7); color: var(--white); }
.btn--outline-white:hover { background: rgba(255,255,255,0.15); }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.btn--full { width: 100%; justify-content: center; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo__icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: white;
  overflow: hidden;
}
.logo__icon--img {
  background: none;
  border-radius: 50%;
  width: 48px; height: 48px;
}
.logo__icon--img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.logo__name {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
}
.logo__tagline {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 400;
}
.logo--white .logo__name { color: white; }
.logo--white .logo__tagline { color: rgba(255,255,255,0.7); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.nav__link:hover { background: var(--teal-light); color: var(--teal-dark); }

.header__contacts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header__phone {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  transition: color var(--transition);
}
.header__phone:hover { color: var(--teal); }

.header__socials { display: flex; gap: 6px; }

/* Social buttons */
.social-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  color: white;
}
.social-btn svg { width: 16px; height: 16px; }
.social-btn--wa { background: #25D366; }
.social-btn--wa:hover { background: #1da855; transform: scale(1.1); }
.social-btn--tg { background: #0088CC; }
.social-btn--tg:hover { background: #0070a8; transform: scale(1.1); }
.social-btn--ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn--ig:hover { transform: scale(1.1); opacity: 0.9; }
.social-btn--lg { width: 46px; height: 46px; border-radius: 12px; }
.social-btn--lg svg { width: 22px; height: 22px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,60,60,0.75) 0%, rgba(10,191,191,0.35) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 80px;
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero__title span { color: var(--teal); }
.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  max-width: 560px;
}

/* ===== SEARCH BOX ===== */
.search-box {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 900px;
}
.search-box__tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.search-tab {
  padding: 14px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  background: none;
  cursor: pointer;
}
.search-tab.active, .search-tab:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.search-form { padding: 20px; }
.search-form__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.search-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.search-field select,
.search-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A7A7A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
.search-field input[type="date"] {
  background-image: none;
  padding-right: 12px;
}
.search-field select:focus,
.search-field input:focus {
  outline: none;
  border-color: var(--teal);
}

.search-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  justify-content: center;
  transition: var(--transition);
}
.search-btn svg { width: 20px; height: 20px; }
.search-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(10,191,191,0.4); }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section--gray { background: var(--gray-bg); }

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.section__header.center { justify-content: center; text-align: center; }

.section__badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}
.section__sub {
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.95rem;
}

/* ===== TOUR CARDS ===== */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.tour-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.tour-card__img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.tour-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tour-card:hover .tour-card__img-wrap img { transform: scale(1.06); }

.tour-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--orange);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.tour-card__badge.badge--green { background: var(--green); }

.tour-card__country {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.tour-card__body { padding: 16px; }
.tour-card__hotel { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.tour-card__info { font-size: 0.83rem; color: var(--muted); margin-bottom: 10px; }

.tour-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.tour-card__rating { color: #F59E0B; font-weight: 600; }

.tour-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tour-card__old-price {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: line-through;
}
.tour-card__price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--teal-dark);
}
.tour-card__per { font-size: 0.72rem; color: var(--muted); }

/* ===== DIRECTIONS ===== */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 180px;
  gap: 16px;
}
.dir-card--large {
  grid-column: span 2;
  grid-row: span 2;
}

.dir-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition);
}
.dir-card:hover { transform: scale(1.02); }
.dir-card:hover .dir-card__overlay { background: rgba(0,0,0,0.4); }

.dir-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%);
  transition: background var(--transition);
}
.dir-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  color: white;
}
.dir-card__flag { font-size: 1.5rem; display: block; margin-bottom: 4px; }
.dir-card__name { font-size: 1.1rem; font-weight: 700; }
.dir-card--large .dir-card__name { font-size: 1.5rem; }
.dir-card__price { font-size: 0.85rem; opacity: 0.85; margin-top: 2px; }

/* ===== WHY ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  padding: 28px 24px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.why-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.why-card__icon { font-size: 2.2rem; margin-bottom: 14px; }
.why-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.why-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  padding: 60px 0;
}
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-banner h2 { font-size: 1.7rem; font-weight: 800; color: white; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-top: 6px; }
.cta-banner__btns { display: flex; gap: 12px; flex-shrink: 0; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-item__icon {
  width: 44px; height: 44px;
  background: var(--teal-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item__label { font-size: 0.78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-item__value { font-weight: 700; color: var(--dark); font-size: 0.95rem; margin-top: 2px; display: block; }
.contact-item__value:hover { color: var(--teal); }
.contact-socials { display: flex; gap: 10px; padding-top: 8px; }

.contact-form {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-form h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.contact-form p { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; }
.form-group { margin-bottom: 14px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  resize: none;
}
.form-group select { appearance: none; -webkit-appearance: none; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  padding-top: 60px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__desc { font-size: 0.88rem; color: rgba(255,255,255,0.5); margin-top: 14px; line-height: 1.6; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links h4 { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.footer__links a { font-size: 0.9rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer__links a:hover { color: var(--teal); }
.footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer__contact h4 { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.footer__contact a, .footer__contact p { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer__contact a:hover { color: var(--teal); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer__bottom span { font-size: 0.85rem; color: rgba(255,255,255,0.35); }

/* ===== FLOATING WHATSAPP ===== */
.float-wa {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 99;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
}
.float-wa svg { width: 28px; height: 28px; color: white; }
.float-wa:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  width: 90%;
  max-width: 420px;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 1.2rem;
  color: var(--muted);
  background: none;
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.modal__close:hover { background: var(--gray-bg); }
.modal h3 { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.modal p { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.modal-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
}
.modal-form input:focus { outline: none; border-color: var(--teal); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .directions-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; }
  .dir-card--large { grid-column: span 1; grid-row: span 1; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 16px; z-index: 99; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .burger { display: flex; }
  .header__phone { display: none; }
  .header__contacts { gap: 6px; }

  .search-form__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: 2rem; }
  .hero__content { padding-top: 40px; padding-bottom: 60px; }

  .directions-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
  .cta-banner__btns { flex-direction: column; width: 100%; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 24px; }

  .section { padding: 56px 0; }
  .section__header { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .search-form__grid { grid-template-columns: 1fr; }
  .tours-grid { grid-template-columns: 1fr; }
  .directions-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 72px; }
}
