@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: "Poppins", sans-serif;
  color: #222;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  overflow-x: hidden;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

/* Main Container */
#container {
  width: 90%;
  max-width: 420px;
  min-height: 70%;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 1.2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Search Box */
#search-box {
  width: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
}

#search-logo {
  width: 2.5rem;
  height: 2.5rem;
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 0.6rem;
  border-bottom-left-radius: 0.6rem;
}

#lens {
  font-size: 1rem;
}

#search-place {
  flex: 1;
  height: 2.5rem;
  border: none;
  background: #222;
  color: #fff;
  font-size: 1rem;
  border-top-right-radius: 0.6rem;
  border-bottom-right-radius: 0.6rem;
  padding: 0 0.8rem;
  outline: none;
  transition: background 0.3s;
}

#search-place:focus {
  background: #333;
}

/* Weather Section */
#weather {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  text-align: center;
  row-gap: 1.5rem;
}

#details-1 h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

#details-2 {
  font-size: 1rem;
  color: #333;
}

#image img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
}

/* Other Properties Grid */
#other-properties {
  background: rgba(255, 255, 255, 0.85);
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.property {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border-radius: 0.6rem;
  padding: 0.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.property:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.imgs {
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prop p:first-child {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
}

.prop p:last-child {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
}

/* Headings & Misc */
h3 {
  font-weight: 600;
}

#presentContions {
  background-color: #252525;
  border-radius: 1rem;
  padding: 1rem;
  color: #fff;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  #container {
    max-width: 95%;
  }

  #search-place {
    font-size: 0.95rem;
  }

  #details-1 h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 420px) {
  #container {
    border-radius: 0.8rem;
  }

  #search-logo {
    width: 2rem;
    height: 2rem;
  }

  #search-place {
    font-size: 0.85rem;
    height: 2rem;
  }

  #weather {
    row-gap: 1rem;
    padding: 1rem;
  }

  #image img {
    width: 3.5rem;
    height: 3.5rem;
  }

  #other-properties {
    grid-template-columns: 1fr;
  }

  .property {
    padding: 0.6rem;
  }

  .prop p:first-child {
    font-size: 0.8rem;
  }

  .prop p:last-child {
    font-size: 0.9rem;
  }
}
