/* ===========================
   Global Styles
   =========================== */
:root {
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --text-color: #e0e0e0;
  --muted-text: #a0a0a0;
  --accent: #ff6f00;      /* orange accent */
  --accent-hover: #ff9100;
  --primary: #2979ff;     /* blue accent */
  --primary-hover: #5393ff;
  --border-radius: 10px;
  --transition: 0.2s ease-in-out;
  --shadow: 0 2px 10px rgba(0,0,0,0.6);
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* ===========================
   Container & Layout
   =========================== */
.container {
  width: 90%;
  max-width: 5000px;
  margin: 20px auto;
}

/* ===========================
   Headings
   =========================== */
h1, h2, h3 {
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

/* ===========================
   Listings Grid
   =========================== */
.listings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.listing-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 15px;
  width: 240px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.listing-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 10px;
}

.listing-card h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.listing-card .city {
  font-size: 0.9rem;
  color: var(--muted-text);
  margin-bottom: 10px;
}

.listing-card p {
  font-size: 0.85rem;
  color: var(--text-color);
  margin-bottom: 10px;
}

.listing-card .btn {
  display: inline-block;
  padding: 8px 12px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  transition: background var(--transition);
}

.listing-card .btn:hover {
  background: var(--primary-hover);
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: var(--border-radius);
  font-weight: bold;
}

.boosted {
  border: 2px solid var(--accent);
}

/* ===========================
   Navbar
   =========================== */
.navbar {
  background: #1c1c1c;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
}

.navbar a {
  color: var(--text-color);
  margin: 0 10px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.navbar a:hover {
  color: var(--accent);
}

/* ===========================
   Footer
   =========================== */
footer {
  background: #1c1c1c;
  color: var(--muted-text);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.85rem;
}

/* ===========================
   Forms
   =========================== */
form input, form textarea, form select {
  width: 100%;
  max-width: 400px;
  margin: 10px 0;
  padding: 10px;
  border-radius: var(--border-radius);
  border: 1px solid #333;
  background: #2a2a2a;
  color: var(--text-color);
}

form button {
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background var(--transition);
}

form button:hover {
  background: var(--accent-hover);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
  .listings-grid {
    justify-content: center;
  }
  .listing-card {
    width: 90%;
  }
}
/* Listing detail page */
.listing-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.listing-header {
  position: relative;
}

.listing-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.listing-gallery img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.listing-info h2 {
  margin-top: 20px;
  color: #fff;
  border-bottom: 1px solid #333;
  padding-bottom: 4px;
}

.services {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.services li {
  background: var(--card-bg);
  border: 1px solid #333;
  padding: 6px 10px;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  color: var(--text-color);
}
/* Listing detail layout */
.listing-detail {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.listing-header { position: relative; }

.badges { display:flex; gap:10px; margin-top:10px; }
.badge {
  padding: 4px 8px;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: bold;
}
.boosted-badge { background: var(--accent); color:#fff; }
.featured-badge { background: #2979ff; color:#fff; }
.verified-badge { background: #2ecc71; color:#fff; }

.pricing { font-size: 1rem; }

.listing-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.listing-gallery img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.listing-video .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.listing-video .video-wrapper iframe {
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  border-radius: var(--border-radius);
}

.services {
  list-style:none;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.services li {
  background: var(--card-bg);
  border:1px solid #333;
  padding:6px 10px;
  border-radius: var(--border-radius);
  font-size:0.9rem;
}

.social-links a {
  display:inline-block;
  margin-right:12px;
  color: var(--primary);
  text-decoration:none;
  transition: color var(--transition);
}
.social-links a:hover { color: var(--accent); }
.ad-text {
  margin: 20px 0;
  padding: 15px;
  background: #1e1e1e;
  border-left: 4px solid var(--accent);
  border-radius: var(--border-radius);
}
.state-disclaimer {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted-text);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 6px 20px;
  max-height: 400px;
  overflow-y: auto;
  background: #1e1e1e;
  padding: 10px;
  border-radius: var(--border-radius);
}
.services-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.services-list li {
  background: var(--card-bg);
  padding: 6px 10px;
  border-radius: var(--border-radius);
  font-size: 0.85rem;
}
.ad-text {
  margin: 20px 0;
  padding: 15px;
  background: #1e1e1e;
  border-left: 4px solid var(--accent);
  border-radius: var(--border-radius);
}
.state-disclaimer {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted-text);
}

.extra-details ul {
  list-style: none;
  padding: 0;
}
.extra-details li {
  margin: 4px 0;
}

.listing-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.listing-gallery img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.listing-video .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.listing-video .video-wrapper iframe {
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  border-radius: var(--border-radius);
}

.services-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.services-list li {
  background: var(--card-bg);
  padding: 6px 10px;
  border-radius: var(--border-radius);
  font-size: 0.85rem;
}
.listings-page {
  display: flex;
  gap: 20px;
}

.filters {
  width: 250px;
  background: #1e1e1e;
  padding: 15px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.filters h2 {
  margin-top: 0;
}

.filters label {
  display: block;
  margin: 10px 0 4px;
  font-size: 0.9rem;
  color: var(--muted-text);
}

.filters select,
.filters button {
  width: 100%;
  margin-bottom: 12px;
}

.listings-results {
  flex-grow: 1;
}

.listings-results h1 {
  margin-bottom: 20px;
}
.pagination {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.pagination a {
  background: var(--primary);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--border-radius);
  text-decoration: none;
}
.pagination a:hover {
  background: var(--primary-hover);
}
.pagination span {
  color: var(--text-color);
}
.login-box, .register-box, .reset-box, .box {
  width: 420px;           /* was ~340px */
  padding: 2.5rem;        /* a little more breathing room */
  background: #1e1e1e;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.7);
}

.login-box input,
.register-box input,
.reset-box input,
.box input {
  font-size: 16px;        /* slightly bigger font */
  padding: 14px;          /* taller inputs */
}

.login-box button,
.register-box button,
.reset-box button,
.box button {
  font-size: 16px;
  padding: 14px;
  border-radius: 14px;
}
