/* ==========================================================================
   LOADING SCREEN & ANIMATION
   ========================================================================== */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--sand);
  background-image: url('../assets/bg.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: all;
}

.loading-screen::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: 1;
  pointer-events: none;
  background-image: url('../assets/sun.svg');
  background-repeat: no-repeat;
  background-position: right top; 
  background-size: min(40%, 260px) auto; 
}

@media (min-width: 1000px) {
  .loading-screen { background-position: left bottom; }
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo-wrap {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.loader-logo {
  height: 62px;
  width: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.loader-logo-bg {
  opacity: 0.18;
  filter: grayscale(30%);
}

.loader-logo-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: stremioFill 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 4px 14px rgba(30, 76, 97, 0.12));
}

@keyframes stremioFill {
  0% {
    clip-path: inset(100% 0 0 0);
    opacity: 0.4;
  }
  50% {
    clip-path: inset(0% 0 0 0);
    opacity: 1;
  }
  75% {
    clip-path: inset(0% 0 0 0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0% 0 0 0);
    opacity: 0;
  }
}

/* ==========================================================================
   LANGUAGE DROPDOWN
   ========================================================================== */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.lang-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--sand);
  border: 1px solid var(--line);
  color: var(--navy);
  font-family: 'Karla', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.lang-dropdown-trigger:focus { outline: none; }
.lang-dropdown-trigger:hover { border-color: var(--coral); }
.lang-dropdown-trigger .chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-dropdown-wrapper.open .lang-dropdown-trigger .chevron { 
  transform: rotate(180deg); 
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(30, 76, 97, 0.16);
  width: 180px;
  max-height: min(320px, calc(100vh - 90px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1000;
}

.lang-dropdown-menu::-webkit-scrollbar { width: 4px; }
.lang-dropdown-menu::-webkit-scrollbar-thumb { 
  background: rgba(30, 76, 97, 0.2); 
  border-radius: 4px; 
}

.lang-dropdown-wrapper.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s ease;
}

.lang-option:hover { background: var(--sand); }
.lang-option.active {
  background: rgba(245, 165, 142, 0.15);
  color: var(--coral);
}
.lang-option .flag-icon { flex-shrink: 0; }
.langs button.active { background: var(--navy); color: #fff; }

/* ==========================================================================
   ADDRESS PIN & INTERACTIVE MAP LINK
   ========================================================================== */
.hero .addr-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 20px;
  transition: background-color 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: manipulation;
}

.hero .addr-pin { color: var(--coral); flex-shrink: 0; }

#apt-address {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.3;
  word-break: break-word;
  border-bottom: 1px dashed rgba(30, 76, 97, 0.35);
  padding-bottom: 1px;
}

.hero .addr-arrow {
  color: rgba(30, 76, 97, 0.5);
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.hero .addr-link:active { background-color: rgba(30, 76, 97, 0.06); }
.hero .addr-link:active .addr-arrow {
  transform: translate(2px, -2px);
  color: var(--coral);
}

@media (hover: hover) {
  .hero .addr-link:hover { background-color: rgba(30, 76, 97, 0.05); }
  .hero .addr-link:hover #apt-address { border-bottom-color: var(--coral); }
  .hero .addr-link:hover .addr-arrow {
    transform: translate(2px, -2px);
    color: var(--coral);
  }
}

/* ==========================================================================
   MEDIA, VIDEO FRAMES & CAPTIONS
   ========================================================================== */
.step-body .media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
}

.step-body .media img { 
  display: block; 
  width: 100%; 
  aspect-ratio: 4 / 3; 
  object-fit: cover;
}

.step-body .media video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 380px;     
  background: #000;
  object-fit: cover;     
}

.media-caption {
  padding: 14px 16px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.step-body .media-caption-title {
  font-family: 'Karla', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  color: var(--navy) !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.3 !important;
}

.step-body .media-caption-desc,
.step-body .media-caption-desc p {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.82rem !important;
  line-height: 1.45 !important;
  margin: 0 0 6px 0 !important;
  color: rgba(44, 62, 80, 0.82) !important;
}

.step-body .media-caption-desc p:last-child { margin-bottom: 0 !important; }
.step-body .media-caption-desc strong,
.step-body .media-caption-desc b { color: var(--navy) !important; font-weight: 700 !important; }

.video-frame {
  position: relative;
  aspect-ratio: 9/16;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(30, 76, 97, 0.08);
  border: 1px solid var(--line);
  background: #000;
}

.video-frame img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}

.video-frame iframe { 
  border-radius: 14px; 
}

.video-frame .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 76, 97, 0.25);
  backdrop-filter: blur(2px);
}

.video-frame .play svg { 
  width: 56px; 
  height: 56px; 
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); 
}

.video-subtitles-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 76, 97, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(30, 76, 97, 0.85);
  font-weight: 600;
}

.video-subtitles-tip svg { 
  color: var(--coral); 
  flex-shrink: 0; 
}

.media {
  overflow: visible; /* Don't clip with parent overflow */
}

.media video {
  width: 100%;
  display: block;
  border-radius: 12px; /* Apply radius directly to the video */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  contain: paint; /* Tells browser the video does not affect outside layout */
}

/* ==========================================================================
   ACCESS CARDS & KEY SAFE CREDENTIALS
   ========================================================================== */
.access-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  border-radius: 8px;
  padding: 16px;
  background: var(--sand);
  margin-bottom: 16px;
}

.access-card p { 
  margin: 0; 
  font-size: 0.88rem; 
  line-height: 1.5; 
}

.safe-creds-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 24px;
}

.safe-cred-box {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(30, 76, 97, 0.03);
}

.safe-cred-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(30, 76, 97, 0.55);
  margin-bottom: 8px;
}

.safe-cred-value {
  display: block;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--navy);
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ==========================================================================
   ELECTRONIC LOCK CARD
   ========================================================================== */
.lock-card {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--sand);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.lock-card .row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lock-card .row .k {
  font-size: 0.75rem;
  color: rgba(30, 76, 97, 0.6);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lock-card .row .v {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}

/* ==========================================================================
   WIFI 3D FLIP CARD
   ========================================================================== */
.wifi-scene { 
  perspective: 1000px; 
  transform: translateZ(0); 
}

.wifi-card {
  width: 100%;
  position: relative;
  min-height: 295px;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.wifi-face {
  width: 100%;
  min-height: 295px;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--line);
  background: var(--sand);
  border-radius: 12px;
  /* 26px bottom padding leaves a comfortable, uniform gap below the button */
  padding: 24px 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.wifi-card.is-flipped { 
  transform: rotateY(180deg); 
}

.wifi-front { 
  transform: rotateY(0deg); 
}

.wifi-back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(180deg);
}

.wifi-face .info { 
  width: 100%; 
  text-align: center;
  margin: auto 0; /* Centers REDE & SENHA vertically in the top area */
}

.wifi-face .row { 
  display: flex; 
  flex-direction: column; 
  align-items: center;
  gap: 6px; 
  padding: 10px 0; 
  border-bottom: 1px solid var(--line); 
}

.wifi-face .row:last-of-type { 
  border-bottom: none; 
}

.wifi-face .row .k { 
  font-size: 0.75rem; 
  color: rgba(30, 76, 97, 0.6); 
  font-weight: 800; 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
}

.wifi-face .row .v { 
  font-weight: 800; 
  font-size: 1.1rem; 
  color: var(--navy); 
}

#qrcode { 
  display: flex; 
  justify-content: center; 
  flex-shrink: 0; 
  border: 8px solid #fff; 
  border-radius: 12px; 
  line-height: 0; 
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  margin: auto 0; /* Centers QR code vertically in the top area */
}

#qrcode img,
#qrcode canvas {
  display: block;
}

.flip-btn {
  margin-top: auto; /* Anchors the button to the bottom on both front and back */
  background: rgba(30, 76, 97, 0.05);
  border: 1px solid rgba(30, 76, 97, 0.1);
  color: var(--navy);
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  align-self: center;
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */
.flip-btn {
  margin-top: 20px;
  background: rgba(30, 76, 97, 0.05);
  border: 1px solid rgba(30, 76, 97, 0.1);
  color: var(--navy);
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  align-self: center;
}

.copy-btn {
  border: none; 
  background: var(--paper); 
  color: var(--navy);
  font-family: 'Karla', sans-serif; 
  font-weight: 700; 
  font-size: 0.75rem;
  padding: 6px 14px; 
  border-radius: 16px; 
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); 
  transition: all 0.2s;
}

.copy-btn.copied { 
  background: var(--coral); 
  color: #fff; 
  box-shadow: none; 
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto; 
  gap: 8px;
  background: rgba(245, 165, 142, 0.25);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem; 
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 12px;
  transition: all 0.15s ease;
}

.wa-btn:active { 
  transform: scale(0.98); 
}

@media (hover: hover) {
  .maps-btn:hover { background: var(--coral); color: #fff; border-color: var(--coral); }
  .wa-btn:hover { background: var(--coral); color: #fff; }
  .flip-btn:hover { background: var(--coral); color: #fff; border-color: var(--coral); }
  .social-icons a:hover { transform: scale(1.05); }
}

/* ==========================================================================
   RULES LIST
   ========================================================================== */
.rules { 
  display: flex; 
  flex-direction: column; 
  gap: 0; 
}

.rule { 
  display: flex; 
  gap: 16px; 
  padding: 16px 0; 
  border-bottom: 1px solid var(--line); 
  align-items: center; 
}

.rule:last-child { 
  border-bottom: none; 
  padding-bottom: 0; 
}

.rule .ico { 
  font-size: 1.5rem; 
  width: 44px; 
  height: 44px; 
  flex-shrink: 0; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: var(--sand); 
  border-radius: 12px; 
  padding: 0; 
}

.rule p { 
  margin: 0; 
  font-size: 0.95rem; 
  color: rgba(44, 62, 80, 0.8); 
}

.rule b { 
  font-weight: 700; 
  color: var(--navy); 
}

/* ==========================================================================
   CONTACT CARD & SOCIAL ICONS
   ========================================================================== */
.contact-card { 
  text-align: center; 
}

.contact-card h2 { 
  font-size: 1.3rem; 
  margin-bottom: 12px; 
  color: var(--navy); 
}

.contact-card p { 
  font-size: 0.95rem; 
  color: rgba(44, 62, 80, 0.8); 
  max-width: 420px; 
  margin: 0 auto 24px; 
}

.contact-card .hours { 
  margin-top: 16px; 
  font-size: 0.85rem; 
  color: rgba(30, 76, 97, 0.6); 
  font-weight: 700; 
}

.social-icons { 
  display: flex; 
  justify-content: center; 
  gap: 12px; 
}

.social-icons a {
  display: flex; 
  align-items: center; 
  justify-content: center;
  width: 40px; 
  height: 40px;
  background: var(--coral);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s;
}

.social-icons svg { 
  width: 20px; 
  height: 20px; 
  fill: currentColor; 
  stroke: none; 
}

/* ==========================================================================
   EXPIRED RESERVATION SCREEN
   ========================================================================== */
.expired-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  background-color: var(--sand);
  background-image: url('../assets/footer-bg.svg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.expired-overlay { 
  position: absolute; 
  inset: 0; 
  background: rgba(248, 249, 250, 0.4); 
  z-index: 1; 
}

.expired-content {
  background: var(--paper);
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 440px;
  width: 100%;
  position: relative;
  z-index: 2;
  border-top: 4px solid var(--coral);
  text-align: center;
}