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


/* Schedule Modal */
.homiberia-modal {
    padding: 60px 15px;
}

.modal-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(230, 230, 230, 1);
}

.modal-top-header h2 {
    font-size: 32px;
    font-weight: 500;
}

.homiberia-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.property-schedule-wrapper {
    background-color: #fff;
    padding: 40px;
    max-width: 880px;
    width: 100%;
    margin: 0 auto;
    border-radius: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    max-height: calc(100vh - 120px);

}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.modal-header h1 {
    font-size: 32px;
    font-weight: 500;
    color: rgba(14, 14, 15, 1);
}

.homiberia-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-main-content {
    padding: 40px;
    background-color: rgba(249, 251, 252, 1);
    border-radius: 16px;
    overflow: hidden;
}

.preferred-time {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 500;
}

.property-schedule-wrapper .time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    margin-bottom: 32px;
}

.property-schedule-wrapper .time-btn {
    padding: 10px;
    border-radius: 100px;
    border: 1px solid rgba(255, 198, 220, 1);
    background: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s;
    color: rgba(117, 6, 49, 1);
}

.property-schedule-wrapper .time-btn:hover {
    border-color: #1a1a1a;
}

.property-schedule-wrapper .time-btn.selected {
    background: #6b1140;
    color: white;
    border-color: #6b1140;
}

.modal-form-input-wrap h2 {
    font-size: 24px;
    font-weight: 500;
    color: rgba(14, 14, 15, 1);
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(230, 230, 230, 1);
}

.modal-form-group {
    margin-bottom: 20px;
}

.modal-form-group label {
    display: block;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    color: rgba(14, 14, 15, 1);
}

.modal-form-group .form-input {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(230, 230, 230, 1);
    border-radius: 8px;
    font-size: 14px;
    height: 48px;
    color: rgba(14, 14, 15, 1);
    background-color: rgba(255, 255, 255, 1);
}

.modal-form-group .form-input::placeholder {
    font-size: 16px;
    font-weight: 400;
    color: rgba(140, 140, 149, 1);
}

.modal-form-group .form-input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.modal-form-group .phone-input {
    display: flex;
    gap: 0px;
    border: 1px solid rgba(230, 230, 230, 1);
    background-color: rgba(255, 255, 255, 1);
    border-radius: 8px;
}

.modal-form-group .phone-input input {
    border: none;

}

.modal-form-group .country-code {
    width: 100px;
    padding: 12px;
    border: none;
    border-radius: 8px;
}

.modal-form-group textarea {
    width: 100%;
    min-height: 167px;
    resize: vertical;
    padding: 12px;
    border: 1px solid rgba(230, 230, 230, 1);
    border-radius: 8px;
    font-size: 14px;
    color: rgba(14, 14, 15, 1);
    background-color: rgba(255, 255, 255, 1);
}

.radio-group {
    display: flex;
    gap: 24px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-summary-box {
    background: rgba(242, 249, 252, 1);
    padding: 24px;
    border: 1px solid rgba(192, 234, 252, 1);
    border-radius: 16px;
    margin-bottom: 40px;
}

.modal-summary-item {
    margin-bottom: 16px;
}

.modal-summary-label {
    font-size: 18px;
    font-weight: 500;
    color: rgba(14, 14, 15, 1);
    margin-bottom: 10px;
}

.madal-input-group-wrap {
    display: flex;
    gap: 20px;
}

.madal-input-group-wrap .modal-summary-item.date-item {
    width: 40%;
}

.madal-input-group-wrap .modal-summary-item.time-range-item {
    width: 60%;
}

.modal-summary-item input {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(230, 230, 230, 1);
    border-radius: 8px;
    font-size: 14px;
    height: 48px;
    color: rgba(140, 140, 149, 1);
    background-color: rgba(255, 255, 255, 1);
}

.modal-summary-label.for-mobile {
    display: none;
}

.modal-summary-item .time-range input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.modal-agreement {
    color: #666;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 16px;
}

.modal-agreement a {
    color: rgba(5, 33, 133, 1);
    text-decoration: underline;
    font-size: 16px;
}

.modal-schedule-tour-btn {
    width: 100%;
    padding: 16px;
    background: #6b1140;
    color: white;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #6b1140;
}

.modal-schedule-tour-btn svg path {
    stroke: white;
}

.modal-schedule-tour-btn:hover {
    background: transparent;
    color: #6b1140;
}

.modal-schedule-tour-btn:hover svg path {
    stroke: #6b1140;
}

.footer-text {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 16px;
}

.arrow-btn {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Ask a Question Modal */
.suggest-keyword {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
}

.property-agent-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.suggest-keyword span {
    padding: 14px 20px;
    background: rgba(246, 245, 244, 1);
    border-radius: 8px;
    width: 31.6%;
}

.modal-submit-btn-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 50%;
    gap: 12px;
}

.modal-agreement.ask-question {
    justify-content: flex-start;
}

/* Gallery All show Modal */
.gallery-all-wrapper {
    background-color: #fff;
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    border-radius: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    max-height: calc(100vh - 120px);
}

.gallery-modal-tab {
    padding: 8px 14px;
    border-radius: 100px;
    color: rgba(84, 84, 89, 1);
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-modal-tab svg path {
    stroke: rgba(84, 84, 89, 1);
}

.gallery-modal-tab.active {
    background: #000;
    color: #fff;
}

.gallery-modal-tab.active svg path {
    stroke: #fff;
}

.gallery-modal-tab:hover {
    background: #000;
    color: #fff;
}

.gallery-modal-tab:hover svg path {
    stroke: #fff;
}

.gallery-modal-tabs-img {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.gallery-modal-tabs-img img {
    width: 100%;
    max-height: 260px;
    height: 100%;
    border-radius: 12px;
}

.gallery-modal-tabs-img img:nth-child(1) {
    grid-column: span 3 / span 3;
    max-height: 660px;
    height: 100%;
}


/* Video Gallery tab */
.gallery-modal-tabs-video {
    position: relative;
    width: 100%;
    height: 658px;
}

.gallery-modal-tabs-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Gallery Map tab */
.gallery-modal-tabs-map iframe {
    width: 100%;
    max-height: 660px;
    height: 660px;
    border-radius: 12px;
}


/* ================ 
   Modal Multi Form 
   =============== */
 

.multi-step-form-container {
    max-width: 885px;
    margin: auto;
    padding: 15px;
}

.multi-step-wrap {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.msf-step-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0px;
    transform: translateY(-50%);
    z-index: -1;
    border: 1px dashed #ddd;
}

.msf-step {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 500;
    background: rgba(246, 245, 244, 1);
    border: 3px solid #fff;
}

.homiberia-progress-step.active .msf-step {
    background: rgba(5, 33, 133, 1);
    color: #fff;
    border-color: rgba(111, 131, 204, 1);
}

.multi-step-form-container .msf-step-top-content h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
}

.msf-step-top-content {
    padding-bottom: 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(229, 229, 234, 1);
}

.msf-input-field {
    margin-bottom: 32px;
}

.msf-input-field label {
    display: block;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.msf-input-field input,
.msf-input-field select {
    width: 100%;
    height: 48px;
    padding: 5px 16px;
    border-radius: 8px;
    outline: none;
    border: 1px solid rgba(230, 230, 230, 1);

}

.msf-check-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.msf-check-wrap input {
    width: auto;
}

.msf-check-wrap label {
    margin-bottom: 0;
}

.msf-check-wrap label a {
    color: rgba(5, 33, 133, 1);
    text-decoration: underline;
}

.msf-input-field input::placeholder {
    font-size: 16px;
    font-weight: 400;
    color: rgba(140, 140, 149, 1);
}

.msf-input-field .msf-step-inner-title {
    font-size: 24px;
    font-weight: 500;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(229, 229, 234, 1);
    margin-bottom: 40px;
}

.msf-prev-step-btn {
    border: 1px solid #ddd;
    padding: 16px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    color: rgba(84, 84, 89, 1);
}

.msf-bottom-buttton {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.msf-next-step-btn {
    border: 1px solid #ddd;
    padding: 16px 24px;
    border-radius: 100px;
    background: rgba(117, 6, 49, 1);
    color: #fff;
    border: 1px solid rgba(117, 6, 49, 1);
    transition: all 0.3s ease;
}

.msf-next-step-btn:hover {
    background: rgba(255, 255, 255, 0);
    color: rgba(117, 6, 49, 1);
}

.msf-next-step-btn svg path {
    stroke: rgb(255, 255, 255);
}

.msf-next-step-btn:hover svg path {
    stroke: rgba(117, 6, 49, 1);
}


.homiberia-booking-form-wrapper .homiberia-step {
    display: none;
}

.homiberia-booking-form-wrapper .homiberia-step.active {
    display: block;
}


.homiberia-next {
    outline: none;
    border: none;
    background: none;
}

.homiberia-prev {
    border: 1px solid #ddd;
    padding: 16px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    color: rgba(84, 84, 89, 1);
}

/* multi form image upload */
.upload-container {
    background: white;
    border-radius: 8px;
    padding: 28px;
    border: 1px solid rgba(230, 230, 230, 1);
    width: 100%;
    margin: 0 auto;
}

.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #6b7280;
    background-color: #f9fafb;
}

.upload-area.dragover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.placeholder-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-icon::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.placeholder-icon::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    top: 20px;
    right: 20px;
}

.upload-text {
    font-size: 16px;
    color: #374151;
    margin-bottom: 8px;
}

.upload-text .browse {
    color: #3b82f6;
    font-weight: 600;
    cursor: pointer;
}

.upload-text .browse:hover {
    text-decoration: underline;
}

.supported-formats {
    font-size: 14px;
    color: #9ca3af;
}

#fileInput {
    display: none;
}

.preview-image {
    display: none;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
}

.upload-area.has-image .placeholder-icon {
    display: none;
}

.upload-area.has-image .preview-image {
    display: block;
    margin-bottom: 20px;
}

.msf-step-top-content h4 {
    font-size: 24px;
    font-weight: 500;
}

.msf-step-top-content h2 {
    font-size: 48px;
    font-weight: 500;
    margin: 30px 20px 24px 0;
}

.msf-unique-code-wrap {
    margin-top: 60px;
    font-size: 16px;
    font-weight: 500;
}

.msf-unique-code-wrap span {
    font-size: 30px;
    display: block;
    margin: 20px 0;
    font-weight: 700;
}

.msf-step-top-content.last-step-content {
    max-width: 590px;
}
