/* The Directory (includes/amend5/dir-*.php): browse, listing pages, the form.
   The site's look: Cormorant Garamond headings, Jost text, gold #C6A44E. */

#browse, #add { scroll-margin-top: 110px; }

.gft-dir-browse, .gft-dir-form, .gft-dir-single, .gft-dir-thanks {
	--gd-gold: #C6A44E; --gd-deep: #8A6A1F; --gd-ink: #23201A; --gd-muted: #6F6657;
	--gd-line: #EDE3CE; --gd-cream: #FFFCF6; --gd-cream2: #FAF6EF; --gd-err: #B3261E;
	font-family: Jost, Arial, Helvetica, sans-serif; color: var(--gd-ink); box-sizing: border-box;
}
.gft-dir-browse *, .gft-dir-form *, .gft-dir-single *, .gft-dir-thanks * { box-sizing: border-box; }

/* ------------------------------------------------------------ buttons */
/* doubled class: WoodMart styles every button with :is(.btn,button,...) at the
   same weight as one class, so one class alone lost to it on load order */
.gft-dir-btn.gft-dir-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 12px 24px; border: 1px solid var(--gd-gold); border-radius: 0;
	background-color: transparent; background-image: linear-gradient(134deg, #A8802D 0%, #FBF3A1 47%, #CDA42D 100%);
	color: #1A1A1A; font-family: Jost, Arial, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .1em;
	text-transform: uppercase; text-decoration: none; line-height: 1.2; cursor: pointer; transition: box-shadow .3s ease;
}
.gft-dir-btn.gft-dir-btn:hover, .gft-dir-btn.gft-dir-btn:focus { color: #1A1A1A; border-color: var(--gd-gold); box-shadow: 0 4px 16px rgba(198, 164, 78, .45); background-image: linear-gradient(134deg, #A8802D 0%, #FBF3A1 67%, #CDA42D 100%); }
.gft-dir-btn.gft-dir-btn:focus-visible { outline: 2px solid var(--gd-deep); outline-offset: 2px; }
.gft-dir-btn.gft-dir-btn[disabled] { opacity: .6; cursor: wait; }
.gft-dir-btn.gft-dir-btn-ghost { background: #fff; background-image: none; }
.gft-dir-btn.gft-dir-btn-ghost:hover, .gft-dir-btn.gft-dir-btn-ghost:focus { background: var(--gd-cream2); background-image: none; }
.gft-dir-link { color: var(--gd-deep); text-decoration: underline; text-underline-offset: 3px; }
.gft-dir-link:hover { color: var(--gd-ink); }
.gft-dir-ico { font-size: 16px; line-height: 1; }

/* ------------------------------------------------------------- browse */
.gft-dir-browse { max-width: 1200px; margin: 0 auto; }
.gft-dir-search { display: flex; gap: 10px; max-width: 640px; margin: 0 auto 22px; }
.gft-dir-search input#gft-dir-q {
	flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid #D9CDB4; background: #fff;
	font-family: inherit; font-size: 16px; color: var(--gd-ink); border-radius: 0;
}
.gft-dir-search input#gft-dir-q:focus { outline: none; border-color: var(--gd-gold); box-shadow: 0 0 0 2px rgba(198, 164, 78, .25); }
.gft-dir-search .gft-dir-btn.gft-dir-btn { flex: 0 0 auto; padding: 12px 20px; }

.gft-dir-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; }
.gft-dir-filter a {
	display: inline-block; padding: 8px 15px; border: 1px solid var(--gd-line); background: #fff; color: var(--gd-ink);
	font-size: 14px; line-height: 1.3; text-decoration: none; transition: border-color .2s, background .2s;
}
.gft-dir-filter a:hover { border-color: var(--gd-gold); background: var(--gd-cream); color: var(--gd-ink); }
.gft-dir-filter a.is-active { border-color: var(--gd-gold); background: var(--gd-gold); color: #1A1A1A; font-weight: 600; }

.gft-dir-found { margin: 0 0 18px; text-align: center; color: var(--gd-muted); font-size: 15px; }
.gft-dir-found .gft-dir-link { margin-left: 8px; }

.gft-dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.gft-dir-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gd-line); transition: box-shadow .3s ease, transform .3s ease; min-width: 0; }
.gft-dir-card:hover { box-shadow: 0 10px 26px rgba(35, 32, 26, .10); transform: translateY(-2px); }
.gft-dir-card-pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gd-cream2); }
.gft-dir-card-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gft-dir-blank {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
	background: linear-gradient(140deg, #FAF6EF 0%, #F1E6CE 100%); color: var(--gd-deep);
	font-family: "Cormorant Garamond", Georgia, serif; font-size: 64px; font-weight: 600;
}
.gft-dir-card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 16px 18px 18px; }
.gft-dir-card-cat { margin: 0 0 4px; color: var(--gd-deep); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.gft-dir-card-title { margin: 0 0 4px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.gft-dir-card-title a { color: var(--gd-ink); text-decoration: none; }
.gft-dir-card-title a:hover { color: var(--gd-deep); }
.gft-dir-card-area { margin: 0 0 8px; color: var(--gd-muted); font-size: 14px; }
.gft-dir-card-desc { margin: 0 0 14px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.gft-dir-card-more { margin-top: auto; align-self: flex-start; color: var(--gd-deep); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--gd-gold); padding-bottom: 2px; }
.gft-dir-card-more:hover { color: var(--gd-ink); }

.gft-dir-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0 0; }
.gft-dir-pages a, .gft-dir-pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--gd-line); color: var(--gd-ink); text-decoration: none; }
.gft-dir-pages a:hover { border-color: var(--gd-gold); }
.gft-dir-pages .is-active { background: var(--gd-gold); border-color: var(--gd-gold); font-weight: 600; }

.gft-dir-empty { max-width: 680px; margin: 0 auto; padding: 26px 22px; text-align: center; background: var(--gd-cream); border: 1px solid var(--gd-line); font-size: 16px; }
.gft-dir-empty p { margin: 0; }
.gft-dir-empty a { color: var(--gd-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------- form */
.gft-dir-form { max-width: 860px; margin: 0 auto; }
.gft-dir-intro { margin: 0 0 20px; text-align: center; font-size: 16px; line-height: 1.6; }
.gft-dir-req { color: var(--gd-err); }
.gft-dir-set { margin: 0 0 22px; padding: 20px 22px 6px; border: 1px solid var(--gd-line); background: #fff; min-width: 0; }
.gft-dir-set legend { padding: 0 8px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; font-weight: 600; color: var(--gd-ink); }
.gft-dir-field { margin: 0 0 16px; }
.gft-dir-field label, .gft-dir-set .gft-dir-drop strong { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 500; color: var(--gd-ink); }
/* .gft-dir-form in front: WoodMart styles input[type=text] and .wd textarea at
   the same weight as .gft-dir-field input, and it loaded later, so every box was
   14px (iPhones zoom in below 16px) */
.gft-dir-form .gft-dir-field input, .gft-dir-form .gft-dir-field select, .gft-dir-form .gft-dir-field textarea {
	display: block; width: 100%; max-width: 100%; height: auto; min-height: 46px; padding: 11px 13px; border: 1px solid #D9CDB4; border-radius: 0;
	background-color: #fff; color: var(--gd-ink); font-family: inherit; font-size: 16px; line-height: 1.4; box-shadow: none;
}
.gft-dir-form .gft-dir-field select { padding-right: 36px; } /* room for WoodMart's arrow, which stays */
.gft-dir-form .gft-dir-field textarea { min-height: 150px; resize: vertical; }
.gft-dir-form .gft-dir-field input:focus, .gft-dir-form .gft-dir-field select:focus, .gft-dir-form .gft-dir-field textarea:focus { outline: none; border-color: var(--gd-gold); box-shadow: 0 0 0 2px rgba(198, 164, 78, .25); }
/* placeholders in grey, as in the site's header search, so an empty box does not look filled in */
.gft-dir-form, .gft-dir-search { --wd-form-placeholder-color: #8A8172; }
.gft-dir-form ::placeholder, .gft-dir-search ::placeholder, #gft-dir-q::placeholder { color: #8A8172; opacity: 1; }
.gft-dir-form ::-webkit-input-placeholder, .gft-dir-search ::-webkit-input-placeholder { color: #8A8172; opacity: 1; }
.gft-dir-set-note { margin: 0 0 16px; color: var(--gd-muted); font-size: 14px; line-height: 1.5; }
.gft-dir-hint { display: block; margin-top: 5px; color: var(--gd-muted); font-size: 13px; line-height: 1.45; }
.gft-dir-count { white-space: nowrap; }
.gft-dir-count.is-over { color: var(--gd-err); font-weight: 600; }
.gft-dir-err { display: block; margin-top: 5px; color: var(--gd-err); font-size: 14px; line-height: 1.4; }
.has-error input, .has-error select, .has-error textarea, .has-error .gft-dir-drop { border-color: var(--gd-err) !important; }
.gft-dir-grid2 { display: grid; grid-template-columns: 1fr; gap: 0 20px; }
@media (min-width: 700px) { .gft-dir-grid2 { grid-template-columns: 1fr 1fr; } }
.gft-dir-other[hidden] { display: none; }

.gft-dir-photos { position: relative; margin: 0 0 16px; }
.gft-dir-photos input[type="file"] { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.gft-dir-drop {
	display: block; padding: 22px 18px; border: 2px dashed var(--gd-gold); background: var(--gd-cream); text-align: center; cursor: pointer; transition: background .2s;
}
.gft-dir-drop span { display: block; color: var(--gd-muted); font-size: 14px; line-height: 1.5; }
.gft-dir-drop:hover, .gft-dir-photos.is-over .gft-dir-drop, .gft-dir-photos:focus-within .gft-dir-drop { background: #F6EEDC; }
.gft-dir-photos:focus-within .gft-dir-drop { outline: 2px solid var(--gd-deep); outline-offset: 2px; }
.gft-dir-photos.is-full .gft-dir-drop { opacity: .55; cursor: not-allowed; }
.gft-dir-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.gft-dir-thumbs li { position: relative; margin: 0; aspect-ratio: 1 / 1; border: 1px solid var(--gd-line); background: var(--gd-cream2); overflow: hidden; }
.gft-dir-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gft-dir-thumbs .gft-dir-main-tag { position: absolute; left: 0; bottom: 0; padding: 2px 7px; background: var(--gd-gold); color: #1A1A1A; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.gft-dir-thumbs .gft-dir-rm, .gft-dir-thumbs button { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(26, 26, 26, .78); color: #fff; font-size: 18px; line-height: 30px; cursor: pointer; }
.gft-dir-thumbs button:hover, .gft-dir-thumbs button:focus { background: var(--gd-err); color: #fff; }
.gft-dir-photo-note { margin: 8px 0 0; color: var(--gd-muted); font-size: 14px; }
.gft-dir-photo-note.is-bad { color: var(--gd-err); }

.gft-dir-consent { margin: 0 0 20px; padding: 16px 18px; border: 1px solid var(--gd-line); background: var(--gd-cream); }
.gft-dir-consent label { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; cursor: pointer; }
.gft-dir-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--gd-deep); }
.gft-dir-consent a { color: var(--gd-deep); text-decoration: underline; }
.gft-dir-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.gft-dir-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: center; margin: 0 0 12px; }
.gft-dir-actions .gft-dir-btn.gft-dir-btn { min-width: 280px; }
.gft-dir-sending { color: var(--gd-muted); font-size: 15px; }
.gft-dir-small { margin: 0; text-align: center; color: var(--gd-muted); font-size: 13px; line-height: 1.55; }
.gft-dir-alert { margin: 0 0 20px; padding: 14px 16px; border-left: 3px solid var(--gd-err); background: #FBF0F0; font-size: 15px; line-height: 1.5; }

.gft-dir-thanks { max-width: 760px; margin: 0 auto; padding: 26px 24px; border: 1px solid var(--gd-line); border-left: 4px solid var(--gd-gold); background: var(--gd-cream); text-align: center; }
.gft-dir-thanks:focus { outline: none; }
.gft-dir-thanks-title { margin: 0 0 8px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 28px; font-weight: 600; }
.gft-dir-thanks p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; }
.gft-dir-thanks p:last-child { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin: 0; }

/* -------------------------------------------------------- listing page */
.gft-dir-page { width: 100%; }
.gft-dir-single { max-width: 1160px; margin: 0 auto; padding: 26px 0 60px; }
.gft-dir-back { margin: 0 0 18px; font-size: 14px; color: var(--gd-muted); }
.gft-dir-back a { color: var(--gd-deep); text-decoration: none; }
.gft-dir-back a:hover { text-decoration: underline; }
.gft-dir-single-top { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 900px) {
	.gft-dir-single-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
	.gft-dir-single-top.no-photos { grid-template-columns: 1fr; max-width: 760px; }
}
.gft-dir-gallery { min-width: 0; }
.gft-dir-main { display: block; aspect-ratio: 4 / 3; background: var(--gd-cream2); border: 1px solid var(--gd-line); overflow: hidden; cursor: zoom-in; }
.gft-dir-main img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* five equal columns, 76px each at most, so five photos always fit one row */
.gft-dir-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: 420px; margin: 12px 0 0; padding: 0; list-style: none; }
.gft-dir-strip li { margin: 0; min-width: 0; }
.gft-dir-strip a { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border: 2px solid transparent; outline: 1px solid var(--gd-line); overflow: hidden; }
.gft-dir-strip a.is-active { border-color: var(--gd-gold); }
.gft-dir-strip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gft-dir-facts { min-width: 0; }
.gft-dir-single-cat { margin: 0 0 6px; color: var(--gd-deep); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.gft-dir-single-title { margin: 0 0 16px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 40px; font-weight: 600; line-height: 1.1; color: var(--gd-ink); overflow-wrap: anywhere; }
.gft-dir-meta { margin: 0 0 20px; padding: 0; }
.gft-dir-meta div { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--gd-line); font-size: 15px; }
.gft-dir-meta dt { flex: 0 0 110px; margin: 0; color: var(--gd-muted); font-weight: 400; }
.gft-dir-meta dd { flex: 1 1 auto; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.gft-dir-contact { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.gft-dir-contact .gft-dir-btn { flex: 1 1 auto; min-width: 130px; }
.gft-dir-contact .gft-dir-btn:first-child { flex-basis: 100%; }
.gft-dir-email-line { margin: 4px 0 0; color: var(--gd-muted); font-size: 14px; overflow-wrap: anywhere; }
.gft-dir-about { max-width: 820px; margin: 36px 0 0; }
.gft-dir-about h2 { margin: 0 0 12px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 30px; font-weight: 600; overflow-wrap: anywhere; }
.gft-dir-about p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.gft-dir-disclaimer { max-width: 820px; margin: 30px 0 0; padding: 18px 20px; border: 1px solid var(--gd-line); background: var(--gd-cream); }
.gft-dir-disclaimer p { margin: 0 0 4px; font-size: 15px; line-height: 1.6; }
.gft-dir-disclaimer p:last-child { margin: 0; }
.gft-dir-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 34px 0 0; padding: 24px 0 0; border-top: 1px solid var(--gd-line); }
.gft-dir-cta p { flex-basis: 100%; margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; font-weight: 600; }

@media (max-width: 600px) {
	.gft-dir-single { padding-top: 16px; }
	.gft-dir-single-title { font-size: 32px; }
	.gft-dir-set { padding: 16px 14px 4px; }
	.gft-dir-actions .gft-dir-btn.gft-dir-btn { width: 100%; min-width: 0; }
	.gft-dir-search .gft-dir-btn.gft-dir-btn { padding: 12px 14px; }
	.gft-dir-meta dt { flex-basis: 96px; }
	.gft-dir-filter a { padding: 7px 12px; font-size: 13px; }
}

/* ---------------------------------------------------------- lightbox */
.gft-dir-lb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(20, 18, 14, .93); }
.gft-dir-lb[hidden] { display: none; }
.gft-dir-lb img { display: block; max-width: 92vw; max-height: 84vh; object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.gft-dir-lb button { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.gft-dir-lb button:hover, .gft-dir-lb button:focus-visible { background: var(--gd-gold, #C6A44E); color: #1A1A1A; outline: none; }
.gft-dir-lb-close { top: 16px; right: 16px; }
.gft-dir-lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.gft-dir-lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.gft-dir-lb-count { position: absolute; bottom: 18px; left: 0; right: 0; color: #fff; text-align: center; font-family: Jost, Arial, sans-serif; font-size: 14px; letter-spacing: .08em; }
html.gft-dir-lb-open { overflow: hidden; }

/* ------------------------------------------- filters (Amend 6, A6-14) */
/* category, town or city and words in one plain form (works without JavaScript) */
.gft-dir-search.gft-dir-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 10px 12px; max-width: 1000px; align-items: end; }
.gft-dir-filters .gft-dir-f { margin: 0; min-width: 0; }
.gft-dir-filters .gft-dir-f label { display: block; margin: 0 0 5px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gd-muted); }
.gft-dir-filters .gft-dir-f select { display: block; width: 100%; max-width: 100%; height: 46px; margin: 0; padding: 0 34px 0 12px; border: 1px solid #D9CDB4; border-radius: 0; background-color: #fff; font-family: inherit; font-size: 16px; color: var(--gd-ink); }
.gft-dir-filters .gft-dir-f select:focus { outline: none; border-color: var(--gd-gold); box-shadow: 0 0 0 2px rgba(198, 164, 78, .25); }
.gft-dir-filters .gft-dir-f input#gft-dir-q { display: block; width: 100%; }
.gft-dir-filters .gft-dir-f-go .gft-dir-btn.gft-dir-btn { width: 100%; padding: 12px 22px; }
@media (max-width: 900px) {
	.gft-dir-search.gft-dir-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.gft-dir-filters .gft-dir-f-q, .gft-dir-filters .gft-dir-f-go { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.gft-dir-search.gft-dir-filters { grid-template-columns: minmax(0, 1fr); }
}
