﻿/* --- GENERAL STYLES --- */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override Bootstrap's default behavior */
.dl-horizontal dt {
    white-space: normal;
}

/* Set width constraints for form elements */
input,
select,
textarea {
    max-width: 280px;
}

/* --- COLOR VARIABLES --- */
:root {
    --bs-primary: #007B5E; /* Deep green */
    --bs-secondary: #FFD700; /* Golden yellow */
    --bs-success: #28a745; /* Natural green */
    --bs-warning: #FFA500; /* Warm orange */
    --bs-danger: #C0392B; /* Rusty red */
    --bs-info: #3498DB; /* Water blue */
    --bs-light: #F5F5F5; /* Soft background gray */
    --bs-dark: #343A40; /* Standard dark */
}

/* --- BUTTONS --- */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

    .btn-primary:hover {
        background-color: #005F45; /* Darker green */
        border-color: #005F45;
    }

/* --- SEARCH BANNER --- */
.search-banner {
    background: url('/content/fishingbanner.jpg') no-repeat center center;
    background-size: cover;
    height: 250px;
    display: flex;
    align-items: center; /* Ensures vertical centering */
    justify-content: center; /* Ensures horizontal centering */
    text-align: center;
    padding: 20px 0;
}

    /* Centering container */
    .search-banner .container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 100%;
    }

/* --- SEARCH FORM --- */
.search-form {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Aligns elements inside */
    width: 100%;
    max-width: 600px; /* Prevents excessive width */
    margin: auto; /* Ensures it stays centered */
}

    /* Fix Bootstrap's flex-grow-1 issue */
    .search-form .input-group {
        display: flex;
        width: 100%;
        justify-content: center; /* Centers input & button */
        align-items: center;
    }

/* Remove flex-grow-1 to prevent stretching */
.input-group.flex-grow-1 {
    flex-grow: 0;
}

/* --- INPUT & BUTTON STYLING --- */
.search-form .form-control {
    border-radius: 30px 0 0 30px;
    padding-left: 40px;
    height: 42px;
    flex: 1; /* Ensures it takes available space properly */
}

.search-form .input-group-text {
    border-radius: 30px 0 0 30px;
    background-color: #f8f9fa;
    border-right: 0;
    height: 42px;
}

.search-form .search-btn {
    border-radius: 0 30px 30px 0;
    height: 42px;
}

/* --- TOP BAR & NAVIGATION --- */
.top-bar {
    background: var(--bs-primary);
    padding: 15px 0;
    text-align: center;
}

.logo a {
    color: var(--bs-light);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

/* --- SEARCH SECTION --- */
.search-section {
    text-align: center;
    margin: 20px 0;
}

.search-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 600px;
    margin: auto;
}

    .search-bar input {
        width: 280px;
        padding: 8px;
        border-radius: 5px;
        border: 1px solid var(--bs-secondary);
    }

/* --- STICKY SIDEBAR --- */
.sticky-sidebar {
    position: sticky;
    top: 10px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 15px;
    background: var(--bs-light);
    border-radius: 8px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hide sticky sidebar on mobile */
@media (max-width: 992px) {
    .sticky-sidebar {
        display: none;
    }
}

/* --- STATE LINKS (Bait Shops) --- */
.state-link {
    display: block;
    text-decoration: none;
    color: var(--bs-primary);
    font-weight: bold;
    padding: 8px 0;
    text-align: center;
}

    .state-link:hover {
        color: var(--bs-primary-dark);
    }

/* --- GLOBAL LINK STYLING --- */
a {
    text-decoration: none;
    font-weight: bold;
    color: var(--bs-primary);
}

    a:hover {
        color: var(--bs-primary-dark);
    }

/* --- STYLE BUTTON LINKS TO MATCH NORMAL LINKS --- */
.btn-link {
    text-decoration: none !important;
    font-weight: bold;
    color: var(--bs-primary);
    padding: 0;
    border: none;
}

    .btn-link:hover {
        color: var(--bs-primary-dark);
        text-decoration: none;
    }

/* --- DIRECTORY INTRO TEXT --- */
.directory-intro {
    margin-bottom: 20px;
}

    .directory-intro h1 {
        font-size: 28px;
        font-weight: bold;
        color: var(--bs-primary);
    }

    .directory-intro p {
        font-size: 18px;
        color: var(--bs-dark);
        max-width: 700px;
        margin: auto;
    }

/* --- LOGO STYLING --- */
.site-logo {
    height: 75px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--bs-light);
    vertical-align: middle;
}

/* --- MOBILE RESPONSIVENESS FIXES --- */
@media (max-width: 768px) {
    .search-banner {
        height: auto;
        padding: 20px 0;
    }

    .search-form {
        max-width: 100%;
    }
}
