/* ---- Base Typography & Colors ---- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
    margin: 0;
    padding: 0;
}

.site-wrapper {
    background-color: #F5F5F5;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: #222;
    line-height: 1.25;
}

@media (max-width: 600px) {
    .responsive-title {
        font-size: 1.5rem !important; /* Adjust as needed */
    }

    .responsive-subtitle {
        font-size: 1.2rem !important;
    }
}

    h1.display-4.fw-bold.title-shadow {
        font-size: 3.5rem; /* bigger */
        color: #333333; /* a nice blue accent */
        text-shadow: 0 3px 6px rgba(26, 115, 232, 0.3);
        margin-bottom: 2.5rem; /* bigger spacing below */
        letter-spacing: 1.2px;
        position: relative;
        font-family: 'Poppins', sans-serif;
    }


        h1.display-4.fw-bold.title-shadow::after {
            content: "";
            position: absolute;
            bottom: -1rem;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: #333333;
            border-radius: 2px;
            opacity: 0.7;
        }

p {
    margin-bottom: 1rem;
    color: #555;
}

/* ---- Container & Layout ---- */
.container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem;
}

.col-md-6, .col-md-5, .col-md-7 {
    padding: 0.75rem;
    box-sizing: border-box;
}

/* Bootstrap col-md-6 fallback */
.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-5 {
    flex: 0 0 41.6667%;
    max-width: 41.6667%;
}

.col-md-7 {
    flex: 0 0 58.3333%;
    max-width: 58.3333%;
}

/* ---- Buttons ---- */
.btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 4px 8px rgb(37 99 235 / 0.3);
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #1d4ed8;
        box-shadow: 0 6px 14px rgb(29 78 216 / 0.45);
        outline: none;
    }

.btn-outline-secondary {
    background-color: transparent;
    border: 2px solid #6b7280;
    color: #4b5563;
    font-weight: 600;
}

    .btn-outline-secondary:hover,
    .btn-outline-secondary:focus {
        background-color: #6b7280;
        color: white;
        border-color: #4b5563;
        outline: none;
    }

.btn-custom-search {
    background-color: #2a7f62; /* deep green */
    border-color: #276953;
    color: white;
}

    .btn-custom-search:hover {
        background-color: #276953;
        border-color: #1f5644;
        color: white;
    }


/* ---- Form inputs ---- */
.form-control {
    border: 2px solid #ccc;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    transition: border-color 0.3s ease;
}

    .form-control:focus {
        border-color: #2a7f62;
        box-shadow: 0 0 8px rgba(42, 127, 98, 0.5);
    }



/* ---- Search form container ---- */
.search-form {
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* ---- Tags navigation ---- */
.tags-filter button {
    font-weight: 600;
    border-radius: 1.25rem;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .tags-filter button:hover {
        background-color: #2563eb;
        color: white;
        border-color: #2563eb;
    }

/* ---- Activity Cards ---- */
.activity-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 100vw;
}



.card.activity-card {
    width: 100%;
    max-width: 400px;
    min-width: auto; /* remove any fixed min-width */
    margin: 0;
    box-sizing: border-box;
}



    .card.activity-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 40px rgb(0 0 0 / 0.15);
    }

    .card.activity-card .card-img-top {
        height: 220px;
        width: 100%;
        object-fit: cover;
    }

    .card.activity-card .card-body {
        flex-grow: 1;
        padding: 1rem 1.5rem;
        display: flex;
        flex-direction: column;
    }

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #1f2937;
}

.card-text {
    flex-grow: 1;
    color: #4b5563;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Badges for tags */
.badge.bg-secondary {
    background-color: #6b7280;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.3em 0.6em;
    border-radius: 0.75rem;
}

/* ---- Activity Detail Page ---- */
img.img-fluid.rounded.shadow-sm {
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
}

ul.list-unstyled li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #374151;
}

/* Info & Price Section */
.mt-auto {
    margin-top: auto;
}

.text-success {
    color: #16a34a !important;
    font-weight: 700;
}

/* Icons in list items */
i.bi {
    font-size: 1.2rem;
}

/* Loading Spinner Centering */
.text-center.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .card.activity-card .card-img-top {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 0.5rem 0.5rem 0 0;
    }

}

body {
    background: #f8fafc;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/*.mapboxgl-ctrl-geocoder {
    min-width: 100% !important;
    z-index: 10;
}

.mapboxgl-ctrl-geocoder {
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 4px;
    font-size: 1rem;
    font-family: "Roboto","Helvetica","Arial",sans-serif;
    padding: 2px 10px;
    width: 100%;
    max-width: 500px;
    box-shadow: none;
    transition: border-color 0.2s;
}

    .mapboxgl-ctrl-geocoder input[type="text"] {
        padding: 10px;
        border: none;
        box-shadow: none;
        outline: none;
        font-size: 1rem;
        background-color: transparent;
    }

.mapboxgl-ctrl-icon {
    display: none;*/ /* Hide Mapbox icon if you want to replace with MudBlazor icon */
/*}*/

/* Wrapper for label + geocoder control */
.geocoder-wrapper {
    display: flex;
    flex-direction: column;
    font-family: "Roboto", sans-serif;
    margin: 8px 0;
}

    /* Label above the input */
    .geocoder-wrapper label {
        color: rgba(0, 0, 0, 0.6);
        font-size: 0.75rem;
        margin-bottom: 4px;
    }

/* Geocoder container styled like MudTextField */
#geocoder {
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 4px;
    background-color: white;
    padding: 2px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 40px;
}

    #geocoder:focus-within {
        border-color: #1976d2;
        box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
    }

    /* Override MapboxGeocoder root style */
    #geocoder .mapboxgl-ctrl-geocoder {
        width: 100% !important;
        border: none !important;
        box-shadow: none !important;
        font-size: 1rem;
        background-color: transparent;
        display: block;
        position: relative;
    }

        /* Input field inside the geocoder */
        #geocoder .mapboxgl-ctrl-geocoder input[type="text"] {
            width: 100%;
            padding: 8px 10px 8px 36px; /* Left padding to offset search icon */
            font-size: 1rem;
            border: none;
            outline: none;
            font-family: inherit;
            background: transparent;
            box-sizing: border-box;
        }

    /* Optional: style the search icon */
    #geocoder .mapboxgl-ctrl-geocoder--icon-search {
        fill: #6b6b6b;
        margin-left: 8px;
    }

    /* Optional: style the clear (X) button */
    #geocoder .mapboxgl-ctrl-geocoder--button {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
        cursor: pointer;
        z-index: 2;
    }

.geocoder-wrapper {
    width: 100%;
}