/*
Theme Name: revolv®
Theme URI: https://revolv.me
Author: revolv® Real Estate
Author URI: https://revolv.me
Description: Custom real estate theme for revolv.me — replicates revolvre.com look.
Version: 2.0.9
License: Proprietary
Text Domain: revolv®
*/

/* Reset / base */
* { box-sizing: border-box; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #1f2937;
	background: #fff;
}
a { color: #e87722; text-decoration: none; }
a:hover { color: #d16816; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.revolv-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* === TOP UTILITY BAR === */
.revolv-utility-bar {
	background: #fff;
	padding: 8px 0;
	font-size: 14px;
	color: #4b5563;
}
.revolv-utility-bar .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.revolv-utility-bar a { color: #4b5563; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.revolv-utility-bar a:hover { color: #e87722; }
.revolv-utility-bar .social { color: #9ca3af; font-size: 16px; }
.revolv-utility-bar .social:hover { color: #e87722; }

/* === MAIN HEADER === */
.revolv-header {
	background: #fff;
	padding: 14px 0;
	border-bottom: 1px solid #f3f4f6;
	position: sticky;
	top: 0;
	z-index: 100;
}
.revolv-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.revolv-logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 1; }
.revolv-logo .revolv-logo-img { height: 80px; width: auto; display: block; }
.revolv-logo small { color: #4b5563; font-size: 14px; font-weight: 700; letter-spacing: 2px; margin-left: 6px; vertical-align: middle; }
@media (max-width: 640px) { .revolv-logo .revolv-logo-img { height: 64px; } }
.revolv-nav { display: flex; gap: 36px; align-items: center; }
.revolv-nav > li { list-style: none; position: relative; }
.revolv-nav a { color: #4b5563; font-weight: 600; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; padding: 8px 0; }
.revolv-nav a:hover { color: #e87722; }
.revolv-nav .has-dropdown::after { content: " ▾"; color: #e87722; font-size: 12px; }
.revolv-nav .dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: -10px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	border-radius: 8px;
	padding: 8px 0;
	min-width: 200px;
	margin-top: 4px;
}
.revolv-nav li:hover .dropdown { display: block; }
.revolv-nav .dropdown li { list-style: none; }
.revolv-nav .dropdown a { display: block; padding: 10px 20px; font-size: 13px; letter-spacing: 0.5px; }
.revolv-nav .dropdown a:hover { background: #fef3c7; }

/* === HERO === */
.revolv-hero {
	position: relative;
	background: linear-gradient(rgba(31,41,55,0.5), rgba(31,41,55,0.5)), url('https://images.unsplash.com/photo-1605276374104-dee2a0ed3cd6?w=1600&q=80') center/cover;
	color: #fff;
	padding: 100px 0 140px;
	text-align: center;
}
.revolv-hero h1 { font-size: 64px; font-weight: 700; margin: 0 0 8px; letter-spacing: -2px; }
.revolv-hero h1 .accent { color: #e87722; }
.revolv-hero .tag { font-size: 28px; font-weight: 400; margin-bottom: 40px; }

/* Search bar in hero */
.revolv-hero-search { max-width: 900px; margin: 0 auto; }
.revolv-hero-tabs { display: inline-flex; background: #fff; border-radius: 999px; padding: 6px; margin-bottom: 16px; }
.revolv-hero-tabs button { background: transparent; border: none; padding: 10px 24px; font-weight: 700; color: #4b5563; border-radius: 999px; cursor: pointer; font-size: 14px; letter-spacing: 1px; }
.revolv-hero-tabs button.active { background: #1f2937; color: #fff; }
.revolv-hero-form { display: flex; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.revolv-hero-form input { flex: 1; padding: 22px 24px; border: none; outline: none; font-size: 17px; color: #4b5563; }
.revolv-hero-form input::placeholder { color: #9ca3af; }
.revolv-hero-form button { background: #1f2937; color: #fff; border: none; padding: 0 50px; font-weight: 700; letter-spacing: 1px; cursor: pointer; font-size: 16px; }
.revolv-hero-form button:hover { background: #e87722; }
.revolv-hero-more { display: block; margin-top: 18px; color: #fff; font-size: 13px; letter-spacing: 2px; opacity: 0.85; }
.revolv-hero-more:hover { color: #e87722; opacity: 1; }

/* === SECTION HEADERS === */
.revolv-section { padding: 80px 0; }
.revolv-section.gray { background: #f9fafb; }
.revolv-section h2 { font-size: 38px; color: #4b5563; text-align: center; margin: 0 0 8px; font-weight: 700; }
.revolv-section .subtitle { text-align: center; color: #9ca3af; font-size: 16px; margin-bottom: 50px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* === LISTING GRID === */
.revolv-listing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}
.revolv-listing {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
	transition: all 0.2s;
	display: flex;
	flex-direction: column;
}
.revolv-listing:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.12); }
.revolv-listing-img { height: 220px; background: #e5e7eb center/cover; position: relative; }
.revolv-listing-badge { position: absolute; top: 12px; left: 12px; background: #e87722; color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.revolv-listing-info { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.revolv-listing-price { color: #e87722; font-size: 24px; font-weight: 700; }
.revolv-listing-addr { color: #4b5563; font-size: 16px; font-weight: 600; margin: 4px 0 2px; }
.revolv-listing-loc { color: #9ca3af; font-size: 13px; margin-bottom: 12px; }
.revolv-listing-specs { display: flex; gap: 14px; color: #6b7280; font-size: 13px; margin-top: auto; padding-top: 12px; border-top: 1px solid #f3f4f6; }
.revolv-listing-specs strong { color: #4b5563; }

/* CTA strips */
.revolv-cta-strip {
	background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
	color: #fff;
	padding: 60px 0;
	text-align: center;
}
.revolv-cta-strip h3 { font-size: 32px; margin: 0 0 12px; }
.revolv-cta-strip p { color: #d1d5db; font-size: 17px; margin-bottom: 24px; }
.revolv-btn-primary {
	display: inline-block;
	background: #e87722;
	color: #fff !important;
	padding: 14px 32px;
	border-radius: 8px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-size: 14px;
	transition: all 0.2s;
}
.revolv-btn-primary:hover { background: #d16816; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(232,119,34,0.4); }
.revolv-btn-outline {
	display: inline-block;
	background: transparent;
	color: #fff !important;
	padding: 14px 32px;
	border-radius: 8px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-size: 14px;
	border: 2px solid #fff;
}
.revolv-btn-outline:hover { background: #fff; color: #4b5563 !important; }

/* Page banner — editorial DNA (dark gradient + orange accent) */
.revolv-page-banner {
	position: relative;
	background:
		radial-gradient(ellipse at 85% 15%, rgba(232, 124, 42, 0.26) 0%, rgba(232, 124, 42, 0) 55%),
		radial-gradient(ellipse at 15% 85%, rgba(232, 124, 42, 0.12) 0%, rgba(232, 124, 42, 0) 50%),
		linear-gradient(135deg, #0f1419 0%, #1a1f2e 60%, #23293a 100%);
	color: #fff;
	padding: 72px 0 56px;
	border-bottom: 3px solid #e87c2a;
	overflow: hidden;
}
.revolv-page-banner::before {
	content: '';
	position: absolute;
	top: 0; left: 0;
	width: 120px;
	height: 3px;
	background: linear-gradient(90deg, #e87c2a 0%, #ff9d4d 100%);
}
.revolv-page-banner h1 {
	font-family: "Oswald", "Arial Narrow", sans-serif;
	margin: 0;
	font-size: clamp(2rem, 4.5vw, 3.4rem);
	font-weight: 700;
	letter-spacing: -0.005em;
	text-transform: uppercase;
	line-height: 1.05;
}
.revolv-page-banner p {
	color: #e2e8f0;
	margin-top: 12px;
	font-size: 1.05rem;
	font-weight: 600;
	max-width: 680px;
}

/* Agent card grid */
.revolv-agent-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}
.revolv-agent-tile {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
	transition: all 0.2s;
}
.revolv-agent-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.12); }
.revolv-agent-tile .photo {
	height: 280px;
	background: #e5e7eb center/cover;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9ca3af;
	font-size: 60px;
	font-weight: 700;
}
.revolv-agent-tile .info { padding: 20px; text-align: center; }
.revolv-agent-tile h3 { margin: 0; color: #4b5563; font-size: 18px; }
.revolv-agent-tile .title { color: #e87722; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin: 4px 0 12px; }
.revolv-agent-tile .meta { color: #6b7280; font-size: 13px; }
.revolv-agent-tile a.view { display: block; margin-top: 14px; color: #e87722; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

/* Footer */
.revolv-footer { background: #1f2937; color: #d1d5db; padding: 60px 0 30px; margin-top: 0; }
.revolv-footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.revolv-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 16px; }
.revolv-footer ul { list-style: none; padding: 0; margin: 0; }
.revolv-footer ul li { margin-bottom: 10px; }
.revolv-footer a { color: #d1d5db; font-size: 14px; }
.revolv-footer a:hover { color: #e87722; }
.revolv-footer .brand-block { color: #9ca3af; font-size: 14px; line-height: 1.6; }
.revolv-footer .brand-block .logo { font-family: Georgia, serif; font-size: 32px; color: #e87722; font-weight: 700; line-height: 1; margin-bottom: 12px; display: block; }
.revolv-footer .social { display: flex; gap: 12px; margin-top: 12px; }
.revolv-footer .social a { width: 36px; height: 36px; border-radius: 50%; background: #374151; display: flex; align-items: center; justify-content: center; color: #d1d5db; }
.revolv-footer .social a:hover { background: #e87722; color: #fff; }
.revolv-footer .copy { border-top: 1px solid #374151; padding-top: 24px; text-align: center; font-size: 12px; color: #6b7280; }

/* Mobile */
@media (max-width: 900px) {
	.revolv-nav { display: none; }
	.revolv-mobile-toggle { display: block; background: none; border: none; font-size: 26px; color: #4b5563; cursor: pointer; }
	.revolv-mobile-open .revolv-nav { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 20px; flex-direction: column; align-items: flex-start; box-shadow: 0 8px 20px rgba(0,0,0,0.1); z-index: 101; }
	.revolv-mobile-open .revolv-nav > li { width: 100%; padding: 8px 0; }
	.revolv-mobile-open .revolv-nav .dropdown { position: static; box-shadow: none; padding: 4px 0 4px 16px; min-width: 0; }
	.revolv-hero { padding: 60px 16px 80px; }
	.revolv-hero h1 { font-size: 44px; }
	.revolv-hero .tag { font-size: 20px; }
	.revolv-hero-form { flex-direction: column; }
	.revolv-hero-form button { padding: 18px; }
	.revolv-section { padding: 50px 16px; }
	.revolv-section h2 { font-size: 28px; }
	.revolv-page-banner { padding: 40px 0; }
	.revolv-page-banner h1 { font-size: 28px; }
	.revolv-page-banner p { font-size: 14px; }
	.revolv-listing-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
	.revolv-footer .grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
	.revolv-page-banner { padding: 32px 0; }
	.revolv-page-banner h1 { font-size: 24px; }
	.revolv-section { padding: 32px 12px; }
	.revolv-container { padding: 0 16px; }
	.revolv-listing-grid { grid-template-columns: 1fr; }
}
@media (min-width: 901px) {
	.revolv-mobile-toggle { display: none; }
}

/* Hide WP admin-ish stuff on frontend for non-admins */
body.logged-in.role-revolv_client #wpadminbar,
body.logged-in.role-revolv_agent #wpadminbar { display: none !important; }
body.logged-in.role-revolv_client,
body.logged-in.role-revolv_agent { margin-top: 0 !important; }

/* Hero logo image replaces big text */
.revolv-hero .revolv-hero-logo { display:block; max-width:320px; width:53%; height:auto; margin:0 auto 18px; filter: drop-shadow(0 4px 24px rgba(0,0,0,0.4)); }
@media (max-width:640px) { .revolv-hero .revolv-hero-logo { max-width:213px; width:52%; } }

/* NEW badge on nav items */
.revolv-nav .revolv-nav-new::after {
	content: 'NEW';
	display: inline-block;
	font-size: .55rem;
	font-weight: 800;
	background: #e87c2a;
	color: #fff;
	padding: 1px 5px;
	border-radius: 3px;
	margin-left: 5px;
	vertical-align: super;
	letter-spacing: .04em;
	line-height: 1.4;
}

/* v2.0.4 — utility-bar split auth buttons: Agent Login / Client Login / Sign Up */
.revolv-utility-bar .rcl-util-login { color:#4b5563; font-weight:500; }
.revolv-utility-bar .rcl-util-login:hover { color:#e87722; }
.revolv-utility-bar .rcl-util-signup {
	background:#e87722;
	color:#fff !important;
	padding:3px 10px;
	border-radius:999px;
	font-weight:600;
	font-size:12px;
	line-height:1.5;
}
.revolv-utility-bar .rcl-util-signup:hover { background:#0b0f14; color:#fff !important; }
@media (max-width:640px) {
	.revolv-utility-bar .wrap { flex-wrap:wrap; gap:8px 12px; }
}

/* "Next" pop on /my-portal/ page banner — playful accent that visualizes
 * the riff on a generic "My Home Portal" by making the twist literally
 * pop. Oswald is uppercase; Next drops to lowercase italic for contrast. */
.revolv-page-banner h1 .revolv-next-pop {
	font-family: "Caveat", "Segoe Script", "Bradley Hand", cursive;
	font-style: normal;
	font-weight: 700;
	color: #ff9d4d;
	text-transform: lowercase;
	letter-spacing: 0;
	display: inline-block;
	transform: rotate(-4deg) translateY(-2px);
	padding: 0 6px;
	margin: 0 2px;
	position: relative;
	font-size: 1.15em;
}
.revolv-page-banner h1 .revolv-next-pop::after {
	content: '';
	position: absolute;
	left: 4%;
	right: 4%;
	bottom: 6%;
	height: 6px;
	background: linear-gradient(90deg, rgba(232,124,42,0) 0%, #e87c2a 15%, #ff9d4d 85%, rgba(232,124,42,0) 100%);
	border-radius: 50%;
	z-index: -1;
	filter: blur(0.3px);
}

/* v2.0.8 — site-wide BETA pill next to the logo */
/* v2.0.9 — replaced native title tooltip with custom feedback bubble */
.revolv-brand-block {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.revolv-beta-wrap {
	position: relative;
	display: inline-flex;
	cursor: pointer;
	outline: none;
}
.revolv-beta-pill {
	display: inline-flex;
	align-items: center;
	height: 20px;
	padding: 0 8px;
	border-radius: 10px;
	background: #FF6B35;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	user-select: none;
	box-shadow: 0 1px 2px rgba(0,0,0,0.08);
	line-height: 1;
	white-space: nowrap;
	transition: background .15s ease;
	pointer-events: none; /* hover/click handled by parent .revolv-beta-wrap */
}
.revolv-beta-wrap:hover .revolv-beta-pill,
.revolv-beta-wrap:focus .revolv-beta-pill,
.revolv-beta-wrap.is-open .revolv-beta-pill {
	background: #e85a26;
}

/* Tooltip bubble — hidden by default, shown on hover/focus/tap */
.revolv-beta-tip {
	position: absolute;
	top: calc(100% + 12px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	width: 280px;
	max-width: calc(100vw - 32px);
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(15,23,42,.12), 0 2px 6px rgba(15,23,42,.06);
	padding: 14px 16px 13px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #0f172a;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.revolv-beta-wrap:hover .revolv-beta-tip,
.revolv-beta-wrap:focus .revolv-beta-tip,
.revolv-beta-wrap:focus-within .revolv-beta-tip,
.revolv-beta-wrap.is-open .revolv-beta-tip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
}
.revolv-beta-tip__arrow {
	position: absolute;
	top: -7px;
	left: 50%;
	transform: translateX(-50%) rotate(45deg);
	width: 12px;
	height: 12px;
	background: #fff;
	border-left: 1px solid #e5e7eb;
	border-top: 1px solid #e5e7eb;
	border-radius: 2px 0 0 0;
}
.revolv-beta-tip__title {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 4px;
	line-height: 1.3;
}
.revolv-beta-tip__body {
	font-size: 12.5px;
	color: #475569;
	line-height: 1.5;
	margin-bottom: 10px;
}
.revolv-beta-tip__cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #FF6B35;
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color .15s ease;
}
.revolv-beta-tip__cta:hover {
	border-bottom-color: #FF6B35;
}

@media (max-width: 480px) {
	.revolv-beta-pill {
		height: 18px;
		padding: 0 6px;
		font-size: 9px;
		letter-spacing: 1px;
	}
	.revolv-beta-tip {
		width: 260px;
	}
}
