/* ===== LOADING SCREEN ===== */

#loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Hex logo mark */
.loader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: loaderFadeIn 0.5s ease both;
}

.loader-hex {
  width: 72px;
  height: 72px;
  background: var(--orange);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: white;
  animation: loaderPulse 1.4s ease-in-out infinite;
}

.loader-brand {
  text-align: center;
}

.loader-brand .name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
  letter-spacing: 0.04em;
  display: block;
}

.loader-brand .sub {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

/* Progress bar */
.loader-bar-wrap {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  overflow: hidden;
  animation: loaderFadeIn 0.5s 0.2s ease both;
}

.loader-bar {
  height: 100%;
  background: var(--orange);
  border-radius: 1px;
  width: 0%;
  transition: width 0.1s ease;
}

/* Tagline */
.loader-tagline {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  animation: loaderFadeIn 0.5s 0.3s ease both;
}

@keyframes loaderFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1);    box-shadow: none; }
  50%       { transform: scale(1.06); box-shadow: 0 0 32px rgba(244, 100, 10, 0.45); }
}


/* ===== BACK TO TOP BUTTON ===== */

#backToTop {
  position: fixed;
  bottom: 100px; /* above WhatsApp button */
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 800;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.35s var(--ease);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow-orange);
}

#backToTop svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}


/* ===== WHATSAPP BUTTON ===== */

#whatsappBtn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 800;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: all 0.3s var(--ease);
  text-decoration: none;
  animation: waBounceIn 0.6s 1.5s var(--ease) both;
}

#whatsappBtn:hover {
  transform: scale(1.10) translateY(-2px);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.55);
}

#whatsappBtn svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* Pulse ring */
#whatsappBtn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: waPulse 2.2s ease-out infinite;
}

@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes waBounceIn {
  0%   { opacity: 0; transform: scale(0.5); }
  70%  { transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

/* Tooltip */
#whatsappBtn .wa-tooltip {
  position: absolute;
  right: 68px;
  white-space: nowrap;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: all 0.25s ease;
}

#whatsappBtn .wa-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right: none;
  border-left-color: var(--black);
}

#whatsappBtn:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}


/* ===== COOKIE CONSENT BANNER ===== */

#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.4);
}

#cookieBanner.visible {
  transform: translateY(0);
}

.cookie-text {
  flex: 1;
  min-width: 260px;
}

.cookie-text p {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  line-height: 1.65;
  font-weight: 300;
}

.cookie-text strong {
  color: var(--white);
  font-weight: 600;
}

.cookie-text a {
  color: var(--orange);
  text-decoration: underline;
  cursor: pointer;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn-accept {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 11px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s;
}

.cookie-btn-accept:hover {
  background: var(--orange-hover);
  box-shadow: var(--shadow-orange);
}

.cookie-btn-decline {
  background: transparent;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 11px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s;
}

.cookie-btn-decline:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}


/* ===== GOOGLE MAP ===== */

.map-embed-wrap {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  height: 280px;
  position: relative;
}

.map-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-embed-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.map-embed-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%,
    rgba(244,100,10,0.07) 0%, transparent 65%);
}

.map-embed-placeholder .map-pin-icon {
  font-size: 40px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 14px rgba(244,100,10,0.5));
}

.map-embed-placeholder p {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.map-embed-placeholder .map-address {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 300;
  position: relative;
  z-index: 1;
}

.map-embed-placeholder .map-open-link {
  position: relative;
  z-index: 1;
  background: var(--navy);
  color: var(--white);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 4px;
  transition: all 0.3s;
  display: inline-block;
}

.map-open-link:hover {
  background: var(--orange);
  box-shadow: var(--shadow-orange);
}

/* COOKIE BANNER FIX */
#cookieBanner {
  z-index: 8000 !important;
  position: fixed !important;
  bottom: 0 !important;
  pointer-events: all !important;
}
#cookieBanner .cookie-btn-accept,
#cookieBanner .cookie-btn-decline {
  cursor: pointer !important;
  pointer-events: all !important;
  position: relative !important;
  z-index: 8001 !important;
}
