body {
      background-color: #a4d8c8;
    }

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 3vw 18px 3vw;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px #0001;
  transition: box-shadow 0.15s;
  margin-bottom: 20px;
}
.header-logo {
  font-size: 2rem;
  font-weight: bold;
  color: #ef2b24;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-logo img {
  height: 40px;
  margin-right: 10px;
  border-radius: 8px;
  background: #eee;
}
.header-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}
.place-filter {
  font-size: 1rem;
  padding: 7px 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  background: #f7f7f7;
  color: #333;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 0 3vw 40px 3vw;
  justify-items: center;
}
@media (max-width: 1100px) {
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 2vw 20px 2vw;
  }
}

/* MODAL BACKGROUND */
.modal-bg {
  display: none;
  position: fixed;
  z-index: 99;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: #0008;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.modal-bg.active { display: flex; }

/* MODAL BOX */
.modal-box {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 24px #0006;
  padding: 32px 28px;
  width: 100%;
  max-width: 420px;
  color: #222;
  position: relative;
  box-sizing: border-box;
  animation: modalpop .25s cubic-bezier(.2,1.3,.4,1.01);
}

/* Fade/pop animation for opening */
@keyframes modalpop {
  from { opacity: 0; transform: scale(.98) translateY(18px);}
  to   { opacity: 1; transform: scale(1) translateY(0);}
}

/* CLOSE BUTTON */
.modal-close {
  position: absolute;
  right: 17px; top: 13px;
  font-size: 2em;
  color: #bbb;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
  transition: color .13s;
}
.modal-close:hover { color: #ef2b24; }

/* FORM LABELS */
.modal-box label {
  display: block;
  margin-bottom: 7px;
  font-weight: bold;
  color: #ef2b24;
  font-size: 1.09rem;
  letter-spacing: 0.1px;
}

/* INPUTS & SELECTS */
.modal-box input,
.modal-box select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1.3px solid #ddd;
  margin-bottom: 18px;
  font-size: 1.09rem;
  background: #fafbfc;
  transition: border .15s;
  box-sizing: border-box;
}
.modal-box input:focus,
.modal-box select:focus {
  border-color: #ef2b24;
  outline: none;
  background: #fffbe4;
}

/* SUBMIT BUTTON */
.modal-box button[type="submit"] {
  background: #ef2b24;
  color: #fff;
  font-weight: bold;
  font-size: 1.13rem;
  padding: 12px 0;
  border-radius: 10px;
  border: none;
  width: 100%;
  margin-top: 6px;
  cursor: pointer;
  box-shadow: 0 2px 14px #ef2b2440;
  transition: background .13s, box-shadow .13s;
}
.modal-box button[type="submit"]:hover,
.modal-box button[type="submit"]:focus {
  background: #d52216;
  box-shadow: 0 4px 20px #ef2b2450;
}

/* SUCCESS MESSAGE */
.modal-success {
  text-align: center;
  color: #16b77c;
  font-size: 1.15rem;
  font-weight: bold;
  margin: 22px 0 12px 0;
  padding: 10px 0;
}

/* Extra for lister's photo in modal, if needed */
#callbackListerPhotoWrap img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: #ffdb4a;
  box-shadow: 0 2px 12px #ef2b2422;
}

/* MOBILE RESPONSIVE */
@media (max-width: 550px) {
  .modal-box {
    max-width: 96vw;
    padding: 16px 4vw 18px 4vw;
    border-radius: 13px;
  }
  .modal-box label { font-size: 1rem; }
  .modal-box button[type="submit"] { font-size: 1.03rem; }
  #callbackListerPhotoWrap img { width: 44px; height: 44px; border-radius: 9px;}
}


/* VIDEO CARDS */

.video-block {
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 2px 24px #0001;
  max-width: 330px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-embed {
  background: #e4e4e4;
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  border: none;
  border-radius: 18px 18px 0 0;
  z-index: 1;
}
.video-transparent-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(40,40,40,0.15);
  z-index: 2;
  transition: background 0.15s;
  cursor: pointer;
  text-decoration: none;
}
.video-transparent-overlay:hover,
.video-transparent-overlay:focus {
  background: rgba(40,40,40,0.23);
}

.video-block-bottom {
  padding: 15px 13px 16px 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 0 0 0 0;
}

.video-card-title-center {
  text-align: center;
  font-weight: bold;
  color: #ef2b24;
  font-size: 1.15rem;
  margin-bottom: 0px;
  margin-top: 3px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.video-card-title-price-center
{
  text-align: center;
  color: #000000;
  font-size: 0.9rem;
  margin-bottom: 2px;
  margin-top: -10px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.video-card-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 3px;
}
.video-card-photo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #ffdb4a;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.video-card-photo img {
  width: 38px; height: 38px;
  object-fit: cover;
  border-radius: 9px;
}
.video-card-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.video-card-listed {
  font-size: 0.95rem;
  color: #888;
  margin-top: 2px;
}
.video-card-listed span {
  color: #2196f3;
  font-weight: bold;
}
.video-card-date {
  background: #ffdb4a;
  color: #ef2b24;
  border-radius: 7px;
  font-weight: bold;
  font-size: 0.98rem;
  padding: 3px 10px;
  min-width: 72px;
  text-align: center;
}
.video-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.btn.btn-action {
  flex: 1;
  background: #00c9c8;
  color: #fff;
  border-radius: 8px;
  padding: 8px 0;
  font-size: 0.98rem;
  border: none;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background .13s;
}
.btn.btn-action:hover { background: #0095a3; }
.video-card-bottom-row {
  display: flex;
  gap: 10px;
  margin-top: 9px;
}
.btn.btn-secondary {
  background: #16b77c;
  color: #fff;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.99rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background .13s;
}
.btn.btn-secondary:hover { background: #0e8c5c; }
.btn.btn-callback {
  background: #ffdb4a;
  color: #ef2b24;
  border: 2px solid #ef2b24;
  border-radius: 9px;
  padding: 16px 16px;
  font-weight: bold;
  font-size: 0.99rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background .13s;
}
.btn.btn-callback:hover { background: #fffbe4; }
.phone-icon {
  font-size: 1.19em;
  margin-right: 3px;
  vertical-align: -2px;
}
.btn.btn-seeallprop {
  display: block;
  margin: 38px auto 0 auto;
  background: #ef2b24;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 13px;
  font-size: 1.15rem;
  padding: 13px 38px;
  box-shadow: 0 4px 18px #ef2b2422;
  cursor: pointer;
  transition: background 0.14s, box-shadow 0.14s;
  letter-spacing: 0.7px;
  text-align: center;
  text-decoration: none;
}
.btn.btn-seeallprop:hover,
.btn.btn-seeallprop:focus {
  background: #d52216;
  box-shadow: 0 4px 26px #ef2b2455;
  color: #fff;
}

@media (max-width: 600px) {
  .video-block { max-width: 97vw; }
  .header { padding: 10px 2vw 8px 2vw; }
}

/* Single Property Page — Larger Video, Only Left Corners Rounded */
.single-property-flex {
  max-width: 1280px;
  margin: 38px auto 30px auto;
  display: flex;
  gap: 42px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 24px #0001;
  align-items: stretch;
}

.single-property-video {
  flex: 2.1;
  min-width: 600px;
  max-width: 900px;
  display: flex;
  align-items: center;
}

.single-property-video .single-property-video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e4e4e4;
  position: relative;
  border-radius: 20px 0px 0px 20px;  /* <-- Only left corners rounded, more pronounced */
  overflow: hidden;
  box-shadow: 0 4px 28px #0002;
}

/* Make sure iframe matches the embed's shape */
.single-property-video .single-property-video-embed iframe,
.single-property-video .single-property-video-embed > div {
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  border: none;
  border-radius: 20px 0px 0px 20px;
  background: #e4e4e4;
}

/* Responsive: Stack on mobile */
@media (max-width: 1000px) {
  .single-property-flex {
    flex-direction: column;
    max-width: 97vw;
    gap: 0;
    padding: 0;
  }
  .single-property-video,
  .single-property-info {
    min-width: 0;
    max-width: 100vw;
    padding: 0;
    border-radius: 0;
  }
  .single-property-info {
    padding: 18px 11px;
  }
  .single-property-video .single-property-video-embed {
    border-radius: 15px 15px 0 0;
    min-width: unset;
    max-width: unset;
  }
  .single-property-video .single-property-video-embed iframe,
  .single-property-video .single-property-video-embed > div {
    border-radius: 15px 15px 0 0;
  }
}

.single-property-info {
  flex: 1.1;
  min-width: 310px;
  max-width: 390px;
  padding: 34px 28px 28px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.single-property-title {
  font-size: 2rem;
  font-weight: bold;
  color: #ef2b24;
  margin-bottom: 13px;
  text-align: center;
}
.single-property-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.single-property-photo {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: #ffdb4a;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.single-property-photo img {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: 10px;
}
.single-property-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.single-property-listed {
  font-size: 1.4rem;
  color: #888;
}
.single-property-lister-name {
  font-weight: bold;
  font-size: 1.6rem;
  color: #2196f3;
}
.single-property-date {
  background: #ffdb4a;
  color: #ef2b24;
  border-radius: 7px;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 3px 14px;
  min-width: 84px;
  text-align: center;
}
.single-property-actions {
  display: flex;
  gap: 11px;
  margin-top: 7px;
}
.single-property-bottom-row {
  display: flex;
  gap: 11px;
  margin-top: 14px;
}

@media (max-width: 1000px) {
  .single-property-flex {
    flex-direction: column;
    max-width: 97vw;
    gap: 0;
    padding: 0;
  }
  .single-property-video,
  .single-property-info {
    min-width: 0;
    max-width: 100vw;
    padding: 0;
    border-radius: 0;
  }
  .single-property-info {
    padding: 18px 11px;
  }
  .single-property-video .single-property-video-embed {
    border-radius: 15px 15px 0 0;
  }
  .single-property-video .single-property-video-embed iframe,
  .single-property-video .single-property-video-embed > div {
    border-radius: 15px 15px 0 0;
  }
}

.video-card-listed {
  font-size: 0.97rem;
  color: #888;
  font-weight: 500;
  margin-bottom: 1px;
  margin-top: 1px;
  line-height: 1.18;
}

.video-card-lister-name {
  color: #2196f3;
  font-weight: bold;
  font-size: 1.12rem;
  margin-top: 0;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* WhatsApp icon and modal styles */
.whatsapp-icon {
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  margin-left: auto;
  margin-right: 4px;
}

#whatsappModal {
  display: none;
  position: fixed;
  z-index: 1002;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.3);
}
#whatsappModal .modal-content {
  background: #fff;
  max-width: 350px;
  margin: 10% auto;
  padding: 2rem 1.5rem 1.5rem;
  border-radius: 16px;
  text-align: center;
  position: relative;
}
#whatsappModal .close-btn {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #444;
  cursor: pointer;
}
#whatsappModal .wa-btn {
  background: #25d366;
  color: #fff;
  border: none;
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 1rem;
  margin-top: 1.2rem;
  display: inline-block;
  transition: background 0.2s;
}
#whatsappModal .wa-btn:hover {
  background: #1ebe57;
}

#whatsappModal .li-btn {
  background: #FFC000;
  color: #fff;
  border: none;
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 1rem;
  margin-top: 1.2rem;
  display: inline-block;
  transition: background 0.2s;
}
#whatsappModal .li-btn:hover {
  background: #1ebe57;
}

#whatsappModal .wa-note {
  font-size: 0.98rem;
  color: #555;
  margin-top: 0.7rem;
}


/* Filter Modal Overlay */
.filter-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 1000;
  overflow-y: auto;
}

/* Modal Card */
.filter-modal .modal-content {
  max-width: 460px;
  background: #ffffff;
  margin: 80px auto;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  font-family: 'Segoe UI', sans-serif;
  animation: fadeInUp 0.3s ease-out;
}

/* Fade In Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Close Button */
.filter-modal .close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #444;
  cursor: pointer;
}

/* Section Labels */
.filter-modal label {
  display: block;
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

/* Multi-checkbox styling */
.filter-modal .checkbox-group label {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 500;
  cursor: pointer;
}
.filter-modal input[type="checkbox"] {
  margin-right: 10px;
}

/* Dropdown */
.filter-modal select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* Price Range */
#priceValue {
  font-weight: 500;
  margin-bottom: 5px;
  display: inline-block;
  color: #333;
}
.filter-modal input[type="range"] {
  width: 100%;
}

/* Button Row: Flex layout to place buttons in a row */
.button-row {
  display: flex;
  justify-content: space-between;
  gap: 16px; /* Optional spacing between buttons */
  margin-top: 28px;
}

/* Base styling for all buttons */
.button-row button {
  flex: 1;
  font-size: 1.1rem;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Reset Button: Light Red */
.btn-reset {
  background-color: #f8d7da;
  color: #721c24;
}
.btn-reset:hover {
  background-color: #f5c6cb;
}

/* Apply Filters Button: Green (existing style) */
.btn-secondary {
  background-color: #28a745;
  color: white;
}
.btn-secondary:hover {
  background-color: #218838;
}

/* Filter Trigger Button */
.btn-filter {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  margin-left: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn-filter:hover {
  background-color: #0056b3;
}

/* Responsive: Smaller screens */
@media (max-width: 480px) {
  .filter-modal .modal-content {
    width: 90%;
    margin: 40px auto;
    padding: 20px;
  }
}

.ytp-pause-overlay {
    display: none;
}