body {
	background-color: #f6f6f6;
    --main-color: #E3C6A5;
    font-family: "Albert Sans", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.accordion {
	--bs-accordion-active-bg: #e2e2e2 !important;
}

#master-row {

}

#master-col {
	height: calc(100vh - 112.5px) !important;
}

#wrapper {
	overflow: hidden;
	width: 100%;
	height: 100%;
	position: relative;
}

#map {
	width: 100%;
	height: 100%;
}

#viewer {
	position: absolute;
	left: 50%;
	top: 50%;
	transform-origin: 50% 50%;
	box-shadow: 0.25em 0.25em 1em grey;
}

#view {
	margin: auto;
    height: 100% !important;
    width: 100% !important;
}

#map-container {
	position: relative;
	outline: none;
	margin: auto;
}

#frame {
	pointer-events: none;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    margin-left: -1px;
    margin-top: -1px;
    position: absolute;
    z-index: 999;
}

#content {
	margin: auto;
	position: absolute;
	z-index: 500;
	top: .0rem !important;
	pointer-events: none;
}

#content.frame-none {
    border: 0rem solid transparent !important;
}

#content.frame-glass {
    border: 0rem solid transparent !important;
}

#content.size-13-18 {
    border: 4.05rem solid transparent;
}

#content.size-21-30 {
    border: 4.05rem solid transparent;
}

#content.size-30-40 {
    border: 3.14rem solid transparent;
}

#content.size-40-50 {
    border: 3.14rem solid transparent;
}

#content.size-50-70 {
    border: 3.14rem solid transparent;
}

/* STYLY */
/* Styl: classic */
.style-classic {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 100%;
	height: 100%;
	border: 20px solid #fff;
}

.style-classic__text {
    padding: 20px;
    position: absolute;
    bottom: 20px;
    width: 300px;
    z-index: 102;
    left: calc(50% - 150px);
    background-color: white;
}

.style-classic__text .dynamic-title {
    text-align: center;
    line-height: 1;
    font-size: 30px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
	-webkit-font-smoothing: antialiased;
	font-family: "Nunito", serif;
	font-optical-sizing: auto;
}

.style-classic__text .dynamic-desc {
    text-align: center;
    line-height: 1;
    font-size: 20px;
    font-weight: 400;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 3px;
	-webkit-font-smoothing: antialiased;
	font-family: "Nunito", serif;
	font-optical-sizing: auto;
}

.style-classic__text .dynamic-desc::before, .style-classic__text .dynamic-desc::after {
    background-color: black;
    content: "";
    display: inline-block;
    height: 1px;
    position: relative;
    vertical-align: middle;
    width: 30px;
}

.style-classic__text .dynamic-desc::before {
	right: 20px;
    margin-left: -50%;
}

.style-classic__text .dynamic-desc::after {
	left: 20px;
    margin-right: -50%;
}

.style-classic__text .dynamic-coords {
    text-align: center;
    line-height: 1;
    font-size: 10px;
    margin-top: 5px;
	font-family: "Nunito", serif;
	font-optical-sizing: auto;
}

/* Styl: modern */
.style-modern {

}

.style-modern__border {
	position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    border: 40px solid white;
    z-index: 9999;
}

.style-modern__in {
	background-color: #000;
    border-top: 10px solid #fff;
    padding: 8px 0;
    position: relative;
}

.style-modern__title {
    font-size: 23px;
    font-weight: 600;
    text-transform: uppercase;
    width: 100%;
    padding-top: 0;
    color: white;
	margin-bottom: -5px;
}

.style-modern__desc {
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.style-modern__coords {
    text-align: right;
    font-size: 12px;
    font-weight: 300;
    color: white;
}

/* Styl: clean */
.style-clean {

}

.style-clean__border {
	position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    border: 40px solid white;
    z-index: 9999;
}

.style-clean__in {
    background-color: white;
    border-top: 10px solid #fff;
    padding: 8px 0;
    position: relative;
    top: 1px;
    left: -1px;
    width: 102%;
}

.style-clean__title {
    font-size: 23px;
    font-weight: 600;
    text-transform: uppercase;
    width: 100%;
    padding-top: 0;
    color: black;
	margin-bottom: -5px;
}

.style-clean__desc {
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: black;
}

.style-clean__coords {
    text-align: right;
    font-size: 12px;
    font-weight: 300;
    color: black;
}

/* Další styly */
#zoom {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

.main-icon {
	display: inline-block;
	margin-right: 10px;
}

.container {
	margin-left: 0 !important;
	margin-right: auto !important;
	max-width: 100% !important;
}

.price-box {
    background: white;
    padding: 15px;
    text-align: center;
    border-top: 1px solid #ccc;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    width: 100%;
}

.total-price {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

#btn-buy {
    font-size: 20px;
    padding: 10px;
}

.map-style-selection {
    margin-top: 20px;
    text-align: center;
}

.map-styles {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
}

.map-style {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.map-preview {
    width: 80px;
    height: 55px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: border 0.2s ease-in-out;
}

input[type="radio"] {
    margin-top: 5px;
}

input[type="radio"]:checked + span {
    font-weight: bold;
}

.control-frame {
    height: calc(100vh - 112.5px);
}

form#order, #in-form {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.form-check-input {
	position: relative;
    top: 10px;
}

.form-check-label {
	display: flex;
	justify-content: space-between;
	width: 100%;
	padding: 10px;
	border-radius: 5px;
}

.form-check-input:checked + .form-check-label {
	background-color: #f8f9fa;
}

.price {
	color: black;
	font-weight: bold;
}

h5 {
	text-align: left;
    line-height: 1.5;
    font-size: 1rem;
    font-weight: bold;
}

.maplibregl-ctrl-top-right, .maplibregl-ctrl-bottom-left  {
    display: none !important;
}

/* Styly */
.style-header {
    background-color: white;
    color: var(--main-color);
    padding-top: 0;
}

.style-header .container {
    justify-content: center;
}

.style-header .navbar-brand {
    margin-right: 0;
    color: #4DB6AC;
    font-family: "Acme", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 35px;
}

.style-header span {
    margin-top: -10px;
    display: inline-block;
    font-size: 12px;
    color: black;
}

.strip {
    background-color: #B5D6BC;
    color: black;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
}

.accordion-button:not(.collapsed) {
    background-color: white;
    box-shadow: none;
    color: black;
}

button.accordion-button span {
    border-radius: 10px;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    margin-right: 20px;
    background-color: #B5D6BC;
    color: white;
}

.accordion-item:first-of-type {
    border-top-left-radius: unset;
    border-top-right-radius: unset;
}

.accordion-item {
    border: 0;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.input-group-text {
    background-color: white;
    border: 0;
    font-weight: bold;
}

.input-group-text.not-bold {
    font-weight: normal;
}

.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    border-radius: var(--bs-border-radius) !important;
}

.map-style {
    font-size: 11px;
}

.btn-toggle {
    border: 1px solid #ccc;
    background-color: white;
    color: black;
    max-width: 50%;
    flex: 1 1 40%;
    text-align: center;
    font-size: 12px;
    display: flex;
    align-items: center;  /* Vertikální zarovnání */
    justify-content: center; /* Horizontální zarovnání */
}

.btn-toggle:hover {
    color: white;
    border: 1px solid #ccc;
    background-color: #4DB6AC;
    border-color: #4DB6AC;
}

.btn-toggle:has(input:checked) {
    background-color: #4DB6AC;
    color: white;
    border-color: #4DB6AC;
    font-weight: bold;
}

.accordion-item:not(:last-child) {
    border-bottom: 1px solid #ccc;
}

.texts {
    margin-left: 15px;
    display: none;
}

.form-check-input:checked + .form-check-label {
    background-color: white;
}

.extra-margin {
    margin-left: 15px;
}

.control-frame form {
    height: 100%;
    background-color: white;
    position: relative;
}

.mobile-open, .mobile-close {
    display: none;
}

.mobile-flex {
    flex-wrap: wrap;
}

@media (min-width: 767.1px ) {
    #in-form {
        display: block !important;
    }

    #wrapper {
        max-height: unset !important;
    }

    .mobile-open, .mobile-close {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .bottom-menu {
        display: flex !important;
    }

    .accordion-collapse {
        transition: none !important;
    }

    .map-styles, .mobile-flex {
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .control-frame {
        position: fixed !important;
        width: 100% !important;
        bottom: 0 !important;
        height: auto !important;
        /* max-height: calc(100vh - 112.5px); */
        z-index: 999;
        background: #f7f7f7;
        padding: 0;
    }

    #master-row {
        width: 100% !important;
        margin-left: 0;
        margin-right: 0;
    }

    #wrapper {
        max-height: 75%;
    }

    .accordion-item:not(:has(.accordion-collapse.show)) {
        display: none;
    }

    .accordion-button {
        display: none;
    }

    .price-box {
        display: none;
    }

    .mobile-open, .mobile-close {
        display: block;
        position: absolute;
        top: -45px;
        right: 0;
        color: black;
        font-size: 28px;
        width: 45px;
        height: 45px;
        text-align: center;
        background-color: #b3d9f5;
    }

    .mobile-open {
        display: none;
    }

    form#order {
        position: relative;
    }
}

.bottom-menu {
    display: none;
    background: white;
    border-top: 1px solid #ddd;
}

.menu-item {
    text-decoration: none;
    text-align: center;
    padding: 12px;
    flex: 1;
    font-size: 12px;
    color: #333;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-item.active {
    background-color: rgba(0, 0, 0, 0.1);
}

.menu-item i {
    font-size: 16px;
}

.menu-item:last-child {
    font-weight: bold;
    background: #198754;
    color: white;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#loadingOverlay.has-text .overlay-content {
    background-color: white;
    padding: 20px;
}

.overlay-message {
    font-size: 1.25rem;
    color: black;
}

.add-to-cart {
    background-color: #54A529;
    border-color: #54A529;
}

.add-to-cart:hover {
    background-color: #4DB6AC;
    border-color: #4DB6AC;
}

.gray-color {
    color: #454545 !important;
}
.marker-wrapper {
	display: inline-flex;
	position: relative;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	pointer-events: auto;
}

.marker-wrapper.selected {
	border: 2px solid red;
	border-radius: 6px;
	padding: 2px;
	display: inline-flex;
	background: transparent;
}

.custom-icon-marker {
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	pointer-events: auto;
}

.marker-controls {
	position: absolute;
	top: -48px;
	display: flex;
	flex-wrap: nowrap;
	gap: 4px;
	background: white;
	padding: 4px 6px;
	border-radius: 4px;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
	z-index: 10;
	pointer-events: auto;
}

.marker-controls button {
	font-size: 12px;
	padding: 2px 6px;
	line-height: 1;
	cursor: pointer;
}

.color-picker-popup {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-wrap: wrap;
	background: white;
	padding: 6px;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	z-index: 20;
	gap: 6px;
	margin-top: 4px;
}

.color-picker-circle {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	cursor: pointer;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.resize-handle {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 14px;
	height: 14px;
	background: rgba(0, 0, 0, 0.4);
	cursor: nesw-resize;
	border-radius: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	z-index: 15;
}

.resize-handle:hover {
    background: rgba(0, 0, 0, 0.8);
}

#icon-controls {
    padding: .375rem .75rem;
}

#icon-controls a {
    color: black;
    text-decoration: none;;
}

#icon-controls i {
    font-size: 22px;
    margin-right: 8px;
    opacity: .7;
}

#icon-controls a:hover i {
    opacity: 1;
}

.marker-controls .btn-sm {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    padding: 0;
}

.editor-logo {
    margin-bottom: 5px;
}