/* SM NJA Directory: business page. Colours from the Visit Noosa Junction style guide.
   Override any of these in Appearance > Customize > Additional CSS, e.g. .nja-profile { --nja-olive: #3f5034; } */
.nja-profile {
	--nja-charcoal: #192521;
	--nja-olive: #46573A;
	--nja-cream: #F7F5F0;
	--nja-sage: #D9DDCC;
	--nja-terracotta: #A66B37;
	--nja-taupe: #E8E1D6;
	--nja-line: #E3DED4;
	--nja-text: #3b4540;
	--nja-heading-font: "Cormorant Garamond", Georgia, serif;
	--nja-body-font: "DM Sans", system-ui, sans-serif;
	--nja-radius: 14px;
	--nja-sticky-top: 24px; /* raise this if the site header is sticky, e.g. 110px */
	--nja-max: 1680px; /* page width */
	max-width: var(--nja-max);
	margin: 0 auto;
	padding: 16px 24px 64px;
	color: var(--nja-text);
	font-family: var(--nja-body-font);
	font-size: 16px;
	line-height: 1.6;
}
.nja-profile, .nja-profile *, .nja-lightbox, .nja-lightbox * { box-sizing: border-box; }
.nja-profile h1, .nja-profile h2, .nja-profile h3 { font-family: var(--nja-heading-font); font-weight: 400; color: var(--nja-charcoal); line-height: 1.15; margin: 0; }
.nja-profile a { color: inherit; }
.nja-profile .nja-icon { width: 22px; height: 22px; flex: 0 0 auto; }

/* Breadcrumbs */
.nja-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; margin: 0 0 20px; color: var(--nja-text); }
.nja-crumbs a { text-decoration: none; }
.nja-crumbs a:hover { text-decoration: underline; }
.nja-crumbs__sep .nja-icon { width: 14px; height: 14px; opacity: .6; }

/* Two columns, right column sticky */
.nja-profile__layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 36px; align-items: start; }
.nja-profile__main { background: #fff; border: 1px solid var(--nja-line); border-radius: var(--nja-radius); overflow: hidden; }
.nja-profile__side { position: sticky; top: var(--nja-sticky-top); display: grid; gap: 20px; }

/* Photos: main image + 2 × 2 tiles */
/* Photos: main image + tiles in a fixed-height band (about 20:9), so they never grow tall.
   Every image is absolutely positioned and sized here with !important so theme
   or Elementor image rules (height: auto, max-width) can't stretch or shrink them. */
.nja-photos { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 100%; gap: 8px; padding: 0; aspect-ratio: 20 / 9; overflow: hidden; }
.nja-photos--single { grid-template-columns: 1fr; }
.nja-photos button { all: unset; cursor: zoom-in; display: block; position: relative; overflow: hidden; min-height: 0; }
.nja-photos button:focus-visible { outline: 3px solid var(--nja-olive); outline-offset: -3px; }
.nja-profile .nja-photos img { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; object-fit: cover; transition: opacity .2s ease; }
.nja-photos button:hover img { opacity: .9; }
.nja-photos__grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; min-height: 0; }
.nja-photos__grid--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.nja-photos__grid--2 { grid-template-columns: 1fr; }
.nja-photos__grid--3 .nja-photos__tile:first-child { grid-column: span 2; }
.nja-photos__more { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(25, 37, 33, .55); color: #fff; font-size: 15px; }
.nja-photos__more strong { font-size: 24px; font-weight: 500; }
.nja-photos__more .nja-icon { width: 26px; height: 26px; }

/* Intro */
.nja-intro { padding: 28px 32px 8px; }
.nja-intro__head { display: flex; gap: 24px; align-items: center; }
.nja-intro__logo { flex: 0 0 110px; width: 110px; height: 110px; border-radius: 50%; overflow: hidden; background: #fff; border: 1px solid var(--nja-line); margin: 0; position: relative; box-shadow: 0 4px 14px rgba(25,37,33,.08); }
.nja-intro__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Higher specificity so theme and Elementor heading sizes don't override these */
.nja-profile .nja-intro__name { font-size: clamp(34px, 3.2vw, 50px); line-height: 1.1; margin: 0; }
.nja-profile .nja-intro__tagline { font-size: 18px; margin: 8px 0 0; color: var(--nja-charcoal); }
.nja-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--nja-olive); margin: 0 0 6px; }
.nja-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; }
.nja-chips li { background: var(--nja-sage); color: var(--nja-charcoal); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 6px 12px; border-radius: 6px; }
.nja-intro__text { margin: 20px 0 0; font-size: 16px; }
.nja-intro__text p { margin: 0 0 12px; }
.nja-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }

/* Buttons */
.nja-profile .nja-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--nja-olive); background: transparent; color: var(--nja-charcoal); font-family: var(--nja-body-font); font-size: 15px; font-weight: 500; text-decoration: none; line-height: 1.2; transition: background .2s, color .2s; }
.nja-profile .nja-btn:hover { background: var(--nja-sage); }
.nja-profile .nja-btn--primary { background: var(--nja-olive); color: #fff; }
.nja-profile .nja-btn--primary:hover { background: var(--nja-charcoal); border-color: var(--nja-charcoal); color: #fff; }
.nja-profile .nja-btn--block { display: flex; width: 100%; margin-top: 18px; }
.nja-profile .nja-btn .nja-icon { width: 20px; height: 20px; }

/* Sections in the main column */
.nja-section { margin: 24px 32px 0; padding-top: 24px; border-top: 1px solid var(--nja-line); }
.nja-profile .nja-section__title { font-size: 34px; line-height: 1.15; margin: 0 0 20px !important; }
.nja-profile__main > :last-child { margin-bottom: 32px; }

.nja-services__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--nja-cols, 5), minmax(0, 1fr)); gap: 0; }
/* Subgrid: icons on one line, labels on the next, whatever the label length */
.nja-services__grid li { display: grid; grid-row: span 2; grid-template-rows: subgrid; justify-items: center; align-content: start; row-gap: 10px; }
.nja-services__grid li { text-align: center; padding: 14px 10px 18px; font-size: 15px; line-height: 1.35; color: var(--nja-charcoal); border-right: 1px solid var(--nja-line); }
.nja-services__grid li:last-child { border-right-color: transparent; }
/* Labels: up to two lines */
.nja-services__grid span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.nja-services__grid .nja-icon { width: 34px; height: 34px; flex: none; stroke-width: 1.3; color: var(--nja-charcoal); }

/* Highlights: no background fill, just an outline */
.nja-why { border-top: 0; padding: 24px 28px; border: 1px solid var(--nja-line); border-radius: var(--nja-radius); background: var(--nja-why-bg, transparent); }
.nja-why .nja-section__title { margin-bottom: 18px !important; }
.nja-why__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--nja-cols, 3), minmax(0, 1fr)); gap: 0 20px; }
.nja-why__grid li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 8px; align-content: start; }
.nja-why__grid li { padding-right: 16px; border-right: 1px solid var(--nja-line); }
.nja-why__grid li:last-child { border-right: 0; }
/* Titles up to two lines, text up to three; subgrid keeps the text rows lined up */
.nja-why__grid strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.nja-why__grid p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.nja-why__grid .nja-icon { width: 34px; height: 34px; flex: none; stroke-width: 1.3; color: var(--nja-charcoal); }
.nja-why__grid strong { font-weight: 600; color: var(--nja-charcoal); font-size: 15px; }
.nja-why__grid p { margin: 0; font-size: 14px; }

/* Sidebar cards */
.nja-card-box { background: #fff; border: 1px solid var(--nja-line); border-radius: var(--nja-radius); padding: 22px 22px 24px; }
.nja-profile .nja-card-box__title { display: flex; align-items: center; gap: 10px; font-size: 28px; line-height: 1.15; margin: 0 0 16px !important; }
.nja-card-box__title .nja-icon { width: 26px; height: 26px; }
.nja-contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.nja-contact__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; }
.nja-contact__list .nja-icon { color: var(--nja-charcoal); margin-top: 1px; }
.nja-contact__list a { text-decoration: none; overflow-wrap: anywhere; }
.nja-contact__list a:hover { color: var(--nja-olive); text-decoration: underline; }
.nja-hours__table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0; }
.nja-hours__table th, .nja-hours__table td { text-align: left; padding: 7px 0; border: 0; border-bottom: 1px solid var(--nja-line); background: none; font-weight: 400; }
.nja-hours__table th { font-weight: 500; color: var(--nja-charcoal); width: 45%; }
.nja-hours__table tr.is-today th, .nja-hours__table tr.is-today td { font-weight: 600; color: var(--nja-olive); }
.nja-location__map { height: 220px; border-radius: 10px; overflow: hidden; z-index: 0; }

/* Basic listing */
.nja-profile--basic .nja-intro { padding-top: 32px; }
.nja-profile--basic .nja-claim { margin: 20px 32px 32px; border: 1px solid var(--nja-olive); border-radius: var(--nja-radius); padding: 24px; background: var(--nja-cream); }
.nja-profile.nja-profile--basic .nja-claim h2 { font-size: 28px; margin-bottom: 8px; }
.nja-profile--basic .nja-claim p { margin: 0 0 16px; }

/* Photo viewer */
.nja-lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.nja-lightbox::backdrop { background: rgba(25, 37, 33, .92); }
.nja-lightbox__inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.nja-lightbox img { max-width: min(92vw, 1200px); max-height: 82vh; object-fit: contain; border-radius: 6px; }
.nja-lightbox button { all: unset; cursor: pointer; position: absolute; color: #fff; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.12); }
.nja-lightbox button:hover, .nja-lightbox button:focus-visible { background: rgba(255,255,255,.25); }
.nja-lightbox .nja-icon { width: 26px; height: 26px; }
.nja-lightbox__close { top: 20px; right: 20px; }
.nja-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.nja-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.nja-lightbox__count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; }

/* Map pin used on all maps */
.nja-pin svg { width: 30px; height: 40px; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }

@media (max-width: 1024px) {
	.nja-profile__layout { grid-template-columns: 1fr; }
	.nja-profile__side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 680px) {
	.nja-profile { padding: 12px 16px 48px; }
	.nja-photos { grid-template-columns: 1fr; grid-template-rows: auto; aspect-ratio: auto; }
	.nja-photos .nja-photos__main { aspect-ratio: 4 / 3; align-self: start; }
	.nja-photos__grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: none; }
	.nja-photos .nja-photos__tile { aspect-ratio: 1; grid-column: auto !important; align-self: start; }
	.nja-photos__more span { display: none; }
	.nja-intro { padding: 20px 18px 4px; }
	.nja-intro__head { flex-direction: row; align-items: center; }
	.nja-intro__logo { flex: 0 0 72px; width: 72px; height: 72px; }
	.nja-section { margin: 20px 18px 0; }
	.nja-why { padding: 20px 18px; }
	/* Phone: highlights stack; services become a two-column list */
	.nja-why__grid { grid-template-columns: 1fr; gap: 0; }
	.nja-why__grid li { border-right: 0; padding: 14px 0; border-bottom: 1px solid var(--nja-line); }
	.nja-why__grid li:last-child { border-bottom: 0; padding-bottom: 0; }
	.nja-why__grid li:first-child { padding-top: 0; }
	.nja-why__grid li { display: flex; flex-direction: column; gap: 8px; grid-row: auto; }
	.nja-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
	.nja-services__grid li { flex-direction: row; text-align: left; gap: 10px; padding: 10px 0; border-right: 0; border-bottom: 1px solid var(--nja-line); }
	.nja-services__grid li { display: flex; align-items: center; grid-row: auto; }
	.nja-services__grid .nja-icon { width: 26px; height: 26px; }
	.nja-actions .nja-btn { flex: 1 1 100%; }
}
