/* ==========================================================================
   Listing Renewal — matches the site's actual Elementor Default Kit palette
   (post 263), not a guessed brand.
   primary #E4A11C | secondary #FFC857 | text #262319 | accent #5F3C2F
   soft bg #FFF0D6 | border/tan #CAB78F | primary hover #BD8837
   Headings: Montserrat 700 | Body: DM Sans 400 (both already loaded site-wide)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Add Listing page banner
   -------------------------------------------------------------------------- */
.listing-renewal-banner {
	margin: 0 0 20px;
	padding: 12px 16px;
	background: #FFF0D6;
	border-left: 4px solid #E4A11C;
	border-radius: 4px;
	font-size: 0.9rem;
	color: #262319;
}
.listing-renewal-banner-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
}
.listing-renewal-banner-line + .listing-renewal-banner-line {
	margin-top: 8px;
}
.listing-renewal-banner .dashicons {
	color: #BD8837;
}
.listing-renewal-banner a {
	color: #BD8837;
	font-weight: 600;
	text-decoration: none;
}
.listing-renewal-banner a:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Picker page
   -------------------------------------------------------------------------- */
.listing-renewal-wrap {
	font-family: inherit;
	color: #262319;
	max-width: 640px;
	margin: 48px auto 0;
}
.listing-renewal-intro {
	color: #5F3C2F;
	margin: 0 0 20px;
}
.listing-renewal-empty {
	text-align: center;
	padding: 40px 20px;
	background: #FFF0D6;
	border-radius: 6px;
}

.listing-renewal-picker {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 10px;
}

/* --------------------------------------------------------------------------
   Combobox (custom dropdown — see assets/js/combobox.js)
   -------------------------------------------------------------------------- */
/* !important on position here for the same reason as .listing-renewal-search
   above — theme CSS was overriding position:relative on the wrapper, which
   sent the absolutely-positioned results list looking for the next
   positioned ancestor instead (landing it way down the page).
   No flex-basis here deliberately: this class is reused inside both a row
   flex container (.listing-renewal-picker) and a column one
   (.listing-renewal-field-group) — flex-basis means WIDTH in the former but
   HEIGHT in the latter, so a shared `flex: 1 1 280px` here once forced this
   box to 280px tall on the column layout. The row-specific sizing is scoped
   below instead. */
.listing-renewal-combobox {
	position: relative !important;
	width: 100%;
	min-width: 0;
}
.listing-renewal-picker > .listing-renewal-combobox {
	flex: 1 1 280px;
}
.listing-renewal-combobox-results {
	display: none;
	position: absolute !important;
	top: calc(100% + 4px) !important;
	left: 0 !important;
	right: 0 !important;
	z-index: 50;
	margin: 0;
	padding: 4px;
	list-style: none;
	max-height: 260px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #CAB78F;
	border-radius: 4px;
	box-shadow: 0 8px 20px rgba(38, 35, 25, 0.15);
}
.listing-renewal-combobox-results.is-open {
	display: block;
}
.listing-renewal-combobox-option {
	padding: 10px 12px;
	border-radius: 3px;
	font-size: 0.92rem;
	color: #262319;
	cursor: pointer;
}
.listing-renewal-combobox-option.is-active,
.listing-renewal-combobox-option:hover {
	background: #FFF0D6;
}

.listing-renewal-request-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.listing-renewal-field-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.listing-renewal-field-group label {
	font-weight: 600;
	font-size: 0.88rem;
	color: #262319;
}
.listing-renewal-note {
	box-sizing: border-box;
	padding: 12px 16px;
	border: 1px solid #CAB78F;
	border-radius: 4px;
	font-family: inherit;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #262319;
	background: #fff;
	resize: vertical;
}
.listing-renewal-note:focus {
	outline: none;
	border-color: #E4A11C;
	box-shadow: 0 0 0 3px rgba(228, 161, 28, 0.2);
}
.listing-renewal-field-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.listing-renewal-notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	background: #FFF0D6;
	border-left: 4px solid #E4A11C;
	border-radius: 4px;
	color: #262319;
}
/* !important here because the theme's global form-control CSS otherwise
   inflates plain text inputs well past a normal single line (observed
   ~200-250px tall in testing) with a selector specific enough to beat a
   plain class rule — this forces it back to a normal single-line input. */
.listing-renewal-search {
	flex: 1 1 280px;
	min-width: 0;
	box-sizing: border-box !important;
	height: 48px !important;
	min-height: 0 !important;
	max-height: 48px !important;
	padding: 0 16px !important;
	border: 1px solid #CAB78F;
	border-radius: 4px;
	font-family: inherit;
	font-size: 0.95rem;
	line-height: 46px !important;
	color: #262319;
	background: #fff;
}
.listing-renewal-search:focus {
	outline: none;
	border-color: #E4A11C;
	box-shadow: 0 0 0 3px rgba(228, 161, 28, 0.2);
}
/* Inside a combobox wrapper the wrapper itself is the flex item. */
.listing-renewal-combobox .listing-renewal-search {
	flex: none;
	width: 100%;
}

.listing-renewal-hint {
	margin: 8px 0 0;
	font-size: 0.85rem;
	color: #5F3C2F;
	min-height: 1.2em;
}

.listing-renewal-btn {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	padding: 12px 22px;
	border: none;
	border-radius: 4px;
	background: #E4A11C;
	color: #fff;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease;
}
.listing-renewal-btn:hover:not(:disabled) {
	background: #BD8837;
	color: #fff;
	text-decoration: none;
}
.listing-renewal-btn:disabled,
.listing-renewal-btn--disabled {
	background: #CAB78F;
	color: #fff;
	cursor: not-allowed;
	opacity: 0.7;
}

.listing-renewal-new-listing-cta {
	margin: 24px 0 0;
	padding-top: 20px;
	border-top: 1px solid #CAB78F;
	font-size: 0.9rem;
	color: #5F3C2F;
}
.listing-renewal-new-listing-cta a {
	color: #BD8837;
	font-weight: 600;
	text-decoration: none;
}
.listing-renewal-new-listing-cta a:hover {
	text-decoration: underline;
}

.listing-renewal-login p {
	margin: 0 0 12px;
}

.listing-renewal-tour-link {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	color: #BD8837;
	font-weight: 600;
	font-size: inherit;
	font-family: inherit;
	text-decoration: none;
	cursor: pointer;
}
.listing-renewal-tour-link:hover {
	text-decoration: underline;
}

/* Brand the driver.js popover to match the site's gold/cream palette. */
.driver-popover.driverjs-theme {
	border-radius: 6px;
	max-width: 380px;
}
.driver-popover-description img {
	max-width: 100%;
	height: auto;
}
.driver-popover-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	color: #262319;
}
.driver-popover-description {
	color: #5F3C2F;
}
.driver-popover-progress-text {
	color: #5F3C2F;
}
.driver-popover-footer button {
	background: #E4A11C;
	color: #fff;
	text-shadow: none;
	border: none;
}
.driver-popover-footer button:hover {
	background: #BD8837;
	color: #fff;
}
.driver-popover-footer button:disabled,
.driver-popover-footer button:disabled:hover {
	background: #EFE4CE !important;
	color: #5F3C2F !important;
	opacity: 1;
	cursor: not-allowed;
}
.driver-popover-close-btn {
	color: #5F3C2F;
}

.listing-renewal-back {
	margin: 0 0 16px;
}
.listing-renewal-back-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #5F3C2F;
	font-weight: 600;
	font-size: 0.88rem;
	text-decoration: none;
}
.listing-renewal-back-link:hover {
	color: #BD8837;
	text-decoration: underline;
}

@media (max-width: 480px) {
	.listing-renewal-picker {
		flex-direction: column;
	}
	.listing-renewal-btn {
		justify-content: center;
	}
}
