/* ==========================================================================
   ENY Tree Logger — front-end styling
   Brand palette: red / black / white, matching the ENY logo.
   Mobile-first, then scaled up for larger screens.
   ========================================================================== */

.eny-tl-wrap, .eny-tl-page {
	--eny-red: #E8391E;
	--eny-red-dark: #C22B12;
	--eny-black: #221F1F;
	--eny-grey: #6B6B6B;
	--eny-grey-light: #F4F4F4;
	--eny-white: #FFFFFF;
	--eny-border: #E5E1E1;
	--eny-radius: 14px;

	font-family: inherit;
	color: var(--eny-black);
}
.eny-tl-wrap *, .eny-tl-wrap *::before, .eny-tl-wrap *::after,
.eny-tl-page *, .eny-tl-page *::before, .eny-tl-page *::after { box-sizing: border-box; }

.eny-tl-wrap {
	padding: 16px;
	width:100%;
}

/* ==========================================================================
   Full landing-page template (hero + how-it-works + form)
   ========================================================================== */

.eny-tl-page { padding: 0 16px 60px; width:100%;}

.eny-tl-hero {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	text-align: center;
	padding: 80px 20px 70px;
	background: url('https://images.unsplash.com/photo-1542273917363-3b1817f69a2d?auto=format&fit=crop&q=80') center center / cover no-repeat;
}
.eny-tl-hero::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.7); /* Dark overlay */
	z-index: 1;
}
.eny-tl-hero > * {
	position: relative;
	z-index: 2;
}
.eny-tl-hero-logo { 
	width: 110px; 
	height: auto; 
	margin-bottom: 20px; 
	filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
    background: rgba(255,255,255,0.9);
    /* padding: 15px;
    border-radius: 50%; */
}
.eny-tl-hero-title {
	font-size: 2.2rem;
	font-weight: 800;
	margin: 0 0 16px;
	color: var(--eny-white);
	text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.eny-tl-hero-sub {
	color: #F4F4F4;
	font-size: 1.1rem;
	line-height: 1.6;
	margin: 0 auto 30px;
	max-width: 600px;
	text-shadow: 0 1px 5px rgba(0,0,0,0.6);
}
@media (min-width: 640px) {
	.eny-tl-hero-title { font-size: 2.8rem; }
	.eny-tl-hero { padding: 100px 20px 90px; }
}

a.eny-tl-stat-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    gap: 8px;
    background: var(--eny-red);
    color: var(--eny-white);
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 700;
    margin: 0 auto;
	box-shadow: 0 4px 15px rgba(232, 57, 30, 0.4);
	transition: transform 0.2s ease, background 0.2s ease;
}
a.eny-tl-stat-pill:hover {
	transform: translateY(-3px);
	background: var(--eny-red-dark);
}
.eny-tl-stat-num { font-size: 1.5rem; color: var(--eny-white); font-weight: 800; }
.eny-tl-stat-label { font-size: 0.95rem; opacity: 1; }

.eny-tl-how {
	max-width: 1000px;
	margin: 60px auto 60px;
	text-align: center;
	padding: 0 20px;
}
.eny-tl-how-title {
	font-size: 2.2rem;
	font-weight: 800;
	margin: 0 0 40px;
	color: var(--eny-black);
}
.eny-tl-steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}
@media (min-width: 700px) {
	.eny-tl-steps { grid-template-columns: repeat(3, 1fr); gap: 30px; }
}
.eny-tl-step {
	background: var(--eny-white);
	border: 1px solid var(--eny-border);
	border-radius: 16px;
	padding: 35px 25px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	overflow: hidden;
}
.eny-tl-step:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 40px rgba(0,0,0,0.1);
	border-color: var(--eny-red);
}
.eny-tl-step::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: var(--eny-red);
	transform: scaleX(0);
	transition: transform 0.3s ease;
	transform-origin: left;
}
.eny-tl-step:hover::before {
	transform: scaleX(1);
}
.eny-tl-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px; height: 48px;
	border-radius: 50%;
	background: var(--eny-red);
	color: var(--eny-white);
	font-weight: 800;
	font-size: 1.2rem;
	margin-bottom: 20px;
	box-shadow: 0 4px 10px rgba(232, 57, 30, 0.3);
}
.eny-tl-step h3 { font-size: 1.2rem; font-weight: 800; margin: 0 0 10px; color: var(--eny-black); }
.eny-tl-step p { color: var(--eny-grey); font-size: 0.92rem; margin: 0; line-height: 1.5; }

.eny-tl-form-section { max-width: 760px; margin: 0 auto; }
.eny-tl-form-section .eny-tl-wrap { padding: 0; }

.eny-tl-logo-row { text-align: center; margin-bottom: 18px; }
.eny-tl-logo { width: 84px; height: auto; }
.eny-tl-logo-sm { width: 64px; }

.eny-tl-card {
	background: var(--eny-white);
	border: 1px solid var(--eny-border);
	border-radius: var(--eny-radius);
	padding: 22px 18px;
	box-shadow: 0 6px 24px rgba(34,31,31,0.06);
}
@media (min-width: 600px) {
	.eny-tl-card { padding: 34px 40px; }
}

.eny-tl-title {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 0 0 4px;
	color: var(--eny-black);
}
.eny-tl-subtitle { color: var(--eny-grey); margin: 0 0 22px; font-size: 0.95rem; }

/* ---------------- Form ---------------- */

.eny-tl-form { display: flex; flex-direction: column; gap: 18px; }
.eny-tl-row { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 560px) {
	.eny-tl-row { flex-direction: row; }
	.eny-tl-row .eny-tl-field { flex: 1; }
}

.eny-tl-field { display: flex; flex-direction: column; gap: 6px; }
.eny-tl-field label { font-weight: 700; font-size: 0.9rem; color: var(--eny-black); }
.eny-tl-field .req { color: var(--eny-red); }

.eny-tl-field input[type="text"],
.eny-tl-field input[type="number"],
.eny-tl-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--eny-border);
	border-radius: 10px;
	font-size: 1rem;
	font-family: inherit;
	background: var(--eny-grey-light);
	color: var(--eny-black);
	transition: border-color .15s ease, background .15s ease;
}
.eny-tl-field input:focus,
.eny-tl-field textarea:focus {
	outline: none;
	border-color: var(--eny-red);
	background: var(--eny-white);
}
.eny-tl-field textarea { resize: vertical; min-height: 70px; }

/* ---------------- Buttons ---------------- */

.eny-tl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	border: 2px solid transparent;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
	text-decoration: none !important;
	color: var(--eny-white) !important;
}
.eny-tl-btn:active { transform: scale(0.98); }
.eny-tl-btn-primary {
	background: var(--eny-red);
	box-shadow: 0 10px 26px rgba(232, 57, 30, 0.40);
}
.eny-tl-btn-primary:hover { 
	background: var(--eny-red-dark); 
	box-shadow: 0 12px 30px rgba(232, 57, 30, 0.60);
}
.eny-tl-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.eny-tl-btn-outline {
	background: var(--eny-white);
	color: var(--eny-black) !important;
	border-color: var(--eny-black);
	box-shadow: none;
}
.eny-tl-btn-outline:hover { background: var(--eny-black); color: var(--eny-white) !important; }
.eny-tl-btn-block { width: 100%; }

a.eny-tl-stat-pill, .eny-tl-stat-pill {
    color: var(--eny-white) !important;
}

/* ---------------- Alerts ---------------- */

.eny-tl-alert {
	padding: 14px 16px;
	border-radius: 10px;
	font-size: 0.95rem;
	font-weight: 600;
}
.eny-tl-alert-success { background: #E9F8EE; color: #1E7A3B; border: 1px solid #BFE9CC;margin-bottom:20px; }
.eny-tl-alert-error   { background: #FDEBE8; color: var(--eny-red-dark); border: 1px solid #F5C3BA; margin-bottom:20px;}

/* ---------------- Dropzone / photo previews ---------------- */

.eny-tl-dropzone {
	position: relative;
	border: 2px dashed var(--eny-red);
	border-radius: 12px;
	background: #FFF6F5;
	padding: 26px 16px;
	text-align: center;
	cursor: pointer;
	transition: background .15s ease;
}
.eny-tl-dropzone:hover { background: #FFEBE8; }
.eny-tl-dropzone input[type="file"] {
	position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.eny-tl-dropzone-icon { display: block; font-size: 1.8rem; margin-bottom: 6px; }
.eny-tl-dropzone-text strong { display: block; color: var(--eny-black); margin-bottom: 4px; }
.eny-tl-dropzone-text small { color: var(--eny-grey); }

.eny-tl-photo-previews {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
	margin-top: 14px;
}
.eny-tl-photo-card {
	position: relative;
	background: var(--eny-grey-light);
	border-radius: 10px;
	padding: 8px;
	text-align: center;
	border: 1px solid var(--eny-border);
}
.eny-tl-photo-card img {
	width: 100%; height: 90px; object-fit: cover; border-radius: 8px; margin-bottom: 6px;
}
.eny-tl-photo-card label { font-size: 0.72rem; color: var(--eny-grey); display: block; margin-bottom: 2px; }
.eny-tl-photo-card input[type="date"] {
	width: 100%; font-size: 0.75rem; padding: 4px; border-radius: 6px; border: 1px solid var(--eny-border);
}
.eny-tl-photo-remove {
	position: absolute; top: 2px; right: 2px;
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--eny-black); color: var(--eny-white);
	border: none; cursor: pointer; line-height: 1; font-size: 1rem;padding:0;display:flex;justify-content:center;
}

/* ---------------- Location / map ---------------- */

.eny-tl-location-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.eny-tl-location-hint { font-size: 0.82rem; color: var(--eny-grey); }
.eny-tl-map {
	width: 100%; height: 260px; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--eny-border); margin-bottom: 12px; z-index: 1;
}

/* ---------------- Detail list (single tree page) ---------------- */

.eny-tl-tree-title { font-size: 1.9rem; font-weight: 800; margin: 0 0 2px; }
.eny-tl-tree-sub { color: var(--eny-red-dark); font-size: 1.05rem; margin: 0 0 20px; }

.eny-tl-detail-list { margin: 0;display: grid; grid-template-columns: 1fr 1fr;}
.eny-tl-detail-row {
	display: flex; flex-direction: column; gap: 4px;
	padding: 14px 0; border-bottom: 1px solid var(--eny-border);
}
.eny-tl-detail-row dt {
	font-weight: 800; color: var(--eny-red-dark); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.eny-tl-detail-row dd { margin: 0; color: var(--eny-black); line-height: 1.55; }

@media (min-width: 600px) {
	.eny-tl-detail-row { flex-direction: row; }
	.eny-tl-detail-row dt { width: 220px; flex-shrink: 0; }
}

.eny-tl-section-title {
	font-size: 1.2rem; font-weight: 800; margin: 30px 0 14px;
	border-left: 5px solid var(--eny-red); padding-left: 12px;
}

/* ---------------- Gallery ---------------- */

.eny-tl-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 14px;
}
.eny-tl-gallery-item {
	margin: 0; background: var(--eny-grey-light); border-radius: 12px; overflow: hidden;
	border: 1px solid var(--eny-border);
}
.eny-tl-gallery-item img {
	width: 100%; height: 130px; object-fit: cover; display: block; cursor: zoom-in; transition: transform .2s ease;
}
.eny-tl-gallery-item img:hover { transform: scale(1.04); }
.eny-tl-gallery-item figcaption {
	font-size: 0.75rem; color: var(--eny-grey); text-align: center; padding: 6px 4px; font-weight: 600;
}

.eny-tl-coord-link { margin-top: 12px; }
.eny-tl-coord-link a { color: var(--eny-red-dark); font-weight: 700; text-decoration: none; }
.eny-tl-coord-link a:hover { text-decoration: underline; }

/* ---------------- Lightbox ---------------- */

.eny-tl-lightbox {
	display: none;
	position: fixed; inset: 0; background: rgba(20,18,18,0.92);
	z-index: 99999; align-items: center; justify-content: center; padding: 24px;
}
.eny-tl-lightbox.eny-tl-lightbox-open { display: flex; }
.eny-tl-lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.eny-tl-lightbox-close {
	position: absolute; top: 18px; right: 24px; color: var(--eny-white); font-size: 2.2rem;
	cursor: pointer; line-height: 1; font-weight: 300;
}
a.eny-tl-stat-pill, .eny-tl-stat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    background: var(--eny-red);
    color: var(--eny-white);
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(232,57,30,0.40);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.site-content .ast-container{
    max-width: 100%;
    padding: 0;
    
}