/*
 * File: calendar/info.css
 * Project: avrora26
 * Role: Booking calendar "top section" styles (guests, dates, sum, book button)
 * Used in: calendar/index.php
 * Depends on: calendar/index.php markup
 * Author: Team Avrora
 * Last updated: 13.02.2026
 */

/* ÃÅ¾ÃÂ±Ã‘â€°ÃÂ¸ÃÂµ Ã‘ÂÃ‘â€šÃÂ¸ÃÂ»ÃÂ¸ ÃÂ´ÃÂ»Ã‘Â .top-section */
.top-section {
  max-width: 840px;
  margin: 0 auto 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 20px;
  font-family: Arial, sans-serif;
  color: #333333;
}

.top-section .category-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #222222;
  margin-bottom: 20px;
  text-align: left;
}

/* ÃÂ¡Ã‘â€šÃÂ°ÃÂ½ÃÂ´ÃÂ°Ã‘â‚¬Ã‘â€šÃÂ½ÃÂ°Ã‘Â "ÃÂ³ÃÂ¾Ã‘â‚¬ÃÂ¸ÃÂ·ÃÂ¾ÃÂ½Ã‘â€šÃÂ°ÃÂ»Ã‘Å’ÃÂ½ÃÂ°Ã‘Â" Ã‘ÂÃÂµÃÂºÃ‘â€ ÃÂ¸Ã‘Â */
.top-section .info-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.top-section .info-section label {
  font-size: 0.95rem;
  color: #555555;
  min-width: 90px;
}

/* Link-style button: "ÃËœÃÂ·ÃÂ¼ÃÂµÃÂ½ÃÂ¸Ã‘â€šÃ‘Å’" ÃÂ³ÃÂ¾Ã‘ÂÃ‘â€šÃÂµÃÂ¹ */
.top-section .link-btn {
  margin-left: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(43, 174, 139, 0.35);
  background: rgba(43, 174, 139, 0.08);
  color: #2BAE8B;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.top-section .link-btn:hover {
  color: #219975;
  background: rgba(43, 174, 139, 0.14);
  border-color: rgba(43, 174, 139, 0.5);
  transform: translateY(-1px);
}

.top-section .link-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(43, 174, 139, 0.18);
}

/* Ãâ€™ÃÂ·Ã‘â‚¬ÃÂ¾Ã‘ÂÃÂ»Ã‘â€¹ÃÂµ/ÃÂ´ÃÂµÃ‘â€šÃÂ¸ (Ã‘â€¡ÃÂ¸Ã‘ÂÃÂ»ÃÂ¾ÃÂ²ÃÂ¾ÃÂ¹ ÃÂ¸ÃÂ½ÃÂ¿Ã‘Æ’Ã‘â€š) */
.top-section .info-section input[type="number"] {
  padding: 8px 12px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-size: 0.95rem;
  width: 130px;
  background: #fafafa;
  transition: border 0.2s, background 0.2s;
}

.top-section .info-section input[type="number"]:focus {
  outline: none;
  border-color: #2BAE8B;
  background: #ffffff;
}

/* Ãâ€ÃÂ°Ã‘â€šÃÂ° ÃÂ·ÃÂ°ÃÂµÃÂ·ÃÂ´ÃÂ°/ÃÂ²Ã‘â€¹ÃÂµÃÂ·ÃÂ´ÃÂ° (Ã‘â€šÃÂµÃÂºÃ‘ÂÃ‘â€šÃÂ¾ÃÂ²Ã‘â€¹ÃÂ¹ ÃÂ¸ÃÂ½ÃÂ¿Ã‘Æ’Ã‘â€š) */
.top-section .info-section input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-size: 0.95rem;
  width: 130px;
  background: #fafafa;
  transition: border 0.2s, background 0.2s;
}

.top-section .info-section input[type="text"]:focus {
  outline: none;
  border-color: #2BAE8B;
  background: #ffffff;
}

.top-section .info-section input[type="text"][readonly] {
  background: #f0f0f0;
  cursor: default;
}

/* ÃÂ¡ÃÂµÃÂºÃ‘â€ ÃÂ¸Ã‘Â "ÃÂ¡Ã‘Æ’ÃÂ¼ÃÂ¼ÃÂ°" */
.top-section .sum-section {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: baseline;
}

.top-section .sum-section .total-label {
  font-size: 0.95rem;
  color: #555555;
  min-width: 90px;
}

.top-section .sum-section #totalSum {
  font-weight: 700;
  color: #2BAE8B;
  font-size: 1rem;
  white-space: nowrap;
}

.top-section .sum-section .currency {
  font-size: 1rem;
  color: #2BAE8B;
  white-space: nowrap;
}

/* ÃÅ¡ÃÂ½ÃÂ¾ÃÂ¿ÃÂºÃÂ° "Ãâ€”ÃÂ°ÃÂ±Ã‘â‚¬ÃÂ¾ÃÂ½ÃÂ¸Ã‘â‚¬ÃÂ¾ÃÂ²ÃÂ°Ã‘â€šÃ‘Å’" */
.top-section #bookBtn {
  background: #2BAE8B;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s;
}

.top-section #bookBtn:hover {
  background: #219975;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ÃÂÃÂ´ÃÂ°ÃÂ¿Ã‘â€šÃÂ¸ÃÂ² (<600px) */
@media (max-width: 600px) {
  .top-section {
    padding: 15px;
  }

  .top-section .info-section {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 15px;
  }

  .top-section .info-section label {
    min-width: auto;
  }

  .top-section .info-section input[type="number"],
  .top-section .info-section input[type="text"] {
    width: 100%;
    max-width: none;
  }

  .top-section .sum-section {
    flex-direction: row;
    gap: 5px;
  }

  .top-section .sum-section #totalSum,
  .top-section .sum-section .currency {
    white-space: nowrap;
  }

  .top-section #bookBtn {
    width: 100%;
  }

  .top-section .link-btn {
    margin-left: 0;
    align-self: flex-start;
  }
}

/* Guests modal validation (calendar/index.php) */
#children-inputs select.select-error {
  border-color: rgba(239,68,68,0.95) !important;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.14) !important;
}
\n

/* Guests modal capacity error (calendar) */
.occupancy-error {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.35;
}

#occupancy-modal input.input-error {
  border-color: rgba(239, 68, 68, 0.95) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14) !important;
}
\n