/* Add New Buy Property & Edit My Buy Property – shared form layout (both get .buy-property-form-view when rendered) */
.buy-property-form-view .auction-wizard-content-wrapper {
    padding: 0 1rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.buy-property-form-view .wizard-step {
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.buy-property-form-view .step-title {
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.buy-property-form-view .step-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
}

.buy-property-form-view .wizard-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.buy-property-form-view .start-new-auction-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.buy-property-form-view .add-new-auction-form-label {
    font-size: var(--font-size-base);
    color: var(--text-primary);
}

.buy-property-form-view .add-new-auction-form-input {
    width: 100%;
    padding: 0 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    background: var(--bg-white);
    transition: all var(--transition-base);
    font-family: inherit;
    text-align: right;
}

.buy-property-form-view .add-new-auction-form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.buy-property-form-view .add-new-auction-form-input::placeholder {
    color: var(--text-light);
}

.buy-property-form-view .form-textarea {
    width: 100%;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.buy-property-form-view .start-new-auction-form-row-two-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.buy-property-form-view .start-new-auction-form-row-four-inputs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.buy-property-form-view .start-new-auction-form-row-four-inputs .add-new-auction-form-input {
    width: 100%;
    min-width: 0;
}

.buy-property-form-view .input-with-currency {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.buy-property-form-view .input-with-currency .add-new-auction-form-input {
    flex: 1;
}

.buy-property-form-view .input-currency {
    flex-shrink: 0;
}

.buy-property-form-view .property-type-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.buy-property-form-view .property-type-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

.buy-property-form-view .file-upload-area .file-upload-placeholder {
    min-height: 100px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.buy-property-form-view .file-upload-placeholder.has-file {
    border-style: solid;
    border-color: var(--primary-color);
}

.buy-property-form-view .view-pdf-link {
    margin-bottom: 0;
}

.buy-property-form-view .image-upload-area .upload-placeholder {
    min-height: 120px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    cursor: pointer;
}

.buy-property-form-view .image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.buy-property-form-view .image-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.buy-property-form-view .image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.buy-property-form-view .remove-image-btn {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.buy-property-form-view .wizard-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    border: none;
}

.buy-property-form-view .wizard-btn {
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
}

.buy-property-form-view .wizard-btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
}

.buy-property-form-view .wizard-btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.buy-property-form-view .required-indicator {
    color: #e74c3c;
}

.buy-property-form-view .view-pdf-link {
    display: inline-block;
    font-size: var(--font-size-sm);
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}

.buy-property-form-view .view-pdf-link:hover {
    color: var(--primary-color);
    text-decoration-thickness: 2px;
}

@media (max-width: 640px) {
    .buy-property-form-view .start-new-auction-form-row-four-inputs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .buy-property-form-view .start-new-auction-form-row-two-inputs {
        grid-template-columns: 1fr;
    }

    .buy-property-form-view .start-new-auction-form-row-four-inputs {
        grid-template-columns: 1fr;
    }
}

/* Buy property thumbnail: row layout (upload zone + preview zone) – unique class names */
.buy-property-form-view .buy-property-thumbnail-split {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    text-align: center;
    cursor: default;
}

[dir="ltr"] .buy-property-form-view .buy-property-thumbnail-split,
.buy-property-form-view .buy-property-thumbnail-split:not([dir]) {
    flex-direction: row-reverse;
}

[dir="rtl"] .buy-property-form-view .buy-property-thumbnail-split {
    flex-direction: row;
}

.buy-property-form-view .buy-property-thumbnail-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem;
    cursor: pointer;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-base), background var(--transition-base);
}

.buy-property-form-view .buy-property-thumbnail-upload-zone .upload-icon {
    margin-bottom: 0.5rem;
}

.buy-property-form-view .buy-property-thumbnail-zone-text {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

.buy-property-form-view .buy-property-thumbnail-preview-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    cursor: default;
    position: relative;
}

.buy-property-form-view .buy-property-thumbnail-preview-zone .buy-property-thumbnail-preview-item {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.buy-property-form-view .buy-property-thumbnail-preview-zone .buy-property-thumbnail-preview-item .remove-image-btn {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    z-index: 2;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease;
}

.buy-property-form-view .buy-property-thumbnail-preview-zone .buy-property-thumbnail-preview-item .remove-image-btn:hover {
    background: rgba(220, 38, 38, 0.9);
}

.buy-property-form-view .buy-property-thumbnail-preview-zone .buy-property-thumbnail-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.buy-property-form-view .buy-property-thumbnail-preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    background: var(--bg-light, #f5f5f5);
    border: 2px dashed var(--border-color);
    cursor: default;
    width: 100%;
}

.buy-property-form-view .buy-property-thumbnail-preview-empty .buy-property-thumbnail-preview-empty-text {
    font-size: var(--font-size-sm);
    color: var(--text-light, #999);
}