:root{--thumb-w: 150px; --thumb-h: 120px; --gap: 10px; --visible-count: 5; --thumb-border-active: #e2b94b;}
body { font-family: Arial, sans-serif; background: #fafafa; margin: 0; background-color: #20232c;color: #f0f0f0;}
.header-title{padding: 20px 20px 10px;}
.hero1 {position: relative;border-radius: 14px;overflow: hidden;min-height: 400px;background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));box-shadow: 0 8px 30px rgba(2,6,23,0.06);}
.hero1 .hero1-img { width:100%; height:420px; object-fit:cover; display:block; }
.hero1 .overlay {position: absolute;inset: 0;display:flex;align-items:flex-end;padding: 20px;background: linear-gradient(0deg, rgba(0,0,0,0.45), transparent 40%);}
.hero1 .meta {color: #fff;max-width: 920px;backdrop-filter: blur(2px);}
.title {font-size: 22px;font-weight: 700;margin: 2px 0 6px;}
.sub {color: rgba(255,255,255,0.9);font-size: 14px;display:flex;gap:12px;align-items:center;}
.badge {background:#fff; color:#e2b94b;padding: 6px 10px;border-radius: 999px;font-weight:600;display:inline-flex;gap:8px;align-items:center;}
.stars { color: #f7b500; font-weight:700; }
.hero-price { color: #f7b500; font-weight:700; }
/* Main / Right columns */
.container {width: 95%;max-width: 1200px;margin: 20px auto;display: flex;gap: 30px;}

/* Left content (gallery + description) */
.left { flex: 2; }

.main-img {border-radius: 12px;overflow: hidden;margin-bottom: 15px;}
.main-img img {width: 100%;height: auto;display: block;border-radius: 12px;}

/* hero gallery left */
.gallery {background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));border-radius:25px;padding:18px; box-shadow: 0 6px 20px;}
.hero {border-radius:12px;overflow:hidden;background:#0b0d0f;height:420px;position:relative;}
.hero img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .6s ease; }
.hero .overlay {position:absolute; inset:0; pointer-events:none;background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35));}

/* gallery controls */
.thumb-row { display:flex; gap:12px; align-items:center; margin-top:12px; 
  /* width sized to show exactly (--visible-count) thumbnails (incl gaps) */
  max-width: calc((var(--thumb-w) * var(--visible-count)) + (var(--gap) * (var(--visible-count) - 1)));
}
.thumb-wrapper { display:flex; align-items:center; gap:10px; width:100%; }
.thumbs {
  display:flex; gap:12px; overflow:hidden; width:100%; align-items:center;
}
.thumb {
  flex:0 0 auto; width:120px; height:80px; border-radius:10px; overflow:hidden;
  border:3px solid transparent; cursor:pointer; transition:transform .15s ease, border-color .15s;
}
.thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.thumb.active { border-color:var(--accent); transform:scale(1.03); box-shadow:0 8px 22px rgba(0,0,0,0.5); }

.thumb-btn {
  background: rgba(255,255,255,0.04); border: none; color:var(--muted);
  width:42px; height:42px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.thumb-btn:active{ transform:translateY(1px); }
.thumb-progress {height:6px; background:rgba(255,255,255,0.05); border-radius:6px; margin-top:10px; overflow:hidden;}
.thumb-progress > i { display:block; height:100%; width:0%; background: linear-gradient(90deg,#e2b94b, #f0d47a); transition: width 400ms linear; }

.right h1 { font-size: 22px; margin:0 0 8px; }
.right p { margin: 5px 0;  }
.price { font-size: 20px; font-weight: 700; margin: 15px 0; }
.btn { width:100%; background:#e2b94b; border:none; padding:12px; border-radius:8px; cursor:pointer; }
.description {
  margin-top: 25px;
  box-shadow: 0 6px 20px;
  border-radius:25px;
  padding: 20px;
}

.description h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.description p {
  line-height: 1.6;
  font-size: 15px;
}

.details h3 {
  margin-top: 0;
}

.details ul {
  padding-left: 18px;
}

.details ul li {
  margin: 6px 0;
}

.details, .amenities, .contact{
  box-shadow: 0 6px 20px;
  border-radius:12px;
  padding:10px;
}
.amenities {
  margin: 20px 0;
}

.amenities h3 {
  margin-bottom: 10px;
}

.amenities ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.amenities li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
}

/* Contact */
.contact {
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 6px 20px;
}

.contact p {
  margin: 8px 0;
}

.contact-btn {
  background: #e2b94b;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
}

.map {
  margin-top: 15px;
  border-radius: 12px;
  box-shadow: 0 6px 20px;
  overflow: hidden;
}

iframe {
  width: 100%;
  height: 200px;
  border: none;
}
/* Right sidebar - booking card */
.right { flex: 1.2; padding: 20px; box-shadow: 0 6px 20px; border-radius:25px; min-width: 280px; }
.right h1 { font-size: 20px; margin:0 0 6px; }
.right p.location { margin: 0 0 12px; }
.price { font-size: 20px; font-weight: bold; margin: 6px 0 12px; }

.book-form label { display:block; font-size: 13px; margin-bottom:6px;}
.inputs-row { display:flex; gap:10px; margin-bottom:12px; }
.inputs-row .col { flex:1; }
input[type="date"], select, input[type="number"], input[type="text"], input[type="email"], input[type="tel"], textarea {
  width:100%; padding:10px; border-radius:8px; border:1px solid #ddd; font-size:14px; box-sizing:border-box;
}
.small { font-size:13px; color:var(--muted); margin-top:6px; }

.summary {border:1px solid #eee; padding:10px; border-radius:8px; box-shadow: 0 6px 20px;margin-top:12px; }
.summary div { display:flex; justify-content:space-between; font-size:14px; padding:4px 0; }
.summary .total { font-weight:700; font-size:16px; }

.btn { width:100%; background:var(--accent); color:#fff; background: #e2b94b; border:none; padding:12px; font-size:16px; font-weight:700; border-radius:8px; cursor:pointer; margin-top:12px; }
.btn:disabled { opacity:0.6; cursor:not-allowed; }

.meta { margin-top:12px; font-size:13px; color:var(--muted); }
.consent { display:flex; align-items:center; gap:10px; margin-top:8px; }

.success-toast, .error-toast {
  position: fixed; right: 20px; bottom: 20px; padding:12px 16px; border-radius:8px; color:#fff; box-shadow:0 6px 18px rgba(0,0,0,0.12);
  display:none; z-index:1000;
}
.success-toast { background: #2b8a3e; }
.error-toast { background: #c43e3e; }

/* modal */
.modal-backdrop { position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:1200; }
.modal { padding:18px; border-radius:12px; width:90%; max-width:420px; box-shadow:0 12px 36px rgba(0,0,0,0.25); }
.modal h3 { margin:0 0 8px; }
.similar-properties {display: grid;grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));gap: 20px;margin-top: 20px;}
.similar h2{text-align: center;}
.property-card {background: #fff;color: #20232c;border-radius: 12px;padding: 10px;box-shadow: 0 2px 6px rgba(0,0,0,0.1);flex: 1;text-align: center;}
.property-card img {width: 100%;border-radius: 12px;}
@media screen and (max-width: 992px) {
  .container { flex-direction: column; }
  .thumbnail-slider { max-width: 90%; }
  .right { width: 90%; }
  .header-title { flex-direction: column;}
  :root{--visible-count: 4;}
}
@media (max-width:768px){:root{--visible-count: 3;}}
@media (max-width:576px){:root{--visible-count: 2;}}

/* Floating WhatsApp Container */
#whatsapp-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* WhatsApp Button */
.whatsapp-btn {
    background: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    font-size: 30px;
    transition: transform 0.2s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Popup Text */
.whatsapp-text {
    background: #fff;
    color: #333;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
    white-space: nowrap;
    opacity: 0; /* start hidden */
    transform: translateX(20px); /* slide-in effect */
    animation: slideIn 0.8s forwards;
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
