﻿/* 1. Global Styles & CSS Variables */
:root {
    --primary-color: #8B4513; /* A classy saddle brown for the pine theme */
    --secondary-color: #004d40; /* A deep, elegant teal/green */
    --text-color: #333333;
    --text-color-light: #ffffff;
    --background-color: #fdfaf6;
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. Hero Section Styles */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/hero/hero-background.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-color-light);
}

.hero-section h1 {
    font-size: 3.5rem;
    margin: 0;
    font-weight: 700;
}

.hero-section .tagline {
    font-size: 1.5rem;
    margin-top: 10px;
    font-weight: 300;
}
/* 3. Sticky Action Buttons Component */
.sticky-action-buttons {
  position: fixed;
  top: 60px;
  right: 40px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
  pointer-events: auto;
}

.action-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease;
}

.action-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.action-button img {
    width: 32px;
    height: 32px;
}

.whatsapp-button {
    background-color: none;
}

.phone-button {
    background-color: none;
}

@media (max-width: 768px) {
  .sticky-action-buttons {
    position: fixed !important;
    top: 90px !important;   /* now sits *below* the sticky header */
    right: 15px !important;
    flex-direction: column !important;
    gap: 10px !important;
    z-index: 1000 !important;
  }

  .action-button {
    width: 48px !important;
    height: 48px !important;
  }
}

/* General Component & Section Styling */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
    font-weight: 600;
}

section {
    padding: 60px 0;
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-submit:hover {
    background-color: #6a350f; /* Darker shade of primary */
}

/* 4. Header Component */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 50px;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
}

/* 5. Booking Widget Component */
.booking-widget {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    margin-top: 30px;
}

.booking-form {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.benefit-icon {
  height: 40px;
  width: auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, .form-group select {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-color);
}

.form-actions{
  display:flex;
  align-items:center;
  gap:.75rem;
  margin-top:1rem;
}

.form-fields {
  width: 100%;
  max-width: 380px;   /* keeps them from being too wide */
}
.form-fields input,
.form-fields textarea {
  width: 100%;
}

.icon-link{
  display:inline-flex;
  padding:0;
  background:none;
  border:none;
  box-shadow:none;
  transition:transform .2s;
}

.icon-link:hover{
  transform:scale(1.1);
}

.icon-link img{
  width:24px;
  height:24px;
  filter:brightness(0) invert(1); /* makes them white on dark theme */
}

/* 6. Why Book Direct Component */
.why-book-direct {
    background-color: #fff;
}

.benefit-icon { height: 40px; margin-bottom: 15px; }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.benefit-item h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* 7. Testimonials Component */
.testimonials {
    background-color: var(--background-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.testimonial-card p {
    margin-top: 0;
    font-style: italic;
}

.testimonial-card cite {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 15px;
}

/* 8. Footer Component */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 50px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
}

.footer-column p, .footer-column a {
    color: #e0e0e0;
    text-decoration: none;
    line-height: 1.8;
}

.footer-column a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #ccc;
}

/* 9. Inner Page Styles (Rooms, Packages, Confirmation) */
.page-header {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 50px 0;
}

.page-header h1 {
    font-size: 3rem;
    margin: 0;
}

.rooms-section .room-card {
    display: flex;
    gap: 30px;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 8px;
}

.room-card img {
    width: 40%;
    object-fit: cover;
}

.room-card-content {
    padding: 30px;
}

.packages-section .package-card, .confirmation-section .container {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    border-radius: 8px;
}
.confirmation-section {
    text-align: center;
    padding: 80px 0;
}
.package-card .price {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

/* --- Premium Animations --- */
.why-book-direct, .testimonials, .rooms-section, .packages-section {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.is-visible {
    opacity: 1;
    transform: none;
}

/* Emergency reveal */
.rooms-section .room-card,
.packages-section .package-card{
  opacity:1 !important;
  transform:none !important;
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
}

.glass-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}

.glass-card input,
.glass-card textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: .9rem;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 6px;
  font-size: 1rem;
}

.btn-whatsapp,
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: transform .2s;
}

.btn-whatsapp {
  background: #25D366;
}
.btn-call {
  background: #0078ff;
}

.btn-whatsapp:hover,
.btn-call:hover {
  transform: scale(1.05);
}

/* keep the glass-card look but centre it */
.glass-card--center {
  margin: 0 auto;
  max-width: 440px;
}

/* 10. Amenities Section */
.amenities-section {
    background-color: var(--background-color);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    text-align: center;
}

.amenity-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.amenity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.amenity-item img {
    height: 48px;
    margin-bottom: 10px;
}

.amenity-item p {
    margin: 0;
    font-weight: 600;
    color: var(--secondary-color);
}

/* 11. Gallery Section */
.gallery-section {
    background-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* 12. Map Widget */
.map-widget-container {
    /* The iframe has its own height, this container just holds it */
    width: 100%;
    /* remove vertical line-height spacing */
    line-height: 0; 
}

/* 13. HEADER NAVIGATION DROPDOWN */
/* Sets the positioning context for the dropdown's parent list item */
.main-nav .dropdown {
  position: relative;
}

/* Styles the dropdown menu. It's hidden by default. */
/* Corrected rule for section 13 */
.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 15px; /* Use padding to create space without a gap */
  z-index: 1000;
  min-width: 200px;
  padding-right: 0px;
  padding-bottom: 8px;
  padding-left: 0px;
  list-style: none;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

/* This is the trigger: Show the dropdown menu when hovering over its parent */
.main-nav .dropdown:hover > .dropdown-menu {
  display: block;
}

/* Styles the individual links within the dropdown menu */
.main-nav .dropdown-menu li a {
  padding: 10px 20px;
  display: block; /* Makes the entire area of the link clickable */
  white-space: nowrap; /* Prevents text from wrapping to a new line */

  /* Overriding default link colors for the dropdown context */
  color: var(--text-color); /* */
  font-weight: 500;
}

/* Adds a hover effect for the links inside the dropdown */
.main-nav .dropdown-menu li a:hover {
  background-color: var(--background-color); /* */
  color: var(--primary-color); /* */
}

/* 14. FOOTER MAP WIDGET */
/* The class in your footer.html is 'map-widget'. This adds styling for it. */
.map-widget {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden; /* Ensures the map's corners are rounded too */
    line-height: 0; /* Fixes potential extra vertical space */
}

/* 15. FOOTER TEXT VISIBILITY FIX */

/* This targets the links in the footer lists */
.footer-column ul li a {
    color: #e0e0e0 !important; /* Forces the link color to be light grey */
}

/* This targets the paragraph text in the contact column */
.footer-column .footer-text, 
.footer-column .footer-text a {
    color: #e0e0e0 !important; /* Forces the contact info color to be light grey */
}

/* 16. Responsive Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.image-grid img:hover {
    transform: scale(1.03);
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: block;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

/* Mobile responsive grid */
@media screen and (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smaller mobile devices */
@media screen and (max-width: 480px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
}