/*
Theme Name: All Station Sales Child
Template: ass-theme-1
*/

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
  padding: 1rem;
}

/* Hero Section */

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem; /* Tight spacing between buttons and search */
}

.hero {
  text-align: center;
  padding: 2rem 2rem;
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: #fff;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}

.search-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
}

.search-hero {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(to right, #004d4d, #007777);
  color: white;
  border-radius: 8px;
  margin-top: 1.5rem;
}


.search-input-container {
  position: relative;
  z-index: 3; /* Above overlay */
  display: flex;
  justify-content: center;
  width: 100%;
}

.search-img {
  width: 100%;
  max-width: 600px;
  padding: 1rem 1rem 1rem 3.5rem; /* space for icon */
  font-size: 1.2rem;
  border-radius: 8px;
  border: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  background-image: url('img/icons/search-icon.png');
  background-repeat: no-repeat;
  background-size: 40px 40px;
  background-position: 16px center;
  transition: background-position 0.3s ease, box-shadow 0.3s ease;
}

/* On focus, icon rises */
.search-img:focus {
  background-position: 16px 30%;
  box-shadow: 0 0 12px rgba(0,0,0,0.3); /* optional highlight */
}

.search-wrapper.focused .search-img {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  transform: scale(1.02);
}

.search-wrapper.focused .overlay {
  opacity: 1;
  pointer-events: auto;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-wrapper.focused .overlay {
  opacity: 1;
  pointer-events: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background-color: #ff6f61;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: transform 0.2s ease;
}
.btn:hover {
  transform: scale(1.05);
}

/* Shimmer Effect */
.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% { left: -150%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.or-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: gold;
  color: #203a43;
  font-weight: bold;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 2;
}

/* How It Works */
.how-it-works {
  padding: 3rem 1rem;
  background-color: #fff;
}
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.step {
  flex: 1 1 250px;
  background: #eef2f3;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

/* Featured Listings */
.featured-listings {
  padding: 3rem 1rem;
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.listing-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1.5rem;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}
.listing-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.premium {
  border: 2px solid #ff6f61;
}

/* Why Us */
.why-us {
  padding: 3rem 1rem;
  background-color: #f0f0f0;
}
.why-us ul {
  list-style: none;
  padding-left: 0;
}
.why-us li {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

/* CTA Banner */
.cta-banner {
  text-align: center;
  padding: 3rem 1rem;
  background: #203a43;
  color: white;
}
.cta-banner .btn {
  margin: 0.5rem;
  background-color: #ff6f61;
}

/* Footer */
footer {
  padding: 2rem 1rem;
  background-color: #222;
  color: #ccc;
  text-align: center;
}
footer nav a {
  margin: 0 1rem;
  color: #ccc;
  text-decoration: none;
}
footer .social-icons a {
  margin: 0 0.5rem;
  color: #ccc;
}
.trust-badge {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #aaa;
}
/* Minimal Search Bar (search.php) */
.search-bar-top {
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  text-align: center;
}
.search-bar-top input {
  font-size: 1.1rem;
  padding: 0.8rem;
  border-radius: 6px;
  width: 100%;
  max-width: 500px;
}
.results-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.result-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.2s ease;
}

.result-card:hover {
  transform: scale(1.02);
}

.feature-card {
  grid-column: 1 / -1;
  background: #f9f9f9;
  border-left: 6px solid #0077cc;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}