body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
  width: 100%;
}

.screen {
  
  height: 100vh;
  width: 100%;
}


/* Splash */
#splash {
  background: #0d6652;
  color: #f7a60e;
}
#splash .logo {
  width: 100px;
  margin-bottom: 20px;
}

/* Explore */
#explore {
  background: url('assets/bg.jpg') no-repeat center/cover;
  color: white;
  text-align: center;
  padding: 20px;
}
#explore .overlay {
  background: rgba(0,0,0,0.5);
  padding: 20px;
  border-radius: 12px;
}
#explore button {
  margin-top: 15px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: #f7a60e;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

/* Map */
#map {
  flex-direction: column;
}
#map header {
  padding: 10px;
  background: white;
}
#map header input {
  flex: 1;
  max-width: 300px;
}
#map input {
  width: 90%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}
#map .map-placeholder {
  flex: 1;
  background: #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
#map footer {
  padding: 10px;
  background: white;
}
.spot-card {
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 8px;
  border-radius: 8px;
}

#mapid {
  width: 100%;
  height: 300px; /* mobile */
}

@media (min-width: 768px) {
  #mapid {
    height: 100%; /* desktop */
  }
}

/* Grid layout for cards */
#spots {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (max-width: 768px) {
  #spots { grid-template-columns: 1fr; }
}
@media (min-width: 769px) {
  #spots { grid-template-columns: 1fr; } /* single column sidebar */
}

@media (min-width: 1024px) {
  #spots { grid-template-columns: 1fr; } /* keep cards wide */
}

.spot-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform .2s, box-shadow .2s;
}
.spot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.spot-card.highlight {
  border: 2px solid #f87171; /* red highlight */
  background: #fff5f5;
}


/* Spot cards grid */
#spots {
  display: grid;
  gap: 1rem;
}

/* Mobile: 1 column */
@media (max-width: 768px) {
  #spots { grid-template-columns: 1fr; }
}

/* Desktop: 2 columns in the sidebar */
@media (min-width: 769px) {
  #spots { grid-template-columns: repeat(2, 1fr); }
}

.spot-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform .2s, box-shadow .2s;
}

.spot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Auth */
#auth form, 
#addspot form {
  width: 100%;   /* let Tailwind handle grid width */
  max-width: none;
}

#auth input, #addspot input {
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
#auth button, #addspot button {
  margin-top: 12px;
  padding: 12px;
  background: #0d6652;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
