/* Trails of Georgian Bay - Custom Color Scheme & Overrides */

:root {
    --bs-primary: #1B5E3B;
    --bs-secondary: #4A90A4;
    --bs-accent: #C17817;
    --bs-light: #F5F9F6;
    --bs-dark: #1A2E1A;
    --bs-primary-rgb: 27, 94, 59;
    --bs-secondary-rgb: 74, 144, 164;
    --bs-light-rgb: 245, 249, 246;
    --bs-dark-rgb: 26, 46, 26;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
}

h1, h2, h3, h4, h5, h6, .navbar, .btn {
    font-family: 'Jost', sans-serif;
}

.bg-primary { background-color: #1B5E3B !important; }
.bg-secondary { background-color: #4A90A4 !important; }
.bg-light { background-color: #F5F9F6 !important; }
.bg-dark { background-color: #1A2E1A !important; }
.bg-accent { background-color: #C17817 !important; }

.text-primary { color: #1B5E3B !important; }
.text-secondary { color: #4A90A4 !important; }
.text-accent { color: #C17817 !important; }

.btn-primary {
    background-color: #1B5E3B;
    border-color: #1B5E3B;
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #144a2e;
    border-color: #144a2e;
    color: #fff;
}

.btn-secondary {
    background-color: #4A90A4;
    border-color: #4A90A4;
    color: #fff;
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: #3a7a8d;
    border-color: #3a7a8d;
    color: #fff;
}

.btn-accent {
    background-color: #C17817;
    border-color: #C17817;
    color: #fff;
}
.btn-accent:hover, .btn-accent:focus {
    background-color: #a56614;
    border-color: #a56614;
    color: #fff;
}

.btn-outline-primary {
    border-color: #1B5E3B;
    color: #1B5E3B;
}
.btn-outline-primary:hover {
    background-color: #1B5E3B;
    color: #fff;
}

/* Topbar */
.topbar {
    background: #1A2E1A !important;
    padding: 6px 15px;
    font-size: 14px;
}

/* Navbar */
.navbar .navbar-brand img { max-height: 45px; }

.sticky-top.bg-white {
    background-color: #fff !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.navbar .navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.2px;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #1B5E3B !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
}
.dropdown-item:hover {
    background-color: #F5F9F6;
    color: #1B5E3B;
}

/* Hero / Breadcrumb */
.bg-breadcrumb {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 120px 0 60px 0;
    position: relative;
}
.bg-breadcrumb::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26,46,26,0.7), rgba(27,94,59,0.5));
}
.bg-breadcrumb .container { position: relative; z-index: 2; }
.bg-breadcrumb h1 { font-weight: 600; }

.breadcrumb-item a { color: #F5F9F6; text-decoration: none; }
.breadcrumb-item a:hover { color: #C17817; }
.breadcrumb-item.active { color: rgba(255,255,255,0.7); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.card-img-top {
    height: 220px;
    object-fit: cover;
}

/* Section Styling */
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 14px;
    color: #C17817;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #C17817;
    margin-top: 8px;
}

/* Feature icons */
.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(27, 94, 59, 0.1);
    color: #1B5E3B;
    font-size: 28px;
    margin-bottom: 15px;
}

/* Trail Info Badges */
.trail-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
.trail-badge.easy { background: #d4edda; color: #155724; }
.trail-badge.moderate { background: #fff3cd; color: #856404; }
.trail-badge.difficult { background: #f8d7da; color: #721c24; }

/* Trail Stats */
.trail-stat {
    text-align: center;
    padding: 15px;
}
.trail-stat i {
    font-size: 24px;
    color: #1B5E3B;
    display: block;
    margin-bottom: 5px;
}
.trail-stat .stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #1A2E1A;
}
.trail-stat .stat-label {
    font-size: 13px;
    color: #666;
}

/* Content Pages */
.content-section {
    padding: 60px 0;
}
.content-section:nth-child(even) {
    background-color: #F5F9F6;
}
.content-section h2 {
    color: #1A2E1A;
    font-weight: 600;
    margin-bottom: 20px;
}
.content-section h3 {
    color: #1B5E3B;
    font-weight: 500;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Guide Box */
.guide-box {
    background: #F5F9F6;
    border-left: 4px solid #1B5E3B;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}
.guide-box h4 {
    color: #1B5E3B;
    font-size: 18px;
    margin-bottom: 10px;
}

/* Tip box */
.tip-box {
    background: #fff8ec;
    border-left: 4px solid #C17817;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}
.tip-box h4 {
    color: #C17817;
    font-size: 18px;
    margin-bottom: 10px;
}

/* Info box */
.info-box {
    background: #e8f4f8;
    border-left: 4px solid #4A90A4;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}
.info-box h4 {
    color: #4A90A4;
    font-size: 18px;
    margin-bottom: 10px;
}

/* Trail List */
.trail-list-item {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.trail-list-item:hover { transform: translateY(-3px); }
.trail-list-item img {
    width: 280px;
    min-height: 200px;
    object-fit: cover;
}
.trail-list-item .trail-details { padding: 20px 25px; flex: 1; }

/* Footer overrides */
.footer {
    background: #1A2E1A !important;
    color: #ccc;
    border: none;
}
.footer h4 { color: #fff; font-weight: 600; }
.footer .footer-item a { color: #aaa; }
.footer .footer-item a:hover { color: #C17817; }
.footer .footer-item p { color: #999; }

.copyright {
    background: #0f1c0f !important;
    color: #888;
}
.copyright a { color: #C17817; }

/* Back to top */
.back-to-top {
    background: #1B5E3B;
    color: #fff;
    border-radius: 50%;
}
.back-to-top:hover {
    background: #C17817;
    color: #fff;
}

/* Carousel overrides */
.carousel-header #carouselId .carousel-inner .carousel-item .carousel-caption {
    background: linear-gradient(135deg, rgba(26,46,26,0.6), rgba(27,94,59,0.4));
}

/* Region Cards */
.region-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
}
.region-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.region-card:hover img { transform: scale(1.1); }
.region-card .region-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(26,46,26,0.85));
    color: #fff;
}
.region-card .region-overlay h3 { font-weight: 600; margin-bottom: 5px; }
.region-card .region-overlay p { font-size: 14px; opacity: 0.85; margin: 0; }

/* Difficulty reference */
.difficulty-ref {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.difficulty-ref.easy-ref { background: #d4edda; }
.difficulty-ref.moderate-ref { background: #fff3cd; }
.difficulty-ref.hard-ref { background: #f8d7da; }
.difficulty-ref i { font-size: 24px; margin-right: 15px; }

/* Contact form */
.contact-form input,
.contact-form textarea,
.contact-form select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #1B5E3B;
    box-shadow: 0 0 0 0.2rem rgba(27, 94, 59, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .trail-list-item { flex-direction: column; }
    .trail-list-item img { width: 100%; height: 200px; }
    .region-card { height: 220px; }
    .bg-breadcrumb { padding: 100px 0 40px 0; }
}

/* Image rounded corners in content */
.content-section img {
    border-radius: 10px;
}

/* Internal link styling */
.internal-link {
    color: #1B5E3B;
    text-decoration: underline;
    text-decoration-color: rgba(27, 94, 59, 0.3);
    transition: text-decoration-color 0.3s;
}
.internal-link:hover {
    color: #144a2e;
    text-decoration-color: #144a2e;
}

/* Related pages section */
.related-pages {
    background: #F5F9F6;
    padding: 40px 0;
}
.related-pages h3 {
    color: #1A2E1A;
    margin-bottom: 25px;
}
