/* =========================================
   1. GLOBAL STYLES
   ========================================= */
html {
    scroll-behavior: smooth;
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: #1b1c1e; 
    margin: 0; 
    padding: 0; 
    color: #f1f1f1;
    overflow-x: hidden;
}

.section-container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 20px; 
}

.section-header { 
    text-align: center; 
    margin-bottom: 40px; 
    padding-top: 20px;
}

.section-header h1 { 
    font-size: 2.5rem; 
    margin: 0; 
}

/* =========================================
   2. NAVIGATION
   ========================================= */
.main-nav {
    background-color: #1b1c1e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    padding: 15px 0;
    position: sticky; 
    top: 0;
    z-index: 1000; 
    border-bottom: 1px solid #333;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0 20px;
}

.logo img {
    display: block; 
    max-height: 40px; 
    width: auto;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px; 
}

.nav-links a {
    text-decoration: none;
    color: #aaa; 
    font-weight: 400; 
    font-size: 0.9rem;
    letter-spacing: 1px; 
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #4da3ff;
    letter-spacing: 2px; 
}

/* Mobile Nav */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column; 
        gap: 15px;
    }
    .nav-links {
        gap: 20px;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
}

/* =========================================
   3. BLOG GRID & CARDS
   ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    width: 100%; 
}

.blog-card {
    background: #252629;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.blog-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: #333;
}

.blog-content { 
    padding: 25px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}

.blog-date { 
    font-size: 0.75rem; 
    color: #4da3ff;
    font-weight: bold; 
    text-transform: uppercase; 
    margin-bottom: 12px; 
}

.blog-title { 
    font-size: 1.4rem; 
    margin: 0 0 15px 0; 
    line-height: 1.3; 
}

.blog-title a { text-decoration: none; color: inherit; }
.blog-title a:hover { color: #4da3ff; }

.blog-excerpt { 
    font-size: 0.95rem; 
    color: #bbb; 
    line-height: 1.6; 
    margin-bottom: 25px; 
    flex-grow: 1; 
}

.blog-link {
    font-weight: bold; 
    color: #4da3ff; 
    text-decoration: none; 
    font-size: 0.9rem;
    padding-top: 10px;
    border-top: 1px solid #3d3e40;
}

/* =========================================
   4. BUTTONS & SOCIAL
   ========================================= */
.view-all-container { text-align: center; margin-bottom: 40px; }

.view-all-btn { 
    display: inline-block; 
    padding: 15px 35px; 
    background-color: #444; 
    color: #fff !important; 
    text-decoration: none; 
    border-radius: 50px; 
    font-weight: bold;
    transition: background 0.3s;
    cursor: pointer;
    border: none;
}

.view-all-btn:hover { background-color: #4da3ff; }

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.social-links a {
    color: #ccc;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: #4da3ff;
    transform: scale(1.2);
}

/* =========================================
   5. AVAILABILITY CALENDAR
   ========================================= */
#rusty-calendar-app { text-align: center; padding: 2em 0; }

#rusty-calendar-app .calendar-container { 
    max-width: 800px; 
    margin: auto; 
    background: #252629;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#rusty-calendar-app .calendar-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0.5em 0; 
}

#rusty-calendar-app .calendar-header h2 { margin: 0; font-size: 1.2rem; }

#rusty-calendar-app .calendar-header button { 
    background: #444; 
    color: white; 
    border: none; 
    padding: 0.5em 1em; 
    border-radius: 6px; 
    cursor: pointer; 
}

#rusty-calendar-app .calendar-header button:hover { background: #4da3ff; }

#rusty-calendar-app .calendar-grid { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 4px; 
    margin-top: 10px;
}

#rusty-calendar-app .day-name { 
    font-weight: bold; 
    font-size: 0.8rem;
    color: #888; 
}

#rusty-calendar-app .day { 
    border: 1px solid #3d3e40; 
    aspect-ratio: 1 / 1; 
    padding: 4px; 
    text-align: right; 
    font-size: 0.8rem; 
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#rusty-calendar-app .day.not-current-month { color: #555; }
#rusty-calendar-app .day.today { border: 2px solid #4da3ff; }
#rusty-calendar-app .today-center { font-size: 0.6rem; color: #4da3ff; text-transform: uppercase; }

#rusty-calendar-app .day.busy { background-color: rgba(220, 53, 69, 0.15); border-left: 3px solid #dc3545; }
#rusty-calendar-app .day.available { background-color: rgba(40, 167, 69, 0.15); border-left: 3px solid #28a745; cursor: pointer; }
#rusty-calendar-app .day.available:hover { background-color: rgba(40, 167, 69, 0.25); }

/* =========================================
   6. MODALS (CONTACT & RESERVATION)
   ========================================= */
.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.8);
    align-items: center; 
    justify-content: center;
}

.modal.is-visible {
    display: flex !important;
}

.modal-content {
    position: relative; 
    background-color: #252629; 
    padding: 40px;
    width: 90%; 
    max-width: 450px; 
    border-radius: 12px;  
    border: 1px solid #444;
    color: #f1f1f1;
    max-height: 85vh; 
    overflow-y: auto;
}

.modal .close-btn { 
    position: absolute; 
    top: 15px;
    right: 20px;
    color: #aaa; 
    font-size: 28px; 
    font-weight: bold; 
    cursor: pointer;
    line-height: 1;
}

.modal .close-btn:hover { color: #ffffff; }

/* Styling for Form Inputs inside Reservation Modal */
.modal-form input, .modal-form textarea { 
    width: 100%; 
    padding: 12px; 
    margin-bottom: 15px; 
    background: #1b1c1e; 
    border: 1px solid #444; 
    color: white; 
    border-radius: 6px; 
    box-sizing: border-box;
}

/* Button for Reservation Submit */
.btn_send {
    width: 100%;
    background-color: #4da3ff !important;
    color: white !important;
    padding: 15px !important;
    border: none;
    font-weight: bold;
    border-radius: 30px !important;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn_send:hover {
    background-color: #ffffff !important;
    color: #1b1c1e !important;
    transform: translateY(-2px);
}

/* Contact Modal Specifics */
#contactModal .contact-action-item { margin-bottom: 20px; }
#contactModal .btn-copy {
    background-color: #444;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    margin-top: 10px;
}
#contactModal .btn-copy:hover {
    background-color: #4da3ff;
    transform: translateY(-2px);
}
#contactModal .btn-copy:active {
    transform: scale(0.95);
}

/* =========================================
   7. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 15px; }
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 0.85rem; }
    .blog-grid { grid-template-columns: 1fr; } 
}

/* =========================================
COOKIE CONSENT BANNER
========================================= */
#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1b1c1e;
  border-top: 1px solid #3d3e40;
  padding: 15px;
  text-align: center;
  z-index: 9999;
  font-size: 0.9rem;
  color: #ccc;
  display: none; /* Hidden until JS confirms no preference exists */
}

.btn_cookie {
  background-color: #4da3ff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  margin-left: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.btn_cookie:hover {
  background-color: #ffffff;
  color: #1b1c1e;
  transform: translateY(-2px);
}

.btn_cookie.reject {
  background-color: #444;
}

.btn_cookie.reject:hover {
  background-color: #4da3ff;
  color: #fff;
}

.btn_browse {
    display: inline-block;
    padding: 12px 30px;
    background-color: #444;
    color: #fff !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background 0.3s;
    cursor: pointer;
    border: none;
}
.btn_browse:hover {
    background-color: #4da3ff;
}


/* =========================================
FILE UPLOAD & TABLE RESPONSIVE STYLES
========================================= */
.file-upload-wrapper {
    width: 100%;
    margin: 0 auto;
    font-family: sans-serif;
}

.file-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.file-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px; /* Prevents table from squishing too much on mobile */
    background: #252629;
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.9rem;
}

.file-table th, 
.file-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #444;
}

.file-table th {
    background-color: #252629;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.file-table tr:last-child td {
    border-bottom: none;
}

.file-table .btn-delete {
    color: #dc3545;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.file-table .btn-delete:hover {
    background-color: #dc3545;
    color: #fff;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .file-upload-wrapper {
        padding: 0 10px;
    }
    
    .file-table th,
    .file-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .file-table .btn-delete {
        padding: 10px 16px;
        font-size: 0.95rem;
        border: 1px solid #dc3545;
        text-align: center;
    }
    
    .file-table-container {
        margin-left: -10px;
        margin-right: -10px;
        padding-left: 10px;
        padding-right: 10px;
    }
}
.file-upload-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: sans-serif;
}
.upload-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}
.file-table .btn-delete {
    color: #dc3545;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.file-table .btn-delete:hover {
    background-color: #dc3545;
    color: #fff;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .file-table .btn-delete {
        padding: 10px 16px;
        font-size: 0.95rem;
        border: 1px solid #dc3545;
        text-align: center;
    }
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4da3ff;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    font-weight: bold;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.2rem;
}

.section-container {

    min-height: 436px;
    
    /* 6. Ensure content flows on top (standard behavior, but good to enforce) */
    position: relative;
    z-index: 1;
}

/* Optional: If you want the image to stretch to fill the entire section 
   regardless of height, use this instead of min-height/size:
   background-size: cover; 
   min-height: 100%; 
*/

#hero-section {
    background-image: url('https://rustyrogers.com/img/ForestWalking02_800_436.webp');
    background-size: 800px 436px;
    background-position: center;
    background-repeat: no-repeat !important;
    /* min-height and position can stay here or move to the shared class */
}