:root{
    --my-primary: #a1313c;
    --my-secondary: #f2f0eb;
    --white: #f1f0e9;
    --my-primary-light: hsla(354, 53%, 41%, 0.546);
}
.wrap{
    min-height: 840px !important;
    background: #f1f0e9 !important;
    width: 100%;
    border-radius: 16px;
    margin-bottom: 32px;
    padding: 2rem;
}
.elementor-1475 .elementor-element.elementor-element-eb8919c:not(.elementor-motion-effects-element-type-background), .elementor-1475 .elementor-element.elementor-element-eb8919c > .elementor-motion-effects-container > .elementor-motion-effects-layer{
    background-color: var(--my-secondary) !important;
}

.my-form{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row{
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    
}
.form-col{
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.form-group{
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}   

.my-button{
    min-width: 200px;
    max-width: fit-content;
    max-height: 48px !important;
}
.my-button-secondary{
    background-color: white !important;
    border: 1px solid var(--my-primary) !important;
    color: var(--my-primary) !important;
}
.my-button:hover{
    color: white;
}
.button-group{
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    justify-content: start;
}

.image-upload-placeholder {
    border: 2px dashed #999;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    min-height: 300px;
}

.image-upload-placeholder p {
    color: #777;
    margin-top: 40px;
}
#regions-output{
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.region-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 12px;
}
.color-swatch{
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #000;
}
.region-row-data{
    display: flex;
    flex-direction: column;
    align-items: start;
    min-width: 300px;
}
.region-row-data span{
    color: var(--my-primary);
}
.image-upload-flex{
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.preview-image{
    width: 960px;
}

.saved-data{
    margin-top: 32px;
}

/* floorplan-display-thumbnail */
.floorplan-gallery{
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
}
.floorplan-container{
    position: relative;
    margin: 10px;
    /* width: 33%; */
    flex: 1;
    border-radius: 12px;
	max-height: 370px;
	display: flex;
	align-items: center;
	justify-content: center;

}

.plan-image{
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 8px !important;
}
.floorplan-container::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    /* background-color: var(--my-primary-light); */
    z-index: 1;
    border-radius: 8px !important;
}
.floorplan-container:hover::before{
    cursor: pointer;
    background-color: var(--my-primary-light) !important;
}
.floorplan-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the text */
    color: white;
    font-size: 18px;
    z-index: 2; /* Make sure the title is above the overlay */
    /* background-color: var(--my-primary); */
    padding: 10px;
    text-align: center; /* Center the text horizontally */
    width: 100%; /* Optional: limit the width for long titles */
    font-family: 'Crimson Text',serif;
    font-size: 24px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.8);
}

/* Modal background */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Modal content box */
.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: #f2f0eb;
    padding: 20px;
    box-sizing: border-box;
    border: 10px solid #a1313c;
    border-radius: 12px;
    
}

/* Video container (responsive) */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 32px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Close button */
.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #a1313c !important;
    padding: 0px;
    background-color: unset !important;
    border: none;
    font-size: 30px;    
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floor-plan-image {
    position: relative;
    display: inline-block; /* Only wrap around the image */
/*     width: 100%; */
	margin:0 auto;
    overflow: auto;
}

.floor-plan-image img {
  max-width: 100%;
  height: auto;
  display: block;
	margin:0 auto;
}

.preview-image {
    display: block; /* Remove image extra space (important!) */
    max-width: 960px;
	min-width:960px;
    height: auto;
}

.floorplan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Your mobile styles here */
@media (max-width: 1024px) {
    .plan-image {
        display: block; /* Remove image extra space (important!) */
        max-width: 400px;
        width: 400px;
        height: auto;
    }    
    .floorplan-gallery{
        padding: 0 !important;
        align-items: center;
        justify-content: center;
    }
    .floorplan-container{
        width: 100%;
        flex:unset !important
    }
    .e-con-inner{
        gap:32px !important
    }
	.floor-plan-image {
    position: relative;
    width: 100%;
    max-width: 100%;
  }

  .floor-plan-image img {
    width: 100% !important;
    height: auto !important;
    display: block;
	  
  }

  .floorplan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
	.preview-image{
		width:100vw;
		min-height:unset !important;
		min-width:unset !important;
	}
}


  