/* MyRentalMarketplace Properties Add-on consolidated styles */
.mrp-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.mrp-property-card,
.mrp-property-details-card,
.mrp-property-facts-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .07);
}

.mrp-property-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.mrp-property-single-main,
.mrp-property-single-sidebar {
    min-width: 0;
}

.mrp-property-gallery {
    display: block;
    margin: 0 0 24px;
}

.mrp-property-gallery-featured {
    overflow: hidden;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 42px rgba(15, 23, 42, .10);
}

.mrp-property-main-image {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    line-height: 0;
}

.mrp-property-main-img,
.mrp-property-main-image img {
    display: block;
    width: 100%;
    height: clamp(360px, 52vw, 640px);
    object-fit: cover;
    border-radius: 20px;
    transition: opacity .16s ease, transform .18s ease;
}

.mrp-property-main-image.is-swapping img {
    opacity: .55;
    transform: scale(1.01);
}

.mrp-property-gallery-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.mrp-property-gallery-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .08);
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.mrp-property-gallery-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

.mrp-property-gallery-thumb:hover,
.mrp-property-gallery-thumb:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .14);
    outline: none;
}

.mrp-property-gallery-thumb.is-active {
    border-color: #2563eb;
}

.mrp-property-single-content {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
}

.mrp-property-single-content h1 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.2;
    font-weight: 800;
}

.mrp-property-single-price {
    display: inline-flex;
    align-items: center;
    margin: 6px 0 22px;
    padding: 12px 20px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #065f46;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.mrp-property-description p:last-child {
    margin-bottom: 0;
}

.mrp-property-facts-card h3 {
    margin-top: 0;
}

.mrp-property-facts-card dl {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.mrp-property-facts-card dt {
    color: #64748b;
    font-weight: 700;
}

.mrp-property-facts-card dd {
    margin: 0;
    word-break: break-word;
}


.mrp-contact-owner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 11px 16px;
    border: 0;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .16);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.mrp-contact-owner-button:hover,
.mrp-contact-owner-button:focus-visible {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .22);
    outline: none;
}

.mrp-owner-contact-panel {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #eff6ff;
}

.mrp-owner-contact-line {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 10px;
}

.mrp-owner-contact-line:last-child {
    margin-bottom: 0;
}

.mrp-owner-contact-label {
    color: #475569;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mrp-owner-contact-panel a {
    color: #0f172a;
    font-weight: 800;
    text-decoration: none;
}

.mrp-owner-contact-panel a:hover,
.mrp-owner-contact-panel a:focus {
    text-decoration: underline;
}

.mrp-property-map {
    margin-top: 18px;
}

.mrp-property-map iframe {
    width: 100%;
    min-height: 300px;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .07);
}

.mrp-form-row {
    margin-bottom: 14px;
}

.mrp-form-row label {
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.mrp-form-row input,
.mrp-form-row select,
.mrp-form-row textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
}

@media (max-width: 900px) {
    .mrp-property-single-layout {
        grid-template-columns: 1fr;
    }

    .mrp-property-main-img,
    .mrp-property-main-image img {
        height: clamp(280px, 68vw, 480px);
    }
}

@media (max-width: 560px) {
    .mrp-property-single-content,
    .mrp-property-facts-card {
        padding: 16px;
    }

    .mrp-property-gallery-strip {
        grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    }

    .mrp-property-facts-card dl {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }
}

/* Professional add/edit property form */
.mrp-property-form-pro {
    width: 100%;
    max-width: 1120px;
    margin: 24px auto;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .10);
    overflow: hidden;
}

.mrp-property-form-pro .mrp-form-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 30px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, .18), transparent 32%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 54%, #334155 100%);
    color: #fff;
}

.mrp-property-form-pro .mrp-form-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: #bfdbfe;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mrp-property-form-pro .mrp-form-header h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.035em;
}

.mrp-property-form-pro .mrp-form-header p {
    max-width: 720px;
    margin: 10px 0 0;
    color: #dbeafe;
    font-size: 1rem;
    line-height: 1.6;
}

.mrp-form-status-card {
    min-width: 180px;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 18px;
    background: rgba(255,255,255,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.mrp-form-status-card span,
.mrp-form-status-card strong {
    display: block;
}

.mrp-form-status-card span {
    color: #bfdbfe;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mrp-form-status-card strong {
    margin-top: 4px;
    color: #fff;
    font-size: 1.08rem;
}

.mrp-property-form-pro .mrp-form-section {
    margin: 22px 30px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .055);
}

.mrp-form-section-title {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.mrp-property-form-pro .mrp-form-section h4,
.mrp-form-section-title h4 {
    margin: 0;
    color: #0f172a;
    font-size: 1.18rem;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -.015em;
}

.mrp-form-section-title p {
    max-width: 520px;
    margin: 0;
    color: #64748b;
    font-size: .94rem;
    line-height: 1.55;
}

.mrp-property-form-pro label {
    display: block;
    margin: 0 0 16px;
    color: #334155;
    font-size: .9rem;
    font-weight: 850;
}

.mrp-property-form-pro input[type="text"],
.mrp-property-form-pro input[type="email"],
.mrp-property-form-pro input[type="number"],
.mrp-property-form-pro select,
.mrp-property-form-pro textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 13px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.4;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .035);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.mrp-property-form-pro textarea {
    min-height: 150px;
    resize: vertical;
}

.mrp-property-form-pro input:focus,
.mrp-property-form-pro select:focus,
.mrp-property-form-pro textarea:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12), inset 0 1px 2px rgba(15, 23, 42, .035);
    outline: none;
}

.mrp-property-row {
    display: grid;
    gap: 16px;
    align-items: start;
}

.mrp-property-row.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mrp-property-row.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mrp-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.mrp-property-form-pro .mrp-amenity-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.mrp-property-form-pro .mrp-amenity-check:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .08);
}

.mrp-property-form-pro .mrp-amenity-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #2563eb;
}

.mrp-image-upload-label {
    margin-bottom: 10px;
}

.mrp-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 24px;
    border: 2px dashed #93c5fd;
    border-radius: 18px;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
    color: #1e3a8a;
    text-align: center;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.mrp-dropzone strong {
    display: block;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 900;
}

.mrp-dropzone span,
.mrp-upload-help {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: .9rem;
    font-weight: 700;
}

.mrp-dropzone:hover,
.mrp-dropzone:focus-visible,
.mrp-dropzone.is-dragover {
    border-color: #2563eb;
    background: #dbeafe;
    transform: translateY(-1px);
    outline: none;
}

.mrp-property-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

.mrp-selected-files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.mrp-selected-file-pill {
    padding: 10px 12px;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: .85rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mrp-sortable-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.mrp-sortable-image {
    position: relative;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    cursor: grab;
}

.mrp-sortable-image:active {
    cursor: grabbing;
}

.mrp-sortable-image.is-dragging {
    opacity: .55;
}

.mrp-sortable-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

.mrp-sortable-image span {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-size: .78rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mrp-sortable-image:first-child::before {
    content: "Featured";
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
}

.mrp-form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 30px 30px;
}

.mrp-property-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 24px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(37, 99, 235, .22);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.mrp-property-button:hover,
.mrp-property-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(37, 99, 235, .28);
    filter: brightness(1.03);
    outline: none;
}

.mrp-form-save-note {
    color: #64748b;
    font-size: .92rem;
    font-weight: 700;
}

.mrp-property-notice {
    max-width: 1120px;
    margin: 18px auto;
    padding: 14px 16px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 800;
}

.mrp-property-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

@media (max-width: 760px) {
    .mrp-property-form-pro .mrp-form-header,
    .mrp-form-section-title,
    .mrp-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mrp-property-form-pro .mrp-form-header,
    .mrp-property-form-pro .mrp-form-section,
    .mrp-form-actions {
        margin-left: 16px;
        margin-right: 16px;
    }

    .mrp-property-form-pro .mrp-form-header {
        padding: 24px 20px;
    }

    .mrp-property-form-pro .mrp-form-section {
        padding: 18px;
    }

    .mrp-property-row.two,
    .mrp-property-row.three {
        grid-template-columns: 1fr;
    }
}
