/**
 * Wedding Property Directory — front-end styles.
 * Namespace: .wp-wedding-directory (spec #31). All rules are scoped
 * under this root class so the plugin never leaks generic selectors
 * like .card / .container / .button / .row into the surrounding theme
 * or Elementor page.
 *
 * Design language (spec #30/#60): premium hospitality directory —
 * white background, soft off-white sidebar, thin light-gray borders,
 * rounded cards/buttons, clean black typography, dark primary CTA,
 * subtle hover animation, spacious layout. No heavy shadows/gradients.
 */

.wp-wedding-directory {
	--wpwd-primary: #111111;
	--wpwd-primary-hover: #2b2b2b;
	--wpwd-accent: #ad1457;
	--wpwd-accent-hover: #8f1145;
	--wpwd-text: #111111;
	--wpwd-muted: #6b6b6b;
	--wpwd-border: #e4e4e4;
	--wpwd-sidebar: #f8f7f4;
	--wpwd-white: #ffffff;
	--wpwd-chip-bg: #f2f0eb;
	--wpwd-radius: 12px;
	--wpwd-radius-sm: 8px;
	--wpwd-radius-pill: 999px;
	--wpwd-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--wpwd-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
	--wpwd-shadow-lg: 0 12px 32px rgba(17, 17, 17, 0.14);
	--wpwd-transition: 180ms ease;

	all: initial;
	*, *::before, *::after { box-sizing: border-box; }
	display: block;
	font-family: var(--wpwd-font);
	color: var(--wpwd-text);
	font-size: 15px;
	line-height: 1.5;
	background: var(--wpwd-white);
	-webkit-font-smoothing: antialiased;
}

.wp-wedding-directory h1,
.wp-wedding-directory h2,
.wp-wedding-directory h3,
.wp-wedding-directory p,
.wp-wedding-directory ul,
.wp-wedding-directory li,
.wp-wedding-directory button,
.wp-wedding-directory input,
.wp-wedding-directory select,
.wp-wedding-directory textarea,
.wp-wedding-directory label,
.wp-wedding-directory form {
	font-family: var(--wpwd-font);
	color: var(--wpwd-text);
	margin: 0;
	box-sizing: border-box;
}

.wp-wedding-directory button {
	cursor: pointer;
	background: none;
	border: none;
	font-size: 14px;
}

.wp-wedding-directory a { color: inherit; }

/* -------------------------------------------------------------- */
/* Layout                                                          */
/* -------------------------------------------------------------- */

.wp-wedding-directory__mobile-filter-toggle {
	display: none;
}

.wp-wedding-directory__layout {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 32px;
	align-items: start;
	max-width: 1400px;
	margin: 0 auto;
	padding: 24px 16px 64px;
}

/* -------------------------------------------------------------- */
/* Sidebar / Filters                                               */
/* -------------------------------------------------------------- */

.wp-wedding-directory__sidebar {
	background: var(--wpwd-sidebar);
	border: 1px solid var(--wpwd-border);
	border-radius: var(--wpwd-radius);
	padding: 24px;
	position: sticky;
	top: 24px;
}

.wp-wedding-directory__sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.wp-wedding-directory__sidebar-close { display: none; font-size: 22px; line-height: 1; }

.wp-wedding-directory__sidebar-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.wp-wedding-directory__filter-group {
	padding: 18px 0;
	border-top: 1px solid var(--wpwd-border);
}
.wp-wedding-directory__filter-group:first-of-type { border-top: none; padding-top: 0; }

.wp-wedding-directory__filter-heading {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wpwd-muted);
	margin-bottom: 12px;
}

.wp-wedding-directory__checkbox-list {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 220px;
	overflow-y: auto;
}

.wp-wedding-directory__checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	cursor: pointer;
}
.wp-wedding-directory__checkbox input {
	width: 16px;
	height: 16px;
	accent-color: var(--wpwd-primary);
	cursor: pointer;
	flex-shrink: 0;
}
.wp-wedding-directory__checkbox-count { color: var(--wpwd-muted); font-size: 12px; margin-left: auto; }

/* Range sliders */
.wp-wedding-directory__range { padding-top: 6px; }
.wp-wedding-directory__range-track {
	position: relative;
	height: 32px;
}
.wp-wedding-directory__range-input {
	position: absolute;
	top: 10px;
	left: 0;
	width: 100%;
	-webkit-appearance: none;
	appearance: none;
	height: 3px;
	background: transparent;
	pointer-events: none;
	margin: 0;
}
.wp-wedding-directory__range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--wpwd-primary);
	border: 2px solid #fff;
	box-shadow: var(--wpwd-shadow-lg);
	cursor: pointer;
	pointer-events: auto;
	margin-top: -6.5px;
}
.wp-wedding-directory__range-input::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--wpwd-primary);
	border: 2px solid #fff;
	cursor: pointer;
	pointer-events: auto;
}
.wp-wedding-directory__range-input::-webkit-slider-runnable-track { height: 3px; background: transparent; }
.wp-wedding-directory__range-input::-moz-range-track { height: 3px; background: transparent; }

.wp-wedding-directory__range-fill {
	position: absolute;
	top: 14px;
	height: 3px;
	background: var(--wpwd-border);
	border-radius: 2px;
	width: 100%;
}
.wp-wedding-directory__range-fill::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--wpwd-primary);
	border-radius: 2px;
}

.wp-wedding-directory__range-label {
	font-size: 12.5px;
	color: var(--wpwd-muted);
	margin-top: 6px;
}

/* -------------------------------------------------------------- */
/* Mobile filter overlay/drawer                                    */
/* -------------------------------------------------------------- */
.wp-wedding-directory__sidebar-overlay { display: none; }

.wp-wedding-directory__filters-none {
	font-size: 13px;
	color: var(--wpwd-muted);
	padding: 12px 0;
}

/* Admin setting: all filter groups turned off -- no sidebar/toggle at all. */
.wp-wedding-directory--no-filters .wp-wedding-directory__mobile-filter-toggle,
.wp-wedding-directory--no-filters .wp-wedding-directory__sidebar,
.wp-wedding-directory--no-filters .wp-wedding-directory__sidebar-overlay {
	display: none !important;
}
.wp-wedding-directory--no-filters .wp-wedding-directory__layout {
	grid-template-columns: 1fr;
}

/* -------------------------------------------------------------- */
/* Toolbar: search / result count / sort / view                   */
/* -------------------------------------------------------------- */

.wp-wedding-directory__searchbar {
	position: relative;
	margin-bottom: 20px;
}
.wp-wedding-directory .wp-wedding-directory__search-icon {
	position: absolute !important;
	left: 18px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 14px !important;
	height: 14px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 2px solid var(--wpwd-muted) !important;
	border-radius: 50% !important;
	background: transparent !important;
	pointer-events: none !important;
	box-sizing: border-box !important;
}
.wp-wedding-directory .wp-wedding-directory__search-icon::after {
	content: "";
	position: absolute;
	width: 6px;
	height: 2px;
	background: var(--wpwd-muted);
	bottom: -4px;
	right: -5px;
	transform: rotate(45deg);
	transform-origin: left center;
}
.wp-wedding-directory .wp-wedding-directory__search-input {
	width: 100% !important;
	padding: 14px 16px 14px 46px !important;
	border: 1px solid var(--wpwd-border) !important;
	border-radius: var(--wpwd-radius) !important;
	font-size: 14.5px !important;
	background: var(--wpwd-white) !important;
	box-sizing: border-box !important;
	transition: border-color var(--wpwd-transition);
	-webkit-appearance: none;
	appearance: none;
}
.wp-wedding-directory .wp-wedding-directory__search-input::-webkit-search-cancel-button,
.wp-wedding-directory .wp-wedding-directory__search-input::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}
.wp-wedding-directory__search-input:focus {
	outline: none;
	border-color: var(--wpwd-accent);
}

.wp-wedding-directory__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--wpwd-border);
	margin-bottom: 16px;
}

.wp-wedding-directory__result-count { font-size: 14px; color: var(--wpwd-muted); }
.wp-wedding-directory__result-count strong { color: var(--wpwd-text); font-weight: 700; }

.wp-wedding-directory__toolbar-controls {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.wp-wedding-directory__sort {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: var(--wpwd-muted);
	white-space: nowrap;
	flex-shrink: 0;
}
.wp-wedding-directory__sort span {
	white-space: nowrap;
}
.wp-wedding-directory .wp-wedding-directory__sort select {
	border: 1px solid var(--wpwd-border) !important;
	border-radius: var(--wpwd-radius-sm) !important;
	padding: 8px 12px !important;
	font-size: 13.5px !important;
	background: var(--wpwd-white) !important;
	color: var(--wpwd-text) !important;
	box-sizing: border-box !important;
	max-width: 100%;
}

/* -------------------------------------------------------------- */
/* Active filter chips                                             */
/* -------------------------------------------------------------- */

.wp-wedding-directory__chips {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}
.wp-wedding-directory__chips-list { display: flex; flex-wrap: wrap; gap: 8px; }
.wp-wedding-directory__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--wpwd-chip-bg);
	border: 1px solid var(--wpwd-border);
	border-radius: var(--wpwd-radius-pill);
	padding: 6px 10px 6px 14px;
	font-size: 12.5px;
}
.wp-wedding-directory__chip button {
	font-size: 14px;
	line-height: 1;
	color: var(--wpwd-muted);
}
.wp-wedding-directory__chip button:hover { color: var(--wpwd-text); }
.wp-wedding-directory__clear-all {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--wpwd-primary);
	text-decoration: underline;
	white-space: nowrap;
}

/* -------------------------------------------------------------- */
/* Cards grid                                                       */
/* -------------------------------------------------------------- */

.wp-wedding-directory__grid { display: flex; flex-direction: column; gap: 20px; transition: opacity var(--wpwd-transition); }
.wp-wedding-directory__grid[aria-busy="true"] { opacity: 0.5; }

.wp-wedding-directory__grid--grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}
.wp-wedding-directory__grid--grid .wp-wedding-directory__card { flex-direction: column; }
.wp-wedding-directory__grid--grid .wp-wedding-directory__card-gallery { width: 100%; height: 220px; }

.wp-wedding-directory__card {
	display: flex;
	border: 1px solid var(--wpwd-border);
	border-radius: var(--wpwd-radius);
	overflow: hidden;
	background: var(--wpwd-white);
	transition: box-shadow var(--wpwd-transition), transform var(--wpwd-transition);
}
.wp-wedding-directory__card:hover {
	box-shadow: var(--wpwd-shadow-lg);
	transform: translateY(-1px);
}

.wp-wedding-directory__card-gallery {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px;
	width: 340px;
	flex-shrink: 0;
	align-self: stretch;
	background: var(--wpwd-border);
}
.wp-wedding-directory .wp-wedding-directory__card-gallery-item {
	position: relative;
	overflow: hidden;
	height: 100% !important;
	min-height: 0;
}
.wp-wedding-directory .wp-wedding-directory__card-gallery-item img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center !important;
	min-height: 0 !important;
	transition: transform 400ms ease;
}
.wp-wedding-directory__card:hover .wp-wedding-directory__card-gallery-item img { transform: scale(1.04); }
.wp-wedding-directory__card-gallery-item--placeholder { background: #f2f0eb; }
.wp-wedding-directory__card-gallery-item--full { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; }
.wp-wedding-directory__no-image-label {
	position: absolute;
	bottom: 10px;
	left: 10px;
	background: rgba(17,17,17,0.72);
	color: #fff;
	font-size: 11px;
	padding: 4px 8px;
	border-radius: var(--wpwd-radius-sm);
}

.wp-wedding-directory__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	background: var(--wpwd-primary);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: var(--wpwd-radius-pill);
}

.wp-wedding-directory .wp-wedding-directory__gallery-eye-btn {
	position: absolute !important;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0 !important;
	border: none !important;
	border-radius: 50% !important;
	background: #457285 !important;
	color: #fff !important;
	box-shadow: 0 2px 6px rgba(17, 17, 17, 0.25);
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity var(--wpwd-transition), transform var(--wpwd-transition), background var(--wpwd-transition);
}
.wp-wedding-directory .wp-wedding-directory__gallery-eye-btn:hover { background: #375c6c !important; }
.wp-wedding-directory__card:hover .wp-wedding-directory__gallery-eye-btn,
.wp-wedding-directory .wp-wedding-directory__gallery-eye-btn:focus {
	opacity: 1;
	transform: translateY(0);
}

.wp-wedding-directory__card-body {
	padding: 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	min-width: 0;
}

.wp-wedding-directory__card-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.wp-wedding-directory__card-location { font-size: 13.5px; color: var(--wpwd-muted); }

.wp-wedding-directory__card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.wp-wedding-directory__tag {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 4px 9px;
	border-radius: var(--wpwd-radius-pill);
	border: 1px solid var(--wpwd-border);
	color: var(--wpwd-muted);
}
.wp-wedding-directory__tag--rating { background: var(--wpwd-chip-bg); color: var(--wpwd-text); }

.wp-wedding-directory__card-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 6px; font-size: 13.5px; color: var(--wpwd-muted); }
.wp-wedding-directory__card-stats strong { color: var(--wpwd-text); }
.wp-wedding-directory__stat-divider { color: var(--wpwd-border); }

.wp-wedding-directory__card-amenity-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.wp-wedding-directory__amenity-badge {
	font-size: 11px;
	color: var(--wpwd-muted);
	background: var(--wpwd-sidebar);
	border-radius: var(--wpwd-radius-sm);
	padding: 3px 8px;
}

.wp-wedding-directory__card-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 12px; }

/* -------------------------------------------------------------- */
/* Buttons                                                          */
/* -------------------------------------------------------------- */
/* !important is used deliberately in this block only. Host themes
   frequently ship global `button` / `a.button` resets (flat, square,
   no border) that are more specific or load after this stylesheet;
   without guarding the core shape/color declarations here, "Read
   More" and "Contact Us" can silently lose their pill shape and color
   depending on the theme, even though every other rule in this file
   is safely namespaced under .wp-wedding-directory. */

.wp-wedding-directory .wp-wedding-directory__btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 11px 22px !important;
	border-radius: var(--wpwd-radius-pill) !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	letter-spacing: 0.05em !important;
	border: 2px solid var(--wpwd-accent) !important;
	box-shadow: none !important;
	text-decoration: none !important;
	transition: background var(--wpwd-transition), color var(--wpwd-transition), opacity var(--wpwd-transition);
	white-space: nowrap;
}
.wp-wedding-directory .wp-wedding-directory__btn--outline {
	background: transparent !important;
	color: var(--wpwd-accent) !important;
}
.wp-wedding-directory .wp-wedding-directory__btn--outline:hover { background: var(--wpwd-chip-bg) !important; }
.wp-wedding-directory .wp-wedding-directory__btn--primary {
	background: var(--wpwd-accent) !important;
	color: #fff !important;
	flex: 1;
}
.wp-wedding-directory .wp-wedding-directory__btn--primary:hover { background: var(--wpwd-accent-hover) !important; }
.wp-wedding-directory .wp-wedding-directory__btn--block { width: 100%; }
.wp-wedding-directory .wp-wedding-directory__btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* -------------------------------------------------------------- */
/* Empty state                                                      */
/* -------------------------------------------------------------- */

.wp-wedding-directory__empty-state {
	text-align: center;
	padding: 64px 24px;
	border: 1px dashed var(--wpwd-border);
	border-radius: var(--wpwd-radius);
}
.wp-wedding-directory__empty-state h3 { font-size: 18px; margin-bottom: 8px; }
.wp-wedding-directory__empty-state p { color: var(--wpwd-muted); margin-bottom: 20px; }

/* -------------------------------------------------------------- */
/* Skeleton loading cards (spec #52)                                */
/* -------------------------------------------------------------- */

.wp-wedding-directory__skeleton-card {
	display: flex;
	border: 1px solid var(--wpwd-border);
	border-radius: var(--wpwd-radius);
	overflow: hidden;
	height: 220px;
}
.wp-wedding-directory__skeleton-img { width: 340px; flex-shrink: 0; background: linear-gradient(90deg, #f2f0eb 25%, #ece9e2 37%, #f2f0eb 63%); background-size: 400% 100%; animation: wpwd-shimmer 1.4s ease infinite; }
.wp-wedding-directory__skeleton-body { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.wp-wedding-directory__skeleton-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #f2f0eb 25%, #ece9e2 37%, #f2f0eb 63%); background-size: 400% 100%; animation: wpwd-shimmer 1.4s ease infinite; }
.wp-wedding-directory__skeleton-line--title { width: 60%; height: 18px; }
.wp-wedding-directory__skeleton-line--short { width: 40%; }
@keyframes wpwd-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* -------------------------------------------------------------- */
/* Pagination                                                        */
/* -------------------------------------------------------------- */

.wp-wedding-directory__pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.wp-wedding-directory__page-btn {
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: var(--wpwd-radius-sm);
	border: 1px solid var(--wpwd-border);
	font-size: 13px;
}
.wp-wedding-directory__page-btn.is-active { background: var(--wpwd-primary); color: #fff; border-color: var(--wpwd-primary); }
.wp-wedding-directory__page-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.wp-wedding-directory__page-ellipsis { color: var(--wpwd-muted); padding: 0 4px; }

/* -------------------------------------------------------------- */
/* Modals                                                            */
/* -------------------------------------------------------------- */

.wp-wedding-directory__modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 17, 17, 0.55);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.wp-wedding-directory__modal-overlay[hidden] { display: none; }

.wp-wedding-directory__modal {
	background: #fff;
	border-radius: var(--wpwd-radius);
	max-width: 900px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: var(--wpwd-shadow-lg);
}
.wp-wedding-directory__modal[hidden] { display: none; }
.wp-wedding-directory__modal--enquiry { max-width: 520px; }
.wp-wedding-directory__modal--lightbox { max-width: 1100px; background: #111; display: flex; flex-direction: column; align-items: center; padding: 20px; }

.wp-wedding-directory__modal-close {
	position: sticky;
	top: 16px;
	float: right;
	margin: 16px 16px 0 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--wpwd-sidebar);
	font-size: 20px;
	line-height: 1;
	z-index: 2;
}

.wp-wedding-directory__modal-header { padding: 32px 32px 0; clear: both; }
.wp-wedding-directory__modal-title { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.wp-wedding-directory__modal-subtitle { color: var(--wpwd-muted); font-size: 14px; }
.wp-wedding-directory__dot { margin: 0 6px; }

.wp-wedding-directory__modal-gallery { padding: 20px 32px 0; }
.wp-wedding-directory__modal-gallery-main { position: relative; border-radius: var(--wpwd-radius); overflow: hidden; height: 420px; background: #f2f0eb; }
.wp-wedding-directory .wp-wedding-directory__modal-gallery-main img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center !important;
}
.wp-wedding-directory__modal-gallery-main--placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--wpwd-muted); }
.wp-wedding-directory .wp-wedding-directory__modal-gallery-main--placeholder img {
	width: 80px !important;
	height: auto !important;
	max-width: 80px !important;
	object-fit: contain !important;
}
.wp-wedding-directory__modal-gallery-prev,
.wp-wedding-directory__modal-gallery-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255,255,255,0.9);
	font-size: 20px;
}
.wp-wedding-directory__modal-gallery-prev { left: 14px; }
.wp-wedding-directory__modal-gallery-next { right: 14px; }
.wp-wedding-directory__modal-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.wp-wedding-directory__modal-gallery-thumb { flex-shrink: 0; width: 68px; height: 52px; border-radius: var(--wpwd-radius-sm); overflow: hidden; border: 2px solid transparent; opacity: 0.7; background: #f2f0eb; }
.wp-wedding-directory__modal-gallery-thumb.is-active { border-color: var(--wpwd-primary); opacity: 1; }
.wp-wedding-directory .wp-wedding-directory__modal-gallery-thumb img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center !important;
}

.wp-wedding-directory__modal-section { padding: 24px 32px 0; }
.wp-wedding-directory__modal-section h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.wp-wedding-directory__modal-section:last-of-type { padding-bottom: 8px; }

.wp-wedding-directory__overview-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.wp-wedding-directory__overview-list li { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; border-bottom: 1px solid var(--wpwd-border); padding-bottom: 8px; }
.wp-wedding-directory__overview-list span { color: var(--wpwd-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; }

.wp-wedding-directory__description { font-size: 14.5px; line-height: 1.7; color: #333; margin-top: 16px; }

.wp-wedding-directory__amenities-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.wp-wedding-directory__amenities-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.wp-wedding-directory__amenity-icon { width: 8px; height: 8px; border-radius: 50%; background: var(--wpwd-primary); flex-shrink: 0; }

.wp-wedding-directory__modal-cta {
	margin: 28px 32px 32px;
	padding: 24px;
	border-radius: var(--wpwd-radius);
	background: var(--wpwd-sidebar);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.wp-wedding-directory__modal-cta p { font-size: 15px; font-weight: 600; }
.wp-wedding-directory__modal-loading { padding: 80px 32px; text-align: center; color: var(--wpwd-muted); }

/* Enquiry form */
.wp-wedding-directory__enquiry-form { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.wp-wedding-directory__form-row { display: flex; flex-direction: column; gap: 6px; }
.wp-wedding-directory__form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wp-wedding-directory__form-row--split > div { display: flex; flex-direction: column; gap: 6px; }
.wp-wedding-directory__form-row label { font-size: 12.5px; font-weight: 600; color: var(--wpwd-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.wp-wedding-directory__form-row input,
.wp-wedding-directory__form-row textarea {
	border: 1px solid var(--wpwd-border);
	border-radius: var(--wpwd-radius-sm);
	padding: 11px 14px;
	font-size: 14px;
	width: 100%;
	background: #fff;
}
.wp-wedding-directory__form-row input:focus,
.wp-wedding-directory__form-row textarea:focus { outline: none; border-color: var(--wpwd-primary); }
.wp-wedding-directory__form-row input[readonly] { background: var(--wpwd-sidebar); color: var(--wpwd-muted); }
.wp-wedding-directory__field-error { font-size: 12px; color: #b3261e; min-height: 14px; }
.wp-wedding-directory__form-status { font-size: 13.5px; padding: 10px 14px; border-radius: var(--wpwd-radius-sm); display: none; }
.wp-wedding-directory__form-status.is-success { display: block; background: #e8f3e8; color: #1e6b2f; }
.wp-wedding-directory__form-status.is-error { display: block; background: #fbeaea; color: #b3261e; }

/* Lightbox */
.wp-wedding-directory__lightbox-stage { width: 100%; max-height: 70vh; display: flex; align-items: center; justify-content: center; }
.wp-wedding-directory__lightbox-stage img { max-width: 100%; max-height: 70vh; object-fit: contain; border-radius: var(--wpwd-radius-sm); }
.wp-wedding-directory__lightbox-prev,
.wp-wedding-directory__lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255,255,255,0.15);
	color: #fff;
	font-size: 22px;
}
.wp-wedding-directory__lightbox-prev { left: 24px; }
.wp-wedding-directory__lightbox-next { right: 24px; }
.wp-wedding-directory__lightbox-thumbs { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; max-width: 100%; }
.wp-wedding-directory__lightbox-thumbs img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; opacity: 0.6; cursor: pointer; }
.wp-wedding-directory__lightbox-thumbs img.is-active { opacity: 1; outline: 2px solid #fff; }

/* -------------------------------------------------------------- */
/* Responsive                                                        */
/* -------------------------------------------------------------- */

@media (max-width: 1024px) {
	.wp-wedding-directory__layout { grid-template-columns: 240px 1fr; gap: 20px; }
	.wp-wedding-directory__card-gallery { width: 260px; }
}

@media (max-width: 860px) {
	.wp-wedding-directory__mobile-filter-toggle {
		display: block;
		width: calc(100% - 32px);
		margin: 16px auto 0;
		padding: 14px;
		border: 1px solid var(--wpwd-border);
		border-radius: var(--wpwd-radius);
		font-weight: 700;
		font-size: 12.5px;
		letter-spacing: 0.08em;
		background: var(--wpwd-sidebar);
	}

	.wp-wedding-directory__layout { grid-template-columns: 1fr; padding-top: 12px; }

	.wp-wedding-directory__sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: 86%;
		max-width: 340px;
		z-index: 100001;
		border-radius: 0;
		transform: translateX(-100%);
		transition: transform 240ms ease;
		overflow-y: auto;
	}
	.wp-wedding-directory__sidebar.is-open { transform: translateX(0); }
	.wp-wedding-directory__sidebar-close { display: block; }

	.wp-wedding-directory__sidebar-overlay {
		display: none;
		position: fixed;
		inset: 0;
		background: rgba(17,17,17,0.5);
		z-index: 100000;
	}
	.wp-wedding-directory__sidebar-overlay.is-open { display: block; }

	.wp-wedding-directory__card { flex-direction: column; }
	.wp-wedding-directory__card-gallery { width: 100%; height: 220px; }
	.wp-wedding-directory__grid--grid { grid-template-columns: 1fr; }

	/* No hover on touch devices -- keep the eye icon visible rather than
	   requiring a hover state that will never fire. */
	.wp-wedding-directory .wp-wedding-directory__gallery-eye-btn {
		opacity: 1;
		transform: translateY(0);
	}

	.wp-wedding-directory__toolbar { flex-direction: column; align-items: flex-start; }
	.wp-wedding-directory__overview-list,
	.wp-wedding-directory__amenities-list { grid-template-columns: 1fr; }
	.wp-wedding-directory__form-row--split { grid-template-columns: 1fr; }
	.wp-wedding-directory__modal-header,
	.wp-wedding-directory__modal-gallery,
	.wp-wedding-directory__modal-section,
	.wp-wedding-directory__enquiry-form { padding-left: 20px; padding-right: 20px; }
	.wp-wedding-directory__modal-cta { margin-left: 20px; margin-right: 20px; flex-direction: column; align-items: stretch; text-align: center; }
}

@media (max-width: 480px) {
	.wp-wedding-directory__card-actions { flex-direction: column; }
	.wp-wedding-directory__btn--outline { width: 100%; }
}
