/* ==========================================================================
   DEDICATED CONTENT PAGE STYLES (/assets/css/content-page.css)
   VERSION 1.0 - Clean, Compact, and Purpose-Built
   ========================================================================== */

/* === Section-001: CORE LAYOUT & COMPACT SPACING === */
main {
    max-width: 950px;
    margin: 20px auto;
    padding: 0 15px;
}

main > section {
    padding: 25px 15px;
    margin-bottom: 25px;
    background-color: var(--card-background);
    border: 1px solid #f0f0f0;
    border-radius: 18px;
}

main h2 {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2rem);
    margin-bottom: 20px;
}

main h3 {
    font-family: var(--font-family-body);
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: bold;
}

hr.icon {
    margin: 30px 0; /* Standardized vertical margin */
}

/* === Section-002: HERO & BREADCRUMBS === */
.content-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 15px; /* Compact margin */
    overflow: hidden;
    border-radius: 18px;
    height: 45vh;
    max-height: 400px;
    padding: 0;
    border: none;
}
.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.85) 0%, rgba(0,0,0,0) 70%); z-index: 2; }
.content-hero .hero-content { position: relative; z-index: 3; padding: 25px; }
.content-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); text-shadow: 2px 2px 6px rgba(0,0,0,0.8); }
.content-hero .hero-subtitle { font-size: 1.1rem; opacity: 0.9; }

.breadcrumbs {
    padding: 0;
    margin-bottom: 25px;
    font-size: 0.9rem;
    background: none;
    border: none;
}
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.breadcrumbs li:not(:last-child)::after { content: '›'; margin-left: 8px; color: #999; }

/* === Section-003: MAIN CONTENT GRID (PRIMARY & ASIDE) === */
.main-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
}
@media (min-width: 900px) {
    .main-content-grid { grid-template-columns: minmax(0, 2.5fr) 1fr; }
}
.primary-content p {
    line-height: 1.7; /* Slightly more readable line height for long text */
    margin-bottom: 1em;
}
.primary-content p:last-child {
    margin-bottom: 0;
}
.secondary-content {
    align-self: start;
}
@media (min-width: 900px) {
    .secondary-content { position: sticky; top: 80px; }
}

/* Sidebar Box Styling */
.quick-facts-box, .nearby-places-box {
    background-color: #f7f3f0;
    border: 1px solid #e9e2dc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.quick-facts-box h3, .nearby-places-box h3 {
    font-family: var(--font-family-body);
    font-weight: bold;
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}
.quick-facts-grid { display: grid; gap: 12px; }
.quick-fact-item { display: flex; align-items: flex-start; gap: 10px; 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; padding: 5px 0; }

/* === Section-004: REUSABLE SECTIONS (Reviews, Stays, FAQ) === */
/* These sections will now inherit their styles from the global style.css
   and resort-page.css where applicable, ensuring perfect consistency.
   We only add specific overrides for the content page context if needed. */

/* FAQ Section Styling (Inherits from resort-page.css, which is good) */
#faq-section { background-color: #fff; }

/* Popular Stays Section Styling (Inherits from resort-page.css) */
#popular-stays-section { background-color: #fdf5e8; border-color: #f5e9d3; }

/* Enhanced Reviews Section (Inherits from resort-page.css) */
#reviews-section { background-color: #f3f9ff; border-color: #e0eaff; }

/* === Section-005: DEDICATED PACKAGE PAGE STYLES === */
.itinerary-timeline {
    border-left: 3px solid var(--primary-color);
    margin-top: 20px;
    padding-left: 25px;
}
.itinerary-day { position: relative; margin-bottom: 20px; padding-bottom: 10px; }
.itinerary-day::before { content: ''; position: absolute; left: -34px; 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); margin-bottom: 5px; }
.itinerary-day-content p { margin-bottom: 0.5em; line-height: 1.6; }

.inclusions-exclusions-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    background-color: #f7f3f0;
    border-radius: 12px;
}
@media (min-width: 768px) { .inclusions-exclusions-section { grid-template-columns: 1fr 1fr; } }
.ie-column h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.ie-column h3 .fa-circle-check { color: #4CAF50; }
.ie-column h3 .fa-circle-xmark { color: #f44336; }
.ie-column ul { padding-left: 20px; }