:root{--bg:#f7f9fc;--panel:#fff;--text:#1b2430;--muted:#6b7280;--brand:#2ecc71;--brand-2:#27ae60;--chip:#eef3f9;--border:#e5e7eb;--shadow:0 6px 18px rgba(30,41,59,.08);--shadow-hover:0 10px 22px rgba(30,41,59,.12)}
*{box-sizing:border-box}html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,Segoe UI,Arial}
a{color:#111827;text-decoration:none}a:hover{color:var(--brand)}
.container{width:100%;max-width:1100px;margin:0 auto;padding:24px}
.site-header{position:sticky;top:0;background:rgba(255,255,255,.9);backdrop-filter:saturate(140%) blur(8px);border-bottom:1px solid var(--border);z-index:50}
.header-inner{display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:10px;font-weight:800}.logo{display:grid;place-items:center;background:linear-gradient(135deg,var(--brand),var(--brand-2));width:36px;height:36px;border-radius:10px;color:#fff}.logo.small{width:28px;height:28px;font-size:14px}
.nav a{margin:0 10px;font-weight:600;color:#374151}
.btn{padding:10px 14px;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;font-weight:700;border:none;border-radius:10px;cursor:pointer;box-shadow:var(--shadow)}.btn:hover{box-shadow:var(--shadow-hover);transform:translateY(-1px)}.btn.secondary{background:#111827;color:#fff}.btn.ghost{background:#fff;border:1px solid var(--border);color:#111827;box-shadow:none}
.hero{padding:60px 24px 40px;border-bottom:1px solid var(--border);background:radial-gradient(1000px 400px at 50% -200px,rgba(46,204,113,.18),transparent)}.hero h1{font-size:40px;margin:0 0 12px}.hero p{margin:0 auto 24px;max-width:650px;color:var(--muted)}
.searchbar{position:sticky;top:70px;z-index:40;display:grid;grid-template-columns:1fr auto auto;gap:10px;background:var(--panel);padding:12px;border:1px solid var(--border);border-radius:14px;max-width:780px;margin:0 auto;box-shadow:var(--shadow)}.searchbar input{background:#fff;border:1px solid var(--border);color:var(--text);padding:12px 12px;border-radius:10px;outline:none}.searchbar .btn{height:44px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:26px}
.card{border:1px solid var(--border);background:var(--panel);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;transition:transform .2s ease, box-shadow .2s ease;box-shadow:var(--shadow)}.card:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover)}
.card img{width:100%;height:180px;object-fit:cover;background:#eef2f7}.card .content{padding:14px;display:grid;gap:8px}
.badges{display:flex;flex-wrap:wrap;gap:8px}.badge{padding:6px 10px;background:var(--chip);border:1px solid var(--border);border-radius:999px;font-size:12px}
.row{display:grid;grid-template-columns:1fr 360px;gap:22px}.panel{border:1px solid var(--border);background:var(--panel);border-radius:16px;padding:16px;box-shadow:var(--shadow)}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:20px;margin-bottom:8px}.site-footer{border-top:1px solid var(--border);background:#fff}.muted{color:var(--muted)}.copyright{color:var(--muted);text-align:center;margin-top:12px}
.kv{display:grid;grid-template-columns:1fr 1fr;gap:10px}.kv div{background:#fff;border:1px solid var(--border);border-radius:10px;padding:10px}
.table{width:100%;border-collapse:collapse}.table th,.table td{padding:10px;border-bottom:1px solid var(--border);text-align:left}.table th{color:#6b7280;font-weight:600}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.view-toggle{display:flex;gap:8px;align-items:center}.view-toggle button{border:1px solid var(--border);background:#fff;color:#111827;border-radius:8px;padding:8px 10px;cursor:pointer}.view-toggle button.active{background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;border-color:transparent}
.pagination{display:flex;gap:8px;align-items:center;justify-content:center;margin:18px 0}
.list .card{flex-direction:row}.list .card img{width:220px;height:160px}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:20px}.feature{border:1px solid var(--border);background:var(--panel);border-radius:16px;padding:18px;box-shadow:var(--shadow)}.feature h3{margin:8px 0}.feature p{color:var(--muted)}
.filter-bar{display:grid;grid-template-columns:1fr auto auto auto auto auto auto auto;gap:10px;margin-bottom:18px;align-items:center}
.view-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.sidebar{margin-top:20px}
.post-hero img{border-radius:12px;margin-bottom:14px}
.post-meta{font-size:0.9rem;color:var(--muted);margin-bottom:16px}
@media (max-width: 960px){.grid{grid-template-columns:1fr 1fr}.row{grid-template-columns:1fr}.feature-grid{grid-template-columns:1fr}.filter-bar{grid-template-columns:1fr 1fr;position:sticky;top:86px;z-index:40}}
@media (max-width: 640px){.searchbar{grid-template-columns:1fr}.grid{grid-template-columns:1fr}.hero h1{font-size:30px}}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.card.small {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.card.small img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card.small .content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card.small .meta { font-size: 0.85rem; color: #666; }
.rating-distance { font-size: 0.85rem; display:flex; gap:8px; align-items:center; }
.badges { display:flex; flex-wrap:wrap; gap:4px; }
.badge {
  background:#f2f2f2;
  padding:2px 8px;
  font-size:0.75rem;
  border-radius:6px;
}
.btn-row { display:flex; gap:8px; margin-top:auto; }
/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 99;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.brand {
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  color: #111;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Desktop menu */
.nav .menu {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav .menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    display: none;
    flex-direction: column;
    padding: 12px 16px;
  }
  .nav.open {
    display: flex;
  }
  .nav .menu {
    flex-direction: column;
    gap: 12px;
  }
}


.hero {
  text-align:center;
  padding:40px 15px;
}
.hero h1 { font-size:clamp(1.8rem,4vw,2.5rem); }
.hero .highlight { color:var(--brand,#00833e); }

.searchbar {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-top:16px;
}
.searchbar input,
.searchbar select {
  padding:8px;
  min-width:150px;
}

.chips {
  margin-top:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
}
.chip {
  background:#f4f4f4;
  padding:4px 10px;
  border-radius:16px;
}

.featured-card {
  display:flex;
  flex-wrap:wrap;
  background:#fff;
  border:1px solid #eee;
  border-radius:12px;
  padding:16px;
  gap:16px;
}
.featured-card .img {
  flex:0 0 240px;
  height:160px;
  background:#fafafa;
  border-radius:8px;
}
.featured-card .info { flex:1; }
.featured-card .rating { margin-top:4px; font-weight:600; }
.featured-card .actions { margin-top:12px; display:flex; gap:10px; flex-wrap:wrap; }

.near-map {
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
  margin-top:40px;
}
.nearby h2,
.map-col h2 { margin-bottom:12px; }
.list-card {
  display:flex;
  align-items:center;
  padding:12px;
  margin-bottom:12px;
  background:#fff;
  border-radius:10px;
  box-shadow:0 1px 3px rgba(0,0,0,.05);
}
.list-card .thumb img {
  width:60px;
  height:60px;
  object-fit:cover;
  border-radius:6px;
}
.list-card .body {
  flex:1;
  padding:0 12px;
}
.list-card .price { font-weight:600; }
.list-card .cta { display:flex; flex-direction:column; gap:6px; }

.map-box {
  height:260px;
  background:#f7f7f7;
  border-radius:8px;
}

@media(min-width:768px){
  .near-map { grid-template-columns:2fr 1fr; }
}

.owner-box {
  margin:40px 0;
  padding:20px;
  background:#f9f9f9;
  text-align:center;
  border-radius:8px;
}

.testimonials { margin-top:30px; }
.testimonials .cards {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
}
.testimonials blockquote {
  background:#fff;
  padding:15px;
  border-radius:8px;
  box-shadow:0 1px 4px rgba(0,0,0,0.05);
}
.testimonials footer { margin-top:8px; color:#777; font-size:.9rem; }

.cta-box {
  text-align:center;
  background:#00833e;
  color:#fff;
  padding:30px 20px;
  border-radius:8px;
  margin-top:30px;
}
.featured {
  margin: 40px auto;
  padding: 0 1rem;
}

.featured h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
  font-weight: 600;
}

/* Container holds arrows + wrapper */
.featured-container {
  position: relative;
  max-width: 100%;
}

/* Arrows */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: opacity 0.3s ease;
}

.scroll-btn.prev { left: -14px; }
.scroll-btn.next { right: -14px; }

.scroll-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Wrapper (scroll area) */
.featured-wrapper {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 10px;

  /* Hide scrollbar */
  -ms-overflow-style: none;   /* IE/Edge */
  scrollbar-width: none;      /* Firefox */
}
.featured-wrapper::-webkit-scrollbar {
  display: none;              /* Chrome/Safari */
}

/* Cards */
.featured-card {
  flex: 0 0 260px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.featured-card:hover {
  transform: translateY(-3px);
}

.featured-card .img {
  height: 160px;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}
.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card .info { padding: 12px; }
.featured-card h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  font-weight: 600;
}
.featured-card .meta {
  font-size: 0.85rem;
  color: #555;
  margin: 4px 0 8px;
}
.featured-card .actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}
.featured-card .btn {
  font-size: 0.85rem;
  padding: 6px 12px;
}

/* Responsive */
@media (max-width: 1024px) {
  .featured-card { flex: 0 0 220px; }
}
@media (max-width: 768px) {
  .featured-card { flex: 0 0 60%; }
}
@media (max-width: 600px) {
  .featured-card { flex: 0 0 80%; }
  .scroll-btn { display: none; } /* hide arrows on small screens, allow swipe */
}

.near-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.list-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #eee;
  border-radius: 8px;
}
.list-card .thumb img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}
.list-card .body { flex: 1; }
.list-card .price,
.list-card .dist { display: block; font-size: 0.85rem; color: #555; }

@media (max-width:768px) {
  .near-map { grid-template-columns: 1fr; }
  #near-map-box { height: 300px; margin-top: 16px; }
}
.owner-box {
  margin: 40px auto;
  max-width: 900px;
  padding: 24px;
  background: linear-gradient(135deg, #f9f9ff 0%, #eef8ff 100%);
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.owner-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.owner-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.owner-content .icon {
  font-size: 2.4rem;
  flex-shrink: 0;
}

.owner-content .text {
  flex: 1;
}

.owner-content h3 {
  font-size: 1.3rem;
  margin: 0 0 4px;
  font-weight: 600;
}

.owner-content p {
  margin: 0;
  color: #555;
}

.owner-content .actions {
  flex-shrink: 0;
}

.owner-content .btn.primary {
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 6px;
  background: #28a745;
  color: #fff;
  border: none;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.owner-content .btn.primary:hover {
  background: #218838;
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .owner-content {
    flex-direction: column;
    text-align: center;
  }
  .owner-content .icon {
    font-size: 3rem;
    margin-bottom: 10px;
  }
}
.testimonials {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f8fbff 0%, #f2f7ff 100%);
  text-align: center;
}

.testimonials h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 30px;
}

.testimonial-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;

  /* hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }

.card {
  flex: 0 0 80%;
  max-width: 500px;
  margin: auto;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  scroll-snap-align: center;
  transition: transform 0.25s ease;
}
.card:hover { transform: translateY(-3px); }

.card p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 14px;
}
.card footer {
  font-weight: 600;
  color: #444;
}

/* Buttons */
.t-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #ddd;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.3s ease;
}
.t-btn:hover { background: #f0f0f0; }

.t-btn.prev { left: -18px; }
.t-btn.next { right: -18px; }

@media (max-width: 640px) {
  .card { flex: 0 0 90%; }
  .t-btn { display: none; } /* swipe on mobile */
}
.site-footer {
  background: #f8f9fa;
  padding: 40px 20px 20px;
  color: #333;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto 25px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: #555;
  margin: 4px 0;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #007bff;
}

.brand-col .brand {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.brand-col .muted {
  font-size: 0.9rem;
  color: #666;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #e5e5e5;
  padding-top: 12px;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
.how-it-works {
  background: #fff;
  padding: 10px 16px;   /* reduced from 60px 20px */
}

.how-it-works h2 {
  text-align: center;
  font-size: 1.6rem;     /* slightly smaller heading */
  font-weight: 600;
  margin-bottom: 28px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;             /* less gap */
  max-width: 880px;
  margin: 0 auto;
}

.step {
  background: #f9fafb;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px 14px;    /* smaller padding inside cards */
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
  transition: transform 0.25s ease;
}
.step:hover {
  transform: translateY(-2px);
}

.step .num {
  font-size: 1.8rem;     /* reduced size for number */
  font-weight: 700;
  color: #28a745;
  margin-bottom: 6px;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.step p {
  font-size: 0.88rem;
  color: #555;
}

/* Mobile */
@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --- Filter bar --- */
.filter-bar {
  background: #fff;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 18px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 12px;
  align-items: center;
}

/* --- Search & suggestions --- */
.search-wrapper {
  position: relative;
  width: 100%;
}

.search-wrapper input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  z-index: 99;
  background: #fff;
  border: 1px solid #ddd;
  list-style: none;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 2px 4px rgba(0,0,0,.06);
  display: none;
}

.suggestions li a {
  display: block;
  padding: 6px 10px;
  text-decoration: none;
  color: #333;
}

.suggestions li a:hover {
  background: #f5f5f5;
}

/* --- Category --- */
.filter-bar select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
}

/* --- Buttons --- */
.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  padding: 7px 14px;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn.ghost {
  background: #f7f7f7;
  color: #333;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .btn-row {
    justify-content: flex-start;
  }
}



/* --- Booking filter --- */
.booking-filter {
  background: #fff;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  margin: 0 auto 20px;
  max-width: 800px;
}

.booking-row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 12px;
  align-items: center;
}

.booking-input input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.booking-select select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}

.booking-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Buttons already have .btn styles */
.btn.primary {
  background: linear-gradient(135deg, var(--brand,#28a745), var(--brand-2,#1f9e44));
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .booking-row {
    grid-template-columns: 1fr;
  }
  .booking-buttons {
    justify-content: flex-start;
  }
}

/* --- earch end --- */
/* === Featured Spaces === */
.featured-spaces {
  margin: 40px auto;
  padding: 0 1rem;
  max-width: 1100px;
}

.featured-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 22px;
}

/* Container & arrows */
.featured-track {
  position: relative;
}
.track-wrapper {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.track-wrapper::-webkit-scrollbar { display: none; }

.track-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: #fff;
  border: 1px solid #ddd;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
}
.track-btn.prev { left: -14px; }
.track-btn.next { right: -14px; }
@media (max-width:640px){ .track-btn{display:none;} }

/* Card */
.space-card {
  flex: 0 0 260px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.25s ease;
  position: relative;
}
.space-card:hover { transform: translateY(-3px); }

.space-thumb {
  position: relative;
  height: 180px;
}
.space-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.space-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
  padding: 12px;
  color: #fff;
}
.space-title a {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.space-title a:hover { text-decoration: underline; }
.space-price {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Responsive */
@media (max-width:1024px){ .space-card{flex:0 0 220px;} }
@media (max-width:768px){ .space-card{flex:0 0 70%;} }
@media (max-width:500px){ .space-card{flex:0 0 85%;} }


/* End of featured */


/* Grid */
.spaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Card */
.space-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}
.space-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* Image & overlay */
.space-thumb {
  position: relative;
  height: 180px;
}
.space-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.space-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.05));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
}

.space-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.space-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.space-rating {
  white-space: nowrap;
}

.space-dist {
  white-space: nowrap;
}

/* Price strip */
.space-price {
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 640px) {
  .space-thumb { height: 150px; }
  .space-title { font-size: 0.95rem; }
  .space-meta { font-size: 0.8rem; }
}


/* end of search list */


.nearby-section {
  margin: 40px 0;
}

.nearby-section h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.nearby-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.nearby-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.nearby-thumb {
  position: relative;
  height: 180px;
}
.nearby-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nearby-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
}
.nearby-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
}
.nearby-meta {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Mobile */
@media (max-width: 640px) {
  .nearby-thumb { height: 150px; }
  .nearby-title { font-size: 0.95rem; }
}

