/* ==========================================================================
   Font Faces & Typography (Lora v37 Latin WOFF2)
   ========================================================================== */
@font-face {
    font-family: 'Lora';
    src: url('lora-v37-latin-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lora';
    src: url('lora-v37-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lora';
    src: url('lora-v37-latin-700.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Global Base & Layout
   ========================================================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: #5c4033 !important; /* Cocoa Brown */
    font-family: Arial, Helvetica, sans-serif !important;
    color: #333;
}

/* Headings restricted to Lora */
h1, h2, h3, h4 {
    margin-top: 0;
    font-family: 'Lora', Georgia, serif !important;
}

/* Page Containers */
.wrapper, .container {
    max-width: 1100px;
    margin: 0 auto 40px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container-admin {
    max-width: 1200px;
}

.layout {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.col-left {
    flex: 1;
    min-width: 320px;
}

.col-right {
    flex: 1;
    min-width: 350px;
}

/* ==========================================================================
   Header & Masthead
   ========================================================================== */
.site-masthead {
    background-color: #000000;  /* #5c4033;   */
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.masthead-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-sizing: border-box;
}

.site-masthead img {
    max-height: 150px;
    max-width: 300px;
    height: auto;
    width: auto;
    object-fit: contain;
}

.site-masthead h1 {
    color: #ffffff;
    margin: 0;
    font-size: 32px;
    font-weight: bold;
    text-align: left;
    font-family: 'Lora', Georgia, serif !important;
}

.masthead-text h1,
.masthead-text h2 {
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: 'Lora', Georgia, serif !important;
}

/* Site Navigation Bar */
.site-nav {
    background-color: #014421;
    border-top: 1px solid #6e4d3e;
    border-bottom: 1px solid #3d2920;
    margin-bottom: 25px;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    gap: 10px;
    box-sizing: border-box;
}

.nav-link {
    display: inline-block;
    padding: 12px 20px;
    color: #d7ccc8;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.nav-link:hover {
    background-color: #5c4033;
    color: #ffffff;
}

.nav-link.active {
    background-color: #ffffff;
    color: #5c4033;
}


/* ==============================
 * Footer
 * ================================== */

.site-footer {
  background-color: #5c4033;
  color: #ffffff;
  font-family: 'Lora', serif;
  text-align: center;
  padding: 2rem 1rem;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
}

.footer-disclaimer {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-copyright {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ==========================================================================
   Forms & Inputs (Forced Arial)
   ========================================================================== */
.form-group {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif !important;
}

input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 7px;
    box-sizing: border-box;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif !important;
}

textarea {
    resize: vertical;
}

button, .btn {
    background-color: #014421;
    color: #ffffff;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    font-size: 14px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif !important;
}

button:hover, .btn:hover {
    background-color: #013318;
}

/* Specific Button Colors */
.btn-success { background-color: #014421; color: #ffffff; }
.btn-success:hover { background-color: #013318; }
.btn-danger { background-color: #c62828; color: #ffffff; }
.btn-danger:hover { background-color: #b71c1c; }
.btn-warning { background-color: #ef6c00; color: #ffffff; }
.btn-warning:hover { background-color: #e65100; }
.btn-info { background-color: #0277bd; color: #ffffff; }
.btn-info:hover { background-color: #01579b; }

/* Admin Inline Forms */
.form-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) 120px;
    gap: 10px;
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    align-items: end;
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */
.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif !important;
}

.alert.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ==========================================================================
   Customer Portal & Review Cards
   ========================================================================== */
.login-box {
    background: #f1f8f5;
    border: 1px solid #c8e6c9;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.login-box h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #014421;
}

.login-row {
    display: flex;
    gap: 8px;
}

.portal-card {
    background: #e8f4fd;
    border: 1px solid #b8daff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 10px;
    font-size: 14px;
    background: #ffffff;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #d0e3f0;
}

.review-box {
    background: #fffde7;
    border: 1px solid #ffee58;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.detail-box {
    background: #fdfdfd;
    border: 1px solid #c8e6c9;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* ==========================================================================
   Availability Calendar & Tables
   ========================================================================== */
.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}

.cal-header a {
    padding: 5px 10px;
    background: #eee;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
}

.btn-today {
    background: #014421 !important;
    color: #ffffff !important;
    font-weight: bold;
}

.cal-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 11px;
}

.cal-table th, .cal-table td {
    border: 1px solid #ddd;
    padding: 5px;
    min-width: 24px;
}

.cal-table th {
    background-color: #014421;
    color: #ffffff;
}

.site-col {
    text-align: left;
    font-weight: bold;
    background: #f9f9f9;
    min-width: 80px;
}

.avail { background-color: #d4edda; color: #155724; }
.booked { background-color: #f8d7da; color: #721c24; font-weight: bold; }

.legend {
    margin-top: 10px;
    font-size: 12px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.legend-box {
    width: 12px;
    height: 12px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
}

/* Data Tables (Admin) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-family: Arial, Helvetica, sans-serif !important;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-size: 13px;
}

th {
    background-color: #014421;
    color: #ffffff;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Admin Tabs */
.tabs {
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.tabs a {
    text-decoration: none;
    padding: 10px 20px;
    font-weight: bold;
    color: #555;
    border-radius: 4px;
    background: #eee;
    margin-right: 5px;
    font-family: Arial, Helvetica, sans-serif !important;
}

.tabs a.active {
    background: #014421;
    color: #ffffff;
}

.content-card { background:#fdfdfd; border:1px solid #d0e3f0; padding:20px; border-radius:6px; }
.card-title { color:#014421; border-bottom:2px solid #c8e6c9; padding-bottom:8px; }
.content-section h4 { margin:15px 0 5px; color:#014421; }
.content-section .section-body { margin:0 0 5px; font-size:13px; line-height:1.5; color:#555; }
.content-list { padding-left:20px; margin-top:5px; line-height:1.5; color:#444; }
.nav-dropdown { position:relative; display:inline-block; }
.nav-submenu { display:none; position:absolute; background:#fff; min-width:200px; z-index:10; box-shadow:0 4px 8px rgba(0,0,0,.15); }
.nav-dropdown:hover .nav-submenu { display:block; }
.nav-submenu a { display:block; padding:8px 12px; color:#333; text-decoration:none; }

.content-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px 15px; margin-bottom:10px; }
.content-grid .field { margin:0; }
.content-grid textarea, .content-grid input[type=text], .content-grid input[type=number], .content-grid select { width:100%; box-sizing:border-box; }
.content-form label { display:block; font-size:13px; font-weight:600; margin-bottom:3px; }
.content-form label.check { font-weight:normal; display:inline-flex; gap:6px; align-items:center; }

.content-row { display:flex; flex-wrap:wrap; align-items:flex-start; gap:10px 12px; margin:0; }
.content-row .field.check { padding-top:22px; }
.content-row .field-actions { flex:0 0 auto; display:flex; flex-direction:row; gap:6px; padding-top:22px; }
.content-row .field-actions .btn { width:auto; display:inline-block; margin:0; }

.content-row .field { flex:1 1 180px; min-width:0; margin:0; }
.content-row .field.wide { flex:2 1 280px; }
.content-row .field.order { flex:0 0 auto; }
.content-row .field.order input { width:64px; }
.content-row label { display:block; font-size:13px; font-weight:600; margin-bottom:3px; }
.content-row .field.check label { display:inline-flex; align-items:center; gap:6px; font-weight:normal; margin-bottom:0; }
.content-row input[type=text],
.content-row input[type=number],
.content-row select,
.content-row textarea { width:100%; box-sizing:border-box; }
.content-row .field.order input { width:64px; }

.item-row { border-top:1px solid #ddd; padding-top:10px; margin-top:10px; }
.muted { color:#666; font-size:13px; }


.item-row { border-top:1px solid #ddd; padding-top:10px; margin-top:10px; }
.muted { color:#666; font-size:13px; }



/* ---------- Hamburger: hidden on desktop ---------- */
.nav-toggle-input,
.nav-toggle { display: none; }

/* ---------- Mobile: masthead and hamburger menu ---------- */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; }
    *, *::before, *::after { box-sizing: border-box; }

    /* Masthead: 150px logo, auto height, reduced padding, text aligned to top */
    .site-masthead { 
        height: auto; 
        padding: 5px 6px; 
    }
    .masthead-container {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        flex-wrap: nowrap;
        max-width: 100%;
    }
    .masthead-container img { width: 150px; height: auto; flex-shrink: 0; }
    .masthead-text { min-width: 0; }
    .masthead-text h1 {
        font-size: 1.2rem;
        line-height: 1.2;
        margin: 0;
        overflow-wrap: anywhere;
    }
    .masthead-text h2 {
        font-size: .8rem;
        line-height: 1.3;
        margin: 2px 0 0;
        overflow-wrap: anywhere;
    }

    /* Navigation bar: hamburger sits at the left edge */
    .site-nav {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        padding: 0;
    }
    .nav-toggle-input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }
    .nav-toggle {
        display: block;
        cursor: pointer;
        font-size: 28px;
        line-height: 1;
        padding: 8px 14px;
        margin: 0;
        color: #fff;
        text-shadow: 0 1px 2px rgba(0,0,0,.5);
        user-select: none;
    }
    .nav-container {
        display: none;
        flex-direction: column;
        width: 100%;
        background: inherit;
    }
    .nav-toggle-input:checked ~ .nav-container { display: flex; }

    /* Each top-level link becomes a full-width row */
    .nav-container > a,
    .nav-dropdown { width: 100%; display: block; }
    .nav-container > a,
    .nav-dropdown > .nav-link {
        display: block;
        width: 100%;
        padding: 12px 16px;
        text-align: left;
        box-sizing: border-box;
    }
    .nav-dropdown > .nav-link { font-weight: bold; }

    /* Dropdown children are always visible in the mobile menu */
    .nav-dropdown .nav-submenu {
        display: block;
        position: static;
        min-width: 0;
        box-shadow: none;
        background: transparent;
    }
    .nav-submenu a {
        display: block;
        padding: 10px 16px 10px 32px;
        box-sizing: border-box;
    }

    /* Keep wide content from pushing the page sideways */
    .wrapper, .layout, .content-card, .container {
        max-width: 100%;
        min-width: 0;
    }
    table { display: block; overflow-x: auto; }
}