
:root {
  --light-purple: #e7d6f5;
  --lavender: #cbb4e9;
  --dirty-white: #f9f8f7;
  --dark-purple: #7a52aa;
  --text-dark: #4a3b6e;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background-color: var(--dirty-white);
  color: var(--text-dark);
}

header {
  background: linear-gradient(180deg, var(--lavender), var(--light-purple));
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 30px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 70px;
  width: 70px;
  border-radius: 50%;
  object-fit: cover;
}

header h1 {
  font-size: 1.6rem;
  color: var(--dark-purple);
  margin: 0;
  white-space: nowrap;
}

.rezervation img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Навигация */
nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--dark-purple);
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: #fff;
}

.booking-form {
  max-width: 500px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h2 {
  text-align: center;
}

.booking-form label {
  display: block;
  margin-top: 10px;
}

.booking-form input, 
.booking-form select, 
.booking-form button,
.booking-form textarea {
  width: 100%;
  padding: 10px;
  padding-right: 15px; 
  margin-top: 5px;
  margin-right: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}
.calendar-container {
  display: none;
  margin-top: 15px;
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  align-items: center;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.day {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
  background: #f9f9f9;
  font-size: 0.8rem;
}

.day h4 {
  text-align: center;
  margin-bottom: 5px;
  font-size: 0.9rem;
  overflow-wrap: break-word;
}

.hour {
  padding: 3px;
  margin: 2px 0;
  text-align: center;
  cursor: pointer;
  border-radius: 3px;
  background: #d4edda;
  font-size: 0.75rem;
  overflow-wrap: break-word;
}

/* На тесни екрани 7-те колони на календара стават нечетливи, ако се
   свият - вместо да се смачкват, календарът остава с читаема ширина
   на колоните и се скролва хоризонтално. */
@media (max-width: 600px) {
  .calendar-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .calendar {
    min-width: 560px;
  }
}

.hour.booked {
  background-color: #f8d7da; 
  color: #721c24;           
  cursor: not-allowed;     
  font-weight: bold;
  border: 1px solid #f5c2c7;
  border-radius: 6px;
  text-align: center;
  transition: transform 0.2s;
}

.hour.booked:hover {
  transform: scale(1.05);
}


.calendar-toggle {
  display: flex;
  align-items: center;
  margin-top: 10px;
  cursor: pointer;
}

.calendar-toggle img {
  width: 24px;
  margin-left: 5px;
}

#selectedHour {
  margin-top: 10px;
  font-weight: bold;
}

.nav-arrow {
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0 10px;
  user-select: none;
}

.salon-image-box {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}


@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  header h1 {
    font-size: 1.4rem;
    margin: 0;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
    width: 100%;
  }

  nav a {
    margin: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    background-color: var(--light-purple);
    color: var(--dark-purple);
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
  }

  nav a:hover,
  nav a.active {
    background-color: var(--dark-purple);
    color: #fff;
  }
}



 .price-toggle {
      margin-top: 20px;
      font-size: 18px;
      font-weight: bold;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      user-select: none;
    }

    .price-toggle img {
      width: 20px;
      transition: transform 0.3s;
    }

    .price-container {
      margin-top: 10px;
      display: none;
    }

    .price-images {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
      margin-top: 10px;
    }

    .price-images img {
      width: 48%;
      border-radius: 8px;
    }

    @media (max-width: 600px) {
      .price-images img {
        width: 100%;
      }
    }