/* ===== GLOBAL ===== */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: #fafafa;
  color: #222;
}

/* ===== STICKY HEADER ===== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid #eee;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
}

/* ===== BRAND ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand img {
  height: 30px;
}

/* MODAL BACKGROUND */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

/* MODAL CONTAINER */
.modal-content.split {
  display: flex;
  width: 90%;
  height: 85vh;
  margin: auto;
  margin-top: 3%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* LEFT */
.modal-left {
  width: 60%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* IMAGE */
.modal-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* CONTENT */
.content {
  padding: 20px;
}

.address {
  color: #777;
  font-size: 14px;
}

/* PRICE ROW */
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  background: #28a745;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

/* BUTTON */
.book-btn {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  transition: 0.3s;
}

.book-btn:hover {
  background: #c62828;
  transform: translateY(-2px);
}

/* RIGHT */
.modal-right {
  width: 40%;
  background: #f5f5f5;
}

.modal-right iframe {
  width: 100%;
  height: 100%;
}

/* CLOSE BUTTON */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  background: #fff;
  border-radius: 50%;
  padding: 5px 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.brand-text {
  font-size: 22px;
  font-weight: 600;
  color: #e11d2e;
}

/* ===== SEARCH ===== */
.search-box {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 999px;
  overflow: hidden;
  width: 420px;
  background: white;
}

.search-box input {
  border: none;
  padding: 10px 16px;
  flex: 1;
  outline: none;
}

.search-box button {
  background: #e52225;
  color: white;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
}

/* ===== AUTH BUTTONS ===== */
.auth-buttons {
  display: flex;
  gap: 12px;
}

.btn-signin {
  background: #ffe4ea;
  color: #e52225;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
}

.btn-outline {
  background: transparent;
  color: #e52225;
  border: 1px solid #e52225;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
}

.btn-signin:hover {
  background: #ffd1db;
}

.btn-outline:hover {
  background: #e52225;
  color: white;
}

/* ===== CATEGORY BAR (MOVED TO HEADER) ===== */

.category-bar {
  display: flex;
  justify-content: center;   /* center horizontally */
  align-items: center;
  gap: 12px;

  padding: 14px 0 18px;      /* top | bottom spacing */
  border-bottom: 1px solid #eee;

  overflow-x: auto;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-bar {
  display: flex;
  gap: 12px;
  padding: 14px 0 18px;
  border-bottom: 1px solid #eee;
  justify-content: center;
}

@media (max-width: 768px) {
  .category-bar {
    justify-content: flex-start; /* mobile scroll instead of center */
    padding-left: 16px;
  }
}

.filter {
  border: 1px solid #ddd;
  background: white;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;

  font-size: 13px;
  transition: all 0.2s ease;
}

.filter:hover {
  border-color: #aaa;
}

.filter.active {
  background: #e52225;
  color: white;
  border: none;
}

/* wrapper to center */
.category-wrapper {
  display: flex;
  justify-content: center;
  margin: 16px 0 24px;
}

/* bordered container (ONLY wraps content) */
.category-bar {
  display: inline-flex;   /* key magic */
  gap: 10px;
  padding: 8px;

  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
}

.category-bar {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* buttons */
.filter {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

.filter.active {
  background: #e52225;
  color: white;
}

.filter:hover {
  background: #f3f4f6;
}

.filter {
  transition: all 0.2s ease;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1400px;
  margin: auto;
  padding: 30px 40px;
}

/* ===== SECTION ===== */
.section {
  margin-bottom: 40px;
}

.section h2 {
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 600;
}

/* ===== HEADER WITH SCROLL BUTTON ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== HORIZONTAL SCROLL ===== */
.property-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.property-row::-webkit-scrollbar {
  display: none;
}

/* ===== CARD ===== */
.card {
  min-width: 260px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.03);
}

/* ===== IMAGE (IMPORTANT FIX) ===== */
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
}

/* ===== CARD BODY ===== */
.card-body {
  padding: 10px;
}

.card h3 {
  margin: 5px 0;
  font-size: 16px;
  font-weight: 500;
}

.location {
  font-size: 13px;
  color: #6b7280;
}

.price {
  font-weight: 600;
  margin-top: 5px;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  position: relative;
  width: 420px;
  height: 600px;
  margin: 5% auto;
  background: white;
  border-radius: 16px;
  overflow: hidden;
}

.modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .navbar {
    padding: 12px 16px;
  }

  .container {
    padding: 16px;
  }

  .category-bar {
    padding: 10px 16px;
  }

  .search-box {
    width: 100%;
  }

  .card {
    min-width: 220px;
  }

  .card img {
    height: 160px;
  }

  .scroll-btn {
    display: none;
  }
}

.card {
  width: 260px;
  min-width: 260px;
  flex-shrink: 0;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.location {
  font-size: 13px;
  color: #6b7280;

  display: -webkit-box;
  -webkit-line-clamp: 2;   /* LIMIT TO 2 LINES */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
}

.property-row {
  gap: 16px;
}

.img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 16px;
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-header {
  position: relative;
}

.property-row {
  padding: 10px 10px;
}

/* ===== SCROLL CONTAINER ===== */
.scroll-container {
  position: relative;
  padding: 0 24px;
}

/* ===== FADE EFFECT (premium) ===== */
.scroll-container::before,
.scroll-container::after {
  content: "";
  /*position: absolute;*/
  top: 0;
  width: 60px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.scroll-container::before {
  left: 0;
  background: linear-gradient(to right, #fafafa, transparent);
}

.scroll-container::after {
  right: 0;
  background: linear-gradient(to left, #fafafa, transparent);
}

/* ===== BUTTON ===== */
/* ===== BUTTON BASE ===== */
.scroll-btn {
  /*position: absolute;*/
  top: 45%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;
  border-radius: 50%;

  border: 1px solid #ddd;
  background: #fff;

  box-shadow: 0 2px 8px rgba(0,0,0,0.12);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  color: #222;

  cursor: pointer;
  z-index: 10;

  transition: all 0.2s ease;
}

/* ===== POSITION (outside like Airbnb) ===== */
.scroll-btn.left {
  left: -22px;
}

.scroll-btn.right {
  right: -22px;
}

/* ===== HOVER (subtle, not aggressive) ===== */
.scroll-btn:hover {
  background: #f7f7f7;
  transform: translateY(-50%) scale(1.05);
}

/* ===== SCROLL ROW ===== */
.property-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.property-row::-webkit-scrollbar {
  display: none;
}

/* header layout */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* group container */
.scroll-group {
  display: flex;
  gap: 8px;
}

/* button */
.scroll-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;

  border: 1px solid #ddd;
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  color: #222;

  cursor: pointer;

  transition: all 0.2s ease;
}

/* hover */
.scroll-btn:hover {
  background: #f7f7f7;
}

/* disabled */
.scroll-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.container {
  max-width: 1320px;   /* tighter than before */
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  margin-top: 40px;
  margin-bottom: 56px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 18px;  /* space before cards */
}

.section-header h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.scroll-group {
  display: flex;
  gap: 10px;
}

/* slightly smaller & softer */
.scroll-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;

  background: #f2f2f2;
  border: none;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  color: #222;

  transition: all 0.2s ease;
}

/* hover */
.scroll-btn:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.property-row {
  gap: 16px;
  padding-bottom: 4px;
}

.section:first-child {
  margin-top: 24px;
}

/* scroll row */
.property-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;

  scroll-snap-type: x mandatory;   /* key */
  padding-bottom: 10px;
}

/* each card snaps */
.card {
  min-width: 260px;
  flex-shrink: 0;

  scroll-snap-align: start;  /* key */
}

.property-row {
  cursor: grab;
}

.property-row.dragging {
  cursor: grabbing;
}

.scroll-group {
  display: flex;
  gap: 8px;
}

/* both buttons */
.scroll-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;

  background: #f2f2f2;
  border: none;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  color: #222;

  cursor: pointer;
}

/* disabled look */
.scroll-btn:disabled {
  opacity: 0.3;
}

.section-header {
  display: flex;
  justify-content: space-between; /* title left, buttons right */
  align-items: center;
}

/* group stays horizontal */
.scroll-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* buttons */
.scroll-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;

  background: #f2f2f2;
  border: none;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  cursor: pointer;
}

.scroll-btn {
  background: #f7f7f7;
}

.scroll-btn:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.modal-content.split {
  display: flex;
  width: 90%;
  height: 90%;
  margin: auto;
  background: white;
  border-radius: 16px;
  overflow: hidden;
}

/* LEFT */
.modal-left {
  width: 50%;
  padding: 20px;
  overflow-y: auto;
}

/* RIGHT */
.modal-right {
  width: 50%;
  height: 100%;
}

/* image */
.modal-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* close */
.close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 22px;
  cursor: pointer;
}

/* button */
.book-btn {
  width: 100%;
  padding: 12px;
  background: #e52225;
  color: white;
  border: none;
  border-radius: 10px;
  margin-top: 15px;
  cursor: pointer;
}

/* BACKDROP */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

/* MODAL */
.modal-content.premium {
  display: flex;
  width: 92%;
  height: 88vh;
  margin: auto;
  margin-top: 2%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  animation: zoomIn 0.3s ease;
}

/* LEFT */
.modal-left {
  width: 60%;
  display: flex;
  flex-direction: column;
}

/* HERO */
.hero {
  position: relative;
}

.modal-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* OVERLAY TEXT */
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.hero-overlay h2 {
  margin: 0;
  font-size: 24px;
}

/* CONTENT */
.content {
  padding: 20px;
}

.facilities {
  display: flex;
  gap: 15px;
  margin: 10px 0;
  font-size: 14px;
}

.desc {
  color: #666;
  line-height: 1.5;
}

/* RIGHT */
.modal-right {
  width: 40%;
  background: #f8f9fa;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

/* BOOKING CARD */
.booking-card {
  background: #fff;
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  position: sticky;
  top: 10px;
}

.book-btn {
  width: 100%;
  padding: 12px;
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  margin-top: 10px;
}

.wa-btn {
  width: 100%;
  padding: 12px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 10px;
  margin-top: 8px;
}

/* MAP */
.map-box {
  margin-top: 15px;
  flex-grow: 1;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 0;
}

/* CLOSE */
.close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 20px;
  background: rgba(255,255,255,0.9);
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
}

/* ANIMATION */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes zoomIn {
  from {transform: scale(0.95);}
  to {transform: scale(1);}
}

.modal-img {
  width: 85%;
  max-width: 520px;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  margin: 20px auto 10px auto;

  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.modal-left {
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 10px;
}

.content {
  padding: 10px 30px 25px 30px;
  text-align: left;
}

.modal-left {
  background: linear-gradient(to bottom, #fafafa, #ffffff);
}

.modal-img:hover {
  transform: scale(1.02);
  transition: 0.3s ease;
}

