/*
	Brand:

	Brand Font: Exo Black Italic

    Brand Palette:
    
    Sandy Brown: #C5B363
    Sky Blue: #34CFE2
    Green 1: #2DC600
    Green 2: #2EC700 (Impossible to discern from 2DC600) 
    Green 3: #76E455
    Green 4: #2D9A0C

*/

body {
    font-family: InterVariable, sans-serif;
    font-size: 16px;
    line-height: 26px;
    background-color: #fff;
}

main {
    padding-top: 6px !important;
    min-height: 400px;
}

@media (max-width: 1024px) {
    main {
        padding: 0 12px 0 12px;
    }
}

pre {
    background-color: var(--code-bg);
    padding: 10px;
    margin: 6px 0;
    font-size: 12px;
}

pre > code, .font-monospace {
    font-family: "Roboto Mono", monospace !important;
}

.custom-validation-summary {
    background-color: pink;
    color: red;
    padding: 1rem;
    border-radius: 5px;
}

.custom-validation-summary>li.validation-message {
    list-style-type: disc;
    margin-left: 20px;
    line-height: 26px;
}

.button.is-black:hover {
    background-color: #333333;
    color: white;
}

.is-fixed-bottom-right {
    position: fixed;
    bottom: 0rem;
    right: 1rem;
    z-index: 999;
}

h1 {
    line-height: 50px;
}

ul.footer-company-info-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    color: #666;
}

ul.footer-company-info-list li {
    display: inline;
}

ul.footer-company-info-list li:not(:last-child)::after {
    content: "\2022";
    margin: 0 10px;
}

.scrollable-dropdown {
    max-height: 200px;
    overflow-y: auto;
}

/* Bulma CSS extensions */

.has-text-whitespace-nowrap {
    white-space: nowrap;
}

.w-50 {
    width: 50px;
}

.w-100 {
    width: 100px;
}

.w-200 {
    width: 200px;
}

.w-300 {
    width: 300px;
}

.w-400 {
    width: 400px;
}

.w-500 {
    width: 500px;
}

.w-1000 {
    width: 1000px;
}

.container-full-width {
    max-width: 100% !important;
    margin: 0;
    padding: 0 16px 0 16px;
}

/* Mobile responsive styles */
@media (max-width: 1024px) {
    .container-full-width {
        max-width: 100% !important;
        padding: 0;
        margin: 0;
    }
}

/* Bulma CSS overrides */

body {
    color: #555 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.label,
.title {
    color: #555 !important;
}

.subtitle {
    color: #555 !important;
}

a:not(.button) {
    color: #1188ff !important;
}

.navbar a {
    color: #333 !important;
}

.navbar-link:after {
    border-left-color: rgb(51, 51, 51) !important;
    border-top-color: rgb(51, 51, 51) !important;
    border-right-color: rgb(51, 51, 51) !important;
    border-bottom-color: rgb(51, 51, 51) !important;
}

/* Ensure navbar is above other content */

.navbar {
    z-index: 1000;
}

.dropdown-item.is-active {
    background-color: #efefef !important;
    color: rgb(46, 51, 61) !important;
}

.breadcrumb ul li i {
    position: relative;
    top: 4px;
}

.breadcrumb .current-page {
    color: #555 !important
}

/* Bulma CSS extensions */

.is-flex-direction-column-mobile {
    flex-direction: row;
}

@media (max-width: 1024px) {
    .is-flex-direction-column-mobile {
        flex-direction: column;
    }
}

[disabled],
[disabled] * {
    pointer-events: none !important;
    opacity: 0.5;
}

/* Map box control overrides */

.mapboxgl-ctrl-geocoder {
    width: 100% !important;
    max-width: none !important;
    box-shadow: none !important;
    font-family: inherit !important;
}

.mapboxgl-ctrl-geocoder--input {
    height: 2.5em !important;
    padding: calc(0.5em - 1px) calc(0.75em - 1px) !important;
    border: 1px solid #dbdbdb !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    color: #363636 !important;
}

.mapboxgl-ctrl-geocoder--icon {
    display: none !important;
}

.mapboxgl-ctrl-geocoder--button {
    display: none !important;
}

.mapboxgl-ctrl-geocoder--suggestion-title {
    font-family: inherit !important;
}

.mapboxgl-ctrl-geocoder .suggestions {
    border: 1px solid #dbdbdb !important;
    border-radius: 4px !important;
}

.mapboxgl-ctrl-geocoder .suggestions>.active>a,
.mapboxgl-ctrl-geocoder .suggestions>li>a:hover {
    background: #f5f5f5 !important;
    color: inherit !important;
}

/* Alpine.js helper */

[x-cloak] {
    display: none !important;
}

/* Activity Editor */

.activity-editor .is-dragover {
    background-color: #ccc !important;
}

.activity-editor .asset-file-uploader {
    position: relative;
}

.activity-editor .asset-file-uploader.is-loading {
    pointer-events: none;
}

.activity-editor .asset-file-uploader.is-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.activity-editor .asset-file-uploader.is-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3em;
    height: 3em;
    border: 6px solid #dbdbdb;
    border-right-color: transparent;
    border-radius: 50%;
    z-index: 2;
    animation: spinAround 500ms infinite linear;
}

.activity-editor .asset-file-image-container {
    width: 128px;
    height: 128px;
    overflow: hidden;
}

.activity-editor .asset-file-image-container>img {
    width: 100%;
    height: 100%;
    margin: auto;
    object-fit: cover;
}

.activity-editor .dropdown-item.is-active {
    background-color: #485fc7;
    color: white;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.map-container {
    position: relative;
    padding-bottom: 20px;
}

.resize-handle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background-color: #f5f5f5;
    border-top: 1px solid #dbdbdb;
    text-align: center;
    cursor: ns-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resize-handle:hover {
    background-color: #e8e8e8;
}

.resize-handle i {
    color: #888;
}

/* Home Page */

/* (Featured Activities Styles) */

/* Make sure all cards in a row have equal height */

.card.h-100 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content .title.is-5 a {
    line-height: 30px;
}

/* Push read more button to bottom */
.card-content a.button {
    align-self: flex-start;
    margin-top: auto;
}

/* Image styling */
.card .image {
    background-color: #f5f5f5;
}

.card .image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Activity Details */

.activity-details .content.activity-detail-description h1,
.activity-details .content.activity-detail-description h2,
.activity-details .content.activity-detail-description h3,
.activity-details .content.activity-detail-description h4,
.activity-details .content.activity-detail-description h5,
.activity-details .content.activity-detail-description h6 {
    font-weight: bold;
    margin: 1rem 0 1rem 0;
    font-size: 16px;
}

/* Activity Search Bar */

.activity-search-bar .mapbox-place-search-input {
    width: 100%;
}

/* Activity Category Editor */

.category-tree {
    list-style-type: none !important;
    margin-left: 0 !important;
}

.category-tree ul {
    list-style-type: none;
    margin-top: 0 !important;
}

.category-tree ul li {
    list-style-type: none;
}

.category-item {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.category-item:hover {
    background-color: #f5f5f5;
}

.category-item.is-selected {
    background-color: #ccc;
}

/* Social Auth Buttons */

.google-auth-button {
    background-color: #db4437;
    color: white;
    border-color: transparent;
}

.google-auth-button:hover {
    background-color: #c53929;
    color: white;
}

.microsoft-auth-button {
    background-color: #0078d4;
    color: white;
    border-color: transparent;
}

.microsoft-auth-button:hover {
    background-color: #106ebe;
    color: white;
}
