* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body{
  height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  /* background: url('https://plus.unsplash.com/premium_photo-1661883237884-263e8de8869b?w=1000&auto=format&fit=crop&q=100') no-repeat center center/cover; */
  /* background: url('https://images.unsplash.com/photo-1521917441209-e886f0404a7b') no-repeat center center/cover; */
  background: url('/restaurant.webp') no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  position: relative;
}

.dark-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

.container {
  flex: 1;
  position: relative;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  z-index: 5;
  justify-content: center;
}

.intro {
  display: flex;
  flex-direction: column;
  width: 80%;
  align-items: center;
}

.intro h1 {
  font-size: 3rem;
}


.finder-container {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  gap: 4px;
}

.finder-container .input {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  position: relative;
}

input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-weight: 500;
}

input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px #e26518;
}

.location {
  position: absolute;
  color: #e26518;
  right: 12px;
  top: 23%;
  font-size: 1.3rem;
}

.finder-container .label {
  display: flex;
  position: relative;
}

.finder-container .label label {
  font-size: 1.6rem;
  background-color: #e26518;
  padding: 4px 40px 4px 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.magnifier {
  position: absolute;
  right: 10px;
  top: 30%;
  font-size: 1.3rem;
}

/* Spinner */
.spinner-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #e26518;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fef3c7;
  color: #78350f;
  padding: 12px 24px;
  border-radius: 8px;
  display: none;
  z-index: 9999;
  font-weight: 600;
}

/* Map and Panel Layout */
.map-container {
  width: 100%;
  height: 400px;
  margin-top: 2rem;
  z-index: 10;
}

.map-panel {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 1rem;
}

.map {
  flex: 2;
  height: 100%;
  border-radius: 10px;
}

.restaurant-list {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  color: #222;
  border-radius: 10px;
  overflow-y: auto;
  padding: 1rem;
  max-height: 100%;
}

.restaurant-list h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #e26518;
}

.restaurant-list ul {
  list-style: none;
  padding: 0;
}

.restaurant-list li {
  padding: 10px;
  margin-bottom: 8px;
  background: #f5f5f5;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.restaurant-list li:hover {
  background: #f0dbbb;
}

footer {
  position: relative;
  width: 100%;
  text-align: center;
  color: white;
  padding: 1rem 0;
  /* background: rgba(0, 0, 0, 0.5); */
  /* backdrop-filter: blur(2px); */
  z-index: 5;
  font-weight: 600;
  font-size: 0.9rem;
}


@media screen and (max-width: 768px) {
  .container{
    overflow: hidden;
  }

  .intro h1{
    font-size: 2.2rem;
  }
  .finder-container {
    width: 85%;
  }

  .input input{
    font-size: 1rem;
    padding: 12px 30px 12px 10px;
  }

  .finder-container .label label{
    font-size: 1rem;
    padding: 4px 32px 4px 10px;
  }

  .location{
    /* font-size: 1rem; */
    right: 5px;
  }

  .magnifier{
    /* display: none; */
    top: 25%;
    font-size: 1rem;
    /* right: 5px; */
  }



  .map-panel {
    flex-direction: column;
  }

  .map, .restaurant-list {
    height: 300px;
  }
}
