/* بطاقة تسعير الكراء اليومي — أسلوب Airbnb */
.pdq-card {
    direction: rtl;
    background: #fff;
    border: 1px solid #dddddd;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    padding: 20px;
    margin: 0 auto;
    max-width: 100%;
}

.pdq-price-line {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.pdq-price-value {
    font-size: 2.6rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    text-align: center;
}

.pdq-unit {
    font-weight: 600;
    font-size: 1.8rem;
    color: #222;
}

.pdq-price-hint {
    font-size: 1.6rem;
    color: #555;
    line-height: 1.5;
}

.pdq-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #b0b0b0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}

.pdq-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    background: #fff;
    text-align: right;
    cursor: pointer;
    transition: background 0.15s ease;
}

.pdq-field:hover,
.pdq-field.is-active {
    background: #f7f7f7;
}

.pdq-field-checkin {
    border-left: 1px solid #b0b0b0;
}

.pdq-field-label {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #222;
}

.pdq-field-value {
    font-size: 1.6rem;
    color: #717171;
    font-weight: 500;
}

.pdq-field.has-value .pdq-field-value {
    color: #222;
    font-weight: 600;
}

.pdq-calendar-wrap {
    margin: 0 0 14px;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 8px;
    background: #fff;
}

.pdq-calendar-wrap[hidden] {
    display: none !important;
}

.pdq-calendar .vanilla-calendar {
    width: 100%;
    max-width: 100%;
}

.pdq-submit {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 14px 18px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff7800 0%, #ff9a40 100%);
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.pdq-submit:hover:not(:disabled) {
    opacity: 0.95;
}

.pdq-submit:active:not(:disabled) {
    transform: scale(0.99);
}

.pdq-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pdq-result {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #ebebeb;
}

.pdq-result[hidden],
.pdq-error[hidden] {
    display: none !important;
}

.pdq-result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 1.7rem;
    color: #222;
    margin-bottom: 8px;
}

.pdq-result-row strong {
    font-size: 2.1rem;
    font-weight: 700;
}

.pdq-result-avg {
    color: #717171;
    font-size: 1.6rem;
}

.pdq-result-avg strong {
    font-size: 1.8rem;
    font-weight: 600;
    color: #222;
}

.pdq-error {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 1.6rem;
    line-height: 1.5;
}

.pdq-mobile-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: right;
    direction: rtl;
    color: #222;
    margin: 18px 0 10px;
}

@media (max-width: 480px) {
    .pdq-card {
        padding: 16px;
    }

    .pdq-fields {
        grid-template-columns: 1fr;
    }

    .pdq-field-checkin {
        border-left: 0;
        border-bottom: 1px solid #b0b0b0;
    }
}

/* موبايل: بطاقة السعر/الاتصال المنقولة أسفل الوصف — جدول خفيف الحواف */
@media (max-width: 767.98px) {
    .product-page-meta.product-page-meta--table {
        display: block;
        margin: 14px 0 18px;
        padding: 0;
        border: 1px solid #ececec;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        overflow: hidden;
    }

    .product-page-meta--table .product-page-meta__actions {
        margin: 0;
        width: 100%;
        padding: 14px;
        border-bottom: 1px solid #f1f1f1;
        text-align: center;
    }

    .product-page-meta--table .product-page-meta__price,
    .product-page-meta--table .product-page-meta__price.price {
        margin: 0 !important;
        width: 100%;
        padding: 6px 14px 12px;
    }

    .product-page-meta--table .product-page-meta__price > div {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid #f4f4f4;
    }

    .product-page-meta--table .product-page-meta__price > div:last-child {
        border-bottom: 0;
    }

    .product-page-meta--table .product-sale-price-block {
        margin: 0;
        box-shadow: none;
        border: 0;
        padding: 0;
    }

    .product-page-meta--table .product-page-code {
        margin-left: auto;
        margin-right: auto;
    }
}
