/*
Theme Name: Travel Buddies Theme
Description: The default theme for all Travel Buddies WordPress websites.
Author: Travel Buddies GmbH
Version: 1.0
Text Domain: travel-buddies
*/

/*
 * Rests and base styles.
 * 
 * Note: the base html elements here are prefixed with `body` to ensure
 * they have a higher specificity than those of the parent theme.
 */

html {
    font-size: 110%;
}

body,
html {
    -webkit-text-size-adjust: 100%;
}

/* Neutralize Elementor / theme font smoothing so your fonts render naturally */
body,
body .elementor,
body .elementor * {
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
}

body {
    margin: 0;
}

body strong,
body b {
    font-weight: 500 !important;
}

body a {
    color: currentColor;
    text-decoration: none;
}

body a:hover {
    text-decoration: underline;
}

body.is-fullscreen {
    height: 100%;
    overflow: hidden;
}

/*
 * Elementor overrides.
 */

.elementor-icon-list-text {
    text-align: left;
}

/* Image element should fill 100% of the height and width of the container */
.cb-image-background {
    width: 100%;
    height: 100%;
}

.cb-image-background img,
.cb-image-square img,
.cb-image-ratio-screen img,
.cb-image-ratio img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
}

.cb-image-square img {
    aspect-ratio: 1/1;
}

.cb-image-ratio img {
    aspect-ratio: 4/3;
}

.cb-image-ratio-screen img {
    aspect-ratio: 16/9;
}

.cb-image-ratio-thumb img {
    width: 165px !important;
    height: 110px !important;
    max-width: 100% !important;
    object-fit: cover !important;
}

.cb-header-max {
    max-height: 600px !important;
}

/* Elementor doesn't allow this combination of filters. */
.cb-inverted {
    filter: brightness(0) invert(1);
}

.cb-opacity-50 {
    opacity: 0.5;
}

.cb-opacity-25 {
    opacity: 0.25;
}

.cb-ratio {
    aspect-ratio: 4/3;
}

/*
 * Smalll helper classes for manually setting colours.
 */

.cb-color-primary {
    color: var(--e-global-color-primary);
}

.cb-color-secondary {
    color: var(--e-global-color-secondary);
}

/**
 * Small circle shown behind icons, offset slightly.
 */

.cb-icon-circle {
    position: relative;
    aspect-ratio: 1/1;
}

.cb-icon-circle svg {
    transform: translateX(20%);
}

.cb-icon-circle::before {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    width: 90%;
    height: 90%;
    background: currentColor;
    opacity: 0.25;
    border-radius: 100%;
}

/**
 * Custom Mapbox styles.
 * 
 * Note: the base html elements here are prefixed with `body` to ensure
 * they have a higher specificity than those of the parent theme.
 */

body #map .mapboxgl-popup-close-button {
    padding: 0.2rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    line-height: 0.7;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    transition: background 500ms;
}

body #map .mapboxgl-popup-close-button:hover {
    background: #e6e6e6;
}

body #map .mapboxgl-popup-close-button:focus {
    outline: none;
}

body #map .mapboxgl-popup-content {
    border-radius: 1rem;
    padding: 0.75rem 0.75rem 0 0.75rem;
}

/*
 * Calendly Embeded.
 */
.calender-embed {
    position: relative;
    z-index: 1;
    width: 640px;
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid hsl(0, 0%, 90%);
    background: hsl(0, 0%, 98%);
}

.calender-embed__loader {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    text-align: center;
    margin-bottom: 2rem;

    transform: translate(-50%, -50%);
}

.calender-embed__icon {
    margin: 0 auto 1rem;
}

.calender-embed__widget[data-step="1"] {
    height: 600px;
}

.calender-embed__widget[data-step="2"] {
    height: 1060px;
}

.calender-embed__widget[data-step="3"] {
    height: 600px;
}

@media (min-width: 768px) {
    .calender-embed {
        padding: 4rem;
    }

    .calender-embed__widget[data-step="1"] {
        height: 770px;
    }

    .calender-embed__widget[data-step="2"] {
        height: 1200px;
    }

    .calender-embed__widget[data-step="3"] {
        height: 640px;
    }
}
/**
 * Mapbox embed
 */
.marker {
    background-color: #06746D;
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    cursor: pointer;
}

body .mapboxgl-popup-close-button {
    padding: 0.2rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    line-height: 0.7;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    transition: background 500ms;
}

body .mapboxgl-popup-close-button:hover {
    background: #e6e6e6;
}

body .mapboxgl-popup-close-button:focus {
    outline: none;
}

body .mapboxgl-popup-content {
    border-radius: 1rem;
    padding: 0.75rem 0.75rem 0 0.75rem;
}