@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');

:root {
  --primary-color: #e82574;
  --primary-color-dark: #bc1c5c;
  --text-dark: #0c0a09;
  --text-light: #78716c;
  --white: #ffffff;
  --max-width: 1200px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__subheader {
  margin-bottom: 0.5rem;
  position: relative;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-dark);
}

.section__subheader::after {
  position: absolute;
  content: "";
  top: 50%;
  transform: translate(1rem, -50%);
  height: 2px;
  width: 4rem;
  background-color: var(--primary-color);
}

.section__header {
  max-width: 600px;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 3rem;
  color: var(--text-dark);
}

.section__description {
  max-width: 600px;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.btn {
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background-color: var(--primary-color-dark);
}

img {
  width: 100%;
  display: flex;
}

a {
  text-decoration: none;
}

.logo {
  max-width: 120px;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

.header {
  position: relative;
  overflow: hidden;
  background-image: url("assets/header.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.moving-sky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-image: url("assets/sky-only-safe.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;

  pointer-events: none;
  z-index: 0;
  transform: translateY(-80px);
  will-change: transform;
}


.header>nav,
.header__container {
  position: relative;
  z-index: 1;
}


nav {
  position: fixed;
  isolation: isolate;
  top: 0;
  width: 100%;
  max-width: var(--max-width);
  margin: auto;
  z-index: 9;
}

.nav__bar {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background-color: var(--primary-color);
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

.nav__links {
  list-style: none;
  position: absolute;
  width: 100%;
  padding: 2rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  background-color: rgba(188, 28, 92, 0.9);
  transform: translateY(-100%);
  transition: 0.5s;
  z-index: -1;
}

.nav__links.open {
  transform: translateY(0);
}

.nav__links a {
  position: relative;
  isolation: isolate;
  padding-bottom: 8px;
  color: var(--white);
  transition: 0.3s;
}

.nav__btn {
  display: none;
}

.header__container {
  padding-block: 10rem 15rem;
}

.header__container p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--white);
  text-align: center;
  opacity: 0.6;
}

.header__container h1 {
  font-size: 4rem;
  font-weight: 500;
  line-height: 4.5rem;
  color: var(--white);
  text-align: center;
}

.header__container h1 span {
  color: var(--primary-color);
}

.booking__container {
  padding-block: 0;
}

.booking__form {
  padding: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background-color: var(--white);
  border-radius: 10px;
  transform: translateY(-50%);
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
}

.input__group {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.input__group span {
  font-size: 1.75rem;
  color: var(--primary-color);
}

.input__group label {
  font-weight: 500;
  color: var(--text-dark);
}

.input__group input {
  display: block;
  width: 100%;
  max-width: 150px;
  padding-block: 5px;
  color: var(--text-dark);
  font-size: 0.9rem;
  outline: none;
  border: none;
}

.input__group input::placeholder {
  color: var(--text-light);
}

.about__container {
  overflow: hidden;
  display: grid;
  gap: 2rem;
}

.about__image img {
  max-width: 450px;
  margin: auto;
  border-radius: 5px;
}

.room__grid {
  margin-top: 4rem;
  display: grid;
  gap: 1rem;
}

.room__card {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
}

.room__card__image {
  position: relative;
  isolation: isolate;
}

.room__card__icons {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  z-index: 1;
}

.room__card__icons span {
  display: inline-block;
  padding: 2px 8px;
  font-size: 1.5rem;
  background-color: var(--white);
  border-radius: 100%;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.room__card__icons span:nth-child(1) {
  color: #f472b6;
}

.room__card__icons span:nth-child(2) {
  color: #c084fc;
}

.room__card__icons span:nth-child(3) {
  color: #60a5fa;
}

.room__card__details {
  padding: 1rem;
}

.room__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
}

.room__card p {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.room__card h5 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.room__card h5 span {
  font-size: 1.1rem;
  color: var(--text-dark);
}

.service {
  background-image: url("assets/service.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.service__container {
  padding-block: 0;
  display: grid;

  grid-template-columns: repeat(2, 1fr);
}

.service__content {
  grid-column: 1/3;
  padding: 2rem 4rem;
  background-color: var(--white);
}

.service__list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 2rem;
}

.service__list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
}

.service__list span {
  padding: 5px 12px;
  font-size: 1.75rem;
  color: var(--text-dark);
  background-color: var(--text-light);
  border-radius: 100%;
}

.service__list li:nth-child(1) span {
  color: #60a5fa;
  background-color: #dbeafe;
}

.service__list li:nth-child(2) span {
  color: #f472b6;
  background-color: #fce7f3;
}

.service__list li:nth-child(3) span {
  color: #c084fc;
  background-color: #f3e8ff;
}

.service__list li:nth-child(4) span {
  color: #fb7185;
  background-color: #ffe4e6;
}

.banner__content {
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  border-radius: 10px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
}

.banner__card {
  text-align: center;
  flex: 1 1 180px;
}

.banner__card h4 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.banner__card p {
  color: var(--text-light);
}

.explore :is(.section__subheader, .section__header) {
  text-align: center;
  margin-inline: auto;
}

.explore__bg {
  margin-top: 4rem;
  padding-block: 3rem;
  display: grid;
  grid-template-columns:
    minmax(1rem, 1fr) minmax(0, var(--max-width)) minmax(1rem, 1fr);
  background-image: url("assets/explore.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.explore__content {
  grid-column: 2/3;
  max-width: 400px;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 5px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

.explore__content p {
  margin-bottom: 0.5rem;
}

.explore__content h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5rem;
  color: var(--text-dark);
}

.explore__content .btn {
  color: var(--primary-color);
  background-color: var(--white);
  border: 1px solid var(--primary-color);
}

.explore__content .btn:hover {
  color: var(--white);
  background-color: var(--primary-color);
}

.footer {
  background-color: var(--text-dark);
}

.footer__container {
  display: grid;
  gap: 4rem 2rem;
}

.footer__col .section__description {
  margin-block: 2rem;
}

.footer__col h4 {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
}

.footer__links {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.footer__links a {
  color: var(--text-light);
  transition: 0.3s;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__socials {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__socials img {
  max-width: 25px;
  opacity: 0.8;
  transition: 0.3s;
}

.footer__socials img:hover {
  opacity: 1;
}

.footer__bar {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
}

/* #region Calendar */
.calendar-container {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  background-color: white;
  padding: 20px 50px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgb(80, 77, 77);

  position: relative;
  z-index: 3;
}

.calendar-header {
  font-size: 24px;
  margin-bottom: 20px;
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.calendar-nav button {
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 50%;
  background-color: #cfc9f6;
}

.calendar-nav button:hover {
  background-color: #dedbf2;
}

.calendar-nav button span {
  width: 100%;
  height: 100%;
  font-size: 30px;
  font-weight: bolder;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 10px;
}

.day.disabled {
  pointer-events: none;
  /* background-color: #dedbf2; */
  opacity: 0.5;
}

.day {
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: 5px;
  background-color: #eaeaea;
  cursor: pointer;
  overflow: hidden;
  /* Ensure polygon shapes don't overflow */
}

.day span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  z-index: 2;
  /* Ensure text stays on top */
  pointer-events: none;
  user-select: none;
}

.day.afternoon::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(100% 0%, 100% 100%, 0% 100%);

  background-color: #dedbf2;
  z-index: 1;
}

.day.morning::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0% 0%, 100% 0%, 0% 100%);
  background-color: #dedbf2;
  z-index: 1;
}

.day.full {
  background-color: #dedbf2;
  z-index: 0;
}

button {
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* #endregion */

/* #region Modal */
.open-modal-btn {
  background: #4a00e0;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  margin: 2rem 0;
}

.open-modal-btn:hover {
  background: #3a00b3;
}

dialog {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 400px;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

dialog.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

dialog.hide {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.date-price,
.price-summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.booking-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.booking-form input {
  width: 100%;
  margin-bottom: 15px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.submit-btn {
  background: #4a00e0;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
}

.submit-btn:hover {
  background: #3a00b3;
}

/* #endregion */

/* Календарът се показва върху сайта */
#bookingCalendar {
  position: fixed;
  top: 160px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;

  width: min(500px, calc(100vw - 40px));
  max-width: 500px;
  box-sizing: border-box;
  padding: 20px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

/* Скрит календар */
#bookingCalendar.hidden {
  display: none;
}

/* Формата за резервация в центъра на екрана */
#bookingDialog {
  position: fixed;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  z-index: 10000;

  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
}

/* Анимация при отваряне */
#bookingDialog.show {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

#bookingDialog.hide {
  opacity: 0;
  transform: translate(-50%, -55%);
  pointer-events: none;
}

/* Затъмняване на фона */
#bookingDialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}


#closeCalendarBtn {
  position: absolute;
  top: -14px;
  right: 5px;
  z-index: 1000;
  background: transparent;
  border: none;
  color: #333;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

#closeCalendarBtn:hover {
  color: #e74c3c;
}


/* Падащо меню "Разгледай още" */

.nav__dropdown {
  position: relative;
}

.nav__dropdown details {
  position: relative;
}

.nav__dropdown summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  color: inherit;
  font: inherit;
  white-space: nowrap;
}

.nav__dropdown summary::-webkit-details-marker {
  display: none;
}

.nav__dropdown summary::marker {
  content: "";
}

.nav__dropdown summary i {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.nav__dropdown details[open] summary i {
  transform: rotate(180deg);
}

.nav__dropdown__menu {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  z-index: 1000;

  display: flex;
  flex-direction: column;
  gap: 0;

  width: 290px;
  padding: 10px;

  background: #0c0a09;
  border: 1px solid rgba(232, 37, 116, 0.35);
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);

  list-style: none;
}

.nav__dropdown__menu li {
  width: 100%;
}

.nav__dropdown__menu li a {
  display: block;
  width: 100%;
  padding: 13px 15px;

  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
  text-align: left;
  white-space: normal;

  border-radius: 8px;
  transition: background 0.2s ease;
}

.nav__dropdown__menu li a:hover {
  background: #e82574;
  color: #ffffff;
}

/* За телефон и таблет */

@media (max-width: 900px) {
  .nav__dropdown {
    width: 100%;
  }

  .nav__dropdown summary {
    padding: 10px;
  }

  .nav__dropdown__menu {
    position: static;
    width: 100%;
    margin-top: 10px;
    box-shadow: none;
  }

  .nav__dropdown__menu li a {
    text-align: center;
  }
}


/* Луксозно падащо меню "Разгледай още" */

.nav__links .nav__dropdown summary {
  color: #ffffff !important;
  font: inherit;
  letter-spacing: inherit;
  transition: color 0.3s ease;
}

.nav__links .nav__dropdown summary:hover {
  color: #ffffff !important;
}

.nav__dropdown__menu {
  top: calc(100% + 20px);
  right: -12px;

  width: 305px;
  padding: 12px;

  background: rgba(22, 18, 23, 0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav__dropdown__menu li a {
  padding: 15px 17px;

  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1px;

  border-radius: 10px;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    padding-left 0.25s ease;
}

.nav__dropdown__menu li a:hover {
  background: rgba(232, 37, 116, 0.22);
  color: #ffffff !important;
  padding-left: 22px;
}

.header__container {
  min-height: 650px;
}

/* Подходящо оформление за телефон */

@media (max-width: 900px) {
  .nav__dropdown__menu {
    position: static;
    width: 100%;
    margin-top: 12px;
    background: rgba(22, 18, 23, 0.92);
  }

  .nav__dropdown__menu li a:hover {
    padding-left: 17px;
  }
}

/* Падащото меню да стои над останалите елементи */

.header {
  position: relative;
  isolation: isolate;
}

.header nav {
  position: relative;
  z-index: 10000;
  overflow: visible;
}

.nav__links {
  overflow: visible;
}

.nav__dropdown,
.nav__dropdown details {
  position: relative;
  z-index: 10001;
}

.nav__dropdown__menu {
  z-index: 10002 !important;
  pointer-events: auto;
}

.nav__dropdown__menu li,
.nav__dropdown__menu li a {
  position: relative;
  pointer-events: auto;
}

/* Поправка на падащото меню за телефони */

@media (max-width: 900px) {

  .nav__links {
    max-height: calc(100dvh - 85px);
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav__dropdown {
    width: 100%;
    flex-shrink: 0;
  }

  .nav__dropdown details {
    width: 100%;
  }

  .nav__dropdown summary {
    width: 100%;
    padding: 12px 16px;
    color: white !important;
  }

  .nav__dropdown__menu {
    position: static !important;
    width: calc(100% - 32px);
    max-width: 440px;
    margin: 12px auto 20px;
    padding: 8px;

    background: rgba(22, 18, 23, 0.82);
    border-radius: 16px;
    box-shadow: none;
  }

  .nav__dropdown__menu li {
    width: 100%;
  }

  .nav__dropdown__menu li a {
    display: block;
    padding: 14px 12px;
    text-align: center;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  #bookingCalendar {
    top: 100px;
    max-height: calc(100vh - 120px);
  }
}

@media (width > 576px) {
  .room__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 768px) {
  nav {
    padding: 2rem 1rem;
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav__bar {
    padding: 2rem 1rem;
    background-color: transparent;
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__links {
    padding: 0;
    width: unset;
    position: static;
    transform: none;
    flex-direction: row;
    background-color: transparent;
  }

  .nav__btn {
    display: block;
  }

  .nav__links a::after {
    position: absolute;
    content: "";
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: var(--primary-color);
    transition: 0.3s;
    transform-origin: left;
  }

  .nav__links a:hover::after {
    width: 100%;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .room__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service__content {
    grid-column: 2/3;
  }

  .footer__container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (width > 1024px) {
  .room__grid {
    gap: 2rem;
  }
}

/* Появяваща се розова лента само на телефон */
@media (max-width: 768px) {
  .header {
    overflow: visible;
  }

  .header nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: transform 0.35s ease;
  }

  .header nav.mobile-nav-hidden {
    transform: translateY(-110%);
  }

  .header nav .nav__bar {
    background-color: #e82574;
  }
}

/* Поправка: мобилното меню винаги над съдържанието */
@media (max-width: 768px) {
  .header {
    isolation: auto !important;
  }

  .header nav {
    position: fixed !important;
    z-index: 99999 !important;
    isolation: auto !important;
  }

  .header nav .nav__bar {
    background: #e82574 !important;
    opacity: 1 !important;
  }
}