/* Custom Font */
@font-face {
  font-family: 'Tropical Beachy';
  src: url('fonts/Tropicalbeachydemo-OGOJd.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors - Blue Theme */
  --color-primary: #1F4E68;
  /* Dark Blue */
  --color-secondary: #D6EFF5;
  /* Pale Ice Blue */
  --color-text: #1B3B4D;
  /* Deep Blue Text */
  --color-bg: #FFFFFF;
  /* White */
  --color-white: #FFFFFF;
  --color-accent: #64B6C9;
  /* Medium Teal */

  /* Typography */
  --font-heading: 'Tropical Beachy', 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* Spacing */
  --spacing-container: 1200px;
  --spacing-section: 4rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Typography Defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* Utilities */
#contact {
  background-color: var(--color-secondary);
}

.container {
  max-width: var(--spacing-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--spacing-section) 0;
}

/* Stay Cards (Split Layout) */
.stay-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 100%;
}

.stay-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: white;
  overflow: hidden;
  /* border-bottom: 1px solid #eee; Optional separator */
}

/* Alternating Layout */
/* Odd items (1, 3...): Image Right, Content Left */
/* Even items (2, 4...): Image Left, Content Right */

/* Default is Content Left, Image Right if HTML order is [Content, Image] */
/* Let's define HTML order: Image, Content */
/* So Default (flex-direction: row): Image Left, Content Right */

/* We want: */
/* Room 1 (Odd): Picture Right, Content Left */
/* Room 2 (Even): Picture Left, Content Right */

/* If HTML is [Image, Content] */
/* Row: Image | Content */
/* Row-Reverse: Content | Image */

.stay-card {
  flex-direction: row-reverse;
  /* Default for Odd: Content | Image */
}

.stay-card:nth-child(even) {
  flex-direction: row;
  /* Even: Image | Content */
}

.stay-image {
  flex: 1;
  height: 500px;
  /* Fixed height for consistency */
  padding: 2rem;
}

.stay-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  border-radius: 24px;
}

.stay-card:hover .stay-image img {
  transform: scale(1.05);
}

.stay-content {
  flex: 1;
  padding: 4rem;
  color: var(--color-text);
  background-color: #EEF7F9;
  /* Soft Coastal Tint */
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.stay-content p {
  text-align: justify;
}

.stay-content .btn {
  padding: 0.8rem 1.5rem;
  /* Smaller padding */
  font-size: 0.9rem;
  /* Smaller font */
  align-self: center;
  /* Center button in flex container */
  margin-top: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {

  .stay-card,
  .stay-card:nth-child(even) {
    flex-direction: column;
    /* Stack vertically on mobile */
  }

  .stay-image {
    width: 100%;
    height: 300px;
  }

  .stay-content {
    padding: 2rem;
  }
}


/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  /* text-transform: uppercase; Removed for softer look */
  letter-spacing: 0.5px;
  /* Reduced spacing */
  transition: background-color 0.3s ease;
  border-radius: 50px;
  /* Softer pill shape */
}

.btn:hover {
  background-color: #0F3A50;
  /* Slightly darker shade of primary */
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-white);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-text);
}

/* Navigation */
header {
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: transparent;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header nav ul {
  display: flex;
  gap: 3rem;
  list-style: none;
}

header a {
  font-size: 0.9rem;
  /* Slightly smaller to balance caps */
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  /* Changed to match logo */
  font-weight: 500;
  /* Increased weight for visibility */
  /* Changed to match logo */
  font-weight: 500;
  /* Increased weight for visibility */
}

/* Header Buttons */
.header-btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.menu-toggle-btn {
  letter-spacing: 0;
  font-size: 1.5rem !important;
  /* Larger icon */
  padding: 0.2rem 1rem !important;
  /* Balanced padding for icon */
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Header Button Adjustments (iPhone/Small Screens) */
@media (max-width: 768px) {
  .header-btn {
    padding: 0.4rem 1rem !important;
    font-size: 0.8rem !important;
    min-width: auto;
  }
}

/* Navigation Unified Menu */
#main-nav {
  position: absolute;
  top: 100%;
  right: 0;
  width: 160px;
  height: auto;
  background-color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  z-index: 1001;

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#main-nav.active,
.nav-container:hover #main-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

#main-nav ul {
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 0;
  margin: 0;
}

#main-nav a {
  font-size: 0.95rem;
  color: var(--color-primary);
  text-decoration: none;
  display: block;
  text-align: center;
  transition: opacity 0.3s ease;
}

#main-nav a:hover {
  opacity: 0.7;
}

#menu-toggle {
  z-index: 1002;
}

/* Explore Section Styles */
.explore-item {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.explore-img {
  flex: 1;
  min-width: 300px;
}

.explore-img img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.explore-text {
  flex: 1;
  text-align: left;
}

.explore-text p {
  text-align: justify;
}

@media (min-width: 768px) {
  .explore-normal {
    flex-direction: row;
    gap: 4rem;
  }

  .explore-reverse {
    flex-direction: row-reverse;
    gap: 4rem;
  }
}

/* Modal Styles */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  /* Black w/ opacity */
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 2rem;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Amenities Section */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.amenity-card {
  background: #EEF7F9;
  /* Soft Coastal Tint */
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.amenity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.amenity-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.amenity-card h4 {
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-size: 1.4rem;
}

.amenity-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
}

/* House Rules Section */
.rule-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.rule-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.rule-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.rule-card h3 {
  font-weight: 600;
}

.rule-card p,
.rule-card ul {
  font-size: 0.95rem;
}

.rule-card ul li {
  margin-left: 0.5rem;
}

/* Tours Section */
.tour-package-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid var(--color-secondary);
}

.tour-package-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary);
}

.tour-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.destination-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--color-primary);
}

.destination-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}


/* Gallery Section */
.gallery-container {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  margin-top: 3rem;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.gallery-slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  transform: translateY(-50%);
  z-index: 10;
}

.gallery-btn {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-btn:hover {
  background: white;
  transform: scale(1.1);
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dot.active {
  background: var(--color-primary);
  width: 25px;
  border-radius: 10px;
}

/* Room Footer Layout (Side-by-side Features & Button) */
.room-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1rem;
}

.room-footer-column {
  flex: 1;
}

.room-footer-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Base Responsive Fixes */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 4rem !important;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  h2 {
    font-size: 2.5rem !important;
  }

  h1 {
    font-size: 3rem !important;
  }

  /* Room Card Responsive */
  .stay-card {
    flex-direction: column !important;
  }

  .stay-image,
  .stay-content {
    width: 100% !important;
  }

  .stay-content {
    padding: 2.5rem 1.5rem !important;
  }

  .room-footer {
    flex-direction: column !important;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .room-footer-center {
    justify-content: flex-start;
    width: 100%;
  }

  .room-footer-center .btn {
    width: 100%;
    text-align: center;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
  }

  .gallery-slide {
    aspect-ratio: 4 / 3;
  }
}

.close-modal:hover,
.close-modal:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Dining Menu Styles */
.menu-category {
  margin-bottom: 3rem;
}

.menu-category-title {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 2rem;
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.8rem 0;
  border-bottom: 1px dashed #eee;
}

.menu-item-info {
  flex: 1;
}

.menu-item-name {
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.menu-item-description {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.4;
}

.menu-price {
  font-weight: 600;
  color: var(--color-primary);
  margin-left: 1rem;
  background: var(--color-secondary);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.menu-note-box {
  background: #f0f7f4;
  border: 1px solid #d1e7dd;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  color: #155724;
}

.menu-highlight {
  color: #d63384;
  font-weight: 600;
}