/*
Theme Name: Аренда квартир — Child
Template: astra
Version: 1.2.1
Description: Дочерняя тема Astra для сайта аренды квартир: каталог в стиле объявлений, фильтры, заявки, избранное, кабинет арендодателя.
Text Domain: arenda-child
*/

.arenda-filter{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin:24px 0;padding:16px;background:#f6f7f9;border-radius:10px}
.arenda-filter label{display:flex;flex-direction:column;gap:6px;font-size:14px}
.arenda-btn{background:#2563eb;color:#fff;padding:10px 22px;border:0;border-radius:8px;font-size:15px;cursor:pointer;text-decoration:none;display:inline-block}
.arenda-btn:hover{background:#1d4ed8;color:#fff}
.arenda-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px;margin:24px 0}
.arenda-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 10px rgba(15,23,42,.08)}
.arenda-card img,.arenda-thumb-empty{width:100%;height:200px;object-fit:cover;display:block}
.arenda-thumb-empty{background:#e2e8f0}
.arenda-card-body{padding:16px}
.arenda-price{font-weight:700;font-size:18px;color:#0f172a}
.arenda-title{font-size:16px;margin:6px 0}
.arenda-title a{text-decoration:none;color:#0f172a}
.arenda-props,.arenda-city{color:#64748b;font-size:14px}
.arenda-gallery img{width:100%;height:auto;border-radius:10px;margin-bottom:10px}
.arenda-specs{border-collapse:collapse;margin:16px 0}
.arenda-specs th,.arenda-specs td{border-bottom:1px solid #e2e8f0;padding:8px 14px 8px 0;text-align:left}
.arenda-specs th{color:#64748b;font-weight:600}
.arenda-form{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;max-width:680px;margin:16px 0}
.arenda-form label{display:flex;flex-direction:column;gap:6px;font-size:14px}
.arenda-form .full{grid-column:1 / -1}
.arenda-form input,.arenda-form select,.arenda-form textarea{padding:10px;border:1px solid #cbd5e1;border-radius:8px;font-size:15px}
.arenda-notice{padding:12px 16px;border-radius:8px;margin:16px 0}
.arenda-notice.ok{background:#dcfce7;color:#166534}
.arenda-notice.error{background:#fee2e2;color:#991b1b}
.arenda-table{border-collapse:collapse;width:100%;margin:16px 0}
.arenda-table th,.arenda-table td{border-bottom:1px solid #e2e8f0;padding:10px 12px;text-align:left}
.arenda-table th{color:#64748b}
.arenda-pagination{margin:24px 0}
.arenda-pagination .page-numbers{display:inline-block;padding:8px 14px;margin-right:6px;border:1px solid #cbd5e1;border-radius:8px;text-decoration:none}
.arenda-pagination .page-numbers.current{background:#2563eb;color:#fff;border-color:#2563eb}
@media (max-width:600px){.arenda-form{grid-template-columns:1fr}}
.arenda-catalog-bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 0}
.arenda-count{font-size:15px;color:#0f172a}
.arenda-sort label{display:flex;align-items:center;gap:8px;font-size:14px}
.arenda-sort select{padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;font-size:14px}
.arenda-listings{margin:8px 0}
.arenda-listing{display:flex;gap:20px;padding:20px 0;border-bottom:1px solid #e2e8f0}
.arenda-listing-photo{position:relative;flex:0 0 260px}
.arenda-listing-photo a{display:block}
.arenda-listing-photo img,.arenda-listing-photo .arenda-thumb-empty{width:260px;height:195px;object-fit:cover;border-radius:12px;display:block}
.arenda-photo-badge{position:absolute;top:10px;left:10px;background:rgba(15,23,42,.75);color:#fff;font-size:12px;padding:4px 8px;border-radius:6px}
.arenda-listing-main{flex:1;min-width:0}
.arenda-listing-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.arenda-listing .arenda-price{font-size:26px;font-weight:800}
.arenda-price-period{font-size:15px;font-weight:400;color:#64748b}
.arenda-discount{display:flex;align-items:center;gap:8px;font-size:14px;color:#0f172a}
.arenda-discount-badge{background:#fee2e2;color:#991b1b;border-radius:6px;padding:2px 6px;font-weight:700}
.arenda-discount-old{text-decoration:line-through;color:#64748b}
.arenda-rating{display:flex;align-items:center;gap:8px}
.arenda-rating-text{display:flex;flex-direction:column;align-items:flex-end}
.arenda-rating-label{color:#2563eb;font-weight:600;font-size:15px}
.arenda-rating-count{color:#64748b;font-size:13px}
.arenda-rating-badge{background:#2563eb;color:#fff;border-radius:8px 8px 8px 0;padding:5px 9px;font-weight:700;font-size:16px}
.arenda-fav{color:#cbd5e1;display:inline-flex;margin-left:auto}
.arenda-fav:hover{color:#ef4444}
.arenda-fav.active{color:#ef4444}
.arenda-fav.active svg{fill:currentColor}
.arenda-listing-title{font-size:17px;font-weight:600;margin:8px 0 4px}
.arenda-listing-title a{color:#0f172a;text-decoration:none}
.arenda-listing-sub,.arenda-listing-address,.arenda-listing-metro{font-size:15px;margin:2px 0;color:#0f172a}
.arenda-listing-address,.arenda-listing-metro{display:flex;align-items:center;gap:6px}
.arenda-metro-dot{width:10px;height:10px;border-radius:50%;flex:0 0 auto;display:inline-block}
.arenda-metro--red{background:#e2231a}
.arenda-metro--blue{background:#0078be}
.arenda-metro--green{background:#00a651}
.arenda-metro--orange{background:#f58220}
.arenda-metro--purple{background:#8b00aa}
.arenda-metro--yellow{background:#e0a800}
.arenda-metro--gray{background:#94a3b8}
.arenda-listing-excerpt{color:#64748b;font-size:15px;margin:8px 0 4px}
.arenda-listing-date{color:#94a3b8;font-size:13px}
.arenda-listing-side{flex:0 0 190px;font-size:15px}
.arenda-listing-author{font-weight:600;color:#0f172a}
.arenda-listing-author-meta{color:#64748b;font-size:14px}
@media (max-width:760px){.arenda-listing{flex-wrap:wrap}.arenda-listing-photo,.arenda-listing-photo img,.arenda-listing-photo .arenda-thumb-empty{width:100%}.arenda-listing-photo img,.arenda-listing-photo .arenda-thumb-empty{height:210px}.arenda-listing-main{flex:1 0 100%}.arenda-listing-side{flex:1 0 100%;display:flex;gap:14px;align-items:center}}
.arenda-lightbox{position:fixed;left:0;top:0;right:0;bottom:0;z-index:99999;display:none;background:rgba(15,23,42,.92);padding:24px}
.arenda-lightbox.open{display:flex;align-items:center;justify-content:center}
.arenda-lightbox img{max-width:100%;max-height:100%;width:auto;height:auto;border-radius:8px;box-shadow:0 10px 40px rgba(0,0,0,.5);cursor:zoom-out}
.arenda-lightbox button{position:fixed;background:rgba(255,255,255,.15);color:#fff;border:0;border-radius:50%;width:44px;height:44px;font-size:26px;line-height:1;cursor:pointer}
.arenda-lightbox button:hover{background:rgba(255,255,255,.3)}
.arenda-lightbox-close{top:16px;right:16px}
.arenda-lightbox-prev{left:16px;top:50%;transform:translateY(-50%)}
.arenda-lightbox-next{right:16px;top:50%;transform:translateY(-50%)}
@media (max-width:600px){.arenda-lightbox{padding:10px}.arenda-lightbox button{width:38px;height:38px;font-size:20px}}
