@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
}

/* ── Formulário de imóveis (cadastro / edição) ─────────────────────────── */
.property-edit-page {
    max-width: 56rem;
    margin-inline: auto;
    padding-bottom: 5rem;
}

.property-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.property-form__section {
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    background: #fff;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.property-form__section--muted {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.property-form__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.property-form__section-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.property-form__section-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 9999px;
    padding: 0.2rem 0.65rem;
}

.property-form__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .property-form__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-form__grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .property-form__grid .property-form__field--full {
        grid-column: 1 / -1;
    }
}

.property-form__field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}

.property-form__control,
.property-form__section input[type='text'],
.property-form__section input[type='number'],
.property-form__section input[type='url'],
.property-form__section input[type='file'],
.property-form__section select,
.property-form__section textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.625rem;
    background: #fff;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.property-form__control:focus,
.property-form__section input:focus,
.property-form__section select:focus,
.property-form__section textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgb(5 150 105 / 0.12);
}

.property-form__control:disabled,
.property-form__section select:disabled {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

.property-form__hint {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: #64748b;
}

.property-form__error {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #dc2626;
}

/* Galeria compacta de fotos */
.property-form__photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 0.75rem;
}

.property-form__photo-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.property-form__photo-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(15 23 42 / 0.08);
}

.property-form__photo-thumb {
    position: relative;
    width: 100%;
    height: 7rem;
    overflow: hidden;
    background: #f1f5f9;
}

.property-form__photo-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 7rem;
    object-fit: cover;
}

.property-form__photo-badge {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    border-radius: 0.375rem;
    background: #059669;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
}

.property-form__photo-body {
    padding: 0.55rem 0.6rem 0.65rem;
}

.property-form__photo-name {
    margin-bottom: 0.45rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-form__photo-fields {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}

.property-form__photo-fields label {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.property-form__photo-fields input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
}

.property-form__photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    font-size: 0.6875rem;
    color: #475569;
}

.property-form__photo-actions label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.property-form__photo-actions .property-form__photo-remove {
    color: #dc2626;
}

.property-form__upload {
    border: 1.5px dashed #cbd5e1;
    border-radius: 0.75rem;
    background: #f8fafc;
    padding: 1rem;
}

.property-form__upload input[type='file'] {
    border: none;
    background: transparent;
    padding: 0;
}

.property-form__actions {
    position: sticky;
    bottom: 0.75rem;
    z-index: 20;
    margin-top: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    background: rgb(255 255 255 / 0.94);
    backdrop-filter: blur(8px);
    padding: 0.875rem 1rem;
    box-shadow: 0 8px 24px rgb(15 23 42 / 0.1);
}

.property-form__actions-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.property-form__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.property-form__btn--primary {
    border: none;
    background: #059669;
    color: #fff;
}

.property-form__btn--primary:hover {
    background: #047857;
}

.property-form__btn--ghost {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.property-form__btn--ghost:hover {
    background: #f8fafc;
}

.property-form__btn--danger {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.property-form__btn--danger:hover {
    background: #fee2e2;
}

.property-form__btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
