body { font-family: Arial, sans-serif; margin: 0; background: #fff; overflow-x: hidden; }

/* ---------------- CONTAINER ---------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; box-sizing: border-box; }

/* ---------------- HEADER ---------------- */
header { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid #eee; position: sticky; top: 0; background: #fff; z-index: 50; }
.logo { font-size: 26px; font-weight: bold; color: #FF385C; }
nav a { margin-left: 20px; text-decoration: none; font-size: 16px; color: #333; }


/* ---------------- SEARCH BAR ---------------- */
.search-bar {
  width: 100%;
  padding: 0px 0px 10px 0px;
  background: #f8f8f8;
  display: flex;
  justify-content: center; /* center horizontally */
  box-sizing: border-box;
  position: sticky;
 
  border-bottom: 1px solid #eee;
}

.search-bar form {
  display: flex;
  justify-content: center; /* center form contents */
  width: 100%;
  max-width: 600px; /* limits input width on large screens */
}

.search-wrapper {
  position: relative;
  width: 100%;
  display: flex;
}

.search-wrapper input[type="text"] {
  width: 100%;
  padding: 12px 50px 12px 15px; /* right padding for button */
  border-radius: 50px;
  border: 1px solid #ccc;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.search-wrapper input[type="text"]:focus {
  border-color: #FF385C;
  box-shadow: 0 0 5px rgba(255,56,92,0.3);
}

.search-wrapper button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background-color: #FF385C;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.search-wrapper button svg {
  stroke: white;
}

.search-wrapper button:hover {
  background-color: #FF1E48;
}

@media(max-width:12px){
  .search-wrapper input[type="text"] {
    padding: 12px 45px 12px 12px;
  }
  .search-wrapper button {
    width: 32px;
    height: 32px;
  }
}



/* ---------------- SLIDER ---------------- */
.slider { width: 100%; max-width: 1200px; margin: 0 auto; height: 320px; overflow: hidden; position: relative; }
.slide-wrapper { display: flex; transition: transform 0.5s ease-in-out; }
.slide-wrapper img { width: 100%; height: 320px; object-fit: cover; flex-shrink: 0; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.3); border: none; color: white; font-size: 30px; padding: 5px 10px; cursor: pointer; border-radius: 50%; z-index: 10; }
.slide-btn.prev { left: 10px; }
.slide-btn.next { right: 10px; }

/* ---------------- FEATURES ---------------- */
.features { padding: 30px 15px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.feature-box { padding: 20px; background: #fafafa; border-radius: 12px; text-align: center; font-size: 15px; box-shadow: 0 3px 10px rgba(0,0,0,0.05); }

/* ---------------- LISTINGS ---------------- */
.listing-section-title { font-size: 22px; font-weight: bold; padding: 20px 15px; max-width: 1200px; margin: 0 auto; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; padding: 25px 15px; max-width: 1200px; margin: 0 auto; }
.card { border-radius: 15px; overflow: hidden; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.2s; }
.card:hover { transform: scale(1.02); }
.card img { width: 100%; height: 190px; object-fit: cover; }
.card-content { padding: 15px; }
.card-title { font-size: 18px; font-weight: bold; margin-bottom: 6px; }
.location { font-size: 14px; color: #666; }
.price { font-size: 16px; margin-top: 8px; font-weight: bold; }
.stars { font-size: 15px; color: #FF385C; }

/* ---------------- LOAD MORE ---------------- */
#loadMoreBtn { display: block; margin: 20px auto 40px auto; padding: 12px 25px; font-size: 16px; background: #FF385C; color: white; border: none; border-radius: 10px; cursor: pointer; }

/* ---------------- RESPONSIVE ---------------- */
@media(max-width: 10px){
    .listing-grid { grid-template-columns: 1fr; }
    .slider { height: 220px; }
    .slider img { height: 220px; }
    .features { grid-template-columns: 1fr 1fr; }
    .search-bar form { flex-direction: column; gap: 8px; }
    .search-bar input[type="text"], 
}

@media(max-width:180px){
    .features { grid-template-columns: 1fr; }
    .search-bar form { flex-direction: column; gap: 6px; padding: 0 5px; }
    .search-bar input[type="text"], 
}

/* NAVIGATION */
.Nav_xyz123 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.Nav_xyz123__logo img {
    display: block;
}

.Nav_xyz123__menu {
    display: flex;
    align-items: center;
}

.Nav_xyz123__button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.Nav_xyz123__button:hover {
    background-color: #0056b3;
}

.Nav_xyz123__dropdown {
    position: relative;
}

.Nav_xyz123__dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
}

.Nav_xyz123__dropdown-content a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
}

.Nav_xyz123__dropdown-content a:hover {
    background-color: #f0f0f0;
}

.Nav_xyz123__dropdown:hover .Nav_xyz123__dropdown-content {
    display: block;
}

/* ---------- GLOBAL LINK RESET ---------- */
a {
    text-decoration: none;
    color: inherit;
}

/* ---------- CARD LINKS ---------- */
.card {
    text-decoration: none;
    color: inherit;
}

/* Prevent underline on hover/focus */
.card:hover,
.card:focus,
.card:active {
    text-decoration: none;
}

.pagination{
    display:flex;
    justify-content:center;
    gap:8px;
    margin:30px 0;
    flex-wrap:wrap;
}
.pagination a{
    padding:8px 14px;
    border-radius:6px;
    background:#f2f2f2;
    text-decoration:none;
    color:#333;
    font-weight:500;
}
.pagination a:hover{
    background:#ff385c;
    color:#fff;
}
.pagination a.active{
    background:#ff385c;
    color:#fff;
    pointer-events:none;
}

