/* ======================= RATES PAGE STYLES ======================= */

/* -------------------- Page Container (Header/Hero) -------------------- */
.rates-hero-banner {
    /* Layered a 50% opacity black gradient over the image */
    background-image: linear-gradient(rgb(0, 0, 0), rgba(0, 0, 0, 0.5)), 
                      url('../images/Images-2/rates.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center; /* Added to ensure image is centered */
    padding: 100px 20px 80px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: white; /* Ensures all text inside is white for better contrast */
}

.rates-hero-banner h2 {
    font-size: 3em;
    font-weight: 800;
    margin-top: 10px;
    margin-bottom: 15px;
    line-height: 1.1;
}

.rates-hero-banner p {
    font-size: 1.25em;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* The small "Pricing" tag above the main heading */
.rates-hero-banner .tag-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 15px;
    border-radius: 50px;
    margin-bottom: 5px;
}


/* -------------------- General Content Layout -------------------- */
.rates-content {
    max-width: 1000px;
    margin: 40px auto 60px auto; /* Pull the content up over the hero bottom edge */
    padding: 0 20px;
    position: relative;
    z-index: 20; /* Ensure content box is above the hero */
}

.rates-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #003366;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #0055aa;
}

.rates-content > p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 25px;
    padding-left: 10px;
}

/* -------------------- Info Box (Policies) -------------------- */
.info-box {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border: 1px solid #eee;
    margin-bottom: 40px;
}

.info-box h3 {
    /* Icon style for "Important Pricing Information" */
    font-size: 1.25rem;
    font-weight: 600;
    color: #0055aa;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.info-box h3::before {
    content: 'ⓘ'; /* Info icon */
    font-size: 1.5rem;
    margin-right: 10px;
}

.info-box p:first-of-type {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
}

.info-box h4 {
    font-size: 1.1rem;
    color: #003366;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 5px;
}

.info-box ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.info-box ul li {
    font-size: 0.95rem;
    color: #555;
    padding: 3px 0;
    line-height: 1.4;
}

.info-box ul li::before {
    content: '•';
    color: #0055aa;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.info-box ul ul {
    margin-top: 5px;
    margin-left: 20px;
}

/* Note box for changing fares */
.info-box strong {
    color: #003366;
}

.info-box > p:last-of-type {
    background-color: #fff9e6; /* Light yellow background */
    border-left: 5px solid #ffcc00;
    padding: 10px 15px;
    margin-top: 20px;
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}


/* -------------------- Rates Table Styling -------------------- */
.rates-table-wrapper {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 40px;
}

.rates-table {
    width: 100%;
    border-collapse: separate; /* Use separate borders for rounded cells */
    border-spacing: 0;
    margin-top: 20px;
}

.rates-table thead th {
    background-color: #0055aa;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rates-table tbody td {
    padding: 12px 15px;
    border: 1px solid #f0f0f0;
    font-size: 1rem;
    color: #333;
}

/* Style the Location column */
.rates-table tbody tr td:nth-child(odd) {
    background-color: #f9f9f9;
    font-weight: 500;
}

/* Style the Rate column */
.rates-table tbody tr td:nth-child(even) {
    text-align: right;
    font-weight: 700;
    color: #003366;
}

/* Styling for the rounded corners (optional, but nice) */
.rates-table thead tr th:first-child { border-top-left-radius: 8px; }
.rates-table thead tr th:last-child { border-top-right-radius: 8px; }

/* Styling to highlight specific data cells, matching the screenshot's alternating row background */
.rates-table tbody tr:nth-child(odd) td {
    background-color: #fcfcff;
}
.rates-table tbody tr:nth-child(even) td:nth-child(odd) {
    background-color: #f0f0f0; /* Darker location background for even rows */
}
.rates-table tbody tr:nth-child(even) td:nth-child(even) {
    background-color: #f9f9f9; /* Lighter rate background for even rows */
}


/* -------------------- Contact CTA Banner -------------------- */
.contact-cta {
    /* Styles matching the screenshot's blue CTA banner */
    background: linear-gradient(135deg, #0055aa, #4285F4);
    color: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.contact-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white; /* Override blue H3 color */
    border: none;
    padding-left: 0;
}

.contact-cta h3::before {
    content: '📞'; /* Phone icon */
    font-size: 1.5rem;
    margin-right: 15px;
}

.contact-cta p {
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto 25px auto;
    color: white;
    opacity: 0.9;
}

.contact-cta a {
    text-decoration: none;
}

.contact-cta button {
    background-color: white;
    color: #003366;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
}

.contact-cta button:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

.contact-cta strong a {
    color: white;
    text-decoration: underline;
    font-weight: 700;
}


/* ======================= SEARCH BAR STYLES (NEW) ======================= */
.rates-search-container {
    margin-bottom: 20px;
    position: relative;
    max-width: 100%;
}

.rates-search-input {
    width: 100%;
    padding: 15px 20px 15px 45px; /* Left padding space for icon */
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.rates-search-input:focus {
    border-color: #0055aa;
    box-shadow: 0 2px 10px rgba(0, 85, 170, 0.1);
}

/* Search Icon */
.rates-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1.2rem;
    pointer-events: none; /* Let clicks pass through to input */
}

/* "No results" message hidden by default */
.no-results-message {
    display: none;
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 10px;
}

/* ======================= MOBILE RESPONSIVENESS FIX ======================= */
@media (max-width: 768px) {
    /* 1. Hero Adjustments */
    .rates-hero-banner {
        padding-top: 40px;
        padding-bottom: 30px;
    }
    .rates-hero-banner h2 {
        font-size: 2rem;
    }

    .rates-hero-banner p {
        font-size: 0.9rem;
    }
    
    /* 2. Container Adjustments */
    .rates-content {
        padding: 0 15px;
        margin-top: 20px;
    }
    .rates-table-wrapper {
        padding: 15px; /* Reduce padding on mobile */
    }

    /* 3. TABLE FIX: Keep it as a table, but make it compact */
    .rates-table {
        display: table; /* Force standard table behavior */
        width: 90%;
    }
    
    .rates-table thead {
        display: table-header-group; /* Show headers! Users need to see "Location" vs "Price" */
    }

    .rates-table tbody tr {
        display: table-row;
        border: none;
        margin: 0;
    }

    .rates-table th, 
    .rates-table td {
        display: table-cell;
        width: auto;
        padding: 10px 8px; /* Smaller padding */
        font-size: 0.95rem; /* Slightly smaller text */
        white-space: normal; /* ALLOW TEXT WRAPPING so long city names fit */
        vertical-align: middle;
    }

    /* Specific column widths for mobile */
    .rates-table th:first-child,
    .rates-table td:first-child {
        text-align: left;
        width: 50%; /* Give location more space */
    }

    .rates-table th:last-child,
    .rates-table td:last-child {
        text-align: right;
        width: 15%; /* Price column */
        white-space: nowrap; /* Keep price on one line (e.g. "$100.00") */
    }

    /* Remove the weird 50% width blocks from previous code */
    .rates-table tbody td {
        box-sizing: content-box;
    }
}