/* Golfito Rideshare Board — estilos públicos.
   Usa variables CSS para que el color de marca sea editable desde el admin. */

.gft-wrap {
	--gft-primary: #129162;
	--gft-primary-dark: #0d7a51;
	--gft-text: #333333;
	--gft-muted: #6b7280;
	--gft-border: #e5e7eb;
	--gft-bg-card: #ffffff;
	--gft-warning: #f59e0b;
	--gft-radius: 14px;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--gft-text);
	box-sizing: border-box;
}

.gft-wrap *,
.gft-wrap *::before,
.gft-wrap *::after {
	box-sizing: inherit;
}

.gft-empty {
	text-align: center;
	padding: 32px 16px;
	color: var(--gft-muted);
	font-size: 1.05em;
}

.gft-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 22px;
}

.gft-card {
	background: var(--gft-bg-card);
	border: 1px solid var(--gft-border);
	border-radius: var(--gft-radius);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gft-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

.gft-card-header {
	background: var(--gft-primary);
	color: #ffffff;
	padding: 16px 18px;
	font-weight: 600;
	font-size: 1.05em;
}

.gft-route .gft-arrow {
	opacity: 0.85;
}

.gft-card-body {
	padding: 18px;
	flex: 1;
}

.gft-meta-row {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 8px;
	font-size: 0.95em;
}

.gft-price {
	font-size: 1.4em;
	font-weight: 700;
	color: var(--gft-primary-dark);
}

.gft-meta-label {
	color: var(--gft-muted);
	font-size: 0.85em;
}

.gft-vehicle {
	color: var(--gft-muted);
}

.gft-notes {
	margin: 10px 0;
	padding: 10px 12px;
	background: #f6f8f7;
	border-left: 3px solid var(--gft-primary);
	border-radius: 6px;
	font-size: 0.9em;
	color: var(--gft-muted);
}

.gft-capacity {
	margin-top: 14px;
}

.gft-capacity-bar {
	background: #eef1f0;
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
	margin-bottom: 6px;
}

.gft-capacity-fill {
	background: var(--gft-primary);
	height: 100%;
	border-radius: 999px;
	transition: width 0.3s ease;
}

.gft-capacity-label {
	font-size: 0.82em;
	color: var(--gft-muted);
}

.gft-card-footer {
	padding: 14px 18px 18px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.gft-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.78em;
	font-weight: 600;
}

.gft-badge-full {
	background: rgba(245, 158, 11, 0.15);
	color: #b45309;
}

.gft-btn {
	display: inline-block;
	background: var(--gft-primary);
	color: #ffffff;
	border: none;
	border-radius: 999px;
	padding: 10px 22px;
	font-family: inherit;
	font-weight: 600;
	font-size: 0.95em;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.gft-btn:hover {
	background: var(--gft-primary-dark);
}

.gft-btn:active {
	transform: scale(0.98);
}

.gft-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.gft-btn-secondary {
	background: #ffffff;
	color: var(--gft-primary-dark);
	border: 1.5px solid var(--gft-primary);
}

.gft-btn-secondary:hover {
	background: rgba(18, 145, 98, 0.08);
}

/* Modal */
.gft-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 24, 21, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 100000;
}

.gft-modal-overlay[hidden] {
	display: none;
}

.gft-modal {
	background: #ffffff;
	border-radius: var(--gft-radius);
	padding: 28px;
	max-width: 420px;
	width: 100%;
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.gft-modal h3 {
	margin: 0 0 6px;
	color: var(--gft-text);
	font-size: 1.2em;
}

.gft-modal-subtitle {
	color: var(--gft-muted);
	font-size: 0.9em;
	margin: 0 0 18px;
}

.gft-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 1.6em;
	line-height: 1;
	color: var(--gft-muted);
	cursor: pointer;
	padding: 4px;
}

.gft-modal-close:hover {
	color: var(--gft-text);
}

.gft-form .gft-field-row {
	margin-bottom: 14px;
}

.gft-form label {
	display: block;
	font-weight: 600;
	font-size: 0.88em;
	margin-bottom: 5px;
}

.gft-form input[type="text"],
.gft-form input[type="email"],
.gft-form input[type="tel"] {
	width: 100%;
	padding: 10px 12px;
	border: 1.5px solid var(--gft-border);
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.95em;
	background: #fff;
	color: var(--gft-text);
}

.gft-form input:focus {
	outline: none;
	border-color: var(--gft-primary);
	box-shadow: 0 0 0 3px rgba(18, 145, 98, 0.15);
}

.gft-btn-submit {
	width: 100%;
	padding: 12px;
	margin-top: 6px;
}

.gft-form-message {
	font-size: 0.88em;
	margin: 10px 0;
	padding: 10px 12px;
	border-radius: 8px;
	display: none;
}

.gft-form-message.gft-visible {
	display: block;
}

.gft-form-message.gft-error {
	background: rgba(220, 38, 38, 0.1);
	color: #b91c1c;
}

.gft-form-message.gft-success {
	background: rgba(18, 145, 98, 0.1);
	color: var(--gft-primary-dark);
}

/* Honeypot: oculto visualmente pero accesible a bots que no respetan CSS. */
.gft-hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 480px) {
	.gft-grid {
		grid-template-columns: 1fr;
	}

	.gft-modal {
		padding: 22px;
	}
}
