* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow: hidden;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 15px 20px;
  text-align: center;
  z-index: 10;
  color: #1d1d1f;
}

header h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

header p {
    font-size: 0.9rem;
    opacity: 0.8;
}

main {
  flex: 1;
  position: relative;
  overflow: hidden;
}

#map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

.toilet-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(120%);
  transition: transform 0.3s ease;
}

.toilet-info.hidden {
  transform: translateY(150%);
}

.toilet-info.active {
  transform: translateY(0);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.08) 0%, 
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0.01) 100%
  );
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 32px 64px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.toilet-info h2 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    padding-right: 30px;
    color: #1d1d1f;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.toilet-info p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #1d1d1f;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.toilet-info strong {
    color: #1d1d1f;
    font-weight: 600;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Стили для маркеров на карте */
.custom-marker {
    text-align: center;
}

.marker-free {
    background-color: #27ae60;
    border: 2px solid #219653;
}

.marker-unknown {
    background-color: #95a5a6;
    border: 2px solid #7f8c8d;
}

.marker-paid {
    background-color: #e74c3c;
    border: 2px solid #c0392b;
}

/* Адаптивность для разных устройств */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.3rem;
    }
    
    header p {
        font-size: 0.8rem;
    }
    
    .toilet-info h2 {
        font-size: 1.2rem;
    }
    
    .toilet-info p {
        font-size: 0.9rem;
    }
}
