:root {
  --primary: #0076a3; /* Ocean Blue */
  --secondary: #00a388; /* Tropical Green */
  --accent: #ff6b6b; /* Coral */
  --light: #f4f9f9;
  --dark: #2c3e50;
  --white: #ffffff;
  --gray: #e0e0e0;
  --text: #333333;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light);
  color: var(--text);
  line-height: 1.6;
}

/* Typography */
h1,
h2,
h3 {
  color: var(--dark);
  margin-bottom: 1rem;
}

/* Header & Nav */
header {
  background: var(--white);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 2000; /* Higher z-index to stay above everything */
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: var(--primary);
}

.cart-pill {
  background: var(--primary);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s;
}

.cart-pill:hover {
  opacity: 0.9;
}

.search-container {
  display: flex;
  background: var(--gray);
  padding: 5px 15px;
  border-radius: 20px;
}

.search-container input {
  border: none;
  background: transparent;
  outline: none;
  padding: 5px;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  position: relative; /* Ensure stacking context is clear */
}

/* Hero Section */
.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("https://images.unsplash.com/photo-1544735745-b81216c78631?auto=format&fit=crop&w=1200")
      center/cover;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  margin-bottom: 3rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Utility Forms */
.booking-bar {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 3rem;
  position: relative;
  z-index: 100;
}

/* Only overlap if it follows a hero */
.hero + .booking-bar {
  margin-top: -5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 150px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--primary);
}

input,
select,
textarea {
  padding: 0.8rem;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  font-size: 1rem;
}

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
}

.card-img {
  height: 200px;
  background-color: var(--gray);
  background-size: cover;
  background-position: center;
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.badge-family {
  background: #e3f2fd;
  color: #1976d2;
}
.badge-adventure {
  background: #fff3e0;
  color: #f57c00;
}
.badge-romantic {
  background: #fce4ec;
  color: #c2185b;
}

.price-tag {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--secondary);
  margin: 1rem 0;
}

/* Buttons */
.btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: #005f85;
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

/* Page Layouts */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.sidebar {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

.sidebar h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light);
}

.filter-group {
  margin-bottom: 2rem;
}

.filter-group h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 1rem;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8rem;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.filter-group label:hover {
  background: var(--light);
}

.filter-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.btn-clear {
  background: none;
  border: none;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* Amenities List */
.amenities-expanded {
  font-size: 0.9rem;
  margin: 1rem 0;
  color: #666;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 1rem 2rem;
  margin-top: 5rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-section h4 {
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.footer-section p,
.footer-section a {
  color: #ccc;
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
}

/* Detail Page */
.detail-header {
  margin-bottom: 2rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
}

.image-gallery {
  display: grid;
  grid-template-template-rows: auto auto;
  gap: 1rem;
}

.main-image {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  background-size: cover;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.thumbnail {
  height: 80px;
  border-radius: var(--radius);
  background-size: cover;
}

/* Nearby Section */
.nearby-section {
  margin-top: 4rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
}

/* Cart Toggle (Simple) */
.cart-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: var(--white);
  padding: 1rem;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 1000;
}

@media (max-width: 768px) {
  .content-with-sidebar,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  header {
    flex-direction: column;
    gap: 1rem;
  }
}
