:root {
    --cmarket-primary: #2142ef;
    --cmarket-secondary: #f0502c;
    --cmarket-bg: #f4f5f7;
    --cmarket-text: #1a1a1a;
    --cmarket-border: #e2e8f0;
    --cmarket-success: #10b981;
    --cmarket-booked: #9ca3af;
}

#cmarket-booth-reservation-root {
    font-family: inherit;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cmarket-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.cmarket-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cmarket-form-group {
    margin-bottom: 20px;
}

.cmarket-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--cmarket-text);
}

.cmarket-form-group input[type="text"],
.cmarket-form-group input[type="email"],
.cmarket-form-group input[type="tel"],
.cmarket-form-group textarea,
.cmarket-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--cmarket-border);
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.cmarket-form-group input:focus,
.cmarket-form-group textarea:focus {
    outline: none;
    border-color: var(--cmarket-primary);
    box-shadow: 0 0 0 3px rgba(33, 66, 239, 0.1);
}

.cmarket-btn {
    background-color: var(--cmarket-primary);
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cmarket-btn:hover {
    background-color: #1a35cc;
}

.cmarket-btn-secondary {
    background-color: transparent;
    color: var(--cmarket-primary);
    border: 2px solid var(--cmarket-primary);
}

.cmarket-btn-secondary:hover {
    background-color: var(--cmarket-bg);
}


.cmarket-booth {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid var(--cmarket-primary);
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    color: var(--cmarket-primary);
    transition: all 0.2s;
    font-size: 13px;
    text-align: center;
    padding: 4px;
    box-sizing: border-box;
}

.cmarket-booth:hover {
    background: var(--cmarket-primary);
    color: #ffffff;
}

.cmarket-booth.booked {
    background: var(--cmarket-booked);
    border-color: var(--cmarket-booked);
    color: #ffffff;
    cursor: help;
}

.cmarket-booth.selected {
    background: var(--cmarket-secondary);
    border-color: var(--cmarket-secondary);
    color: #ffffff;
}

.cmarket-static-element {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #64748b;
    font-weight: bold;
    pointer-events: none;
    font-size: 13px;
    text-align: center;
    box-sizing: border-box;
}

.cmarket-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.cmarket-modal-overlay.active {
    display: flex;
}

.cmarket-modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.cmarket-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--cmarket-text);
}

.cmarket-package-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cmarket-package-card {
    border: 2px solid var(--cmarket-border);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s;
}

.cmarket-package-card:hover {
    border-color: var(--cmarket-primary);
}

.cmarket-package-card.selected {
    border-color: var(--cmarket-secondary);
    background: rgba(240, 80, 44, 0.05);
}

.cmarket-package-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.cmarket-package-discount {
    background: var(--cmarket-success);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin: 8px 0;
}

.cmarket-pkg-date-selector {
    margin-top: 14px;
}

.cmarket-pkg-date-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--cmarket-border);
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
    cursor: pointer;
    box-sizing: border-box;
    appearance: auto;
}

.cmarket-pkg-date-select:focus {
    outline: none;
    border-color: var(--cmarket-primary);
    box-shadow: 0 0 0 3px rgba(33, 66, 239, 0.1);
}

.cmarket-date-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    justify-content: center;
}

.cmarket-date-chip {
    background: var(--cmarket-bg);
    border: 1px solid var(--cmarket-border);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    color: #475569;
    font-weight: 500;
    white-space: nowrap;
}

.cmarket-package-card.selected .cmarket-date-chip {
    background: rgba(240, 80, 44, 0.08);
    border-color: var(--cmarket-secondary);
    color: var(--cmarket-secondary);
}

.cmarket-checkout-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.cmarket-price-display {
    flex: 1;
    min-width: 200px;
}

.cmarket-price-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--cmarket-bg);
    border: 1px solid var(--cmarket-border);
    border-radius: 8px;
    padding: 14px 18px;
    flex-wrap: wrap;
}

.cmarket-price-label {
    font-weight: 600;
    color: #64748b;
    font-size: 14px;
}

.cmarket-price-original {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 16px;
}

.cmarket-price-arrow {
    color: #9ca3af;
}

.cmarket-price-final {
    color: var(--cmarket-primary);
    font-size: 20px;
    font-weight: 700;
}

.cmarket-price-badge {
    background: var(--cmarket-success);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.cmarket-checkout-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .cmarket-checkout-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .cmarket-price-display {
        order: -1;
        width: 100%;
    }

    .cmarket-checkout-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .cmarket-checkout-buttons .cmarket-btn {
        flex: 1;
        text-align: center;
    }

    .cmarket-price-info {
        justify-content: center;
    }
}

.cmarket-booth-popup {
    position: fixed;
    display: none;
    background: #ffffff;
    border: 1px solid var(--cmarket-border);
    border-radius: 10px;
    padding: 16px 18px;
    max-width: 280px;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    font-size: 13px;
    line-height: 1.6;
    color: var(--cmarket-text);
    pointer-events: none;
}

.cmarket-booth-popup.active {
    display: block;
}

.cmarket-booth-popup p {
    margin: 0 0 6px 0;
}

.cmarket-booth-popup pre {
    background: var(--cmarket-bg);
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.cmarket-date-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.cmarket-date-option {
    padding: 10px 16px;
    background: #ffffff;
    border: 2px solid var(--cmarket-border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.cmarket-date-option:hover {
    border-color: var(--cmarket-primary);
    background: rgba(33, 66, 239, 0.05);
}

.cmarket-date-option.selected {
    border-color: var(--cmarket-secondary);
    background: var(--cmarket-secondary);
    color: #ffffff;
    font-weight: bold;
}

.cmarket-package-dates {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
    line-height: 1.5;
}

.cmarket-images-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.cmarket-image-thumb {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid var(--cmarket-border);
    border-radius: 6px;
    overflow: hidden;
}

.cmarket-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cmarket-image-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(240,80,44,0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}










/*---------------*/

.cmarket-map-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: var(--cmarket-bg);
    border: 2px solid var(--cmarket-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    touch-action: none; 
    -webkit-user-drag: none;
}

.cmarket-map-container:active {
    cursor: grabbing;
}

#cmarket-map-viewport {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    transition: transform 0.1s ease-out;
}

.cmarket-zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.cmarket-zoom-btn {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid var(--cmarket-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cmarket-zoom-btn:hover {
    background: var(--cmarket-bg);
}


/*-----------------------*/
.cmarket-multiselect-wrapper {
    position: relative;
    width: 100%;
}

.cmarket-multiselect-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--cmarket-border);
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
    cursor: pointer;
    box-sizing: border-box;
    user-select: none;
    transition: border-color 0.2s;
}

.cmarket-multiselect-trigger:hover {
    border-color: var(--cmarket-primary);
}

.cmarket-multiselect-arrow {
    font-size: 10px;
    color: #64748b;
    transition: transform 0.2s;
}

.cmarket-multiselect-dropdown.open + .cmarket-multiselect-arrow,
.cmarket-multiselect-wrapper.open .cmarket-multiselect-arrow {
    transform: rotate(180deg);
}

.cmarket-multiselect-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--cmarket-border);
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 200;
    max-height: 220px;
    overflow-y: auto;
}

.cmarket-multiselect-dropdown.open {
    display: block;
}

.cmarket-multi-date-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    cursor: pointer;
    font-size: 13px;
    color: var(--cmarket-text);
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.cmarket-multi-date-option:last-child {
    border-bottom: none;
}

.cmarket-multi-date-option:hover {
    background: #f0f4ff;
}

.cmarket-multi-date-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--cmarket-primary);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.cmarket-multi-date-option input[type="checkbox"]:checked + span {
    font-weight: 700;
    color: var(--cmarket-primary);
}

.cmarket-multiselect-selected-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
    justify-content: center;
}

.cmarket-multiselect-chip {
    background: rgba(33, 66, 239, 0.08);
    border: 1px solid rgba(33, 66, 239, 0.25);
    color: var(--cmarket-primary);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
}


/*-----------------------*/

@media(max-width:768px){
    .cmarket-map-container {
    height: 380px !important;
}
}