html,
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f0f0f0;
  /* Removed background image, replaced with Google Maps iframe in body */
  padding: 0;
  display: flex;
  justify-content: center;
}

iframe {
  z-index: 0;
}

.map-fallback {
  background: url('etoda-maps.webp') no-repeat center center;
  background-size: cover;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.ride-card {
  display: flex;
  flex-direction: column;
  z-index: 2;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 16px;
  min-width: 320px;
  width: 90%;
  margin: 90px 16px 90px 16px;
  box-sizing: border-box;
}

.ride-card h2 {
  font-size: 18px;
  margin-bottom: 24px;
  color: #1E1E1E;
  font-weight: 500;
}

.input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  box-sizing: border-box;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.col1 {
  flex-basis: 100%;
}

.col2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.icon-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn,
.btn-icon {
  border: 1px solid transparent;
  /* prevents layout shift */
}

.btn {
  /* flex: 1 1 auto; */
  background-color: #e0e0e0;
  color: white;
  border: 1px solid transparent;
  /* prevents shift */
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}

.btn:hover {
  background-color: white;
  border: 1px solid #e0e0e0;
  color: #e0e0e0;
}

.btn:hover i {
  color: #e0e0e0;
}

.btn-icon {
  background-color: #fff;
  cursor: pointer;
  text-align: center;
  border: none;
  color: #C5C5C5;
}

.gray {
  color: #C5C5C5;
}

.btn.primary {
  background-color: #45a049;
}

.btn.primary:hover {
  background-color: white;
  border: 1px solid #45a049;
  color: #45a049;
}

.btn.primary:hover i {
  color: #45a049;
}

.btn i {
  margin-right: 4px;
}

.input-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 0px;
}

.input-wrapper .icon {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #C5C5C5;
  pointer-events: none;
}

.input-wrapper textarea.input {
  padding-left: 36px;
  padding-top: 12px;
  padding-bottom: 12px;
  width: calc(100% - 16px);
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
}

.tab-helpers {
  font-size: 14px;
  color: #6C6C6C;
  margin-bottom: 8px;
  display: block
}

.tab-container {
  margin-top: 24px;
  background-color: #f4f4f4;
  padding: 16px;
  border-radius: 8px;
}

.tab-container,
.tab-container input,
p,
.confirmed,
.pay-request {
  color: #6C6C6C;
}

.btn-icon.active {
  color: #45a049;
}

.btn-icon i.highlight-night {
  color: #ffd700 !important;
}

.ride-details-row {
  border-top: 1px solid #efefef;
  margin: 32px 0 24px 0;
}

.pay-container {
  border-right: 1px solid #efefef;
}

.btn-pink {
  background-color: #ff4081;
}

.btn-pink:hover {
  background-color: white;
  border: 1px solid #ff4081;
  color: #ff4081;
}

.btn-pink:hover i {
  color: #ff4081;
}

.btn-dark {
  background-color: #554B4E;
}

.btn-dark:hover {
  background-color: white;
  border: 1px solid #554B4E;
  color: #554B4E;
}

.btn-dark:hover i {
  color: #554B4E;
}

.confirmed {
  text-align: center;
}

hr {
  border-top: 1px #e8e8e8;
}

.rider-avatar,
.ride-confirmed {
  margin: 32px 0;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
}

.modal-actions button {
  margin: 0 8px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.pay-request {
  margin: -16px 0 24px 0;
}

.pay-request p {
  padding: 0 !important;
}

.btn-pink {
  text-decoration: none;
}
