/* Main Stylesheet for Properties Section */
/* Consolidated header, nav, footer, and base styles */

/* ============================================
   RESET AND BASE STYLES
   ============================================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    background: #fafafa url('../images/clouds.jpg') 0 0 repeat-x;
    background-attachment: fixed;
    color: #000;
    min-height: 100vh;
}

/* Ensure all elements use Arial font */
*, *::before, *::after {
    font-family: Arial, Helvetica, sans-serif;
}

#page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background-color: transparent;
}

/* Nav should span full width, not be constrained by page-wrapper */
nav {
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* Links */
a {
    color: #042f57;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Ensure all images are constrained to container width */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure responsive images are constrained */
.responsive-image, .responsive-image img {
    max-width: 100% !important;
    height: auto !important;
}

/* ============================================
   HEADER STYLES
   ============================================ */

#site-header {
    position: relative;
    background-image: url('../images/header/bandeau1.png');
    background-repeat: no-repeat;
    background-position: top left;
    background-size: auto;
}

.header-main {
    position: relative;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    flex-shrink: 0;
    margin-left: 100px;
}

.logo {
    width: 111px;
    height: 111px;
    margin: 0;
    flex-shrink: 0;
}

.site-title {
    text-align: left;
    color: #fff;
    margin: 0;
    flex-shrink: 0;
}

.site-title h1 {
    font-size: 24px;
    margin: 0;
    color: #fff;
    line-height: 1.2;
}

.site-title h2 {
    font-size: 24px;
    margin: 0;
    color: #fff;
    line-height: 1.2;
}

.header-images {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.header-img-wrapper {
    position: relative;
    display: inline-block;
}

.header-img-1,
.header-img-2,
.header-img-3 {
    width: 130px;
    height: 100px;
    object-fit: cover;
    display: block;
}

.header-paperclip {
    position: absolute;
    top: -25%;
    left: 0;
    width: 50%;
    height: 50%;
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
    transform: translateX(50%);
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */

.sf-menu, .sf-menu * { 
    margin:0; 
    padding:0; 
    list-style:none; 
}

.sf-menu { 
    line-height:1.0; 
}

.sf-menu ul { 
    position:absolute; 
    top:-999em; 
    width:200px; 
}

.sf-menu ul li { 
    width:100%; 
}

.sf-menu li:hover { 
    visibility:inherit; 
}

.sf-menu li { 
    float:right; 
    position:relative; 
}

.sf-menu a { 
    display:block; 
    position:relative; 
}

.sf-menu li:hover ul, 
.sf-menu li.sfHover ul { 
    left:0; 
    top:3em; 
    z-index:99; 
}

ul.sf-menu li:hover li ul, 
ul.sf-menu li.sfHover li ul { 
    top:-999em; 
}

ul.sf-menu li li:hover ul, 
ul.sf-menu li li.sfHover ul { 
    left:200px; 
    top:0; 
}

ul.sf-menu li li:hover li ul, 
ul.sf-menu li li.sfHover li ul { 
    top:-999em; 
}

ul.sf-menu li li li:hover ul, 
ul.sf-menu li li li.sfHover ul { 
    left:200px; 
    top:0; 
}

.sf-menu a.sf-with-ul { 
    padding-right:1.75em!important; 
    min-width:1px; 
}

nav {
    background: #2c3e50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: relative;
    margin: 0;
    padding: 0;
    clear: both;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

nav .sf-menu {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: flex-end;
}

nav ul li a {
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-size: 1.25em;
    color: #ddd;
    text-decoration: none;
    text-shadow: 1px 1px 3px #111;
    padding: 0.75em 1em !important;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    background-color: rgba(0,0,0,0.2);
    display: block;
}

nav ul li a:hover,
nav ul li:hover > a {
    color: #fff;
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

nav ul li a.nav-selected,
nav ul li a.nav-path-selected {
    color: #fff;
    background-color: rgba(255,255,255,0.25);
}

nav li ul {
    z-index: 99;
    background: rgba(30, 61, 34, 0.98);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 0 0 8px 8px;
    padding: 5px 0;
}

nav li li {
    background-color: #292929;
    font-size: 0.8em;
}

nav li li a {
    padding: 0.6em 1.2em !important;
    background-color: transparent;
}

nav li li a:hover,
nav li li a.nav-selected,
nav li li a.nav-path-selected {
    background-color: rgba(255,255,255,0.15) !important;
    padding-left: 1.5em !important;
}

nav li li li { 
    font-size: 1em; 
}

nav .clearboth { 
    height: 0; 
}

/* ============================================
   FOOTER STYLES
   ============================================ */

footer {
    background-color: #2c3e50;
    padding: 20px;
    margin: 0 auto;
    clear: both;
    border-top: 1px solid #1a252f;
    max-width: 900px;
}

footer p {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

footer .left,
footer .right {
    font-size: 12px;
    color: #fff;
}

@media (max-width: 768px) {
    footer p {
        flex-direction: column;
        text-align: center;
    }
    
    footer .left,
    footer .right {
        width: 100%;
    }
}

/* ============================================
   INDEX PAGE STYLES
   ============================================ */

/* Camp Overview Styles */
.camps-overview {
    margin: 20px 0;
}

.camps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.camp-item {
    background-color: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.camp-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.camp-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

.camp-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.camp-item-closed {
    opacity: 0.7;
    position: relative;
}

.camp-item-closed:hover {
    opacity: 0.8;
}

.camp-closed-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(220, 53, 69, 0.9);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 2;
    pointer-events: none;
}

.camp-item h3 {
    margin: 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: #042f57;
}

.camp-item p {
    margin: 10px 0;
    font-size: 12px;
    color: #333;
}

.featured-images {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    justify-content: center;
}

.featured-images img {
    max-width: 100%;
    height: auto;
}

.intro-text {
    margin: 20px 0;
    padding: 15px;
    text-align: center;
}

.intro-text p {
    font-size: 14px;
    line-height: 1.6;
}

/* Calendar Styles */
.calendar-section {
    margin: 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    scroll-margin-top: 20px;
}

.calendar-container {
    width: 100%;
    margin: 0 auto;
}

.calendar-title-section {
    margin-bottom: 15px;
    text-align: center;
}

.calendar-main-title {
    font-size: 28px;
    font-weight: bold;
    color: #042f57;
    margin: 0 0 5px 0;
}

.calendar-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-style: italic;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px 0;
}

.calendar-nav {
    color: #042f57;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 15px;
    border: 1px solid #042f57;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.calendar-nav:hover {
    background-color: #042f57;
    color: #fff;
}

.calendar-month-year {
    display: flex;
    gap: 10px;
    align-items: center;
}

.calendar-month-year select {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #042f57;
    background-color: #fff;
    cursor: pointer;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.calendar-table thead th {
    background-color: #042f57;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
}

.calendar-table tbody td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    height: 40px;
    vertical-align: middle;
}

.calendar-day {
    color: #333;
    font-size: 14px;
}

.calendar-day.empty {
    background-color: #f5f5f5;
    color: #ccc;
}

.calendar-day.today {
    background-color: #042f57;
    color: #fff;
    font-weight: bold;
}

.calendar-day.pending {
    background-color: #ff9800;
    color: #fff;
    cursor: not-allowed;
}

.calendar-day.booked {
    background-color: #f44336;
    color: #fff;
    cursor: not-allowed;
}

.calendar-day:not(.pending):not(.booked):not(.empty):not(.past-date) {
    cursor: pointer;
}

.calendar-day:not(.pending):not(.booked):not(.empty):not(.past-date):hover {
    background-color: #e3f2fd;
}

.calendar-day.past-date {
    opacity: 0.5;
    cursor: not-allowed;
    color: #999;
}

.calendar-day small {
    display: block;
    font-size: 9px;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   SUB-NAVIGATION STYLES
   ============================================ */

.sub-navigation {
    background-color: transparent;
    padding: 15px 0;
    margin: 15px 0;
    clear: both;
}

.sub-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.sub-navigation li {
    margin: 0;
    float: none;
}

.sub-navigation a {
    color: #042f57;
    text-decoration: none;
    font-weight: bold;
    font-size: 11px;
    padding: 8px 12px;
    display: block;
    text-transform: uppercase;
}

.sub-navigation li.active a {
    color: #042f57;
    text-decoration: underline;
}

/* ============================================
   MAIN CONTENT STYLES
   ============================================ */

#main-content {
    background-color: #fff;
    min-height: 500px;
    padding: 0 20px 20px 20px;
    clear: both;
    margin-bottom: 0;
}

#content-area {
    background-color: transparent;
    clear: both;
}

/* ============================================
   CAMP PAGE CONTENT STYLES
   ============================================ */

.camp-hero {
    text-align: center;
    margin: 20px 0;
}

.camp-hero img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.camp-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-section {
    text-align: center;
    padding: 15px;
}

.feature-section img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.feature-section h3 {
    font-size: 14px;
    font-weight: bold;
    color: #042f57;
    margin: 10px 0;
    line-height: 1.4;
}

/* ============================================
   SUB PAGE STYLES (Shared by Terms, Emergency Plans, Fees, etc.)
   ============================================ */

.terms-page,
.emergency-plans-page,
.fees-page,
.camp-page-content {
    margin: 20px 0;
}

.terms-page h1,
.emergency-plans-page h1,
.fees-page h1 {
    font-size: 30px;
    font-weight: bold;
    color: #042f57;
    margin: 0 0 20px 0;
    letter-spacing: 2px;
    text-align: left;
}

.camp-hero h1 {
    font-size: 30px;
    font-weight: bold;
    color: #042f57;
    margin: 20px 0;
    letter-spacing: 2px;
}

.terms-content {
    font-family: Times New Roman, Times, serif;
    font-size: 12pt;
    line-height: 1.6;
    color: #000;
    margin: 20px 0;
}

.terms-content p {
    margin: 10px 0;
    text-align: left;
}

.terms-content strong {
    font-weight: bold;
    color: #000;
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

.contact-page {
    margin: 20px 0;
}

.contact-page h1 {
    font-size: 30px;
    font-weight: bold;
    color: #042f57;
    margin: 20px 0;
    letter-spacing: 2px;
    text-align: left;
}

.booking-notice {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
}

.form-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.form-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.contact-form {
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #042f57;
}

.form-group .required {
    color: #dc3545;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background-color: #042f57;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #034a7a;
}

/* Shared h2, h3, p, ul, li styles for sub pages */
.terms-page h2,
.emergency-plans-page h2,
.fees-section h2,
.camp-hero h2 {
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0 10px 0;
    color: #042f57;
}

.terms-page h3,
.emergency-plans-page h3,
.camp-features h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 15px 0 10px 0;
    color: #042f57;
}

.terms-page p,
.emergency-plans-page p,
.fees-info p,
.camp-description p {
    margin: 15px 0;
    line-height: 1.6;
}

.terms-page ul,
.emergency-plans-page ul,
.camp-description ul {
    margin: 10px 0;
    padding-left: 30px;
}

.terms-page li,
.emergency-plans-page li,
.camp-description li {
    margin: 8px 0;
}

.emergency-plans-page a {
    color: #00b0f0;
    text-decoration: underline;
}

/* ============================================
   FEES PAGE STYLES
   ============================================ */

/* Fees page specific styles */
.fees-update {
    text-align: left;
    color: #d32f2f;
    font-weight: bold;
    margin: 0 0 30px 0;
    font-size: 13px;
}

.fees-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.fees-column {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.fees-column h2 {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 20px 0;
    color: #042f57;
    text-align: left;
    border-bottom: 2px solid #042f57;
    padding-bottom: 10px;
}

.fees-tables-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.fees-table-wrapper {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.fees-table-wrapper h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #042f57;
    text-align: center;
}

.fees-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.fees-table thead th {
    background-color: #042f57;
    color: #fff;
    padding: 0 8px;
    text-align: center;
    font-weight: bold;
    font-size: 13px;
    border: 1px solid #042f57;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.fees-table thead th:last-child {
    border-right: 1px solid #042f57;
}

.fees-table tbody td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 13px;
}

.fees-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.fees-table tbody tr:hover {
    background-color: #f0f0f0;
}


.fees-info {
    margin: 30px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.fees-info p {
    margin: 15px 0;
    line-height: 1.6;
}

.fees-info a {
    color: #042f57;
    text-decoration: underline;
}

.fees-info a:hover {
    color: #034a7a;
}

@media (max-width: 768px) {
    .fees-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ============================================
   BOOKING MODAL STYLES
   ============================================ */

.booking-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.booking-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
}

.booking-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.booking-modal-close:hover {
    color: #000;
}

.booking-modal-content h2 {
    margin-top: 0;
    color: #042f57;
}

.booking-modal-content .form-group {
    margin-bottom: 10px;
}

.booking-modal-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.booking-modal-content input[type="text"],
.booking-modal-content input[type="email"],
.booking-modal-content input[type="tel"],
.booking-modal-content input[type="date"],
.booking-modal-content select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* ============================================
        CAMP DESCRIPTION STYLES
        ============================================ */

.camp-description {
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.camp-description p {
    margin: 15px 0;
    line-height: 1.6;
}

.camp-description ul {
    margin: 15px 0;
    padding-left: 30px;
}

.camp-description li {
    margin: 8px 0;
}

/* ============================================
        STANDARD PAGE CONTENT STYLES
        (from calquestandard.css)
        ============================================ */

.page-content {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.content-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #fff;
}

.content-section h1,
.content-section h2,
.content-section h3 {
    margin-top: 0;
}

.content-section p {
    margin: 10px 0;
    line-height: 1.6;
}

.content-section ul,
.content-section ol {
    margin: 10px 0;
    padding-left: 30px;
}

.content-section li {
    margin: 5px 0;
}

