/* ========================================================================
   Our Square Marketplace — Public Styles
   All styles namespaced under .osm-* so they don't conflict with TheGem.
   Brand variables come from the Elementor Kit (Global Colors); we set
   fallbacks here so the plugin works on any theme.
   ====================================================================== */

:root {
	--osm-primary:   #0E2230;
	--osm-primary-2: #07151E;
	--osm-gold:      #C9A961;
	--osm-gold-2:    #E0C988;
	--osm-cream:     #F5F1E8;
	--osm-slate:     #2A3744;
	--osm-mist:      #E8EAEC;
	--osm-radius:    6px;
	--osm-shadow:    0 2px 12px rgba(14, 34, 48, .06);
	--osm-shadow-lg: 0 8px 32px rgba(14, 34, 48, .12);
}

/* ---------- container / layout helpers ---------- */
.osm-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- utility classes ---------- */
.osm-eyebrow {
	font-family: Inter, -apple-system, sans-serif;
	font-size: 12px; font-weight: 500;
	text-transform: uppercase; letter-spacing: 1.6px;
	color: var(--osm-gold);
	margin-bottom: 8px;
}
.osm-section-title {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-weight: 500;
	font-size: clamp(28px, 4vw, 44px);
	letter-spacing: -0.005em;
	color: var(--osm-primary);
	margin: 0 0 12px;
}
.osm-section-sub {
	font-size: 17px; color: var(--osm-slate); margin: 0 0 32px;
	max-width: 640px;
}
.osm-empty {
	color: #7B8794; font-style: italic; padding: 24px; text-align: center;
}

/* ---------- buttons ---------- */
.osm-btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: var(--osm-radius);
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all .2s ease;
	line-height: 1;
}
.osm-btn-primary {
	background: var(--osm-gold);
	color: var(--osm-primary);
	border-color: var(--osm-gold);
}
.osm-btn-primary:hover { background: var(--osm-gold-2); border-color: var(--osm-gold-2); }
.osm-btn-secondary {
	background: transparent;
	color: var(--osm-primary);
	border-color: var(--osm-primary);
}
.osm-btn-secondary:hover { background: var(--osm-primary); color: #fff; }

/* ---------- pills ---------- */
.osm-pill {
	display: inline-block; padding: 4px 10px; border-radius: 99px;
	font-size: 12px; font-weight: 500;
	background: var(--osm-mist); color: var(--osm-slate);
}
.osm-pill-active, .osm-pill-approved, .osm-pill-available, .osm-pill-won { background: #DFF5E1; color: #1F6B3A; }
.osm-pill-pending, .osm-pill-new, .osm-pill-coming { background: #FEF1D6; color: #8A5A00; }
.osm-pill-rejected, .osm-pill-suspended, .osm-pill-lost, .osm-pill-sold { background: #FCE0E0; color: #8B1F1F; }
.osm-pill-paused, .osm-pill-hold, .osm-pill-contacted { background: #DDEAF7; color: #1F4F8B; }
.osm-pill-reveal, .osm-pill-call { background: var(--osm-gold-2); color: var(--osm-primary); }
.osm-pill-missed { background: #FCE0E0; color: #8B1F1F; }

/* ====================================================================
   PROVIDER GRID
   ==================================================================== */
.osm-provider-grid { margin: 32px 0; }
.osm-grid-filters {
	display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
	padding-bottom: 16px; border-bottom: 1px solid var(--osm-mist);
}
.osm-filter-pill {
	background: transparent;
	border: 1px solid var(--osm-mist);
	padding: 8px 16px; border-radius: 99px;
	font-size: 13px; cursor: pointer;
	color: var(--osm-slate);
	transition: all .2s ease;
}
.osm-filter-pill:hover { border-color: var(--osm-gold); color: var(--osm-primary); }
.osm-filter-pill.osm-active {
	background: var(--osm-primary); color: #fff; border-color: var(--osm-primary);
}

.osm-grid-items { display: grid; gap: 24px; }
.osm-cols-1 .osm-grid-items { grid-template-columns: 1fr; }
.osm-cols-2 .osm-grid-items { grid-template-columns: repeat(2, 1fr); }
.osm-cols-3 .osm-grid-items { grid-template-columns: repeat(3, 1fr); }
.osm-cols-4 .osm-grid-items { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.osm-cols-3 .osm-grid-items, .osm-cols-4 .osm-grid-items { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.osm-grid-items { grid-template-columns: 1fr !important; }
}

.osm-provider-card {
	background: #fff;
	border: 1px solid var(--osm-mist);
	border-radius: var(--osm-radius);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.osm-provider-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--osm-shadow-lg);
	border-color: var(--osm-gold);
}
.osm-provider-card.osm-featured {
	border-color: var(--osm-gold);
	position: relative;
}
.osm-provider-card.osm-featured::before {
	content: 'Featured';
	position: absolute; top: 12px; right: 12px;
	background: var(--osm-gold); color: var(--osm-primary);
	padding: 4px 10px; border-radius: 99px;
	font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px;
	z-index: 2;
}
.osm-card-link { text-decoration: none; color: inherit; display: block; }
.osm-card-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--osm-cream); }
.osm-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.osm-card-image-placeholder {
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--osm-primary), var(--osm-primary-2));
}
.osm-card-image-placeholder span {
	font-family: 'Cormorant Garamond', serif;
	color: var(--osm-gold); font-size: 64px; font-weight: 500;
}
.osm-card-body { padding: 20px; }
.osm-card-eyebrow {
	font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px;
	color: var(--osm-gold); margin-bottom: 6px; font-weight: 500;
}
.osm-card-title {
	font-family: 'Cormorant Garamond', serif; font-weight: 500;
	font-size: 22px; margin: 0 0 8px; color: var(--osm-primary);
	letter-spacing: -0.005em;
}
.osm-card-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.osm-stars { color: var(--osm-gold); letter-spacing: 2px; }
.osm-card-excerpt { color: var(--osm-slate); font-size: 14px; margin: 0 0 16px; }
.osm-card-cta {
	color: var(--osm-primary); font-size: 13px; font-weight: 500;
	letter-spacing: 1.2px; text-transform: uppercase;
}

/* ====================================================================
   CATEGORY TILES
   ==================================================================== */
.osm-category-tiles { display: grid; gap: 16px; margin: 32px 0; }
.osm-category-tiles.osm-cols-2 { grid-template-columns: repeat(2, 1fr); }
.osm-category-tiles.osm-cols-3 { grid-template-columns: repeat(3, 1fr); }
.osm-category-tiles.osm-cols-4 { grid-template-columns: repeat(4, 1fr); }
.osm-category-tiles.osm-cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) {
	.osm-category-tiles { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
	.osm-category-tiles { grid-template-columns: 1fr !important; }
}

.osm-cat-tile {
	display: flex; flex-direction: column; align-items: flex-start;
	padding: 24px; background: #fff;
	border: 1px solid var(--osm-mist);
	border-radius: var(--osm-radius);
	text-decoration: none; color: var(--osm-primary);
	transition: all .2s ease;
	min-height: 140px;
}
.osm-cat-tile:hover {
	border-color: var(--osm-gold); transform: translateY(-2px); box-shadow: var(--osm-shadow);
}
.osm-cat-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	background: var(--osm-cream); color: var(--osm-gold);
	border-radius: var(--osm-radius);
	font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500;
	margin-bottom: 12px;
}
.osm-cat-name {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500; font-size: 22px; margin-bottom: 4px; line-height: 1.2;
}
.osm-cat-count { font-size: 13px; color: #7B8794; }

/* ====================================================================
   "WHAT YOU'LL NEED"
   ==================================================================== */
.osm-what-youll-need { padding: 48px 0; }
.osm-need-categories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 760px) { .osm-need-categories { grid-template-columns: 1fr; } }

.osm-need-block {
	padding: 24px; background: #fff;
	border: 1px solid var(--osm-mist); border-radius: var(--osm-radius);
}
.osm-need-block-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.osm-need-block-header h3 {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500; font-size: 24px; color: var(--osm-primary); margin: 0;
}
.osm-need-all { font-size: 13px; color: var(--osm-gold); text-decoration: none; font-weight: 500; }
.osm-need-list { list-style: none; padding: 0; margin: 0; }
.osm-need-item { border-top: 1px solid var(--osm-mist); }
.osm-need-item:first-child { border-top: 0; }
.osm-need-item a {
	display: flex; align-items: center; gap: 12px; padding: 12px 0;
	text-decoration: none; color: var(--osm-primary);
}
.osm-need-thumb { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.osm-need-thumb img { width: 100%; height: 100%; object-fit: cover; }
.osm-need-name { flex: 1; font-weight: 500; }
.osm-need-rating { color: var(--osm-gold); font-size: 13px; }

/* ====================================================================
   JOURNEY CHECKLIST
   ==================================================================== */
.osm-journey { padding: 48px 0; max-width: 820px; margin: 0 auto; }
.osm-journey-list { list-style: none; padding: 0; margin: 32px 0; }
.osm-journey-stage {
	display: grid; grid-template-columns: 64px 1fr; gap: 20px;
	padding: 24px; margin-bottom: 16px;
	background: #fff; border: 1px solid var(--osm-mist);
	border-radius: var(--osm-radius);
	transition: border-color .2s ease;
}
.osm-journey-stage.osm-completed {
	border-color: var(--osm-gold); background: var(--osm-cream);
}
.osm-stage-num {
	width: 48px; height: 48px;
	display: flex; align-items: center; justify-content: center;
	font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 500;
	color: var(--osm-gold);
	background: var(--osm-primary); border-radius: 50%;
}
.osm-journey-stage.osm-completed .osm-stage-num { background: var(--osm-gold); color: var(--osm-primary); }
.osm-stage-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.osm-stage-head h3 {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500; font-size: 24px; margin: 0; color: var(--osm-primary);
}
.osm-stage-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--osm-slate); cursor: pointer; }
.osm-stage-check input { accent-color: var(--osm-gold); transform: scale(1.2); }
.osm-stage-duration {
	display: inline-block; padding: 2px 10px; border-radius: 99px;
	background: var(--osm-cream); color: var(--osm-primary);
	font-size: 12px; font-weight: 500; margin-top: 8px;
}
.osm-stage-cats { font-size: 14px; margin-top: 12px; }
.osm-stage-cats a { color: var(--osm-gold); text-decoration: none; }
.osm-stage-cats a:hover { text-decoration: underline; }

.osm-journey-save {
	margin-top: 32px; padding: 32px;
	background: var(--osm-primary); color: #fff;
	border-radius: var(--osm-radius);
}
.osm-journey-save h3 {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500; font-size: 26px; margin: 0 0 8px; color: #fff;
}
.osm-journey-save p { color: rgba(255,255,255,.7); margin: 0 0 16px; }
.osm-journey-save form { display: flex; gap: 8px; flex-wrap: wrap; }
.osm-journey-save input {
	flex: 1; min-width: 200px;
	padding: 12px 16px;
	background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
	color: #fff; border-radius: var(--osm-radius);
	font-size: 14px;
}
.osm-journey-save input::placeholder { color: rgba(255,255,255,.5); }
.osm-journey-save button {
	padding: 12px 24px;
	background: var(--osm-gold); color: var(--osm-primary);
	border: 0; border-radius: var(--osm-radius);
	font-size: 14px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase;
	cursor: pointer; transition: background .2s ease;
}
.osm-journey-save button:hover { background: var(--osm-gold-2); }
.osm-form-message { margin-top: 12px; font-size: 14px; min-height: 1.4em; color: var(--osm-gold-2); }

/* ====================================================================
   FORMS (application, enquiry, rating)
   ==================================================================== */
.osm-form { font-family: Inter, sans-serif; max-width: 720px; }
.osm-form-enquiry.osm-compact { max-width: 100%; }
.osm-form-error {
	padding: 12px 16px; background: #FCE0E0; color: #8B1F1F;
	border-radius: var(--osm-radius); margin-bottom: 16px;
}
.osm-form-thanks {
	padding: 32px; background: var(--osm-cream); border: 1px solid var(--osm-gold);
	border-radius: var(--osm-radius);
}
.osm-form-thanks h3 {
	font-family: 'Cormorant Garamond', serif; font-weight: 500;
	font-size: 28px; color: var(--osm-primary); margin: 0 0 8px;
}

.osm-fieldset {
	border: 0; padding: 0; margin: 0 0 32px;
}
.osm-fieldset legend {
	font-family: 'Cormorant Garamond', serif; font-weight: 500;
	font-size: 22px; color: var(--osm-primary);
	padding: 0 0 12px; border-bottom: 1px solid var(--osm-mist);
	margin-bottom: 16px; width: 100%;
}
.osm-field { margin-bottom: 16px; }
.osm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .osm-field-row { grid-template-columns: 1fr; } }
.osm-field label {
	display: block; font-size: 13px; font-weight: 500;
	margin-bottom: 6px; color: var(--osm-primary);
	letter-spacing: 0.4px;
}
.req { color: #8B1F1F; }
.osm-field input[type="text"],
.osm-field input[type="email"],
.osm-field input[type="tel"],
.osm-field input[type="url"],
.osm-field input[type="number"],
.osm-field textarea,
.osm-field select,
.osm-form input[type="text"],
.osm-form input[type="email"],
.osm-form input[type="tel"],
.osm-form input[type="url"],
.osm-form textarea {
	width: 100%; padding: 12px 14px;
	font-family: Inter, sans-serif; font-size: 15px;
	border: 1px solid var(--osm-mist);
	border-radius: var(--osm-radius);
	background: #fff; color: var(--osm-slate);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.osm-field input:focus, .osm-field textarea:focus, .osm-field select:focus {
	outline: 0; border-color: var(--osm-gold);
	box-shadow: 0 0 0 3px rgba(201, 169, 97, .15);
}
.osm-checkbox-grid {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px;
}
@media (max-width: 560px) { .osm-checkbox-grid { grid-template-columns: 1fr; } }
.osm-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.osm-check input { accent-color: var(--osm-gold); }
.osm-honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.osm-disclaimer { display: block; margin-top: 12px; color: #7B8794; font-size: 12px; }

.osm-rating-stars { margin-bottom: 16px; }
.osm-stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.osm-star input { display: none; }
.osm-star span {
	font-size: 32px; color: var(--osm-mist); cursor: pointer;
	transition: color .15s ease;
}
.osm-star input:checked ~ span,
.osm-stars-input:hover .osm-star:hover ~ .osm-star span,
.osm-stars-input:hover .osm-star:hover span { color: var(--osm-gold); }
.osm-star input:checked + span { color: var(--osm-gold); }
.osm-stars-input .osm-star:hover ~ .osm-star span { color: var(--osm-mist); }

/* ====================================================================
   SINGLE PROVIDER PAGE
   ==================================================================== */
.osm-single-hero {
	background: var(--osm-primary); color: #fff;
	padding: 48px 0;
}
.osm-single-hero h1 {
	font-family: 'Cormorant Garamond', serif; font-weight: 500;
	font-size: clamp(32px, 5vw, 56px);
	color: #fff; margin: 0 0 8px; letter-spacing: -0.005em;
}
.osm-single-hero .osm-eyebrow { color: var(--osm-gold); }
.osm-single-hero .osm-locale { color: rgba(255,255,255,.7); margin: 0 0 8px; }
.osm-rating-summary { display: flex; align-items: center; gap: 8px; color: #fff; margin-top: 12px; }
.osm-rating-summary strong { font-size: 18px; }
.osm-rating-summary span { color: rgba(255,255,255,.7); }
.osm-lot-no { color: var(--osm-gold); font-size: .7em; }

.osm-single-body {
	display: grid; grid-template-columns: 1fr 360px;
	gap: 48px; padding: 48px 24px;
}
@media (max-width: 900px) { .osm-single-body { grid-template-columns: 1fr; } }

.osm-single-image { margin-bottom: 32px; border-radius: var(--osm-radius); overflow: hidden; }
.osm-single-image img { width: 100%; height: auto; display: block; }
.osm-single-content { font-size: 17px; line-height: 1.7; color: var(--osm-slate); }
.osm-single-content h2, .osm-single-content h3 { color: var(--osm-primary); font-family: 'Cormorant Garamond', serif; font-weight: 500; }
.osm-single-block { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--osm-mist); }
.osm-single-block h2 {
	font-family: 'Cormorant Garamond', serif; font-weight: 500;
	color: var(--osm-primary); font-size: 32px; margin: 0 0 16px; letter-spacing: -0.005em;
}

.osm-spec-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px; margin-top: 32px;
}
.osm-spec-grid > div {
	padding: 16px; background: var(--osm-cream); border-radius: var(--osm-radius);
}
.osm-spec-grid dt { font-size: 12px; color: var(--osm-gold); text-transform: uppercase; letter-spacing: 1.4px; font-weight: 500; }
.osm-spec-grid dd { margin: 4px 0 0; font-weight: 500; color: var(--osm-primary); font-size: 16px; }

.osm-reviews .osm-review {
	padding: 16px 0; border-bottom: 1px solid var(--osm-mist);
}
.osm-review header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.osm-verified {
	background: #DFF5E1; color: #1F6B3A;
	padding: 2px 8px; border-radius: 99px;
	font-size: 11px; font-weight: 500;
}

.osm-single-aside { position: sticky; top: 24px; align-self: start; }
.osm-contact-card, .osm-aside-block {
	padding: 24px; background: #fff;
	border: 1px solid var(--osm-mist); border-radius: var(--osm-radius);
	margin-bottom: 16px;
}
.osm-contact-card h2 {
	font-family: 'Cormorant Garamond', serif; font-weight: 500;
	font-size: 26px; color: var(--osm-primary); margin: 0 0 16px;
}
.osm-contact-card h3 {
	font-family: 'Cormorant Garamond', serif; font-weight: 500;
	font-size: 20px; color: var(--osm-primary); margin: 24px 0 12px;
}
.osm-phone-reveal {
	display: flex; align-items: center; gap: 8px;
	width: 100%; padding: 14px 20px;
	background: var(--osm-gold); color: var(--osm-primary);
	border: 0; border-radius: var(--osm-radius);
	font-family: Inter, sans-serif; font-size: 15px; font-weight: 600;
	cursor: pointer; margin-bottom: 12px;
	transition: background .2s ease;
}
.osm-phone-reveal:hover { background: var(--osm-gold-2); }
.osm-phone-reveal .osm-icon { font-size: 18px; }
.osm-aside-block h3 {
	font-family: 'Cormorant Garamond', serif; font-weight: 500;
	font-size: 20px; color: var(--osm-primary); margin: 0 0 8px;
}
.osm-land-stats { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; color: #fff; }
.osm-land-stats strong { color: var(--osm-gold); font-size: 24px; }
