/* ==========================================================================
   GLOBAL THEME STYLES (style.css) - VERSION 3.1 (DEFINITIVE COMPACT)
   ========================================================================== */

/* === Section-001: FONT IMPORTS & VARIABLES === */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Merriweather:wght@700&display=swap');
:root { --primary-color: #ff7043; --text-color: #3D5A80; --background-color: #fffcf8; --accent-color: #3b82f6; --white-color: #ffffff; --card-background: #fff; --font-family-display: 'Merriweather', serif; --font-family-body: 'Lato', sans-serif; }

/* === Section-002: RESET & GLOBAL STYLES === */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-family-body); line-height: 1.4; color: var(--text-color); background-color: var(--background-color); overflow-x: hidden; }
main { max-width: 1100px; margin: 20px auto; padding: 0 15px; }
h1, h2, h3, h4 { font-family: var(--font-family-display); color: var(--primary-color); line-height: 1.4; }
a { color: var(--accent-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Section-003: HEADER & GLOBAL COMPONENTS === */

/* Header Logo Styling (v2.1 Compacted) */
.logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.header-logo { max-height: 40px; width: auto; }
.logo-text { font-family: var(--font-family-display); font-size: 1.1rem; font-weight: 700; color: var(--primary-color); line-height: 1; }
@media (max-width: 768px) { .logo-text { font-size: 1.4rem; } }

.global-header { background: var(--white-color); box-shadow: 0 2px 10px rgba(0,0,0,0.07); padding: 15px 0; position: sticky; top: 0; z-index: 999; width: 100%; }
.header-container { max-width: 1100px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-family-display); font-size: 1.5rem; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.logo:hover { text-decoration: none; }
.main-nav ul { list-style: none; display: flex; gap: 25px; }
.main-nav a { color: var(--text-color); font-weight: bold; font-size: 1rem; text-decoration: none; position: relative; padding-bottom: 5px; }
.main-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width 0.3s ease; }
.main-nav a:hover::after { width: 100%; }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; color: var(--text-color); cursor: pointer; }
.header-search-form { display: flex; align-items: center; gap: 5px; margin-left: auto; padding-right: 15px; }
.header-search-form input[type="text"] { padding: 6px 12px; border: 1px solid #ccc; border-radius: 20px; font-size: 0.9rem; outline: none; transition: border-color 0.2s ease-in-out; }
.header-search-form input[type="text"]:focus { border-color: var(--primary-color); }
.header-search-form button { background: var(--primary-color); color: var(--white-color); border: none; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.2s ease; font-size: 0.9rem; }
.header-search-form button:hover { background: #e65100; }
.header-right { display: flex; align-items: center; gap: 20px; }

hr.icon { border: none; border-bottom: 1px solid #e0e0e0; position: relative; text-align: center; overflow: visible; margin: 20px 0; }
hr.icon::after { content: '\f005'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--accent-color); font-size: 1rem; position: absolute; top: -0.7em; left: 50%; transform: translateX(-50%); background: var(--background-color); padding: 0 10px; }

@media (max-width: 768px) {
    .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white-color); box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li { border-bottom: 1px solid #f0f0f0; }
    .main-nav a { display: block; padding: 15px 20px; }
    .main-nav a:hover::after { width: 0; }
    .main-nav a:hover { background-color: #f9f9f9; }
    .mobile-menu-toggle { display: block; }
    .header-search-form { display: none; }
}

/* === Section-004: CARD COMPONENTS === */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; }

/* --- Resort Card --- */
.resort-card { background: var(--card-background); border-radius: 22px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.07); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; text-decoration: none; color: var(--text-color); }
.resort-card:hover { transform: translateY(-8px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); text-decoration: none;}
.resort-card-image { height: 180px; overflow: hidden; }
.resort-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.resort-card:hover .resort-card-image img { transform: scale(1.05); }
.resort-card-content { padding: 10px 15px; text-align: left; flex-grow: 1; display: flex; flex-direction: column; }
.resort-card-content h3 { font-size: 1.2rem; margin-bottom: 5px; }
.resort-card-location { font-size: 0.9rem; color: #666; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; flex-grow: 1; }
.resort-card-location i { color: var(--accent-color); }
.resort-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 5px; border-top: 1px solid #f0f0f0; }
.resort-card-price { font-size: 1.1rem; font-weight: bold; color: var(--primary-color); }
.resort-card-cta { background-color: var(--accent-color); color: var(--white-color); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; transition: background-color 0.2s; }

/* --- Content Card (Refined) --- */
.content-card { background: var(--card-background); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; text-decoration: none; color: var(--text-color); }
.content-card:hover { transform: translateY(-8px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); text-decoration: none; }
.content-card .card-image {height: 200px; position: relative; overflow: hidden; background-color: #f0f0f0;}
.content-card .card-image img {width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.4s ease;}
.content-card:hover .card-image img {transform: scale(1.08);}
.content-card .card-content { padding: 10px 15px 15px 15px; flex-grow: 1; text-align: left; display: flex; flex-direction: column; }
.content-card .card-content h3 { line-height: 1.2; margin-bottom: 5px; }
.content-card .card-location { font-size: 0.9rem; color: #666; margin-bottom: 8px; display: flex; align-items: center; justify-content: flex-start; gap: 6px; }
.content-card .card-description { font-size: 0.9rem; flex-grow: 1; margin-bottom: 15px; line-height: 1.4; }
.content-card .card-footer-link { display: inline-block; margin-top: auto; font-weight: bold; color: var(--accent-color); align-self: flex-end; }
.content-card .card-footer-link i { margin-left: 5px; transition: transform 0.2s ease; }
.content-card:hover .card-footer-link i { transform: translateX(5px); }
.content-card .card-image .card-category-tag { position: absolute; top: 10px; left: 10px; background-color: rgba(0, 0, 0, 0.6); color: white; padding: 4px 10px; border-radius: 15px; font-size: 0.8rem; font-weight: bold; backdrop-filter: blur(4px); }

/* === Section-005: PAGE-SPECIFIC LAYOUTS === */
/* --- Listing Page Layouts --- */
/* HERO FIX: Limit hero height and keep image responsive */
.listing-page-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    height: 40vh;
    max-height: 40vh;
    max-width: 1100px;
    margin: 0 auto;
}

/* Adjust text padding for smaller hero */
.listing-page-hero .hero-content {
    padding: 20px 15px;
}

@media (max-width: 768px) {
    .listing-page-hero {
        height: 40vh; /* same rule on mobile */
        max-height: 40vh;
    }
}

.listing-page-hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); z-index: 1; }
.listing-page-hero .hero-content { position: relative; z-index: 2; width: 100%; padding: 25px 15px; }
.listing-page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 8px; color: white; text-shadow: 2px 2px 4px rgba(0,0,0,0.6); }
.listing-page-hero .hero-subtitle { font-size: 1rem; color: white; max-width: 700px; margin: 0 auto; line-height: 1.4; text-shadow: 1px 1px 3px rgba(0,0,0,0.6); }
.listing-intro-text { max-width: 800px; margin: 25px auto 30px auto; text-align: center; font-size: 1.05rem; line-height: 1.5; color: #555; }

/* --- Content Detail Page Layouts (with Overflow Fix) --- */
.content-hero { position: relative; display: flex; align-items: flex-end; justify-content: center; text-align: center; color: white; margin-bottom: 20px; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; max-height: 80vh; }
@media (min-width: 768px) { .content-hero { max-height: 500px; } }
.content-hero .hero-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.content-hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); z-index: 2; }
.content-hero .hero-content { position: relative; z-index: 3; padding: 25px; }
.content-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: white; text-shadow: 2px 2px 6px rgba(0,0,0,0.7); }
.content-hero .hero-subtitle { font-size: 1.1rem; opacity: 0.9; }
.main-content-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 25px; width: 100%; overflow-x: hidden; }
@media (min-width: 900px) { .main-content-grid { grid-template-columns: minmax(0, 2.5fr) 1fr; } }
.primary-content, .secondary-content { min-width: 0; }
.secondary-content { align-self: start; }
@media (min-width: 900px) { .secondary-content { position: sticky; top: 80px; } }
.quick-facts-box, .nearby-places-box { background-color: var(--card-background); border: 1px solid #eee; border-radius: 12px; padding: 20px; margin-bottom: 25px; }
.quick-facts-box h3, .nearby-places-box h3 { font-family: var(--font-family-body); font-weight: bold; color: var(--text-color); font-size: 1.3rem; margin-bottom: 15px; text-align: center; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.quick-facts-grid { display: grid; gap: 15px; }
.quick-fact-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; }
.quick-fact-item i { color: var(--accent-color); font-size: 1.1rem; margin-top: 3px; width: 20px; text-align: center; }
.quick-fact-item-content strong { display: block; font-weight: bold; color: var(--text-color); }
.nearby-places-list { list-style: none; padding: 0; }
.nearby-places-list li a { display: flex; align-items: center; gap: 8px; }
.howto-steps-list { list-style: none; padding: 0; counter-reset: howto-step; }
.howto-step { position: relative; padding: 15px 15px 15px 50px; margin-bottom: 15px; background-color: #f9f9f9; border-left: 4px solid var(--primary-color); border-radius: 0 8px 8px 0; }
.howto-step::before { counter-increment: howto-step; content: counter(howto-step); position: absolute; left: 10px; top: 50%; transform: translateY(-50%); background-color: var(--primary-color); color: white; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.itinerary-timeline { border-left: 3px solid var(--primary-color); margin-top: 30px; padding-left: 20px; }
.itinerary-day { position: relative; margin-bottom: 20px; }
.itinerary-day::before { content: ''; position: absolute; left: -29px; top: 5px; width: 15px; height: 15px; background-color: var(--background-color); border: 3px solid var(--primary-color); border-radius: 50%; }
.itinerary-day-number { font-family: var(--font-family-display); font-size: 1.4rem; color: var(--primary-color); }
.inclusions-exclusions-section { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 40px 0; padding: 20px; background-color: var(--card-background); border-radius: 12px; border: 1px solid #eee; }
@media (min-width: 768px) { .inclusions-exclusions-section { grid-template-columns: 1fr 1fr; } }
.ie-column h3 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.ie-column h3 .fa-circle-check { color: #4CAF50; }
.ie-column h3 .fa-circle-xmark { color: #f44336; }
.visual-nav-section-wrapper { text-align: center; }
.visual-nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; }
.visual-nav-card { position: relative; height: 250px; border-radius: 18px; overflow: hidden; display: flex; align-items: flex-end; text-decoration: none; transition: transform 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.visual-nav-card:hover { transform: translateY(-5px); text-decoration: none; }
.visual-nav-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 0.4s ease-out; }
.visual-nav-card:hover .visual-nav-img { transform: scale(1.08); }
.visual-nav-overlay { position: relative; z-index: 2; width: 100%; padding: 25px 20px; text-align: center; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%); }
.visual-nav-overlay h3 { font-family: 'Charm', cursive; font-weight: 700; font-size: 2.2rem; color: white; text-shadow: 1px 1px 4px rgba(0,0,0,0.5); line-height: 1.1; margin: 0; }

/* --- Static Page Layouts --- */
.static-page-main { max-width: 800px; margin: 40px auto; padding: 0 15px; }
.static-page-header { text-align: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 2px solid var(--primary-color); }
.static-page-header h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.static-page-main .breadcrumbs { justify-content: flex-start; margin-bottom: 30px; }
.static-page-content { line-height: 1.8; font-size: 1.05rem; color: #444; }
.static-page-content h2, .static-page-content h3, .static-page-content h4 { margin-top: 2em; margin-bottom: 0.8em; }
.static-page-content p { margin-bottom: 1.5em; }
.static-page-content ul, .static-page-content ol { margin-left: 20px; margin-bottom: 1.5em; }
.static-page-content li { margin-bottom: 0.5em; }
.static-page-content a { text-decoration: underline; }

/* === Section-006: REUSABLE SECTIONS & CAROUSELS === */

/* --- Popular Stays Section --- */
#popular-stays-section { background-color: #f0f9ff; border: 1px solid #e0f2fe; border-radius: 25px; padding: 25px 0; text-align: center; }
#popular-stays-section h2 { margin-bottom: 5px; 1.5rem;}
.popular-stays-carousel-wrapper { position: relative; max-width: 950px; margin: 0 auto; overflow: hidden; padding: 0 5px; }
.popular-stays-carousel { overflow: hidden; padding: 8px 0; margin: 0 -10px; }
.popular-stays-carousel-wrapper .swiper-button-next, .popular-stays-carousel-wrapper .swiper-button-prev { color: var(--primary-color); background-color: rgba(255, 255, 255, 0.85); border-radius: 50%; width: 38px; height: 38px; box-shadow: 0 2px 5px rgba(0,0,0,0.15); transition: all 0.2s ease; top: 45%; }
.popular-stays-carousel-wrapper .swiper-button-next::after, .popular-stays-carousel-wrapper .swiper-button-prev::after { font-size: 1rem; font-weight: bold; }
.popular-stays-carousel-wrapper .swiper-button-next:hover, .popular-stays-carousel-wrapper .swiper-button-prev:hover { background-color: white; transform: scale(1.1); }

/* --- Enhanced Reviews Section --- */
.enhanced-reviews-section { background-color: #f3f9ff; border: 1px solid #e0eaff; border-radius: 40px; padding: 25px 5px; overflow: hidden; margin-bottom: 20px;}
.aggregate-rating-box { display: flex; align-items: center; justify-content: center; gap: 15px; background-color: var(--card-background); padding: 10px 25px; border-radius: 50px; margin: 0 auto 25px auto; max-width: 350px; border: 1px solid #eee; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.aggregate-rating-box .rating-value { font-size: 2.8rem; font-weight: bold; color: var(--primary-color); line-height: 1; }
.rating-stars-and-count { text-align: left; }
.rating-stars-and-count .rating-stars { font-size: 1.2rem; color: #ffc107; }
.rating-stars-and-count p { font-size: 0.8rem; color: #777; margin: 0; }
.review-card { background-color: #fff; border: 1px solid #eee; border-radius: 12px; padding: 20px; height: auto; min-height: 150px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.review-body { font-style: italic; color: #555; margin-bottom: 15px; flex-grow: 1; }
.review-author { font-weight: bold; }
.reviews-carousel-wrapper { position: relative; max-width: 950px; margin: 0 auto; padding: 0 5px; overflow: hidden; }
.reviews-carousel { padding-bottom: 40px; }
.reviews-carousel-wrapper .swiper-button-next, .reviews-carousel-wrapper .swiper-button-prev { color: var(--primary-color); background-color: rgba(255, 255, 255, 0.85); border-radius: 50%; width: 38px; height: 38px; box-shadow: 0 2px 5px rgba(0,0,0,0.15); transition: all 0.2s ease; }
.reviews-carousel-wrapper .swiper-button-next::after, .reviews-carousel-wrapper .swiper-button-prev::after { font-size: 1rem; font-weight: bold; }
.reviews-carousel-wrapper .swiper-button-next:hover, .reviews-carousel-wrapper .swiper-button-prev:hover { background-color: white; transform: scale(1.1); }

/* === Section-007: FOOTER REFINEMENTS (v19.1 - Compacted) === */
.footer-logo { max-height: 50px; margin-bottom: 15px; }
.footer-bottom .credit { font-size: 0.8rem; opacity: 0.7; margin-top: 5px; }
.global-footer { background-color: var(--text-color); color: #e0e0e0; padding-top: 40px; margin-top: 40px; font-size: 0.95rem; }
.footer-container { max-width: 1100px; margin: 0 auto; padding: 0 15px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.footer-column h4 { color: var(--white-color); margin-bottom: 15px; font-size: 1.2rem; }
.footer-column p, .footer-column li { margin-bottom: 10px; line-height: 1.7; }
.footer-column.links ul { list-style: none; }
.footer-column.links a, .footer-column.contact a { color: #e0e0e0; text-decoration: none; transition: color 0.2s; }
.footer-column.links a:hover, .footer-column.contact a:hover { color: var(--primary-color); text-decoration: none; }
.footer-column .social-icons { margin-top: 15px; }
.social-icons a { color: #e0e0e0; font-size: 1.5rem; margin-right: 15px; transition: color 0.2s; }
.social-icons a:hover { color: var(--primary-color); text-decoration: none; }
.footer-column.contact address { font-style: normal; }
.footer-column.contact i { color: var(--primary-color); width: 20px; text-align: center; margin-right: 5px; }
.footer-bottom { text-align: center; padding: 20px 15px; margin-top: 20px; border-top: 1px solid #4A6A92; font-size: 0.9rem; }

/* Mobile Responsiveness for Footer */
@media (max-width: 768px) {
    .footer-container { text-align: center; }
    .footer-column.links ul { padding-left: 0; }
    .social-icons { display: flex; justify-content: center; gap: 15px; }
    .social-icons a { margin-right: 0; }}

/* === Section-008: WHATSAPP WIDGET (v2.1 Compacted & Refined) === */
.whatsapp-fab { display: flex; align-items: center; justify-content: center; position: fixed; bottom: 25px; right: 15px; z-index: 1000; width: 55px; height: 55px; background-color: rgba(37, 211, 102, 0.9); backdrop-filter: blur(3px); color: #FFF; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.2); text-decoration: none; cursor: pointer; transition: all .2s ease-in-out; }
.whatsapp-fab:hover { transform: scale(1.4); background-color: #25D366; color: #FFF; }
.whatsapp-fab i { font-size: 2rem; }
.whatsapp-fab.hidden{opacity:0;visibility:hidden;transform:scale(.5);}
.whatsapp-popup{display:none;position:fixed;bottom:90px;right:20px;background:#fff;border:1px solid #ddd;border-radius:8px;padding:15px;box-shadow:0 2px 10px rgba(0,0,0,0.2);z-index:1001;width:280px;}
.whatsapp-popup.active{display:block;}
.popup-box{display:flex;flex-direction:column;gap:10px;}
#whatsapp-popup label{font-size:0.9rem;font-weight:bold;text-align:center;}
#whatsapp-username,#whatsapp-phone,#whatsapp-city{padding:8px;border:1px solid #ccc;border-radius:5px;}
#whatsapp-send-btn,#whatsapp-close-btn{padding:10px;border:none;border-radius:5px;cursor:pointer;font-weight:bold;}
#whatsapp-send-btn{background:#25D366;color:white;}#whatsapp-send-btn:disabled{background:#9E9E9E;cursor:not-allowed;}
#whatsapp-close-btn{background:#eee;color:black;}
@media (max-width:768px){.whatsapp-fab{bottom:75px;}
.whatsapp-popup{bottom:145px;right:10px;width:calc(100% - 20px);}}
@media (min-width: 1250px) { /* 1100px content width + 20px buffer on each side */
    .whatsapp-fab { right: calc((100vw - 1200px) / 2); }
    .whatsapp-popup { right: calc((100vw - 1200px) / 2); }


/* === Contact Page Specific Styles === */
.contact-page-wrapper { max-width: 600px; margin: 20px auto; }
.contact-details, .social-links-section { background: var(--card-background); padding: 25px; border-radius: 12px; border: 1px solid #eee; margin-bottom: 30px; }
.contact-details h3, .social-links-section h3 { text-align: center; font-size: 1.8rem; margin-bottom: 25px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; font-size: 1.1rem; }
.contact-item i { color: var(--primary-color); font-size: 1.3rem; margin-top: 4px; width: 25px; text-align: center; }
.social-links-section .social-icons { display: flex; justify-content: center; gap: 25px; }
.social-links-section .social-icons a { color: var(--text-color); font-size: 2.2rem; }    

/* === Section-009: GENERIC CTA BUTTON STYLING (Added v19.2) === */
.cta-button { display: inline-block; background: var(--primary-color); color: var(--white-color); padding: 7px 20px; border-radius: 25px; font-weight: bold; transition: all 0.3s ease; border: 2px solid var(--primary-color); text-decoration: none; cursor: pointer; }
.cta-button:hover { background: #e65100; text-decoration: none; color: var(--white-color); transform: translateY(-3px); }
.cta-button.secondary { background: rgba(255,255,255,0.2); border: 1px solid #fff; }

/* Ensure the custom HTML button is styled correctly */
.custom-html-section .cta-button { margin-top: 0.5rem; }