/*
Theme Name:   myROVs Child (Hello Elementor)
Theme URI:    https://www.myrovs.com/
Description:  Child theme for myROVs.com. Registers ROV Listings and Drone Products, their filters (taxonomies), spec fields (ACF local JSON) and the shortcodes used in the Elementor templates.
Author:       Nautrex Inc.
Template:     hello-elementor
Version: 2.10.28
Text Domain:  myrovs
*/

/* ------------------------------------------------------------------
   Colours and fonts come from Elementor > Site Settings (Global Colors
   and Global Fonts). The fallbacks below apply only until those exist.
   Primary   = deep navy (headings, buttons)
   Secondary = steel grey (quiet text)
   Text      = body text
   Accent    = action orange #C2410C (buttons and calls to action only)
------------------------------------------------------------------- */
:root {
	--mr-primary: var(--e-global-color-primary, #0B2540);
	--mr-secondary: var(--e-global-color-secondary, #4F5F70);
	--mr-text: var(--e-global-color-text, #1F2933);
	--mr-accent: var(--e-global-color-accent, #C2410C);
	--mr-line: #D9E0E7;
	--mr-soft: #F4F6F8;
	--mr-good: #1E7F4F;
	--mr-warn: #9A6200;
	--mr-sold: #5B6470;
	--mr-radius: 6px;
}

/* ---------- Status badge [myrovs_status] ---------- */
.mr-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.4;
	color: #fff;
	background: var(--mr-good);
}
.mr-badge--under-offer { background: var(--mr-warn); }
.mr-badge--sold { background: var(--mr-sold); }

/* ---------- Price [myrovs_price] ---------- */
.mr-price { font-weight: 700; color: var(--mr-primary); }
.mr-price__label { display: block; font-size: .75em; font-weight: 500; color: var(--mr-secondary); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Card meta line [myrovs_card_meta] ---------- */
.mr-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--mr-secondary); }
.mr-meta li { margin: 0; }
.mr-meta strong { color: var(--mr-text); font-weight: 600; }

/* ---------- Key specs strip [myrovs_key_specs] ---------- */
.mr-keyspecs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--mr-line); border: 1px solid var(--mr-line); border-radius: var(--mr-radius); overflow: hidden; margin: 0; }
.mr-keyspecs > div { background: #fff; padding: 14px 16px; }
.mr-keyspecs dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--mr-secondary); margin: 0 0 4px; }
.mr-keyspecs dd { margin: 0; font-size: 18px; font-weight: 600; color: var(--mr-primary); }

/* ---------- Spec table [myrovs_specs] ---------- */
.mr-specs { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 24px; }
.mr-specs caption { text-align: left; font-weight: 700; font-size: 17px; color: var(--mr-primary); padding: 0 0 10px; }
.mr-specs th, .mr-specs td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--mr-line); }
.mr-specs th { width: 38%; font-weight: 600; color: var(--mr-secondary); background: var(--mr-soft); }
.mr-specs td { color: var(--mr-text); white-space: pre-line; }
@media (max-width: 600px) {
	.mr-specs th, .mr-specs td { display: block; width: 100%; }
	.mr-specs th { border-bottom: 0; padding-bottom: 2px; }
}

/* ---------- Gallery [myrovs_gallery] ---------- */
.mr-gallery { display: flex; flex-direction: column; gap: 10px; }
.mr-gallery__stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #1F3B5B; }
.mr-gallery__main { display: block; width: 100%; height: 100%; object-fit: cover; }
.mr-gallery__thumbs { display: grid; grid-template-columns: repeat(var(--mr-thumbs, 5), minmax(0, 1fr)); gap: 10px; }
.mr-gallery__thumb { position: relative; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #1F3B5B; cursor: pointer; }
.mr-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sold notice [myrovs_sold_notice] ---------- */
.mr-sold-notice { border-left: 4px solid var(--mr-sold); background: var(--mr-soft); padding: 14px 18px; border-radius: var(--mr-radius); color: var(--mr-text); }
.mr-sold-notice strong { color: var(--mr-primary); }

/* ---------- Dealer badge and lists ---------- */
.mr-badge--dealer { background: var(--mr-primary); }
.mr-list { margin: 0 0 16px; padding-left: 1.2em; }
.mr-list li { margin: 0 0 6px; }
