body .top_panel { margin-bottom: 0 !important; }
body .footer_wrap { margin-top: 0 !important; }

:root {
    --stf-primary: #a01818;
    --stf-dark: #222222;
    --stf-light: #f9f9f9; /* Clean light grey, NOT beige/eceae1 */
    --stf-white: #ffffff;
    --stf-text: #444444;
    --stf-base-font: 20px;
}

.stf-location-page {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #fff;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}


/* Force override of theme's white text / small font rules */
.stf-location-page h1, 
.stf-location-page h2, 
.stf-location-page h3, 
.stf-location-page h4, 
.stf-location-page h5, 
.stf-location-page h6 {
    color: var(--stf-dark) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
}

.stf-location-page p,
.stf-location-page li,
.stf-location-page span,
.stf-location-page div {
    color: var(--stf-text); /* Fallback */
    font-size: var(--stf-base-font);
}

/* Use specific !important to override the theme's aggressive global rules */
.stf-location-page p, 
.stf-location-page li,
.stf-location-page strong {
    color: var(--stf-text) !important;
    font-size: 1.2rem !important;
    line-height: 1.6 !important;
}

/* Ensure no element accidentally uses eceae1 or similar low-contrast colors */
.stf-location-page *:not(.stf-btn):not(.stf-icon):not(.stf-arrow):not(.stf-label) {
    border-color: transparent !important; /* Reset stray borders */
}
.stf-location-page .stf-btn { border-style: solid !important; }

.stf-location-page ul {
    margin: 0 0 1.5rem 1.2rem !important;
    padding-left: 0 !important;
}

/* Specific text color overrides for dark sections */
.stf-hero h1, 
.stf-hero p,
.stf-footer-cta h2, 
.stf-footer-cta p {
    color: #ffffff !important;
}

/* Utilities */
.stf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.stf-text-center { text-align: center; }
.stf-section { padding: 6rem 0; }
.bg-light { background-color: var(--stf-light); }
.bg-white { background-color: var(--stf-white); }
.bg-dark { background-color: #262626; }

/* Dark Section Text Overrides */
.bg-dark h2,
.bg-dark h3,
.bg-dark p,
.bg-dark li,
.bg-dark li::before,
.bg-dark strong {
    color: #fff !important;
}

/* Ensure white cards in dark sections keep dark text */
.bg-dark .stf-card h4,
.bg-dark .stf-card p,
.bg-dark .stf-card .stf-icon {
    color: var(--stf-dark) !important;
}
.bg-dark .stf-card .stf-icon {
    color: var(--stf-primary) !important;
}

/* Hero */
.stf-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 10rem 0;
}
.stf-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.stf-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}
.stf-hero h1 {
    font-size: 3.5rem !important;
    text-shadow: 0 3px 6px rgba(0,0,0,0.6);
    margin-bottom: 25px !important;
    margin-top: 0 !important;
}
.stf-hero p {
    font-size: 1.25rem !important;
    color: #f1f1f1 !important;
    margin-bottom: 2.5rem !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* Buttons */
.stf-btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-size: 0.9rem !important;
    margin: 10px;
    cursor: pointer;
}
.stf-btn-primary {
    background: var(--stf-primary);
    color: #fff !important;
    border: 2px solid var(--stf-primary);
}
.stf-btn-primary:hover {
    background: #801313;
    border-color: #801313;
    color: #fff !important;
}
.stf-btn-white {
    background: transparent;
    color: #fff !important;
    border: 2px solid #fff;
}
.stf-btn-white:hover {
    background: #fff;
    color: var(--stf-primary) !important;
}
.stf-btn-outline {
    background: transparent;
    color: var(--stf-primary) !important;
    border: 2px solid var(--stf-primary);
}
.stf-btn-outline:hover {
    background: var(--stf-primary);
    color: #fff !important;
}

/* Intro Section */
.stf-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.stf-intro h2 {
    font-size: 2.2rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
    color: var(--stf-dark) !important;
    position: relative;
    padding-bottom: 1.5rem;
}

.stf-subheading {
    display: block;
    color: var(--stf-primary) !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
}
.stf-intro .lead {
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
    color: #555 !important;
    font-weight: 400;
    margin: 0 auto;
}
.stf-range-intro h2 {
    font-size: 2.5rem !important;
    margin-bottom: 1.5rem !important;
}
.stf-range-intro p {
    font-size: 1.2rem !important;
    max-width: 800px;
    margin: 0 auto;
    color: var(--stf-text);
}

/* Feature Row (Alternating) */
.stf-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.stf-media img {
    width: 100%;
    height: auto; /* Default for mobile */
    border-radius: 6px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

@media (min-width: 900px) {
    .stf-row {
        flex-direction: row;
        gap: 6rem;
        align-items: stretch; /* Stretch to equal height */
    }
    .stf-row.reverse {
        flex-direction: row-reverse;
    }
    .stf-col {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start; /* Prevent buttons/content from stretching full width */
    }
    /* Media column specifically */
    .stf-media {
        display: flex;
        flex-direction: column;
        position: relative; /* Added */
        min-height: 400px; /* Ensure at least some height if text is very short */
    }
    .stf-media img {
        position: absolute; /* Changed from static */
        left: 0; top: 0;
        width: 100%; 
        height: 100% !important; 
        object-fit: cover; 
    }
}
.stf-content h3 {
    color: var(--stf-primary) !important;
    font-size: 2rem !important;
}
.stf-content ul {
    list-style: none;
    padding: 0;
}
.stf-content li {
    padding-left: 35px;
    position: relative;
    margin-bottom: 1rem !important;
}
.stf-content li::before {
    content: "\2713"; /* Checkmark */
    color: var(--stf-primary) !important;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    font-size: 1.2em;
}

/* Why Choose Us */
.stf-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}
.stf-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid transparent;
}
.stf-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--stf-primary);
}
.stf-icon {
    font-size: 3rem !important;
    color: var(--stf-primary) !important;
    margin-bottom: 25px;
    display: block;
}
.stf-card h4 {
    font-size: 1.4rem !important;
    margin-bottom: 15px !important;
}
.stf-card p {
    font-size: 1rem !important; /* Smaller for card text */
    margin-bottom: 0 !important;
}

/* Gallery */
.stf-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}
.stf-gallery-img {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.stf-gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.stf-gallery-img:hover img {
    transform: scale(1.05);
}
.stf-label {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background: var(--stf-primary);
    color: #fff !important;
    padding: 8px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem !important;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Footer CTA */
.stf-footer-cta {
    background: var(--stf-primary); /* Changed to Red #a01818 */
    color: #fff !important;
    text-align: center;
    padding: 7rem 1rem;
}
.stf-footer-cta h2 { color: #fff !important; font-size: 2.8rem !important; }
.stf-footer-cta p { font-size: 1.5rem !important; color: #fff !important; margin-bottom: 3.5rem !important; opacity: 0.9; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stf-hero h1 { font-size: 2.2rem !important; }
    .stf-section { padding: 4rem 0; }
    .stf-gallery { grid-template-columns: 1fr; }
    .stf-gallery-img { height: 300px; }
    /* Ensure buttons are NOT full width by default, only if needed or specific classes used */
    .stf-btn { width: fit-content !important; margin: 10px 0 !important; }
}

/* Carousel Image Styling */
.stf-ba-item img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.stf-ba-item a:hover img {
    transform: scale(1.05);
}
/* Custom Arrows Styling */
.owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none; /* Let clicks pass through container */
    display: flex;
    justify-content: space-between;
    left: 0;
}
.owl-prev, .owl-next {
    pointer-events: auto; /* Re-enable clicks on buttons */
    background: #fff !important;
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: var(--stf-primary) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    opacity: 0.9;
    transition: all 0.3s;
    position: relative;
}
.owl-prev { left: -20px; }
.owl-next { right: -20px; }

@media (min-width: 1250px) {
    .owl-prev { left: -60px; }
    .owl-next { right: -60px; }
}

.stf-arrow {
    font-size: 30px;
    line-height: 1;
    padding-bottom: 4px; /* Optical adjustment */
}
.owl-prev:hover, .owl-next:hover {
    background: var(--stf-primary) !important;
    color: #fff !important;
    transform: scale(1.1);
}

/* Location List */
.stf-area-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}
.stf-area-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 16px 20px;
    border-radius: 4px;
    text-decoration: none !important;
    color: #222222 !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 1.1rem !important;
    border: 2px solid #222222 !important;
    transition: all 0.3s ease;
}
.stf-area-btn:hover {
    background: var(--stf-primary);
    color: #fff !important;
    border-color: var(--stf-primary);
}
.stf-pin-icon {
    margin-right: 10px;
    font-size: 1.2rem;
    line-height: 1;
}