.odm-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100% !important;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.odm-modal.fade {
    opacity: 0;
    display: none;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.odm-modal.show {
    opacity: 1;
    display: block;
}

.odm-modal-dialog {
    position: relative;
    width: 95%;
    max-width: 1200px;
    margin: 30px auto;
    pointer-events: none;
}

.odm-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #f8f8f8;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    outline: 0;
}

.odm-modal-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.odm-modal-header .close {
    padding: 0.5rem;
    margin: 0;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    color: #333;
}

.odm-modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 0 1.5rem 1.5rem;
}

/* Modal Content Styling */
.odm-modal-body .text {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 0;
}

.odm-modal-body .left {
    flex: 3;
    min-width: 300px;
}

.odm-modal-body .right {
    flex: 2;
    min-width: 300px;
    border-left: 1px solid #e0e0e0;
    padding-left: 2rem;
}

.odm-modal-body h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #333;
}

.odm-modal-body strong {
    font-weight: 600;
}

.odm-modal-body ul {
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
    list-style-type: disc;
}

.odm-modal-body li {
    margin-bottom: 0.5rem;
}

.odm-modal-body .buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.odm-modal-body .buttons .button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    background-color: #555;
    color: white;
    border: 1px solid #555;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}

.odm-modal-body .buttons .button:first-child {
    background-color: #555;
}

.odm-modal-body .buttons .button:last-child {
    background-color: white;
    color: #333;
    border: 1px solid #ccc;
}

.odm-modal-body .directions,
.odm-modal-body .phone,
.odm-modal-body .location-services {
    margin-bottom: 1.5rem;
}

.odm-modal-body .location-services ul {
    list-style: none;
    padding-left: 0;
}

.odm-modal-body .location-services li {
    margin-bottom: 0.5rem;
}

.odm-modal-body .location-services a {
    color: #333;
    text-decoration: none;
}

.odm-modal-body .location-services a:hover {
    text-decoration: underline;
}

.odm-modal-body .location-services img {
    max-width: 180px;
    margin-top: 1.5rem;
}

/* Button Styling */
.button.quick-view {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    color: #212529;
    border: 1px solid #dee2e6;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
}

.button.quick-view:hover {
    background-color: #e2e6ea;
}

/* Gallery Styling */
.odm-modal-body [id^="modula-"] {
    margin-bottom: 20px;
}

/* Close Button Styling */
.odm-modal-header .close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Icons for sidebar */
.odm-modal-body .right p strong {
    position: relative;
}

.odm-modal-body .directions p strong::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
    vertical-align: middle;
}

.odm-modal-body .phone p strong::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M20.01 15.38c-1.23 0-2.42-.2-3.53-.56-.35-.12-.74-.03-1.01.24l-1.57 1.97c-2.83-1.35-5.48-3.9-6.89-6.83l1.95-1.66c.27-.28.35-.67.24-1.02-.37-1.11-.56-2.3-.56-3.53 0-.54-.45-.99-.99-.99H4.19C3.65 3 3 3.24 3 3.99 3 13.28 10.73 21 20.01 21c.71 0 .99-.63.99-1.18v-3.45c0-.54-.45-.99-.99-.99z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
    vertical-align: middle;
}

.odm-modal-body .text .location-services p strong::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
    vertical-align: middle;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .odm-modal-body .text {
        flex-direction: column;
    }
    
    .odm-modal-body .right {
        border-left: none;
        border-top: 1px solid #e0e0e0;
        padding-left: 0;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .odm-modal-dialog {
        margin: 20px auto;
        width: 95%;
    }
}