/* ===== Rental Detail ===== */
.rental-detail-container {
    /* padding-top: 12px; */
}

.rental-detail-container .rental-swiper {
    margin-top: 0;
}

.rental-detail-container .swiper-slide {
    height: 240px;
}

.rental-detail-container .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--wuye-radius-sm);
}

.rental-detail-container .swiper-slide {
    cursor: pointer;
}

.rental-info-card,
.rental-message-card {
    background: #fff;
    border-radius: var(--wuye-radius-sm);
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px var(--wuye-shadow);
}

.rental-info-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--wuye-text);
    margin-bottom: 12px;
}

.rental-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.rental-info-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rental-info-meta .meta-item {
    display: flex;
    align-items: baseline;
    font-size: 1.0625rem;
}

.rental-info-meta .meta-label {
    color: var(--wuye-text-light);
    flex-shrink: 0;
    min-width: 70px;
}

.rental-info-meta .meta-value {
    color: var(--wuye-text);
    font-weight: 700;
}

.rental-card-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--wuye-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rental-card-title::before {
    content: "";
    width: 5px;
    height: 22px;
    background: var(--wuye-primary);
    border-radius: 3px;
}

.rental-message-text {
    font-size: 1.0625rem;
    color: var(--wuye-text);
    line-height: 1.7;
}

.rental-contact-bar {
    position: fixed;
    bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: calc(var(--container-max) - 32px);
    z-index: 100;
}

.rental-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    background: var(--wuye-primary);
    color: #fff;
    border-radius: 28px;
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(232, 106, 51, 0.28);
    text-decoration: none;
}

.rental-phone-btn:active {
    transform: scale(0.98);
}

.rental-phone-btn .glyphicon {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    .rental-contact-bar {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ===== Rental List ===== */
.rental-list {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rental-publish-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    background: linear-gradient(135deg, var(--wuye-primary) 0%, var(--wuye-primary-light) 100%);
    color: #fff;
    border-radius: var(--wuye-radius-sm);
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: 0 4px 12px var(--wuye-shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}

.rental-publish-btn:active {
    transform: scale(0.98);
    box-shadow: 0 6px 16px var(--wuye-shadow-hover);
}

/* ===== Mine Rental Page ===== */
.rental-list-header {
    padding: 15px 15px 0;
}

.rental-list-header .publish-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    background: linear-gradient(135deg, var(--wuye-primary) 0%, var(--wuye-primary-light) 100%);
    color: #fff;
    border-radius: var(--wuye-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px var(--wuye-shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}

.rental-list-header .publish-btn:active {
    transform: scale(0.98);
    box-shadow: 0 6px 16px var(--wuye-shadow-hover);
}

.mine-rental-list {
    padding: 15px;
}

.mine-rental-item {
    position: relative;
    padding: 14px;
}

.mine-rental-item .rental-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 10px;
    justify-content: center;
}

.mine-rental-item .rental-actions .btn-sm {
    min-width: 56px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s;
}

.mine-rental-item .rental-actions .btn-sm:active {
    transform: scale(0.95);
}

.mine-rental-item .rental-actions .btn-outline {
    background: #fff;
    border: 1px solid var(--wuye-primary);
    color: var(--wuye-primary);
}

.mine-rental-item .rental-actions .btn-danger {
    background: var(--wuye-danger);
    color: #fff;
}

.mine-rental-list .empty-state .empty-sub {
    font-size: 0.875rem;
    color: var(--wuye-text-light);
    margin-top: 6px;
}

/* ===== Rental Publish Form ===== */
.rental-form .multi-text-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.rental-form .multi-text-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rental-form .multi-text-item .form-input {
    flex: 1;
}

.rental-form .btn-remove-facility {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--wuye-danger);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.rental-form .btn-remove-facility:active {
    transform: scale(0.95);
}

.rental-form .btn-add-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    background: #fff;
    border: 1px dashed var(--wuye-primary);
    border-radius: 24px;
    font-size: 1rem;
    color: var(--wuye-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.rental-form .btn-add-more:active {
    background: #FFF4E8;
    transform: scale(0.98);
}

.rental-upload {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.rental-upload .upload-btn {
    width: 80px;
    height: 80px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background-color: #fafafa;
    color: var(--wuye-text-light);
    font-size: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
}

.rental-upload .upload-btn .glyphicon {
    font-size: 1.5rem;
}

.rental-upload .upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rental-upload .preview-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.rental-upload .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rental-upload .preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.rental-form .upload-tip {
    font-size: 0.75rem;
    color: var(--wuye-text-light);
    margin-top: 8px;
}

.rental-item {
    display: flex;
    align-items: stretch;
    background-color: var(--wuye-white);
    border-radius: var(--wuye-radius-sm);
    padding: 14px;
    box-shadow: 0 2px 10px var(--wuye-shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}

.rental-item:active {
    transform: scale(0.98);
    box-shadow: 0 4px 14px var(--wuye-shadow-hover);
}

.rental-thumb {
    width: 110px;
    height: 88px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 14px;
    background: var(--wuye-gray);
}

.rental-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rental-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rental-title-row {
    display: flex;
    align-items: baseline;
    min-width: 0;
    margin-bottom: 6px;
    line-height: 1.35;
}

.rental-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--wuye-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
}

.rental-title-tag {
    font-size: 1rem;
    font-weight: 700;
    color: var(--wuye-text);
    white-space: nowrap;
    flex-shrink: 0;
}

.rental-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.rental-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    color: var(--wuye-primary);
    background: #FFF4E8;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.rental-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.rental-price {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--wuye-danger);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rental-area {
    font-size: 0.875rem;
    color: var(--wuye-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
