/* Base styles for mobile (320px+) */
header, .content, footer { padding: 16px; }

/* For tablets and above */
@media (min-width: 768px) {
  header, .content, footer { padding: 24px 40px; }
}

/* For desktop */
@media (min-width: 1024px) {
  .container { width: 80%; margin: auto; }
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f9f9f9;
  color: #333;
}
.container {
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .container { flex-direction: row; gap: 20px; }
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a237e;
  color: #fff;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 999;
}

header .logo {
  font-size: 20px;
  font-weight: bold;
}

header nav a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
}

header nav a:hover {
  text-decoration: underline;
}

/* Slider Container */
.slider {
  position: relative;
  overflow: hidden;
  max-height: 80vh; /* prevent extra tall images */
}

.slide {
  min-height: 250px; /* smaller default for mobile */
}

.slide img {
  width: 100%;
  height: auto;          /* keep aspect ratio */
  object-fit: cover;     /* nicely crop if too tall */
}

/* Mobile Fix */
@media (max-width: 768px) {
  .slider {
    max-height: 50vh;   /* reduce height on tablets/mobiles */
  }
  .slide img {
    height: auto;
    object-fit: contain; /* show full image instead of cropping */
  }
}

.caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  font-size: 24px;
  color: #fff;
  background: rgba(0,0,0,0.4);
  padding: 10px;
  border-radius: 50%;
  user-select: none;
}

.prev { left: 20px; }
.next { right: 20px; }

/* Sections */
.container {
  padding: 50px 20px;
  max-width: 1000px;
  margin: auto;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
}

.amenities-grid div {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.attractions li {
  margin-bottom: 10px;
}

.reviews blockquote {
  background: #fff;
  padding: 15px;
  margin: 15px 0;
  border-left: 4px solid #1a237e;
  border-radius: 5px;
}

.offers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.offer-card {
  background: linear-gradient(135deg, #1a237e, #3949ab);
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  flex: 1;
  min-width: 200px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Animations */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}
img {
  max-width: 100%;
  height: auto;
}
.menu-toggle { display: block; cursor: pointer; }
.nav { display: none; }
.menu-toggle.open + .nav { display: block; }

/* Desktop override */
@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav { display: flex; }
}
.slider img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.header img,
.hero img,
.slider img {
  width: 100%;
  height: auto;        /* keeps aspect ratio */
  object-fit: cover;   /* crops gracefully if container is smaller */
  max-height: 80vh;    /* prevent it from being too tall on mobiles */
}

/* On smaller screens, reduce height further */
@media (max-width: 768px) {
  .header img,
  .hero img,
  .slider img {
    max-height: 50vh;
    object-fit: contain; /* show full image without cropping */
  }
}