/* Components Styles */

/* Navbar */
.navbar {
  background-color: #ffffff;
  color: #282828;
  padding: 0.5rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid #e5e5e5;
  box-sizing: border-box;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #282828;
  text-decoration: none;
  font-family: 'BankGothic Lt BT', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 300;
  font-size: 1.125rem;
}

.logo::before {
  content: "";
  display: inline-block;
  width: 128px;
  height: 128px;
  background-image: url('/images/isotipo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.logo:hover {
  color: #820000;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: #282828;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-menu a:hover {
  color: #820000;
  border-bottom-color: #820000;
}

.nav-menu a.active {
  color: #820000;
  border-bottom: 2.5px solid #820000;
}

.btn-favorites {
  background-color: #820000;
  color: #ffffff !important;
  padding: 0.8rem 2.2rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 5px solid #820000;
}

.btn-favorites:hover {
  background-color: #a00000;
  box-shadow: 0 2px 8px rgba(130, 0, 0, 0.3);
  color: #ffffff !important;
}

.btn-favorites .icon-favorite {
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.25rem;
}

/* Footer */
.footer {
  background-color: #e5e5e5;
  color: #282828;
  padding: 1.5rem 0;
  text-align: center;
  margin-top: 4rem;
  border-top: 3px solid #820000;
}

.footer p {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #666666;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #282828;
  text-decoration: none;
  font-size: 0.5rem;
  transition: color 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.footer-links a:hover {
  color: #820000;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-icon {
  height: 1.2rem;
  width: auto;
  transition: opacity 0.3s ease;
}

.whatsapp-link:hover .whatsapp-icon {
  opacity: 0.8;
}

.footer-credits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.footer-credits span {
  color: #666666;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.creatief-logo {
  height: 80px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  vertical-align: middle;
}

.creatief-logo:hover {
  opacity: 1;
}

/* Navbar Responsive */
@media (max-width: 1100px) {
  .navbar .container {
    gap: 0.5rem;
  }

  .logo::before {
    width: 100px;
    height: 100px;
  }

  .nav-menu {
    gap: 1.3rem;
  }

  .nav-menu a {
    font-size: 0.72rem;
  }

  .btn-favorites {
    padding: 0.65rem 1.6rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 1024px) {
  .navbar {
    padding: 0.4rem 0;
  }

  .navbar .container {
    gap: 0.75rem;
  }

  .logo {
    font-size: 0.95rem;
    gap: 0.3rem;
  }

  .logo::before {
    width: 80px;
    height: 80px;
  }

  .nav-menu {
    gap: 1rem;
  }

  .nav-menu a {
    font-size: 0.68rem;
    padding: 0.2rem 0;
  }

  .btn-favorites {
    padding: 0.55rem 1.2rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 0;
  }

  .navbar .container {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .logo {
    font-size: 0.875rem;
    gap: 0.5rem;
  }

  .logo::before {
    width: 60px;
    height: 60px;
  }
  
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
  }

  .hamburger span {
    width: 25px;
    height: 3px;
    background-color: #282828;
    transition: all 0.3s ease;
    display: block;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
    background-color: #820000;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background-color: #820000;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100vw;
    flex-direction: column;
    gap: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
    list-style: none;
    box-sizing: border-box;
  }

  .nav-menu.active {
    max-height: calc(100vh - 70px);
  }

  .nav-menu li {
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
    margin: 0;
    min-width: 0;
  }

  .nav-menu a {
    display: block;
    font-size: 0.75rem;
    padding: 1rem;
    width: 100%;
    color: #282828;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-menu a:hover {
    background: #f5f5f5;
    color: #820000;
  }

  .nav-menu a.active {
    background: #e5e5e5;
    color: #820000;
  }

  .btn-favorites {
    padding: 0.8rem 1.5rem;
    font-size: 0.75rem;
    border: 3px solid #820000;
    margin: 0.5rem;
    background-color: #820000;
    color: #ffffff !important;
  }

  .btn-favorites:hover {
    background-color: #a00000;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 0.45rem 0;
  }

  .navbar .container {
    padding: 0 0.75rem;
  }

  .logo {
    font-size: 0.8rem;
    gap: 0.4rem;
  }

  .logo::before {
    width: 50px;
    height: 50px;
  }

  .hamburger {
    padding: 0.35rem;
    gap: 0.3rem;
  }

  .hamburger span {
    width: 22px;
    height: 2.5px;
  }

  .nav-menu {
    top: 65px;
  }

  .nav-menu a {
    padding: 0.9rem;
    font-size: 0.72rem;
  }

  .btn-favorites {
    padding: 0.7rem 1.2rem;
    font-size: 0.7rem;
    border: 2px solid #820000;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.4rem 0;
  }

  .navbar .container {
    padding: 0 0.5rem;
  }

  .logo {
    font-size: 0.75rem;
    gap: 0.3rem;
  }

  .logo::before {
    width: 45px;
    height: 45px;
  }

  .hamburger {
    padding: 0.3rem;
    gap: 0.25rem;
  }

  .hamburger span {
    width: 20px;
    height: 2.5px;
  }

  .nav-menu {
    top: 60px;
  }

  .nav-menu.active {
    max-height: 700px;
  }

  .nav-menu li {
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-menu a {
    padding: 0.8rem;
    font-size: 0.7rem;
  }

  .btn-favorites {
    padding: 0.6rem 1rem;
    font-size: 0.65rem;
    margin: 0.5rem;
    border: 2px solid #820000;
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

/* WhatsApp Floating Button */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 1400;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.whatsapp-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-fab svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.whatsapp-fab-tooltip {
  position: absolute;
  right: 68px;
  background: rgba(30, 30, 30, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.whatsapp-fab:hover .whatsapp-fab-tooltip {
  opacity: 1;
}

/* Nominatim autocomplete dropdown */
.nominatim-dropdown {
  position: absolute;
  z-index: 1001;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  max-height: 250px;
  overflow-y: auto;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  margin-top: 2px;
}

.nominatim-option {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.875rem;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.4;
}

.nominatim-option:last-child {
  border-bottom: none;
}

.nominatim-option:hover {
  background: #f5f5f5;
}
