.admin-container{max-width:1400px;margin:0 auto;padding:2rem;min-height:calc(100vh - 200px)}.admin-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2.5rem}.admin-header h1{margin:0;font-size:2rem;font-weight:600;color:#1a1a1a;letter-spacing:-.02em}.btn-add{display:flex;align-items:center;gap:.625rem;padding:.875rem 1.75rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:12px;font-size:1rem;font-weight:500;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 14px #667eea40}.btn-add:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea59}.btn-add:active{transform:translateY(0)}.btn-add svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor}.apartments-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:2rem}.empty-state{grid-column:1/-1;text-align:center;padding:5rem 2rem;color:#666}.empty-state svg{width:80px;height:80px;margin:0 auto 1.5rem;stroke:#d1d5db;fill:none;opacity:.6;display:block}.empty-state h3{margin:0 0 .75rem;font-size:1.5rem;color:#374151;font-weight:500}.empty-state p{margin:0;font-size:1rem;color:#6b7280}@media(max-width:768px){.admin-container{padding:1.25rem}.admin-header{flex-direction:column;align-items:flex-start;gap:1.25rem}.admin-header h1{font-size:1.75rem}.btn-add{width:100%;justify-content:center}.apartments-grid{grid-template-columns:1fr;gap:1.5rem}}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s;padding:1rem;overflow-x:hidden}.modal-overlay.open{opacity:1;visibility:visible}.modal-content{background:#fff;border-radius:24px;width:100%;max-width:800px;max-height:90vh;overflow:hidden;display:flex;flex-direction:column;min-width:0;box-shadow:0 25px 70px #0003;transform:scale(.95) translateY(20px);transition:all .3s cubic-bezier(.4,0,.2,1);border:1px solid rgba(255,255,255,.2)}.modal-body{overflow-x:hidden;overflow-y:auto;min-height:0;flex:1}.modal-overlay.open .modal-content{transform:scale(1) translateY(0)}.modal-header{flex-shrink:0;display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #eee}.modal-header h2{margin:0;font-size:1.5rem;font-weight:600;color:#1a1a1a}.close-btn{background:#f9fafb;border:none;cursor:pointer;padding:.625rem;display:flex;align-items:center;justify-content:center;color:#6b7280;transition:all .2s ease;border-radius:10px;width:40px;height:40px}.close-btn:hover{color:#1f2937;background:#f3f4f6;transform:rotate(90deg)}.close-btn svg{width:24px;height:24px}.apartment-form{padding:1.5rem;min-width:0;overflow-x:hidden}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;font-weight:500;color:#333;font-size:.875rem}.required-mark{color:#dc2626}.label-with-icon{display:inline-flex;align-items:center;gap:.35rem}.capacity-icon{width:1.125rem;height:1.125rem;vertical-align:middle;color:#6b7280}.form-group input[type=text],.form-group input[type=number],.form-group textarea{width:100%;padding:.875rem 1rem;border:2px solid #e5e7eb;border-radius:12px;font-size:1rem;font-family:inherit;transition:all .2s ease;box-sizing:border-box;background:#fafafa}.form-group input:focus,.form-group textarea:focus{outline:none;border-color:#667eea;background:#fff;box-shadow:0 0 0 4px #667eea1a}.form-group input:hover,.form-group textarea:hover{border-color:#d1d5db;background:#fff}.form-hint{margin:0 0 .5rem;font-size:.8125rem;color:#6b7280}.file-input{width:100%;padding:.75rem;border:2px dashed #e5e7eb;border-radius:12px;background:#fafafa;font-size:.875rem;cursor:pointer}.file-input:hover{border-color:#667eea;background:#f5f3ff}.images-preview{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1rem;min-height:0;min-width:0;max-height:200px;overflow-y:auto;overflow-x:hidden;padding:4px 0}.images-preview .preview-item{position:relative;width:88px;height:88px;min-width:88px;min-height:88px;max-width:88px;max-height:88px;border-radius:12px;overflow:hidden;border:1px solid #e5e7eb;flex-shrink:0;background:#fff;box-shadow:0 2px 8px #00000014;transition:box-shadow .2s ease,transform .2s ease}.images-preview .preview-item:hover{box-shadow:0 4px 14px #0000001f;transform:translateY(-2px)}.images-preview .preview-item img{width:100%;height:100%;object-fit:cover;display:block;vertical-align:middle}.images-preview .preview-item .preview-remove{position:absolute;top:4px;right:4px;width:22px;height:22px;border:none;border-radius:6px;background:#ef4444f2;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;font-size:.875rem;font-weight:700;line-height:1;transition:transform .2s,background .2s;box-shadow:0 1px 4px #0003}.images-preview .preview-item .preview-remove:hover{transform:scale(1.1);background:#ef4444}.images-preview .preview-item.dragging{opacity:.5;cursor:grabbing}.images-preview .preview-item[draggable=true]{cursor:grab}.images-preview .preview-item.drag-over{outline:2px solid #667eea;outline-offset:2px;box-shadow:0 0 0 4px #667eea33}.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:1rem;min-width:0}.amenities-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem}@media(max-width:640px){.amenities-grid{grid-template-columns:repeat(2,1fr)}}.amenity-checkbox{display:flex;align-items:center;min-height:56px;padding:.75rem 1rem;border:2px solid #e5e7eb;border-radius:12px;cursor:pointer;transition:all .25s ease;background:#fff;position:relative;overflow:hidden}.amenity-checkbox:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(135deg,#667eea,#764ba2);opacity:0;transition:left .25s ease}.amenity-checkbox:hover{border-color:#667eea;background:#f9fafb;transform:translateY(-1px);box-shadow:0 4px 12px #667eea1f}.amenity-checkbox.checked{border-color:#667eea;background:linear-gradient(135deg,#f0f9ff,#e0f2fe);box-shadow:0 4px 12px #667eea2e}.amenity-checkbox.checked:before{left:0;opacity:.08}.amenity-checkbox input[type=checkbox]{display:none}.amenity-label{display:flex;align-items:center;gap:.625rem;width:100%;min-width:0;font-size:.8125rem;color:#374151;font-weight:500;position:relative;z-index:1}.amenity-label span{min-width:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.35;word-break:break-word}.amenity-checkbox.checked .amenity-label{color:#5a67d8;font-weight:600}.amenity-icon{width:20px;height:20px;stroke:currentColor;flex-shrink:0;position:relative;z-index:1}.amenity-checkbox.checked .amenity-icon{stroke:#5a67d8}.form-group-amenities .form-hint{margin-bottom:.75rem}.amenities-list{display:flex;flex-direction:column;gap:.875rem;margin-bottom:.875rem}.amenity-row{display:grid;grid-template-columns:auto 1fr auto;gap:1rem;align-items:start;padding:1rem;background:#fafbfc;border-radius:14px;border:1px solid #e5e7eb;transition:border-color .2s,box-shadow .2s}@media(max-width:640px){.amenity-row{grid-template-columns:1fr auto;grid-template-areas:"icon-cell remove" "fields fields";gap:.75rem}}.amenity-row:hover{border-color:#d1d5db}.amenity-row-icon-cell{display:flex;flex-direction:column;align-items:center;gap:.5rem;min-width:100px}@media(max-width:640px){.amenity-row-icon-cell{grid-area:icon-cell;flex-direction:row;min-width:0}}.amenity-icon-preview{width:44px;height:44px;border-radius:12px;background:#fff;border:2px solid #e5e7eb;display:flex;align-items:center;justify-content:center;color:#6b7280;flex-shrink:0}.amenity-icon-preview .preview-svg{width:24px;height:24px;stroke:currentColor}.amenity-pick-icon-btn{display:inline-flex;align-items:center;gap:.375rem;padding:.5rem .75rem;font-size:.8125rem;font-weight:500;color:#667eea;background:#fff;border:2px solid #c7d2fe;border-radius:10px;cursor:pointer;transition:all .2s ease;white-space:nowrap}.amenity-pick-icon-btn:hover{background:#eef2ff;border-color:#667eea;color:#5a67d8;box-shadow:0 2px 8px #667eea33}.amenity-pick-icon-btn .btn-icon-placeholder{font-size:.875rem;opacity:.8}.amenity-row-fields{display:grid;grid-template-columns:1fr 1fr minmax(7rem,auto);gap:.75rem;align-items:end;min-width:0}@media(max-width:640px){.amenity-row-fields{grid-area:fields;grid-template-columns:1fr;grid-template-areas:"label" "desc" "special"}.amenity-row-fields .amenity-field:nth-of-type(1){grid-area:label}.amenity-row-fields .amenity-field:nth-of-type(2){grid-area:desc}.amenity-row-fields .amenity-is-special-switch{grid-area:special}}.amenity-field{display:flex;flex-direction:column;gap:.25rem;min-width:0}.amenity-field-label{font-size:.75rem;font-weight:500;color:#6b7280;margin:0}.amenity-label-input,.amenity-description-input{padding:.5rem .75rem;border:2px solid #e5e7eb;border-radius:10px;font-size:.875rem;background:#fff;transition:border-color .2s,box-shadow .2s}.amenity-label-input:focus,.amenity-description-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1f}.amenity-is-special-switch{display:inline-flex;align-items:center;gap:.75rem;cursor:pointer;font-size:.8125rem;color:#4b5563;white-space:nowrap;padding:.35rem 0;min-width:0}.amenity-is-special{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.amenity-is-special-switch .switch-label{flex-shrink:0;order:1}.amenity-is-special-switch .switch-slider{position:relative;flex-shrink:0;order:2;width:40px;height:22px;background:#d1d5db;border-radius:11px;transition:background .2s,box-shadow .2s;overflow:hidden;border:1px solid #e5e7eb}.amenity-is-special-switch .switch-slider:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #00000040;transition:transform .2s ease}.amenity-is-special:checked+.switch-slider{background:#667eea;border-color:#5a67d8;box-shadow:inset 0 0 0 1px #fff3}.amenity-is-special:checked+.switch-slider:after{transform:translate(18px)}.amenity-is-special-switch:has(.amenity-is-special:checked) .switch-label{color:#5a67d8;font-weight:600}.amenity-remove-btn{width:36px;height:36px;padding:0;border:none;border-radius:10px;background:#fee2e2;color:#dc2626;font-size:1.25rem;line-height:1;cursor:pointer;transition:background .2s,color .2s,transform .15s;flex-shrink:0}.amenity-remove-btn:hover{background:#fecaca;color:#b91c1c;transform:scale(1.05)}.btn-add-amenity{padding:.5rem 1rem;font-size:.875rem;border:2px solid #667eea;color:#667eea;background:transparent;border-radius:10px;cursor:pointer;transition:background .2s,color .2s}.btn-add-amenity:hover{background:#667eea;color:#fff}.amenity-icon-popover-overlay{position:fixed;inset:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1100;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s;padding:1rem}.amenity-icon-popover-overlay.open{opacity:1;visibility:visible}.amenity-icon-popover{background:#fff;border-radius:16px;width:100%;max-width:440px;box-shadow:0 20px 50px #0003;border:1px solid #e5e7eb;overflow:hidden;transform:scale(.95);transition:transform .2s ease}.amenity-icon-popover-overlay.open .amenity-icon-popover{transform:scale(1)}.amenity-icon-popover-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid #eee;background:#fafbfc;border-radius:16px 16px 0 0}.amenity-icon-popover-header h3{margin:0;font-size:1rem;font-weight:600;color:#1a1a1a}.amenity-icon-popover-close{width:32px;height:32px;padding:0;border:none;border-radius:8px;background:transparent;color:#6b7280;font-size:1.5rem;line-height:1;cursor:pointer;transition:background .2s,color .2s}.amenity-icon-popover-close:hover{background:#f3f4f6;color:#1f2937}.amenity-icon-popover-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:.5rem;padding:1rem 1.25rem 1.5rem;max-height:320px;overflow-y:auto;min-width:0;border-radius:0 0 16px 16px}@media(max-width:460px){.amenity-icon-popover-grid{grid-template-columns:repeat(4,1fr)}}.amenity-icon-popover-option{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:.35rem;min-width:0;width:100%;padding:.6rem .4rem;border:2px solid #e5e7eb;border-radius:12px;background:#fff;color:#6b7280;cursor:pointer;transition:all .2s ease;box-sizing:border-box}.amenity-icon-popover-option:hover{border-color:#667eea;color:#667eea;background:#f5f3ff;transform:translateY(-2px);box-shadow:0 4px 12px #667eea26}.amenity-icon-popover-option:active,.amenity-icon-popover-option.amenity-icon-option-just-selected{border-color:#5a67d8;background:#eef2ff;color:#5a67d8;transform:scale(.98);box-shadow:0 2px 8px #667eea40}.amenity-icon-popover-icon-wrap{display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0}.amenity-icon-popover-option .icon-svg,.amenity-icon-popover-option svg{width:28px!important;height:28px!important;min-width:28px;min-height:28px;stroke:currentColor;flex-shrink:0}.amenity-icon-popover-name{font-size:.625rem;font-weight:500;text-align:center;line-height:1.2;color:inherit;width:100%;min-width:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word}.btn-outline{padding:.5rem 1rem;font-size:.875rem;border:2px solid #667eea;color:#667eea;background:transparent;border-radius:8px;cursor:pointer;transition:background .2s,color .2s}.btn-outline:hover{background:#667eea;color:#fff}.form-actions{display:flex;gap:1rem;justify-content:flex-end;padding-top:1rem;border-top:1px solid #eee;margin-top:1.5rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.btn{padding:.75rem 1.5rem;border:none;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:all .2s}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;box-shadow:0 4px 14px #667eea40}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea59}.btn-primary:active{transform:translateY(0)}.btn-secondary{background:#f9fafb;color:#374151;border:2px solid #e5e7eb}.btn-secondary:hover{background:#f3f4f6;border-color:#d1d5db;color:#1f2937}.apartment-card{background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 2px 12px #00000014;transition:all .3s cubic-bezier(.4,0,.2,1);cursor:pointer;border:1px solid #f3f4f6;position:relative}.apartment-card:hover{transform:translateY(-6px);box-shadow:0 12px 32px #0000001f;border-color:#e5e7eb}.apartment-image{width:100%;height:240px;overflow:hidden;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);position:relative}.apartment-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}.apartment-card:hover .apartment-image img{transform:scale(1.05)}.apartment-image.no-image{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#9ca3af;gap:.75rem}.apartment-image.no-image svg{width:64px;height:64px;opacity:.4;stroke:#9ca3af;fill:none;display:block}.apartment-image.no-image p{margin:0;font-size:.875rem;font-weight:500}.card-actions{position:absolute;top:1rem;right:1rem;display:flex;gap:.5rem;opacity:0;transition:opacity .3s ease}.apartment-card:hover .card-actions{opacity:1}.action-btn{width:40px;height:40px;border-radius:10px;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;backdrop-filter:blur(10px);box-shadow:0 2px 8px #00000026}.action-btn svg{width:18px;height:18px;display:block;fill:none}.edit-action{background:#fffffff2;color:#4a90e2}.edit-action:hover{background:#fff;transform:scale(1.1);color:#357abd}.delete-action{background:#fffffff2;color:#ef4444}.delete-action:hover{background:#fff;transform:scale(1.1);color:#dc2626}.apartment-info{padding:1.5rem}.apartment-title{margin:0 0 .5rem;font-size:1.375rem;font-weight:600;color:#1f2937;line-height:1.3}.apartment-short-description{margin:0 0 1rem;font-size:.875rem;color:#6b7280;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.apartment-features{display:flex;flex-wrap:wrap;gap:1.25rem;margin-bottom:1rem;font-size:.875rem;color:#4b5563}.feature{display:flex;align-items:center;gap:.5rem;padding:.375rem .75rem;background:#f9fafb;border-radius:8px;transition:background .2s}.feature:hover{background:#f3f4f6}.feature .icon{width:22px;height:22px;stroke:#667eea;fill:none;flex-shrink:0;display:block}.feature span{font-weight:500}.apartment-amenities{display:flex;flex-wrap:wrap;gap:.625rem;margin-bottom:1.25rem}.amenity-tag{padding:.375rem .875rem;background:linear-gradient(135deg,#f0f9ff,#e0f2fe);border-radius:12px;font-size:.75rem;color:#0369a1;font-weight:500;border:1px solid #bae6fd}.apartment-footer{padding-top:1.25rem;border-top:1px solid #f3f4f6}.price-info{display:flex;align-items:baseline;gap:.25rem;flex-wrap:wrap}.price-label{font-size:.875rem;color:#6b7280;font-weight:500}.price{font-weight:700;color:#1f2937;font-size:1.5rem;letter-spacing:-.02em;min-width:0}.price-secondary{font-size:.92em;font-weight:600;color:#6b7280}.price-range-separator{font-weight:700;color:#6b7280}.price-unit{font-size:.875rem;color:#6b7280;font-weight:500;white-space:nowrap;flex-shrink:0}@media(max-width:768px){.card-actions{opacity:1}}
