@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #128cb7;
  --primary-color-dark: #07526d;
  --text-dark: #0c0a09;
  --text-light: #78716c;
  --white: #ffffff;
  --max-width: 1200px;
}

.main {
  min-height: 100vh;
  transition: filter 0ms ease-in-out 300ms;
}

* {
  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__header span {
  color: var(--primary-color);
}

.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: 64px;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

.header {
  background-image: url("images/header2.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background: linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5), url("images/header.JPG"));
}


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:#07526d;
}

.nav__links {
  align-items: center;
  list-style: none;
  position: absolute;
  width: 100%;
  padding: 2rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  background-color: rgba(15, 107, 141, 0.9);
  transform: translateY(-100%);
  transition: 0.5s;
  z-index: -1;
}

@media (width > 768px) {
  .nav__links {
    justify-content: center;
  }
}

.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;
}

.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;
  margin-bottom: 10px
}

.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);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room__card:hover {
  transform: translateY(-45px);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

.room__card__image {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.room__card__image img {
  transition: transform 0.4s ease;
}

.room__card:hover .room__card__image img {
  transform: scale(1.05);
}

.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-top: 1 rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.room__card h5 span {
  font-size: 1.1rem;
  color: var(--text-dark);
}

.explore__grid {
  margin-top: 4rem;
  display: grid;
  gap: 1rem;
}

.explore__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
}

.explore__card__image {
  position: relative;
  isolation: isolate;
}

.explore__card__details {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.explore__card__icons {
  display: flex;
  align-items: center;
  gap: 50px;
  flex: 1 1 auto;

}

.explore__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
}

.explore__card p {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.explore__card h5 {
  margin-top: auto;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.explore__card h5 span {
  font-size: 1.1rem;
  color: var(--text-dark);
}

.service {
  background-image: url("images/beach.JPG");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-bottom: 40px;
}

.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: 300px;
  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);
}

.footer {
  background-color: var(--primary-color-dark);
  width: 100%;
}

.footer__container {
  display: grid;
  gap: 4rem 2rem;
}

.footer__col .section__description {
  margin-block: 2rem;
}

.footer__links li {
  display: flex;
  gap: 20px;
}

.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__links img {
  max-width: 25px;
  max-height: 25px;
  opacity: 0.8;
  transition: 0.3s;
}

.footer__socials {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__socials img {
  max-width: 30px;
  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;
}

@media (width < 321px) {
  .footer{
    width: 100%;
  }
}


@media (width > 576px) {
  .room__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .explore__grid {
    grid-template-columns: repeat(3, 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: 0;
    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;
  }
}

.room-popup {
  display: none;
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 100vh;
  height: 100%;
  max-height: 90vh;
  padding: 32px;
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
  margin-top: -25px;
  transition: top 0ms ease-in-out 300ms, 
              opacity 300ms ease-in-out 0ms,
              margin-top 300ms ease-in-out 0ms;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto; 
  overflow-x: hidden;
}

.room-popup > *{
  margin: 15px 0px;
  max-width: 100%;
  overflow: auto;
  
}

.room-popup .close-btn {
  position: absolute;
  top: -15px;
  right: -2px;
  width: 35px;
  height: 35px;
  background: transparent;
  color: #111;
  border: none;
  outline: none;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  transition: 0.3s;
}

.room-popup .close-btn:hover {
  color: var(--text-light);
  opacity: 1;
}


.popup-details h4 {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 24px;
}

.popup-details h5 {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 18px;
  margin-top: 5px;
  
}

.popup-details p {
  color: var(--text-light);
  margin-top: 15px;
}

.popup-images {
  position: relative;
  display: flex;
  align-items: center; 
  height: 100%;
  overflow: hidden;
}

.popup-slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-height: 300vh;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.popup-slide.active {
  height: min-content;
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.ri-arrow-drop-left-line,
.ri-arrow-drop-right-line{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  padding: 0 10px;
  border-radius: 0;
  user-select: none;
}

.ri-arrow-drop-left-line { left: 0; }
.ri-arrow-drop-right-line { right: 0; }

.ri-arrow-drop-left-line:hover {
  color: var(--white);
  opacity: 0.8;
  transition: 0.3s;
}

.ri-arrow-drop-right-line:hover {
  color: var(--white);
  opacity: 0.8;
  transition: 0.4s;
}

body.active-popup {
  overflow: hidden;
}

body.active-popup .main {
  filter: blur(5px);
  background: rgba(0, 0, 0, 0.8);
  transition: filter 0ms ease-in-out 0ms;
}

body.active-popup .room-popup {
  top: 50%;
  opacity: 1;
  margin-top: 0px;
  transition: top 0ms ease-in-out 300ms, 
              opacity 300ms ease-in-out,
              margin-top 300ms ease-in-out;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.3s;
}

body.active-popup .popup-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.active-popup .popup-overlay {
  opacity: 1;
  pointer-events: auto;
}

.explore__card__icons .open__map a{
  color: var(--text-dark);
  transition: 0.3s;
}

.explore__card__icons .open__map a:hover{
  color: var(--text-light);
  opacity: 0.8;
}

.popup-icons {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1 1 auto;
  height: 25px;
  width: 25px;
  margin-top: 30px;
}

.popup-icon-text {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.popup-icon-text img {
  width: 24px; 
  height: 24px;
}

.popup-icon-text p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.95rem;
}

@media (max-width: 550px) {
  .logo {
    max-width: 40px;
    max-height: 40px;
  }

 .room-popup {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    padding: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
  }
  
  .popup-details{
    height: 60vh;
  }

  .popup-images {
    width: 100vw;
    min-height: 180px;
    height: 220px;
    max-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0;
  }
  .popup-slide,
  .popup-slide.active {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    min-height: 180px;
    height: 220px;
    max-height: 40vh;
    object-fit: contain;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .room-popup .close-btn {
    top: -10px;
    right: 12px;
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
    color: #222;
    z-index: 20;
  }
  .ri-arrow-drop-left-line,
  .ri-arrow-drop-right-line {
    font-size: 2rem;
    padding: 0 8px;
    top: 50%;
    color: #222;
    z-index: 15;
  }
  .ri-arrow-drop-left-line { left: 2px; }
  .ri-arrow-drop-right-line { right: 2px; }
  .popup-details {
    padding: 18px 12px 12px 12px;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin: 0;
  }
  .popup-details h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }
  .popup-details h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .popup-details p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .popup-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .popup-icon-text img {
    width: 20px;
    height: 20px;
  }
  .popup-icon-text p {
    margin: 0;
    font-size: 0.9rem;
  }
}

/* Extra small screens */
@media (max-width: 300px) {
  .room-popup {
    width: 98vw;
    max-width: 98vw;
    height: 98vh;
    padding: 2px;
    border-radius: 0;
  }
  .popup-images {
    min-height: 60px;
    height: 80px;
    max-height: 25vh;
  }
  .popup-slide,
  .popup-slide.active {
    min-height: 60px;
    height: 100%;
    max-height: 25vh;
    object-fit: contain;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .popup-details {
    padding: 4px 2px;
  }
  .popup-details h4,
  .popup-details h5 {
    font-size: 0.85rem;
  }
  .popup-details p {
    font-size: 0.8rem;
  }
  .popup-icons {
    gap: 5px;
    margin-top: 6px;
  }
  .popup-icon-text img {
    width: 12px;
    height: 12px;
  }
  .popup-icon-text p {
    font-size: 0.7rem;
  }
  .ri-arrow-drop-left-line,
  .ri-arrow-drop-right-line {
    font-size: 0.9rem;
    padding: 0 1px;
    top: 43%;
  }
}

.privacy-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.privacy-modal {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  position: relative;
}
.privacy-modal h2 {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.close-privacy {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

body.privacy-active {
  overflow: hidden;
}