/* Shared auth UI: nav + booking gate modal */

.parkbnb-auth-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
  flex-wrap: wrap;
}

.parkbnb-auth-nav-user {
  font-size: 14px;
  font-weight: 500;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parkbnb-auth-nav-in,
.parkbnb-auth-nav-out {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: inherit;
  transition: opacity 0.2s, background 0.2s;
}

/* Gradient / dark headers (listing, checkout): light controls */
.parkbnb-auth-nav-in {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.parkbnb-auth-nav-in:hover {
  background: rgba(255, 255, 255, 0.35);
}

.parkbnb-auth-nav-user {
  color: rgba(255, 255, 255, 0.95);
}

.parkbnb-auth-nav-out {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.parkbnb-auth-nav-out:hover {
  background: rgba(255, 255, 255, 0.32);
}

/* White surface header (home, search): add class header--light on <header> */
.header--light .parkbnb-auth-nav-user {
  color: #333;
}

.header--light .parkbnb-auth-nav-in {
  background: #f0f0f5;
  color: #1a1a1a;
}

.header--light .parkbnb-auth-nav-in:hover {
  background: #e5e5eb;
}

.header--light .parkbnb-auth-nav-out {
  background: #e9ecef;
  color: #333;
}

.header--light .parkbnb-auth-nav-out:hover {
  background: #dee2e6;
}

.parkbnb-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 15, 25, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: parkbnb-auth-fade 0.2s ease;
}

@keyframes parkbnb-auth-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.parkbnb-auth-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  padding: 28px 24px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  position: relative;
}

.parkbnb-auth-modal h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
  line-height: 1.3;
}

.parkbnb-auth-modal .parkbnb-auth-sub {
  font-size: 15px;
  color: #555;
  margin: 0 0 22px;
  line-height: 1.5;
}

.parkbnb-auth-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f3f5;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #495057;
}

.parkbnb-auth-close:hover {
  background: #e9ecef;
}

.parkbnb-auth-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid #dadce0;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  color: #3c4043;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, background 0.2s;
}

.parkbnb-auth-google:hover:not(:disabled) {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #f8f9fa;
}

.parkbnb-auth-google:disabled {
  opacity: 0.6;
  cursor: wait;
}

.parkbnb-auth-divider {
  text-align: center;
  font-size: 13px;
  color: #868e96;
  margin: 0 0 16px;
  position: relative;
}

.parkbnb-auth-divider::before,
.parkbnb-auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: #dee2e6;
}

.parkbnb-auth-divider::before { left: 0; }
.parkbnb-auth-divider::after { right: 0; }

.parkbnb-auth-downloads {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.parkbnb-auth-downloads a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.parkbnb-auth-downloads .parkbnb-ios {
  background: #000;
  color: #fff;
}

.parkbnb-auth-downloads .parkbnb-android {
  background: #01875f;
  color: #fff;
}

.parkbnb-auth-downloads a:hover {
  opacity: 0.92;
}
