/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* COLOR VARIABLES */
:root {
    --color-light-blue: #3A6D8C;
    --color-primary-white: rgb(240, 240, 240);
    --cream: #EAD8B1;
    --light-blue: #6A9AB0;
    --dark-blue: #3A6D8C;
    --navy-blue: #001F3F;
}

/* GLOBAL FONTS */
body {
    background-color: var(--bg-color);
    font-family: 'Lora', sans-serif;
    color: #F6F4EB; /*beige*/
}

/* NAVBAR */
.navbar {
  background-color: #001F3F;
  padding: 0 !important;
  margin: 0 !important;
  position: sticky !important;
  top: 0;
  z-index: 1030;
  height: 12vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

#logo {
  height: 50px;
  width: auto;
}

.resort-name {
    font-family: 'Lora', sans-serif;
    color: #f3f3e0 !important;
    line-height: 1;
    font-size: 1.4rem;
}

.resort-subtitle {
    font-family: 'Varela Round', sans-serif;
    color: #f3f3e0 !important;
    font-size: 0.9rem;
}

.nav-link {
    color: #f3f3e0 !important;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Lora', sans-serif;
}

.nav-link:hover {
  color: var(--cream) !important;
}

.navbar-toggler {
  background-color: red !important;
  border: none;
  padding: 0.4rem 0.6rem;
}

/* MAIN CONTENT SPACING */
#roomContainer {
  margin-top: 5rem !important;
}

/* BOOK NOW BUTTON */
.booknow-btn {
  display: inline-block;
  background: #EAD8B1 !important;
  color: #001F3F !important;
  margin: 0.5rem auto;
  padding: 0.6rem 2rem;
  font-weight: bold;
  text-align: center;
  transition: background 0.3s ease;
  border-radius: 8px;
  text-decoration: none;
}

.booknow-btn:hover,
.booknow-btn:focus {
  background-color: #6A9AB0 !important;
  color: #001F3F !important;
}

/* SIDEBAR / OFFCANVAS */
.offcanvas {
    background: #001F3F !important;
    color: #F6F4EB !important;
    width: 270px !important;
    border-left: 2px solid var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-title {
    font-family: 'Lora', sans-serif;
    color: #f3f3e0;
    font-size: 1.2rem;
}

/* PROFILE PIC CIRCLE */
.profile-pic {
  width: 42px;
  height: 42px;
  background: #f3f3e0;
  color: #001F3F;
  border-radius: 50%;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LINKS INSIDE SIDEBAR */
.offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem;
    background: #001F3F;
}

    .offcanvas-body a {
        display: block;
        width: 100%;
        padding: 0.7rem 1rem;
        text-decoration: none;
        color: #F6F4EB;
        border-radius: 8px;
        font-weight: 500;
        transition: background 0.3s ease;
    }

.offcanvas-body a:hover {
  background-color: var(--light-blue);
  color: white;
}

/* LOGOUT SECTION FIXED TO BOTTOM */
.offcanvas-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.05);
}

.logout-btn button,
.login-btn {
    background-color: #EAD8B1;
    color: #001F3F !important;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    padding: 0.7rem;
    width: 100%;
    transition: background 0.3s ease;
}

.login-btn {
    text-align: center;
}

    .logout-btn button:hover, .login-btn:hover {
        background-color: #6A9AB0;
        color: #001F3F;
    }

/* Profile Icon (Navbar) */
.profile-icon-btn {
    background: none;
    border: none;
    color: #F6F4EB;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 0;
}

    .profile-icon-btn:hover {
        color: #6A9AB0; 
        transform: scale(1);
    }

    .profile-icon-btn:focus {
        outline: none;
        box-shadow: none;
    }


/* MOBILE RESPONSIVENESS */
@media (max-width: 991.98px) {
  .navbar {
    height: auto;
    padding: 0.6rem 1rem !important;
  }

  .navbar-nav .nav-link {
    display: inline-block;
    text-align: left;
    width: auto;
  }

  /* Sidebar mobile gradient background */
    .offcanvas {
        background: #001F3F;
        font-family: 'Lora', sans-serif;
    }

  .offcanvas-body a {
    font-size: 1.2rem;

  }

    .logout-btn button {
        font-size: 1.3rem;
        background-color: #EAD8B1;
        color: #001F3F;
        font-weight: 1.2rem;
    }
}
