/* ════════════════════════════════════════════════════════
   pontosturisticos.css
   Listagem, edição e exclusão de Pontos Turísticos.
   Depende de template.css, listagem-gestores.css,
   editar-gestor.css e cadastrar-gestores.css (globais).
════════════════════════════════════════════════════════ */

/* ── BUSCA ────────────────────────────────────────────── */
.pto-search-bar {
	margin-bottom: 16px;
}

.pto-search-input {
	background: var(--card);
	border: 1.5px solid var(--border);
	border-radius: 10px;
	color: var(--white-color);
	font-family: inherit;
	font-size: 0.875rem;
	padding: 9px 14px;
	outline: none;
	width: 100%;
	max-width: 320px;
	transition: border-color 0.18s, box-shadow 0.18s;
}

.pto-search-input::placeholder {
	color: var(--muted-foreground);
	opacity: 0.7;
}

.pto-search-input:focus {
	border-color: var(--custom-btn-bg-color);
	box-shadow: 0 0 0 3px rgba(255, 0, 77, 0.12);
}

/* ── EXPAND PANEL (mais alto para texto descritivo) ────── */
#ptoList .eq-expand-panel.open {
	max-height: 700px;
}

/* Texto descritivo no painel expandido */
.pto-expand-text {
	font-size: 0.85rem;
	color: var(--white-color);
	line-height: 1.6;
	white-space: pre-line;
	opacity: 0.9;
	margin-bottom: 16px;
}

/* ── LINKS ESTILIZADOS COMO BOTÃO ─────────────────────── */
a.eq-action-btn,
a.eq-btn-sm {
	text-decoration: none;
}

/* ── BOTÃO EXCLUIR ────────────────────────────────────── */
.eq-action-btn.excluir:hover {
	background: rgba(239, 68, 68, 0.12);
	border-color: #ef4444;
}

.eq-btn-sm.excluir {
	background: rgba(239, 68, 68, 0.12);
	color: #ef4444;
	border: 1px solid rgba(239, 68, 68, 0.3);
}

.eq-btn-sm.excluir:hover {
	background: rgba(239, 68, 68, 0.22);
}

/* ── UTILITÁRIOS DE GRID ─────────────────────────────── */
.modal-row-3 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 14px;
}

textarea.modal-input {
	resize: vertical;
	min-height: 80px;
	padding-top: 10px;
	line-height: 1.5;
}

/* ── SECTION TITLE DENTRO DE FORMULÁRIO ────────────────── */
.pto-section-title {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted-foreground);
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border);
	margin: 4px 0 4px;
}

/* ── MODAL CADASTRAR PONTO (largo + rolável) ──────────── */
#cadastrarPontoModalOverlay .modal-box {
	max-width: 780px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
}

.pto-modal-scroll {
	overflow-y: auto;
	flex: 1;
}

.pto-modal-scroll .modal-form {
	padding: 24px;
}

.pto-modal-scroll::-webkit-scrollbar {
	width: 6px;
}

.pto-modal-scroll::-webkit-scrollbar-track {
	background: var(--background);
}

.pto-modal-scroll::-webkit-scrollbar-thumb {
	background: var(--border);
	border-radius: 3px;
}

.pto-modal-footer {
	flex-shrink: 0;
	border-top: 1px solid var(--border);
	padding: 16px 24px 24px;
}

/* ── BOTÃO DANGER (global) ───────────────────────────── */
.modal-btn.danger {
	background: linear-gradient(135deg, #ef4444, #dc2626);
	color: #fff;
	box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
	text-decoration: none;
}

.modal-btn.danger:hover {
	box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45);
	opacity: 1;
}

/* ── PÁGINA EXCLUIR ────────────────────────────────────── */
.pto-confirm-danger {
	background: var(--card);
	border: 1px solid rgba(239, 68, 68, 0.35);
	border-radius: 16px;
	max-width: 540px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(239, 68, 68, 0.1);
}

.pto-confirm-danger-header {
	background: rgba(239, 68, 68, 0.1);
	border-bottom: 1px solid rgba(239, 68, 68, 0.2);
	padding: 16px 24px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #ef4444;
	font-size: 0.875rem;
	font-weight: 700;
}

.pto-confirm-danger-body {
	padding: 24px;
}

.pto-confirm-nome {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--white-color);
	margin: 8px 0 4px;
}

.pto-confirm-id {
	font-size: 0.78rem;
	color: var(--muted-foreground);
	margin-bottom: 20px;
}

.pto-confirm-warn {
	background: rgba(234, 179, 8, 0.1);
	border: 1px solid rgba(234, 179, 8, 0.3);
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 0.85rem;
	color: #eab308;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ── ALERTA DE NÃO ENCONTRADO ────────────────────────── */
.pto-alert-danger {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.3);
	border-radius: 12px;
	padding: 16px 20px;
	color: #ef4444;
	font-size: 0.9rem;
	font-weight: 500;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* ── RESPONSIVO ──────────────────────────────────────── */
@media (max-width: 640px) {
	.modal-row-3 {
		grid-template-columns: 1fr 1fr;
	}
	#cadastrarPontoModalOverlay .modal-box {
		max-height: 95vh;
	}
}

@media (max-width: 400px) {
	.modal-row-3 {
		grid-template-columns: 1fr;
	}
}

/* ── DARK MODE ───────────────────────────────────────── */
body.dark-mode .pto-confirm-danger {
	box-shadow: 0 8px 32px rgba(239, 68, 68, 0.2);
}

/* ── TOAST EXCLUIR PONTO ────────────────────────────── */
#excluirPontoToast {
	position: fixed;
	bottom: 28px;
	right: 28px;
	z-index: 2000;
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--card);
	border: 1px solid var(--border);
	border-left: 4px solid #ef4444;
	border-radius: 12px;
	padding: 14px 20px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	min-width: 280px;
	max-width: 360px;
	opacity: 0;
	transform: translateY(16px);
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

#excluirPontoToast.show {
	opacity: 1;
	transform: translateY(0);
	pointer-events: all;
}

#excluirPontoToast .toast-icon.warn {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(239, 68, 68, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ef4444;
}

#excluirPontoToast .toast-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

#excluirPontoToast .toast-title {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--white-color);
	display: block;
}

#excluirPontoToast .toast-msg {
	font-size: 0.78rem;
	color: var(--muted-foreground);
	display: block;
}

@media (max-width: 480px) {
	#excluirPontoToast {
		bottom: 16px;
		right: 16px;
		left: 16px;
		max-width: unset;
	}
}
