/*
  trip2lisbon — production stylesheet
  v3.0.0 multilingual guest experience

  Visual baseline: v2.0.38 FINAL.
  Historical overrides and unused selectors were removed conservatively.
*/

:root {
  color-scheme: light dark;
  --danger: #a93838;
  --radius: 22px;
}

html[data-theme="dark"] {
  --danger: #ff8e8e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.shell {
  width: min(100% - 28px, 720px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0 12px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
}

.hero {
  padding: 28px 0 18px;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 9vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.guest h1 {
  font-size: clamp(2rem, 10vw, 3.65rem);
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.55;
  max-width: 37rem;
  margin: 16px 0 0;
}

.section {
  margin: 30px 0;
}

.section-title {
  margin: 0 0 12px;
  font-size: 1.18rem;
  letter-spacing: -.02em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.card + .card {
  margin-top: 12px;
}

.card-body {
  padding: 18px;
}

.card-label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.card-value {
  font-size: 1.12rem;
  font-weight: 760;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.card-note {
  color: var(--muted);
  line-height: 1.5;
  margin: 6px 0 0;
}

.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border-radius: 13px;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: var(--surface-solid);
  color: var(--text);
  font: inherit;
  font-size: .9rem;
  font-weight: 730;
  text-decoration: none;
  cursor: pointer;
}

.nearby-list {
  display: grid;
  gap: 10px;
}

.place {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.place-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  font-size: 1.1rem;
}

.place-title {
  font-weight: 740;
  line-height: 1.25;
}

.place-sub {
  color: var(--muted);
  font-size: .83rem;
}

.chev {
  color: var(--muted);
  font-size: 1.2rem;
}

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion details:last-child {
  border-bottom: 0;
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 18px;
  font-weight: 740;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  color: var(--muted);
  font-size: 1.15rem;
}

.accordion details[open] summary::after {
  content: "−";
}

.details-content {
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.55;
}

.details-content a {
  color: var(--accent-strong);
  font-weight: 700;
}

.public-home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.public-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 28px 0 60px;
}

.public-panel {
  width: 100%;
  padding: clamp(24px, 7vw, 52px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.public-panel h1 {
  max-width: 620px;
}

.footer {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
  text-align: center;
  padding: 22px 0 92px;
}

.public-home .footer {
  padding-bottom: 28px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.footer a {
  color: var(--muted);
}

.sticky-contact {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 20;
  width: min(calc(100% - 28px), 692px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  border-radius: 17px;
  box-shadow: 0 14px 36px rgba(0,0,0,.2);
  text-decoration: none;
  font-weight: 780;
}

html[data-theme="dark"] .sticky-contact {
  color: #0e1712;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 78px;
  transform: translate(-50%, 10px);
  background: var(--text);
  color: var(--bg);
  border-radius: 99px;
  padding: 9px 14px;
  font-size: .82rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 30;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

:root {
  --bg: #f7f5fb;
  --surface: rgba(255,255,255,.90);
  --surface-solid: #ffffff;
  --text: #2d1852;
  --muted: #6f6580;
  --line: #e2ddec;
  --accent: #482c79;
  --accent-soft: #eee8f7;
  --accent-strong: #2d1852;
  --shadow: 0 14px 38px rgba(45,24,82,.10);
}

html[data-theme="dark"] {
  --bg: #120c1d;
  --surface: rgba(31,21,47,.92);
  --surface-solid: #211630;
  --text: #f7f2ff;
  --muted: #b9adc9;
  --line: #3c2c51;
  --accent: #8d70be;
  --accent-soft: #2f2047;
  --accent-strong: #cdb8ee;
  --shadow: 0 14px 38px rgba(0,0,0,.30);
}

body {
  background: radial-gradient(circle at 90% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 28rem),
    var(--bg);
}

.guest-hero {
  padding-bottom: 14px;
}

.wifi-hero {
  margin: 8px 0 22px;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(145deg, #2d1852, #482c79);
  color: #fff;
  box-shadow: 0 18px 42px rgba(45,24,82,.24);
}

.wifi-copy {
  text-align: center;
}

.wifi-kicker {
  display: inline-block;
  margin-bottom: 7px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .86;
}

.wifi-copy h2 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -.035em;
}

.wifi-copy p {
  margin: 8px auto 17px;
  max-width: 28rem;
  color: rgba(255,255,255,.78);
  line-height: 1.45;
  font-size: .93rem;
}

.wifi-qr-wrap {
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
}

.wifi-password {
  display: grid;
  gap: 5px;
  text-align: center;
}

.wifi-password > span {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .7;
  font-weight: 800;
}

.wifi-password strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.wifi-password .btn {
  margin: 10px auto 0;
  background: #fff;
  border-color: #fff;
  color: #2d1852;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

html[data-theme="dark"] .btn.primary {
  color: #fff;
}

@media (min-width: 560px) {
  .wifi-hero {
    padding: 28px;
  }

  .wifi-qr-wrap {
    width: 310px;
  }
}

.guest-header {
  position: relative;
  padding-top: 16px;
  display: block;
}

.guest-header .theme-toggle {
  position: absolute;
  right: 0;
  top: 18px;
  z-index: 2;
}

.brand-hero {
  width: 100%;
  margin: 0 auto;
}

.brand-hero img {
  display: block;
  width: 100%;
  object-fit: contain;
}

.compact-hero {
  padding-top: 8px;
}

.compact-hero h1 {
  font-size: clamp(2rem, 9vw, 3.45rem);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

.mini-info {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  text-decoration: none;
  text-align: left;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  font: inherit;
}

.mini-info > span {
  font-size: 1.45rem;
  margin-bottom: 3px;
}

.mini-info strong {
  font-size: .98rem;
}

.mini-info small {
  color: var(--muted);
  line-height: 1.35;
  font-size: .79rem;
}

.emergency-mini {
  border-color: color-mix(in srgb, var(--danger) 28%, var(--line));
}

.parking-card .card-body {
  grid-template-columns: 52px 1fr;
}

.parking-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--accent-soft);
}

.section-intro {
  color: var(--muted);
  line-height: 1.5;
  font-size: .88rem;
}

.section-footnote {
  color: var(--muted);
  line-height: 1.5;
}

.section-intro {
  margin: -4px 0 13px;
}

.section-footnote {
  margin: 10px 4px 0;
  font-size: .76rem;
}

.video-grid {
  display: grid;
  gap: 12px;
}

.video-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 13px;
  align-items: center;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  overflow: hidden;
}

.video-card img {
  width: 120px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
}

.video-card span {
  min-width: 0;
}

.video-card strong {
  display: block;
  font-size: .91rem;
  line-height: 1.3;
}

.video-card small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-size: .78rem;
}

.checkout-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(145deg,#2d1852,#482c79);
  color: white;
  box-shadow: 0 18px 42px rgba(45,24,82,.24);
}

.checkout-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.12);
  font-size: 1.5rem;
}

.checkout-card .card-label {
  color: rgba(255,255,255,.65);
}

.checkout-card h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.checkout-card p {
  margin: 0 0 10px;
  color: rgba(255,255,255,.82);
  line-height: 1.5;
}

.checkout-card .btn {
  margin-top: 4px;
  background: #fff;
  border-color: #fff;
  color: #2d1852;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12,8,18,.72);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(calc(100% - 28px),820px);
  max-height: 88vh;
  overflow: auto;
  padding: 22px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0,0,0,.38);
}

.modal-panel h2 {
  margin: 0 42px 6px 0;
}

.modal-panel p {
  color: var(--muted);
  margin: 0 0 14px;
}

.modal-panel img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.public-header {
  position: relative;
  min-height: 72px;
}

.public-header .theme-toggle {
  position: absolute;
  right: 0;
  top: 18px;
}

.public-panel-brand {
  padding-top: clamp(18px,4vw,32px);
}

.public-logo {
  display: block;
  width: min(100%,430px);
  max-height: 195px;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto 18px;
}

@media (min-width:600px) {
  .brand-hero {
    padding-right: 0;
  }

  .info-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .video-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .video-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .video-card img {
    width: 100%;
  }
}

@media (max-width:420px) {
  .mini-info {
    min-height: 118px;
    padding: 14px;
  }

  .video-card {
    grid-template-columns: 104px 1fr;
  }

  .video-card img {
    width: 104px;
  }

  .checkout-card {
    grid-template-columns: 1fr;
  }
}

.brand-hero {
  max-width: 500px;
  padding: 4px 54px 0;
  text-align: center;
}

.brand-hero img {
  max-height: 155px;
  object-position: center center;
  margin: 0 auto;
}

.wifi-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 2px;
}

.wifi-credentials > div {
  min-width: 0;
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}

.wifi-credentials span {
  display: block;
  font-size: .70rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .68;
  font-weight: 800;
}

.wifi-credentials strong {
  display: block;
  margin-top: 4px;
  font-size: .94rem;
  overflow-wrap: anywhere;
}

.transport-card .card-body {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
}

.transport-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--accent-soft);
}

@media (min-width:600px) {
  .brand-hero img {
    max-height: 175px;
  }
}

@media (max-width:420px) {
  .brand-hero {
    padding-left: 46px;
    padding-right: 46px;
  }

  .brand-hero img {
    max-height: 125px;
  }

  .wifi-credentials {
    grid-template-columns: 1fr;
  }

  .transport-card .card-body {
    grid-template-columns: 1fr;
  }
}

.place-title,
.place-sub {
  display: block;
}

.place-sub {
  margin-top: 5px;
  line-height: 1.45;
}

.place-sub b {
  display: inline-block;
  margin-bottom: 3px;
}

.guest .compact-hero h1 {
  max-width: 12ch;
}

@media (max-width:420px) {
  .place {
    grid-template-columns: 40px minmax(0,1fr) auto;
    gap: 10px;
  }

  .place-sub {
    font-size: .80rem;
  }
}

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px 0 64px;
}

.error-card {
  width: 100%;
  text-align: center;
  padding: clamp(26px,7vw,52px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.error-logo {
  display: block;
  width: min(100%,430px);
  max-height: 190px;
  object-fit: contain;
  margin: 0 auto 18px;
}

.error-code {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.error-card h1 {
  font-size: clamp(2rem,8vw,3.4rem);
}

.error-card p {
  max-width: 34rem;
  margin: 16px auto 0;
  color: var(--muted);
  line-height: 1.55;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.pin-locked {
  min-height: 100vh;
  overflow: hidden;
}

.pin-locked > :not(.pin-gate):not(script) {
  display: none !important;
}

.pin-gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
}

.pin-card {
  width: min(100%,460px);
  padding: clamp(24px,6vw,38px);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.pin-logo {
  display: block;
  width: min(100%,330px);
  max-height: 145px;
  object-fit: contain;
  margin: 0 auto 18px;
}

.pin-card h1 {
  margin: 5px 0 10px;
  font-size: clamp(1.65rem,7vw,2.35rem);
  letter-spacing: -.035em;
}

.pin-copy {
  max-width: 22rem;
  margin: 0 auto 20px;
  color: var(--muted);
  line-height: 1.5;
}

.pin-form {
  display: grid;
  gap: 10px;
}

.pin-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  text-align: center;
  font: 700 1.2rem/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing: .12em;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: none;
}

.pin-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.pin-form input[aria-invalid="true"] {
  border-color: var(--danger);
}

.pin-form .btn {
  min-height: 52px;
}

.pin-error {
  min-height: 1.25em;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: .86rem;
  font-weight: 650;
}

.home-second-line {
  margin-top: 8px;
  font-weight: 650;
}

.booking-grid {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.booking-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.booking-card h2 {
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: -.02em;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

@media (min-width:680px) {
  .booking-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

.pin-gate[hidden] {
  display: none !important;
}

@media (max-width:599px) {
  .public-logo {
    width: min(88%,340px);
    max-height: 155px;
    margin-bottom: 14px;
  }
}

.wifi-qr-wrap {
  width: min(100%, 205px);
  border: 0;
  cursor: pointer;
  position: relative;
  font: inherit;
}

.wifi-qr-button {
  display: block;
}

.qr-modal-panel {
  width: min(calc(100% - 28px),520px);
  text-align: center;
}

@media (min-width:560px) {
  .stay-cards {
    grid-template-columns: minmax(0,1.35fr) minmax(0,.85fr);
    align-items: stretch;
  }

  .stay-cards .card {
    height: 100%;
  }

  .stay-cards .card + .card {
    margin-top: 0;
  }
}

@media (min-width:560px) {
  .wifi-qr-wrap {
    width: 220px;
  }
}

.house-rules-list {
  margin: 0;
  padding-left: 1.25rem;
}

.house-rules-list li {
  margin: 0 0 1rem;
  line-height: 1.55;
}

.house-rules-list li:last-child {
  margin-bottom: 0;
}

.house-rules-list strong {
  color: var(--text);
}

.wifi-hero {
  padding-bottom: 1.15rem;
}

.wifi-compact {
  display: grid;
  grid-template-columns: 168px 250px;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.95rem;
}

.wifi-compact .wifi-qr-column {
  width: 168px;
  max-width: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wifi-compact .wifi-qr-wrap {
  box-sizing: border-box;
  width: 168px;
  max-width: 168px;
  margin: 0;
  padding: 7px !important;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #FFFFFF;
  align-self: center;
}

.wifi-compact .wifi-details {
  min-width: 0;
  width: 250px;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.wifi-compact .wifi-credentials {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  margin: 0;
}

.wifi-compact .wifi-credentials > div {
  box-sizing: border-box;
  width: 250px;
  margin: 0;
  padding: 0.5rem 0.72rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
}

.wifi-compact .wifi-credentials span {
  display: block;
  margin-bottom: 0.06rem;
  font-size: 0.68rem;
  line-height: 1.1;
}

.wifi-compact .wifi-credentials strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.wifi-compact .btn {
  width: auto;
  min-width: 0;
  align-self: center;
  justify-content: center;
  margin: 0.04rem 0 0;
  padding: 0.5rem 0.95rem;
  font-size: 0.88rem;
}

.stay-cards {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1rem;
}

.stay-cards > .card {
  width: 100%;
  min-width: 0;
}

.sticky-contact,
a[href*="wa.me"],
a[href*="whatsapp.com"] {
  background: #3B82F6 !important;
  border-color: #3B82F6 !important;
  color: #FFFFFF !important;
}

.sticky-contact:hover,
a[href*="wa.me"]:hover,
a[href*="whatsapp.com"]:hover {
  background: #2563EB !important;
  border-color: #2563EB !important;
  color: #FFFFFF !important;
}

@media (max-width: 600px) {
  .wifi-compact {
    grid-template-columns: 142px minmax(0, 230px);
    gap: 1.35rem;
  }

  .wifi-compact .wifi-qr-column {
    width: 142px;
    max-width: 142px;
  }

  .wifi-compact .wifi-qr-wrap {
    width: 142px;
    max-width: 142px;
    padding: 6px 6px 4px !important;
    border-radius: 16px;
  }

  .wifi-compact .wifi-details,
  .wifi-compact .wifi-credentials > div {
    width: 100%;
    max-width: 230px;
  }
}

@media (max-width: 460px) {
  .wifi-compact {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 1rem;
    justify-content: stretch;
  }

  .wifi-compact .wifi-qr-column {
    width: 120px;
    max-width: 120px;
  }

  .wifi-compact .wifi-qr-wrap {
    width: 120px;
    max-width: 120px;
    padding: 5px 5px 3px !important;
  }

  .wifi-compact .wifi-details {
    max-width: none;
  }
}

@media (max-width: 360px) {
  .wifi-compact {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 0.8rem;
  }

  .wifi-compact .wifi-qr-column {
    width: 104px;
    max-width: 104px;
  }

  .wifi-compact .wifi-qr-wrap {
    width: 104px;
    max-width: 104px;
    padding: 4px 4px 2px !important;
  }
}

.wifi-compact .wifi-enlarge-label {
  position: static !important;
  display: block;
  width: 100%;
  margin: 0.5rem 0 0;
  padding: 0;
  transform: none !important;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: rgba(255,255,255,0.88);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 460px) {
  .wifi-compact .wifi-enlarge-label {
    font-size: 0.66rem;
  }
}

.public-panel-brand h1 {
  font-size: clamp(1.65rem, 5vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.wifi-compact,
.wifi-details,
.wifi-password {
  border-top: 0 !important;
}

.wifi-compact::before,
.wifi-details::before,
.wifi-password::before {
  content: none !important;
  display: none !important;
}

.wifi-compact .wifi-password {
  border: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.wifi-compact .wifi-password::before,
.wifi-compact .wifi-password::after,
.wifi-compact .wifi-credentials::before,
.wifi-compact .wifi-credentials::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
}

.parking-card .card-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.65rem !important;
}

.parking-card .parking-icon {
  margin: 0 !important;
  align-self: flex-start !important;
}

.booking-grid-final {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  box-sizing: border-box;
  margin-top: 30px;
}

.booking-grid-final > .booking-card {
  width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
}

.booking-airbnb-full {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 72px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  text-align: center;
}

.booking-airbnb-full:hover {
  border-color: var(--accent);
  background: var(--soft);
  color: var(--text);
}

@media (max-width: 520px) {
  .booking-grid-final {
    grid-template-columns: 1fr !important;
  }

  .booking-airbnb-full {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.award-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.42rem 0.66rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.award-badge:hover {
  border-color: var(--accent);
  background: var(--soft);
}

.award-year {
  font-size: 0.76rem;
  opacity: 0.72;
}

.award-score {
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .guest-title-row {
    gap: 0.7rem;
  }

  .guest-title-row h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .award-badge {
    padding: 0.38rem 0.56rem;
    gap: 0.34rem;
  }

  .award-year {
    font-size: 0.70rem;
  }

  .award-score {
    font-size: 0.90rem;
  }
}

@media (max-width: 350px) {
  .guest-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

.guest-title-row {
  width: 100%;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.9rem !important;
}

.guest-title-row h1 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
}

.guest-title-row .award-badge {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  margin: 0 !important;
  font-family: inherit;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.guest-title-row .award-badge:hover {
  border-color: var(--accent);
}

@media (max-width: 520px) {
  .guest-title-row h1 {
    font-size: clamp(1.85rem, 8vw, 2.55rem) !important;
    line-height: 0.98 !important;
  }
}

@media (max-width: 340px) {
  .guest-title-row {
    flex-wrap: wrap;
  }

  .guest-title-row .award-badge {
    margin-left: auto !important;
  }
}

.wifi-qr-inline {
  display: block;
  width: 154px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  background: #fff;
}

.wifi-qr-inline svg,
.qr-modal-inline svg {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-modal-inline {
  width: min(72vw, 360px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  background: #fff;
}

.guest-title-row .award-badge {
  width: 66px !important;
  min-width: 66px !important;
  height: 58px;
  padding: 7px 8px !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #482c79 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(45, 24, 82, .16) !important;
}

.guest-title-row .award-badge:hover {
  background: #2d1852 !important;
}

.guest-title-row .award-year {
  display: block;
  font-size: .65rem !important;
  line-height: 1 !important;
  letter-spacing: .05em;
  opacity: .82 !important;
}

.guest-title-row .award-score {
  display: block;
  font-size: 1.18rem !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

.award-modal-panel {
  width: min(calc(100% - 28px), 430px) !important;
  max-height: 92vh;
  text-align: center;
}

.award-modal-panel .modal-close {
  background: rgba(255,255,255,.94);
  color: #2d1852;
}

.award-modal-image {
  max-height: calc(92vh - 28px) !important;
  object-fit: contain !important;
}

@media (max-width: 520px) {
  .guest-title-row .award-badge {
    width: 60px !important;
    min-width: 60px !important;
    height: 54px;
    padding: 6px !important;
  }

  .guest-title-row .award-score {
    font-size: 1.08rem !important;
  }

  .award-modal-panel {
    width: min(calc(100% - 22px), 390px) !important;
    padding: 10px !important;
  }
}

.booking-actions-with-award {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.booking-actions-with-award .booking-link {
  flex: 0 1 auto;
}

.home-award-badge {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1;
  cursor: pointer;
}

.booking-grid-final .btn,
.booking-airbnb-full,
.booking-actions-with-award .booking-link {
  font-family: inherit !important;
  font-size: 0.90rem !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

@media (max-width: 520px) {
  .booking-actions-with-award {
    gap: 0.5rem;
  }

  .home-award-badge {
    padding: 0.50rem 0.60rem;
    font-size: 0.82rem;
  }

  .booking-grid-final .btn,
  .booking-airbnb-full,
  .booking-actions-with-award .booking-link {
    font-size: 0.86rem !important;
  }
}

.booking-grid-final .btn,
.booking-airbnb-full,
.booking-actions-with-award .booking-link {
  font-weight: 500 !important;
}

.home-award-badge {
  background: #482c79 !important;
  border-color: #482c79 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}

.home-award-badge:hover {
  background: #2d1852 !important;
  border-color: #2d1852 !important;
  color: #ffffff !important;
}

.award-modal-panel {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.award-modal-image {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

#wifi-modal .qr-modal-inline {
  margin: 0 auto !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

.award-modal-panel .modal-close,
#wifi-modal .modal-close {
  z-index: 3;
}

#wifi-modal .modal-panel {
  padding: 16px !important;
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 60px rgba(20, 12, 40, .28) !important;
  overflow: hidden !important;
  color: #2d1852 !important;
}

#wifi-modal .modal-panel h2,
#wifi-modal .modal-panel p,
#wifi-modal .modal-panel strong,
#wifi-modal .modal-panel span {
  color: #2d1852 !important;
}

#wifi-modal .qr-modal-inline {
  background: #ffffff !important;
  border-radius: 12px !important;
}

#wifi-modal .modal-close {
  background: #f7f4fb !important;
  color: #2d1852 !important;
}

.stay-cards {
  align-items: stretch !important;
}

.stay-cards > .card,
.stay-cards > .card + .card {
  height: 100% !important;
  margin-top: 0 !important;
  box-sizing: border-box;
}

.stay-cards > .card > .card-body {
  min-height: 100%;
  box-sizing: border-box;
}

a.mini-info.emergency-mini {
  color: inherit;
  text-decoration: none;
}

/* v3.0.1 — shared language selector (guest pages only) */
.language-picker {
  position: relative;
  z-index: 20;
  display: inline-block;
  text-align: left;
}

.language-toggle {
  min-width: 68px;
  height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  font: 750 .82rem/1 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 190px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: 0 18px 46px rgba(25,16,45,.20);
}

.language-menu[hidden] { display: none !important; }

.language-option {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.language-option:hover,
.language-option:focus-visible { background: var(--accent-soft); outline: none; }
.language-option.is-selected { color: var(--accent-strong); font-weight: 800; background: var(--accent-soft); }
.language-option small { font-size: .70rem; opacity: .62; font-weight: 800; }

.guest-header > .language-picker {
  position: absolute;
  left: 0;
  top: 18px;
}

.pin-card { position: relative; }
.pin-language {
  display: flex;
  justify-content: flex-end;
  margin: -8px -8px 4px 0;
}

.pin-language .language-menu { right: 0; }
.guest-header > .language-picker .language-menu { left: 0; right: auto; }

@media (max-width:420px) {
  .language-toggle { min-width: 64px; padding: 0 10px; }
  .language-menu { width: 178px; }
  .pin-language { margin-top: -6px; }
}


/* v3.0.4 — clickable Electricity card cursor */
[data-modal-open="power-modal"] {
  cursor: pointer;
}


/* v4.0.1 — Botpress is initialized normally but hidden until PIN unlock */
body.pin-locked .bpFab,
body.pin-locked .bpWebchat,
body.pin-locked #bp-web-widget-container,
body.pin-locked [class*="bpFab"],
body.pin-locked [class*="bpWebchat"] {
  display: none !important;
}


/* v4.1.0 — custom launcher for Botpress Embedded Webchat */
.trip2lisbon-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  font-family: inherit;
}

body.pin-locked .trip2lisbon-chat {
  display: none !important;
}

.trip2lisbon-chat-launcher {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #482c79;
  color: #fff;
  box-shadow: 0 12px 30px rgba(45, 24, 82, .26);
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
}

.trip2lisbon-chat-launcher:hover {
  background: #2d1852;
}

.trip2lisbon-chat-launcher-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.trip2lisbon-chat-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: min(390px, calc(100vw - 28px));
  height: min(650px, calc(100vh - 110px));
  min-height: 420px;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(25, 14, 45, .28);
}

.trip2lisbon-chat-panel[hidden] {
  display: none !important;
}

.trip2lisbon-chat-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(72,44,121,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #2d1852;
  box-shadow: 0 4px 14px rgba(45,24,82,.10);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

#bp-embedded-webchat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* Botpress injects its iframe/content inside the configured container. */
#bp-embedded-webchat iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

@media (max-width: 520px) {
  .trip2lisbon-chat {
    right: 12px;
    bottom: 12px;
  }

  .trip2lisbon-chat-launcher {
    min-height: 46px;
    padding: 0 14px;
  }

  .trip2lisbon-chat-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 70px;
    width: auto;
    height: min(72vh, 650px);
    min-height: 400px;
    border-radius: 18px;
  }
}


/* v4.1.2 — compact unified contact bar
   Total width remains exactly the former WhatsApp button width. */
.bottom-contact-bar {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 20;
  width: min(calc(100% - 28px), 692px);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(54px, 1fr);
  gap: 8px;
  align-items: stretch;
}

body.pin-locked .bottom-contact-bar {
  display: none !important;
}

/* WhatsApp is no longer independently fixed; it occupies the 80% cell. */
.bottom-contact-bar .sticky-contact {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  margin: 0 !important;
  box-sizing: border-box;
}

/* Chat occupies the compact 20% cell. */
.bottom-contact-bar .trip2lisbon-chat {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

.bottom-contact-bar .trip2lisbon-chat-launcher {
  width: 100% !important;
  height: 54px !important;
  min-height: 54px !important;
  padding: 0 !important;
  justify-content: center !important;
  gap: 0 !important;
  border-radius: 17px !important;
}

.bottom-contact-bar .trip2lisbon-chat-launcher-icon {
  font-size: 1.25rem !important;
  line-height: 1 !important;
}

/* Panel opens above the right side of the grouped controls. */
.bottom-contact-bar .trip2lisbon-chat-panel {
  right: 0 !important;
  bottom: 66px !important;
}

@media (max-width: 520px) {
  .bottom-contact-bar {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: min(calc(100% - 20px), 692px);
    grid-template-columns: minmax(0, 4fr) minmax(52px, 1fr);
    gap: 7px;
  }

  .bottom-contact-bar .sticky-contact,
  .bottom-contact-bar .trip2lisbon-chat-launcher {
    min-height: 52px !important;
    height: 52px !important;
  }

  .bottom-contact-bar .trip2lisbon-chat-panel {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 72px !important;
    width: auto !important;
  }
}
