/* Подключение Montserrat Alternatives */
@font-face {
    font-family: 'Montserrat Alternates';
    src: url('../public/fonts/MontserratAlternates-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

/* Основные переменные */
:root {
  --header-gradient-start: #0056b3;
  --header-gradient-end: #007bff;
  --text-white: #ffffff;
  --text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  --container-max-width: 1200px;
}

/* Убираем верхнюю контактную полоску - теперь всё в одном хедере */
.top-contact-bar {
    display: none;
}

/* Новый единый хедер */
.site-header {
    background: linear-gradient(135deg, var(--header-gradient-start) 0%, var(--header-gradient-end) 100%);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.containerheader {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

/* Мобильные стили для верхней полоски */
@media (max-width: 768px) {
    .top-contact-bar {
        font-size: 12px;
        padding: 6px 0;
    }
    
    .top-contact-bar .containerheader {
        flex-direction: column;
        gap: 8px;
        padding: 0 15px;
    }
    
    .contact-left, .contact-right {
        gap: 15px;
    }
    
    .contact-item span {
        font-size: 11px;
    }
}

.site-header {
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .containerheader {
    max-width: 1200px;
    margin: auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }
  
  .logo img {
    height: 50px;
  }
  
  .main-nav {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .main-nav a,
  .main-nav button {
    text-decoration: none;
    background: none;
    border: none;
    color: #333;
    font-size: 16px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .main-nav a:hover,
  .main-nav button:hover {
    background-color: #f0f0f0;
    border-radius: 5px;
  }
  
  /* Dropdown */
  .dropdown {
    position: relative;
  }

  .dropdown-btn {
    color: #333 !important;
    text-decoration: none !important;
    border: none;
    background: none;
    font-size: 16px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .dropdown-btn::after {
    content: " ▼";
    font-size: 12px;
  }

  .dropdown-btn:hover {
    background-color: #f0f0f0;
    border-radius: 5px;
    color: #333 !important;
    text-decoration: none !important;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    top: 38px;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 9999;
    border-radius: 5px;
    min-width: 120px;
    flex-direction: column;
  }
  
  .dropdown-content a {
    padding: 8px 12px;
    display: block;
    white-space: nowrap;
    color: #333;
  }
  
  .dropdown-content a:hover {
    background-color: #f2f2f2;
  }

  /* Убираем hover, оставляем только клик */
  .dropdown-content.show {
    display: flex;
  }
  .close-btn {
    display: none; /* Скрыт по умолчанию */
    align-self: flex-end;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 15px;
  }
  
  /* Hamburger */
  .hamburger {
    font-size: 26px;
    display: none;
    cursor: pointer;
  }

  /* Мобильные кнопки курортов */
  .mobile-resorts {
    display: none;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
  }

  .resort-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    text-decoration: none;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-width: 60px;
    font-size: 12px;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    height: 40px;
  }

  .resort-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #333;
  }

  .resort-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    font-size: 12px;
  }

  /* Специальные цвета для каждого курорта */
  .sharm-btn {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
  }

  .hurghada-btn {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
  }

  .hurghada-btn:hover {
    color: white;
  }

  .phuket-btn {
    background: linear-gradient(135deg, #55efc4, #00b894);
    color: white;
  }

  .phuket-btn:hover {
    color: white;
  }
  
  /* Mobile Styles */
  @media (max-width: 768px) {
    .containerheader {
      padding: 8px 15px;
      gap: 10px;
    }

    .logo {
      flex-shrink: 0;
    }

    .logo img {
      height: 40px;
    }

    .mobile-resorts {
      display: flex;
      flex: 1;
      justify-content: center;
      max-width: calc(100% - 140px); /* Учитываем место для логотипа и гамбургера */
    }

    .hamburger {
      display: block;
      flex-shrink: 0;
    }
  
    .main-nav {
      position: fixed;
      top: 0;
      left: -100%;
      width: 80%;
      height: 100%;
      background-color: #fff;
      flex-direction: column;
      padding: 20px;
      gap: 20px;
      transition: left 0.3s ease;
      box-shadow: 2px 0 10px rgba(0,0,0,0.1);
      z-index: 1001;
    }
  
    .main-nav.open {
      left: 0;
    }
  
    .close-btn {
      align-self: flex-end;
      font-size: 24px;
      cursor: pointer;
      margin-bottom: 10px;
    }
  
    .overlay {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.4);
      z-index: 1000;
    }
  
    .overlay.active {
      display: block;
    }

    /* Адаптация для маленьких экранов */
    @media (max-width: 480px) {
      .containerheader {
        padding: 6px 10px;
      }

      .mobile-resorts {
        gap: 6px;
      }

      .resort-btn {
        padding: 6px 8px;
        font-size: 11px;
        min-width: 55px;
        height: 36px;
      }

      .resort-text {
        font-size: 10px;
        font-weight: 600;
      }

      .hamburger {
        font-size: 22px;
      }
    }

    /* Адаптация для очень маленьких экранов */
    @media (max-width: 360px) {
      .resort-btn {
        padding: 5px 6px;
        min-width: 50px;
        height: 32px;
      }

      .resort-text {
        font-size: 9px;
        font-weight: 600;
      }
    }
  }
  .dropdown-content button {
    background: none;
    border: none;
    padding: 8px 12px;
    text-align: left;
    width: 100%;
    cursor: pointer;
    color: #333;
    text-decoration: none;
  }

  .dropdown-content button:hover {
    background-color: #f2f2f2;
  }
  