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

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

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

/* === CONTAINERS === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === HEADER === */
.header {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

/* === BURGER MENU === */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #121417;
  border-radius: 3px;
  transition: 0.3s;
}

/* Animate burger to X */
.burger--active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.burger--active span:nth-child(2) {
  opacity: 0;
}

.burger--active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

.header__logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #8940FD;
}

.header__nav {
  display: flex;
  gap: 1.5rem;
}

.nav__link {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem;
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link--active {
  color: #8940FD;
}

.header__auth {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__language-select {
  padding: 0.3rem 0.6rem;
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-left: 1rem;
  background: white;
}

.btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
}

.btn--primary {
  display: flex;
  align-items: center;
  height: 30px;
  background: #f1f2f4;
  color: #121417;
  font-weight: 600;
}

/* === SEARCH === */
.search--main {
  margin: 2rem auto 1rem;
}

.search__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

/* === MAP === */
.map {
  margin-bottom: 2rem;
}

.map__wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.map--preview {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  margin: auto;
}

.map__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map__controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map__control-btn {
  background: #ffffff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

/* === STATS === */
.stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.stats__item {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.stats__label {
  font-size: 1rem;
  color: #888;
}

.stats__value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #8940FD;
}

/* === TRIPS === */
.trips__heading {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.trip-card {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.trip-card__info {
  max-width: 70%;
}

.trip-card__label {
  font-size: 0.75rem;
  color: #999;
}

.trip-card__title {
  margin: 0.25rem 0;
  font-size: 1.1rem;
}

.trip-card__dates {
  color: #555;
}

.trip-card__image {
  width: 150px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

/* ==========================
   GUEST SUGGESTIONS STYLES
========================== */

.guest {
  padding: 80px 120px;
  background-color: #f9f9f9;
}

.guest__block {
  margin-bottom: 64px;
}

.guest__title {
  font-size: 32px;
  margin-bottom: 32px;
  text-align: center;
  color: #222;
}

.guest__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.guest__card {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.guest__card:hover {
  transform: translateY(-6px);
}

.guest__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.guest__info {
  padding: 16px;
  text-align: center;
}

.guest__name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.guest__country {
  font-size: 16px;
  color: #666;
}

/* FACTS */
.guest__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.guest__fact {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  width: 280px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
  text-align: center;
  font-size: 16px;
}

/* CTA */
.guest__block--cta {
  text-align: center;
  background: #fff7e6;
  padding: 40px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.guest__text {
  font-size: 18px;
  margin-bottom: 20px;
}

.guest__btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: #105CFF;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.guest__btn:hover {
  background-color: #0a46c6;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .guest {
    padding: 40px 20px;
  }

  .guest__facts,
  .guest__cards {
    flex-direction: column;
    align-items: center;
  }
}


/* === MAIN EXPLORE CONTENT === */
.explore {
  padding: 2rem 0;
}

.explore__heading {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.explore__search {
  margin-bottom: 1.5rem;
}

.explore__input {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid #ccc;
  background-color: #f8f8f8;
}

.explore__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.filter__btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter__btn--active,
.filter__btn:hover {
  background-color: #e8e8e8;
  font-weight: 500;
}

.explore__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.explore__card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.explore__card:hover {
  /* transform: translateY(-4px); */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.explore__flag {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.explore__country {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  text-align: left;
}

.explore__cities {
  font-size: 0.875rem;
  color: #666;
  text-align: left;
}


/* ========== EXPLORE COUNTRY PAGE ========== */
.country {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.country__banner {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
}

.country__image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
}

.country__title {
  position: absolute;
  bottom: 1rem;
  left: 1.5rem;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.country__section-title {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.country__details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 10px;
}

.country__block {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.country__label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.4rem;
}

.country__value {
  font-size: 1.1rem;
  font-weight: 600;
}

.country__city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.city__card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.city__card:hover {
  transform: translateY(-3px);
}

.city__card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.city__card h4 {
  font-size: 1rem;
  margin: 0.5rem 0 0.3rem;
}

.city__card p {
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 0.6rem;
}

.country__section {
  margin-top: 2rem;
}

.country__gallery {
  margin-top: 2rem;
}

.country__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.country__photos img {
  width: 180px;
  /* height: 80px; */
  object-fit: cover;
  border-radius: 8px;
}

.country__map img {
  width: 100%;
  border-radius: 10px;
  margin-top: 1rem;
}


/* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 41, 59, 0.85);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
  transition: opacity 0.3s;
}

.modal.open {
  display: flex;
}

/* Modal Content */
.modal__content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px 6px rgba(0, 0, 0, 0.22);
  padding: 36px 24px 24px 24px;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  animation: modalPop 0.3s cubic-bezier(.25, .8, .25, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes modalPop {
  from {
    transform: scale(0.7);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal__close {
  position: absolute;
  right: 18px;
  top: 8px;
  font-size: 2rem;
  color: #64748b;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.modal__close:hover {
  color: #1e293b;
}

.modal__img {
  max-width: 80vw;
  max-height: 60vh;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
  margin-bottom: 16px;
  background: #f1f5f9;
}

.modal__caption {
  font-size: 1.15rem;
  color: #334155;
  margin-top: 6px;
  text-align: center;
}

.famous__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 12px;
  align-items: stretch;
}

.famous__card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  transition: box-shadow .2s;
}

.famous__card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.11);
}

.famous__img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #f1f5f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.famous__name {
  font-size: 1.1rem;
  color: #1e293b;
  margin-bottom: 2px;
  font-weight: 600;
}

.famous__profession {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.famous__bio {
  color: #475569;
  font-size: 0.93rem;
  margin-top: 2px;
}


/* === FOOTER === */
.footer {
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  margin-top: 3rem;
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.9rem;
  color: #777;
}

.footer__links {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer__link {
  color: #555;
}

.footer__link:hover {
  color: #8940FD;
}

/* ===== RESPONSIVE HEADER & FOOTER ===== */

/* Mobil və planşet görünüşü üçün */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .header__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
  }

  .header__nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }

  .header__auth {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.5rem;
  }

  .header__nav,
  .header__auth {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    background: #fff;
    padding: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid #eee;
  }

  .header__nav--open,
  .header__auth--open {
    display: flex;
  }

  .header__language-select {
    margin-left: 0;
    width: 100%;
    max-width: 180px;
  }

  .nav__link,
  .btn--primary {
    width: 100%;
    padding: 0.6rem 1rem;
  }

  .footer__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
  }

  .footer__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

/* Kiçik mobil üçün (ekstra responsive) */
@media (max-width: 480px) {

  .header__logo {
    font-size: 1.3rem;
  }

  .nav__link {
    font-size: 0.95rem;
  }

  .btn--primary {
    font-size: 0.9rem;
  }

  .footer__copy,
  .footer__links {
    font-size: 0.85rem;
  }
}