/* ----------------------------
   Global Styles
---------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #222;
  line-height: 1.6;
}

/* ---------------------------- 
   Header & Navigation 
---------------------------- */
header {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2em 2em;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav h1 {
  font-size: 1.6rem;
  color: #6a0dad; /* Purple tone */
  font-weight: 700;
}

/* Nav Links */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5em;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: #7b2cbf;
}

/* Menu Toggle (3-line icon) */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #6a0dad;
}

/* Responsive Menu for Small Screens */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 0;
    text-align: right;
    padding: 1em 2em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* ----------------------------
   HERO SECTION
---------------------------- */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateX(100%);
  transition: all 1s ease-in-out;
}

.hero-slider .slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.hero-slider .slide.prev {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem;
  background: rgba(0,0,0,0.3);
  border-radius: 20px;
}

/* ----------------------------
   Benefits Section
---------------------------- */
.benefits {
  text-align: center;
  padding: 60px 20px;
}

.benefit-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 280px;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.card h3 {
  color: #007bff;
  margin-bottom: 10px;
}

/* ----------------------------
   Multi-step Forms
---------------------------- */
.form-step {
  display: none;
  margin: 40px auto;
  max-width: 500px;
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  animation: fadeIn 0.6s ease-in-out;
}

.form-step.active {
  display: block;
}

.form-step h2 {
  margin-bottom: 20px;
  color: #007bff;
}

.form-step input,
.form-step textarea {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1em;
  margin-bottom: 15px;
  width: 100%;
}

.form-step button {
  background-color: #007bff;
  color: white;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: transform 0.3s;
}

.form-step button:hover {
  transform: translateY(-3px);
}

.btn.secondary {
  background-color: #ffc107;
  color: #333;
}

/* ----------------------------
   Dashboard Properties
---------------------------- */
#userProperties {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#userProperties div {
  padding: 20px;
  border-radius: 8px;
  background-color: #f1f5f9;
  border-left: 5px solid #007bff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#userProperties div h3 { margin: 0 0 5px; }

#userProperties div img {
  width: 80px;
  margin: 3px;
  border-radius: 4px;
}

/* ----------------------------
   Buttons
---------------------------- */
.btn {
  background-color: #007bff;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn:hover { opacity: 0.9; }

.btn.secondary { background-color: #ffc107; color: #333; }

/* ----------------------------
   Animations
---------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------
   Responsive Design
---------------------------- */
@media (max-width: 768px) {
  .benefit-cards { flex-direction: column; align-items: center; }
  .form-step { margin: 20px auto; padding: 20px; }
}

/* ----------------------------
   Travellers Page B&B Cards
---------------------------- */
#bnb-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 40px 20px;
}

.bnb-card {
  position: relative;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.bnb-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.bnb-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  transition: transform 0.3s ease;
}

.bnb-card:hover img {
  transform: scale(1.05);
}

.bnb-card h3 {
  font-size: 1.2rem;
  color: #5e17eb;
  margin: 10px 12px 4px;
}

.bnb-card p {
  margin: 0 12px 6px;
  color: #555;
  font-size: 0.95rem;
}

.rating {
  color: #ffbf00;
  font-size: 1rem;
  margin: 6px 12px 10px;
}

.favorite-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(255, 255, 255, 0.85);
  color: #5e17eb;
  font-size: 1.3rem;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 5;
}

.favorite-icon:hover {
  background-color: #5e17eb;
  color: #fff;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  #bnb-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }

  .bnb-card img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .bnb-card h3 {
    font-size: 1rem;
  }
  .bnb-card p {
    font-size: 0.9rem;
  }
}

.hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateX(100%);
  transition: all 1s ease-in-out;
}

.hero-slider .slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.hero-slider .slide.prev {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 0;
}

.dashboard-container {
  max-width: 900px;
  margin: 50px auto;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bnb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.bnb-card {
  flex: 1 1 calc(45% - 20px);
  background: #f9fafc;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.bnb-card img {
  width: 100%;
  border-radius: 8px;
  height: 180px;
  object-fit: cover;
}

.bnb-card h3 {
  margin-top: 10px;
  font-size: 1.2em;
}

.bnb-card p {
  margin: 5px 0;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.card-actions button {
  background: #007bff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
}

.card-actions button.delete {
  background: #e63946;
}

.card-actions button.edit {
  background: #f4a261;
}

/* ---------- BNB DETAILS PAGE ---------- */

.details-section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.details-section h2 {
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.8rem;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 1.5rem;
}

.image-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.image-gallery img:hover {
  transform: scale(1.05);
}

.no-image {
  padding: 1rem;
  background: #eee;
  border-radius: 8px;
  color: #777;
}

#bnb-details p {
  line-height: 1.6;
  color: #444;
  margin: 0.5rem 0;
}

/* Button container inside each property card */
.actions {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

/* Edit Button */
.edit-btn {
  background-color: #f4a261; /* orange tone */
  color: #fff;
}

/* Delete Button */
.btn.danger,
.delete-btn {
  background-color: #e63946; /* red */
  color: #fff;
}

/* Optional hover effect */
.actions button:hover {
  opacity: 0.85;
  transform: scale(1.02);
  transition: all 0.2s ease;
}

/* ----------------------------
   Owner Dashboard Action Buttons
---------------------------- */
.property-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 15px;
}

.property-actions button {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Edit button */
.property-actions .edit-btn {
  background-color: #17a2b8; /* teal blue */
}

.property-actions .edit-btn:hover {
  background-color: #138496;
}

/* Delete button */
.property-actions .delete-btn {
  background-color: #dc3545; /* red */
}

.property-actions .delete-btn:hover {
  background-color: #c82333;
}
/* ----------------------------
   Owner Dashboard Buttons Fix
---------------------------- */
.actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  gap: 10px;
}

.actions .btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
}

.actions .edit-btn {
  background-color: #5e17eb;
  color: white;
}

.actions .edit-btn:hover {
  background-color: #7b2cbf;
  transform: translateY(-2px);
}

.actions .delete-btn {
  background-color: #e63946;
  color: white;
}

.actions .delete-btn:hover {
  background-color: #d62828;
  transform: translateY(-2px);
}
/* Floating chat button */
#chat-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  font-family: 'Poppins', sans-serif;
}

#chat-button {
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  padding: 15px 18px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  font-size: 22px;
  transition: all 0.3s ease;
}

#chat-button:hover {
  transform: scale(1.1);
}

/* Chat options */
#chat-options {
  display: none;
  position: absolute;
  bottom: 60px;
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  overflow: hidden;
}

#chat-options.show {
  display: flex;
  flex-direction: column;
}

.chat-link {
  text-decoration: none;
  color: #333;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.chat-link:hover {
  background-color: #f7f7f7;
}
.card-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.details-btn, .chat-btn {
  text-decoration: none;
  color: white;
  background-color: #2b7a78;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.chat-btn {
  background-color: #25d366; /* WhatsApp green */
}

.details-btn:hover, .chat-btn:hover {
  opacity: 0.9;
}
/* 📱 Responsive adjustments for mobile screens */
@media (max-width: 768px) {
  /* Reduce padding and margins */
  .hero-content {
    padding: 20px;
  }

  /* Make search form stack and resize neatly */
  .search-form {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .search-form input,
  .search-form select {
    width: 100%;
    font-size: 14px;
    padding: 10px;
  }

  /* Buttons smaller and full width */
  .search-form button {
    width: 100%;
    font-size: 15px;
    padding: 10px;
  }

  /* Make the two bottom buttons stack nicely */
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons button {
    width: 100%;
    font-size: 15px;
    padding: 10px;
  }
}
/* -------------------------------
   FILTER SECTION STYLING
-------------------------------- */
.filter-section {
  background: #ffffff;
  padding: 25px;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 900px;
}

.filter-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

.filter-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.filter-group label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 15px;
}

.two-inputs {
  display: flex;
  gap: 10px;
}

.filter-btn {
  grid-column: 1 / -1;
  background: #5a3be7;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: 0.3s;
}

.filter-btn:hover {
  background: #482ec4;
}
