/* =========================================
   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;
}

.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 STYLES (Logo Left, Menu Right)
   ========================================= */
.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; /* This pushes Logo to left and Nav to right */
    align-items: center;
    padding: 0 20px;
}

.logo img {
    display: block; /* Removes extra whitespace under image */
    max-height: 40px; /* Ensures the logo doesn't stretch the header too much */
    width: auto;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px; /* Space between the menu items */
}

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

.nav-links a:hover {
    color: #4da3ff;
    letter-spacing: 2px; /* Subtle elegant expansion on hover */
}

/* Responsive: On mobile, stack them or center them */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column; /* Stacks logo above menu on small screens */
        gap: 15px;
        text-align: center;
    }
    
    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }
}

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

.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 & FOOTER
   ========================================= */
.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;
}

.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: 1em 0; 
}

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

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

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

#rusty-calendar-app .day-name { font-weight: bold; padding-bottom: 0.5em; color: #888; }

#rusty-calendar-app .day { 
    border: 1px solid #3d3e40; 
    min-height: 80px; 
    padding: 0.5em; 
    text-align: right; 
    font-size: 0.9em; 
    position: relative;
}

#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.7rem; display: block; color: #4da3ff; text-transform: uppercase; }

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

/* Reservation Modal */
#reservation-modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); 
}
#reservation-modal .modal-content {
    background-color: #252629; margin: 10% auto; padding: 30px;
    width: 90%; max-width: 450px; border-radius: 12px; border: 1px solid #444; color: #f1f1f1;
}
#reservation-modal .close-btn { float: right; font-size: 28px; cursor: pointer; }

#reservation-modal input, #reservation-modal textarea { 
    width: 100%; padding: 12px; margin-bottom: 15px; 
    background: #1b1c1e; border: 1px solid #444; color: white; border-radius: 6px; box-sizing: border-box;
}

/* =========================================
   6. CONTACT FORM
   ========================================= */
#contact_section { padding: 60px 20px; }

.contact_form_container {
    background-color: #252629;
    padding: 40px;
    border-radius: 15px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.contact_form_container h2 { text-align: center; margin-bottom: 8px; }
.contact_form_container p { text-align: center; font-size: 0.9rem; color: #bbb; margin-top: 0 !important; }

#main-contact-form input, #main-contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    background-color: #1b1c1e !important;
    border: 1px solid #3d3e40;
    color: white !important;
    border-radius: 8px;
    box-sizing: border-box; /* Prevents input from overflowing container */
}

.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);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 15px; }
}

@media (max-width: 600px) { 
    .blog-grid { grid-template-columns: 1fr; } 
    .contact_form_container { padding: 25px; }
}