/* MODANNA tasarım iyileştirmeleri — rental
   Ürün sayfası kiralama paneli (sections/product-single.php .mrent). Template değişkenleri kullanılır. */

.mrent {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    background: var(--white);
    display: grid;
    gap: 16px;
    margin-bottom: 8px;
}
.mrent[hidden] { display: none !important; }

.mrent__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mrent__step {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--text); color: var(--white);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.mrent__title { margin: 0; font-weight: 600; font-size: 16px; line-height: 24px; color: var(--text); }

/* Süre kartları */
.mrent__tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.mrent__tier {
    display: grid; gap: 2px; text-align: left;
    padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--white);
    cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.mrent__tier:hover { border-color: var(--text); }
.mrent__tier.active { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); background: var(--bg); }
.mrent__tier-days { font-size: 13px; color: var(--text-2); }
.mrent__tier-price { font-size: 18px; font-weight: 600; color: var(--text); line-height: 1.3; }
.mrent__tier-per { font-size: 12px; color: var(--text-3); }

/* Takvim */
.mrent__cal { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.mrent__cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mrent__month { font-weight: 600; font-size: 15px; color: var(--text); }
.mrent__nav {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--white);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: border-color .2s ease;
}
.mrent__nav:hover:not(:disabled) { border-color: var(--text); }
.mrent__nav:disabled { opacity: .35; cursor: default; }
.mrent__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 0; }
.mrent__wd { text-align: center; font-size: 12px; color: var(--text-3); padding: 4px 0 6px; }
.mrent__day {
    position: relative; height: 40px; border: 0; background: transparent;
    font-size: 14px; color: var(--text); cursor: pointer; padding: 0;
    transition: background .15s ease, color .15s ease;
}
.mrent__day:hover:not(:disabled):not(.is-range) { background: var(--bg); border-radius: 8px; }
.mrent__day.is-off { color: var(--text-3); cursor: default; }
.mrent__day.is-booked { color: var(--text-3); text-decoration: line-through; cursor: not-allowed; }
.mrent__day.is-range { background: var(--bg); }
.mrent__day.is-start, .mrent__day.is-end { background: var(--text); color: var(--white); font-weight: 600; }
.mrent__day.is-start { border-radius: 8px 0 0 8px; }
.mrent__day.is-end { border-radius: 0 8px 8px 0; }
.mrent__day.is-start.is-end { border-radius: 8px; }

.mrent__legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: -6px; }
.mrent__legend span { display: inline-flex; align-items: center; gap: 6px; }
.mrent__dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.mrent__dot.is-range { background: var(--text); }
.mrent__dot.is-booked { background: var(--white); border: 1px solid var(--line); position: relative; overflow: hidden; }
.mrent__dot.is-booked::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 1px; background: var(--text-3); transform: rotate(-35deg); }

/* Özet */
.mrent__summary { background: var(--bg); border-radius: 12px; padding: 16px; display: grid; gap: 14px; }
.mrent__dates { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mrent__dates > div { display: grid; gap: 2px; }
.mrent__dates strong { font-size: 15px; color: var(--text); font-weight: 600; }
.mrent__lines { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.mrent__lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text); }
.mrent__total { padding-top: 8px; border-top: 1px solid var(--line); font-weight: 600; font-size: 16px !important; }

/* Avantajlar */
.mrent__perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mrent__perks li {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
    font-size: 12px; line-height: 16px; color: var(--text-2);
    padding: 10px 6px; border-radius: 10px; border: 1px solid var(--line);
}
.mrent__perks .icon { font-size: 20px; color: var(--text); }

.mrent .js-rent-add.is-adding { opacity: .6; pointer-events: none; }

@media (max-width: 575px) {
    .mrent { padding: 16px; border-radius: 12px; }
    .mrent__tier { padding: 10px; }
    .mrent__tier-price { font-size: 16px; }
    .mrent__day { height: 38px; font-size: 13px; }
    .mrent__perks li { font-size: 11px; }
}
.mrent__tier-days, .mrent__tier-price, .mrent__tier-per { white-space: nowrap; }
.mrent__day { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; }
