/**
 * Multi Locations Elementor Widgets Styles
 * 
 * Frontend styles for custom Elementor widgets
 */

/* Location Name Widget */
.ml-location-name {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

/* Default styling for better visual hierarchy */
.ml-location-name.elementor-heading-title {
    margin-bottom: 0.5em;
}

/* Content Block Widget */
.ml-content-block-wrapper {
    margin: 1em 0;
}

.ml-location-context {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 0.5em;
    font-style: italic;
}

.ml-content-block {
    line-height: 1.6;
}

.ml-content-block h1,
.ml-content-block h2,
.ml-content-block h3,
.ml-content-block h4,
.ml-content-block h5,
.ml-content-block h6 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}

.ml-content-block p {
    margin-bottom: 1em;
}

.ml-content-block ul,
.ml-content-block ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.ml-content-block li {
    margin-bottom: 0.3em;
}

/* Responsive text sizing */
@media (max-width: 768px) {
    .ml-location-name {
        font-size: 0.9em;
    }
    
    .ml-content-block {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .ml-content-block {
        font-size: 0.9em;
    }
    
    .ml-location-context {
        font-size: 0.8em;
    }
}

/* Elementor editor preview styles */
.elementor-editor-active .ml-location-name {
    min-height: 1em;
    position: relative;
}

.elementor-editor-active .ml-location-name:empty::before {
    content: 'Location Name';
    color: #a4afb7;
    font-style: italic;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elementor-editor-active .ml-content-block-wrapper {
    min-height: 3em;
    position: relative;
    border: 1px dashed #ddd;
    padding: 1em;
}

.elementor-editor-active .ml-content-block:empty::before {
    content: 'Content Block - Select category and template';
    color: #a4afb7;
    font-style: italic;
}