  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

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

  body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.5s ease, color 0.5s ease;
    /* light theme variables */
    --bg: #ffffff;
    --text: #111111;
    --card: #285fea;
    --link: #1a73e8;
    --navbar-bg: rgb(56, 114, 240);
    --navbar-text: #ffffff;
    --footer-bg: rgb(92, 123, 188);
    --sidebar-bg: #ffffff;
    --sidebar-text: #333333;
    --sidebar-hover: #f0f4ff;
    --sidebar-accent: #0066ff;
    --sidebar-border: #e0e0e0;
    --panel-bg: #ffffff;
    --sidebar-w: 70px;
  }


  a {
    color: inherit;
    text-decoration: none;
  }

  li {
    list-style: none;
  }

  html {
    scroll-behavior: smooth;
  }

  /* NAVBAR */


  .grid-layout {
    display: grid;
    grid-template-areas:
      "navbar navbar"
      "sidebar main"
      "footer  footer";
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 70px 1fr;
    min-height: 100vh;
    background: transparent;
  }
.navbar, .main, .footer, .sidebar {
  background: transparent;
}


  .navbar {
    grid-area: navbar;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background: var(--navbar-bg);
    color: var(--navbar-text);
    z-index: 1000;
  }

  .main {
    grid-area: main;
    background: var(--bg);
    overflow-y: auto;
  }


  .navbar__logo img {
    max-width: 100px;
    height: auto;
  }

  .navbar__buttons {
    display: flex;
    gap: 20px;
    margin-left: auto;
  }


  .btn,
  .dropbtn {
    position: relative;
    background: none;
    color: white;
    font-size: 1.2rem;
    padding: 8px 12px;
    cursor: pointer;
    transition: color .2s;
    display: flex;
    align-items: center;
  }

  .btn::after,
  .dropbtn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: white;
    transform: scaleX(0);
    transition: transform .3s, background .3s;
  }

  .btn:hover,
  .dropbtn:hover {
    color: gold;
  }

  .btn:hover::after,
  .dropbtn:hover::after {
    transform: scaleX(1);
    background: gold;
  }

  /* Dropdown */
  .dropdown {
    position: relative;
  }

  .dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: rgb(56, 114, 240);
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s;
  }

  .dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
  }

  .dropdown-content .btn {
    display: block;
    width: 100%;
    padding: 10px 15px;
    text-align: left;
  }

  .dropdown-content .btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: gold;
  }



  /* SIDEBAR */
  .sidebar {
    grid-area: sidebar;
    width: 70px;
    top: 85px;
     height: calc(100vh - 85px);
    position: fixed;
    /* top: 85px;  */
    left: 0;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    transition: width .3s;
    overflow: hidden;
    z-index: 999;
  }

  .sidebar:hover {
    width: 190px;
  }

  .sidebar a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    white-space: nowrap;
    color: var(--sidebar-text);
    transition: .3s;
  }

  .sidebar a:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-accent);
  }

  .sidebar ion-icon {
    font-size: 22px;
    min-width: 40px;
    text-align: center;
  }

  .sidebar span {
    opacity: 0;
    transition: opacity .3s;
  }

  .sidebar:hover span {
    opacity: 1;
  }

  /* Bottom user/email */
  .sidebar .bottom {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-top: 1px solid #eee;
  }

  .sidebar .bottom img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
  }

  .sidebar .bottom span {
    opacity: 0;
  }

  .sidebar:hover .bottom span {
    opacity: 1;
  }

  /* SECTIONS */

  .hero {
    background: url("https://digital.ihg.com/is/image/ihg/intercontinental-tegucigalpa-6071105521-2x1") center/cover;
    text-align: center;
    color: white;
    padding: 100px 20px;
  }

  .hero h1,
  .hero p {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, .7);
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  .cta-btn {
    background: red;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .3s;
  }

  .cta-btn:hover {
    background: darkred;
  }

  /* About */
  .about {
    text-align: center;
    padding: 50px 20px;
    font-size: larger;
  }

  /* FAQ title alignment */
  .faq h2 {
    text-align: center;
    margin: 20px auto;
  }

  .about h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .about p {
    max-width: 800px;
    margin: 0 auto 20px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, .2);
  }

  .circle-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
  }

  /* Gallery */
  .gallery-container {
    max-width: 700px;
    margin: auto;
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
  }

  .room {
    background: var(--panel-bg);
    padding: 10px;
    border-radius: 10px;
    transition: .3s;
  }

  .room:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  }

  .room-title {
    font: 500 24px/36px Georgia, serif;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b8860b;
  }

  /* Booking */
  .booking-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 50px 20px;
    background: var(--panel-bg);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  }

  .booking-form h2 {
    text-align: center;
    margin-bottom: 20px;
  }

  .booking-form label {
    display: block;
    margin: 10px 0 5px;
  }

  .booking-form input,
  .booking-form button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #aaa;
  }

  .booking-form button {
    background: rgb(56, 114, 240);
    color: white;
    border: none;
    cursor: pointer;
    transition: background .3s;
  }

  .booking-form button:hover {
    background: rgb(40, 90, 200);
  }

  /* Contacts */
  .contacts {
    text-align: center;
    padding: 50px 20px;
    background: var(--panel-bg);
  }

  .contacts h2 {
    
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .contacts p {
    color: white;
    max-width: 600px;
    margin: 0 auto 30px;
   
  }

  .contacts-info {
     
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
   
  }

  .contact-item {
     
    flex: 1 1 250px;
    width: 250px;
    background: #f4f6fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    transition: .3s;
  }

  .contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
  }

  .contact-item h3 {
    margin-bottom: 10px;
    color: rgb(56, 114, 240);
  }
.contact-item p {
   color: black;
  }
  .contact-item a {
   color: black;
  }
  .contact-item ion-icon {
    font-size: 40px;
    color: rgb(56, 114, 240);
    margin-bottom: 10px;
  }

  .contact-item a:hover {
    color: red;
  }

  .contact-item button {
    margin-top: 10px;
    padding: 8px 16px;
    border: none;
    background: rgb(56, 114, 240);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background .3s;
  }

  .contact-item button:hover {
    background: rgb(40, 90, 200);
  }

  .contacts-map iframe {
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    display: block;
    margin: auto;
  }

  /* Footer */
  footer {
    grid-area: footer;
    background: var(--footer-bg);
    color: white;
    text-align: center;
    padding: 20px;
  }



  /* === АДАПТИВ ДЛЯ ТЕЛЕФОНА === */
  @media (max-width: 768px) {
    .navbar {
      flex-direction: column;
      height: auto;
      padding: 10px;
    }

    .navbar__logo img {
      max-width: 80px;
    }

    .navbar__buttons {
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      margin-left: 0;
    }

    .sidebar {
      display: none;
    }

    .hero {
      padding: 60px 15px;
    }

    .hero h1 {
      font-size: 1.8rem;
    }

    .hero p {
      font-size: 1rem;
    }

    .gallery {
      grid-template-columns: 1fr;
    }

    .booking-form {
      margin: 20px 10px;
      padding: 30px 15px;
    }

    .contacts-info {
      flex-direction: column;
      align-items: center;
    }

    .contact-item {
      width: 100%;
      max-width: 300px;
    }
  }



/* form errors */
.error-msg { color: #e53935; font-size: 12px; margin-top: 4px; display: block; }
input.invalid, select.invalid { border: 1px solid #e53935 !important; outline: none; }

/* --- accordion --- */
.accordion { max-width: 900px; margin: 2rem auto; }
.accordion__item { border: 1px solid #ddd; border-radius: 8px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.accordion__header { width: 100%; text-align: left; padding: 14px 16px; font-weight: 600; cursor: pointer; background: #f7f7f7; border: none; }
.accordion__content { padding: 0 16px; overflow: hidden; transition: max-height 0.3s ease; }
.accordion__content p { margin: 14px 0 16px; }


/* Popup */
.popup-demo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}

.popup-trigger {
  background: #2563eb;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.popup-trigger:hover {
  background: #1e40af;
}

/* Popup overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
}
.popup-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Popup window */
.popup-window {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  width: 320px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: popup-appear 0.3s ease;
}
@keyframes popup-appear {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Close button */
.popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  color: #333;
  cursor: pointer;
}

/* Form styles */
.popup-input {
  width: 100%;
  padding: 10px;
  margin: 10px 0 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.popup-btn {
  width: 100%;
  padding: 10px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}
.popup-btn:hover {
  background: #1e40af;
}


/*Removed Toggle theme button*/


.bg-section {
  text-align: center;
  margin-top: 100px;
}

#bg-change-btn {
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background-color: #2563eb;
  color: white;
}

#bg-change-btn:hover {
  background-color: #1e40af;
}


.grid-layout {
  min-height: 100%;
  display: grid;
}

#datetime-container {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: 700;
 
}




/* Theme */
:root {
  --bg: #ffffff;
  --text: #111111;
  --card: #285fea;
  --link: #1a73e8;
  --navbar-bg: rgb(56, 114, 240);
  --navbar-text: #ffffff;
  --footer-bg: rgb(92, 123, 188);
  --sidebar-bg: #ffffff;
  --sidebar-text: #333333;
  --sidebar-hover: #f0f4ff;
  --sidebar-accent: #0066ff;
  --sidebar-border: #e0e0e0;
  --panel-bg: #ffffff;
}

.theme-night {
  --bg: #0f172a;
  --text: #e5e7eb;
  --card: #1f2937;
  --link: #93c5fd;
  --navbar-bg: #111827;
  --navbar-text: #e5e7eb;
  --footer-bg: #111827;
  --sidebar-bg: #0b1220;
  --sidebar-text: #e5e7eb;
  --sidebar-hover: rgba(255,255,255,0.06);
  --sidebar-accent: #93c5fd;
  --sidebar-border: rgba(255,255,255,0.10);
  --panel-bg: #111827;
}

/* Theme usage */
body { background: var(--bg); color: var(--text); }
a { color: var(--link); }
.header, .card, .section { background: var(--card); }
/* transitions for nicer switch */
body, .header, .footer, .card, .section, .navbar {
  transition: background 0.2s ease, color 0.2s ease;
}
:root {  }

/*Rating styling*/

#stars .star {
  font-size: 28px;
  cursor: pointer;
  color: #999;          /* default (light theme) */
  transition: transform 0.1s ease;
}
#stars .star.active {
  color: gold;
}
#stars .star:hover { transform: scale(1.1); }

/* night theme tweak */
.theme-night #stars .star { color: #7a7a7a; }
.theme-night #stars .star.active { color: #ffd76a; }



/* ===== Part 2: Task 4 – Scroll Progress Bar ===== */
#scrollProgress {
  position: fixed; top: 0; left: 0; right: 0; height: 6px;

  background: rgba(0,0,0,0.06);
  z-index: 9999;
}
#scrollProgress .bar {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, #7dd3fc, #34d399, #fbbf24); /* simple color combo */
  transition: width 0.1s linear;
}



/* ===== Part 2: Task 5 – Counter ===== */
.stats { max-width: 1000px; margin: 40px auto; padding: 0 16px; }
.stats h2 { margin-bottom: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { border: 1px solid #eee; border-radius: 8px; padding: 16px; text-align: center; }
.stat .num { font-size: 2rem; font-weight: 700; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; } }


/* ===== Task 6: Submit Spinner ===== */
.contact-form { max-width: 400px; margin: 40px auto; text-align: center; }
.contact-form {
  background: var(--panel-bg);
  border: 1px solid var(--sidebar-border);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  padding: 20px 16px;
}
.contact-form h2 { margin-bottom: 10px; }
.contact-form input, .contact-form textarea {
  width: 100%; margin-bottom: 12px; padding: 12px;
  border: 1px solid var(--sidebar-border); border-radius: 8px;
  background: transparent; color: var(--text);
}
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 16px; border: none; border-radius: 8px;
  color: #fff; cursor: pointer;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid #fff; border-top-color: transparent;
  border-radius: 50%; display: inline-block;
  animation: spin 0.8s linear infinite;
}
.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.mini-toast {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: #111; color: #fff; padding: 8px 12px; border-radius: 6px;
  z-index: 9999; font-size: 0.9rem; opacity: 0.95;

}


.tools { position: relative; z-index: 20; padding: 16px; }

/* make the demo button visible and clickable */
.toast-demo {
  display: inline-block;
  margin: 12px 8px 12px 0;
  background: var(--navbar-bg);
  color: var(--navbar-text);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 10px 14px;
  position: relative;
  z-index: 25;          /* above hero / sidebar */
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.toast-demo:hover { filter: brightness(1.05); }

/* Celebrate button */
#celebrateBtn {
  margin-left: 8px;
  background: linear-gradient(135deg, var(--navbar-bg), #3b82f6);
  color: var(--navbar-text);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
#celebrateBtn:hover { filter: brightness(1.06); }

/* Copy rows styling */
.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 420px;
  background: var(--panel-bg);
  border: 1px solid var(--sidebar-border);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  padding: 12px 14px;
  border-radius: 12px;
  margin: 10px 0;
}
.copy-row code,
.copy-row span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 600;
  color: var(--text);
}
.copy-btn {
  background: var(--navbar-bg);
  color: var(--navbar-text);
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.copy-btn:hover { filter: brightness(1.05); }

.wrapper {
  display: flex;
  justify-content: center; 
  align-items: center;     
  margin-right: 70px;      
}

.copy-tools-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 400px;
  justify-content: center; 
}

.copy-row, .tools {
  display: flex;
  flex: 1 1 45%; 
  justify-content: space-between;
  min-width: 150px;
  margin-bottom: 10px;
}

.copy-btn, .btn {
  flex-shrink: 0;
}


.hero { position: relative; z-index: 1; }


:root { --sidebar-w: 70px; }




.btn bth-msg{
  background-color: #111;
}
 
/*Move task 8 to the right*/

:root { --sidebar-w: 70px; }

.copy-row,
#copyText1,
#copyText2,
.copy-section {   /* use the container class wrapping your copy rows */
  margin-left: var(--sidebar-w);
}