/* ==========================================================================
   Gruber Listings
   ========================================================================== */
:root { --gl-navy: #233443; --gl-badge: #1e2751; --gl-radius: 6px; --gl-btn-radius: 6px; }

/* ---------- Grids ---------- */
.gl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gl-grid--listings { gap: 50px; }
.gl-grid--agents, .gl-grid--resources { gap: 20px; }
@media (max-width: 767px) { .gl-grid { grid-template-columns: 1fr; } }
.gl-empty { text-align: center; }

/* ---------- Listing card (matches the old JetEngine card) ---------- */
.gl-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--gl-radius); overflow: hidden; }
.gl-card--listing { box-shadow: 4px 4px 17px 2px rgba(0, 0, 0, .67); padding-bottom: 24px; color: var(--gl-navy); }
.gl-card__media { position: relative; display: block; aspect-ratio: 360 / 225; overflow: hidden; margin-bottom: 20px; }
.gl-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gl-card__badge { position: absolute; top: 20px; left: 20px; padding: 10px; background: var(--gl-badge); color: #fff; font: 300 15px/15px Lato, sans-serif; text-transform: uppercase; border-radius: 6px; }
.gl-card__type { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 10px; background: rgba(0, 0, 0, .37); color: #fff; font: 400 14px/14px Lato, sans-serif; letter-spacing: 1.9px; text-transform: uppercase; text-align: center; }
.gl-card__title { margin: 0 0 20px; padding: 0 20px; text-align: center; font: 400 18px/18px Lato, sans-serif; text-transform: uppercase; color: var(--gl-navy); }
.gl-card .gl-card__title a, .gl-card .gl-card__title a:hover { color: var(--gl-navy); text-decoration: none; }
.gl-card__desc { padding: 0 30px 10px; margin-bottom: 20px; font-size: 16px; line-height: 24px; color: var(--gl-navy); }
.gl-card__actions { margin-top: auto; text-align: center; }
.gl-card__btn { display: inline-block; padding: 12px 24px; background: var(--gl-navy); border: 1px solid var(--gl-navy); border-radius: 6px; color: #fff; font: 300 15px/15px Lato, sans-serif; text-transform: uppercase; text-decoration: none; transition: opacity .2s; }
.gl-card a.gl-card__btn, .gl-card a.gl-card__btn:visited { color: #fff; }
.gl-card a.gl-card__btn:hover, .gl-card a.gl-card__btn:focus { color: #fff; opacity: .85; }

/* ---------- Agent card ---------- */
.gl-card--agent { padding: 15px; box-shadow: 0 0 10px rgba(0, 0, 0, .5); color: var(--gl-navy); min-height: 180px; }
.gl-agent__img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 10px; }
.gl-agent__name { margin: 0 0 6px; font: 600 24px/24px Montserrat, sans-serif; color: var(--gl-navy); }
.gl-agent__title { margin-bottom: 22px; font-size: 16px; line-height: 24px; }
.gl-agent__link { display: flex; align-items: center; gap: 7px; font-size: 16px; line-height: 24px; color: var(--gl-navy); text-decoration: none; margin-bottom: 20px; }
.gl-agent__link:last-child { margin-bottom: 0; }
.gl-card a.gl-agent__link, .gl-card a.gl-agent__link:visited { color: var(--gl-navy); }
.gl-card a.gl-agent__link:hover { color: var(--gl-navy); text-decoration: underline; }
.gl-ico { width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.gl-ico--phone { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.gl-ico--mail { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }

/* ---------- Resource card ---------- */
.gl-card--resource { padding: 20px; box-shadow: 0 0 10px rgba(0, 0, 0, .5); color: var(--gl-navy); }
.gl-resource__media { display: block; aspect-ratio: 340 / 258; overflow: hidden; border-radius: 4px; margin-bottom: 28px; }
.gl-resource__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gl-resource__title { margin: 0; font-size: 20px; font-weight: 500; line-height: 24px; color: var(--gl-navy); }
.gl-card .gl-resource__title a, .gl-card .gl-resource__title a:hover { color: var(--gl-navy); text-decoration: underline; }

/* ---------- Homepage slider (same layout as the Slider Revolution version) ----------
   Above 778px wide the desktop design scales down from a 1240px grid (750px tall).
   Below 778px the mobile design scales from a 480px grid (400px tall).            */
.gl-hero { position: relative; container-type: inline-size; width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; }
.gl-hero__track { --u: min(1px, calc(100vw / 1240)); position: relative; background: #233443; height: calc(750 * var(--u)); }
@supports (width: 1cqw) { .gl-hero__track { --u: min(1px, calc(100cqw / 1240)); } }
.gl-hero a.gl-hero__slide, .gl-hero a.gl-hero__slide:hover { color: #fff; }
.gl-hero__slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity 1s ease-in-out, visibility 0s linear 1s; color: #fff; text-decoration: none; z-index: 0; }
.gl-hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease-in-out, visibility 0s; z-index: 1; }
.gl-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 80%; } /* weighted low: property outlines sit in the lower half of listing photos */
.gl-hero__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.gl-hero__type, .gl-hero__title, .gl-hero__desc, .gl-hero__btn { position: absolute; left: 50%; top: 50%; color: #fff; text-align: center; white-space: nowrap; max-width: 94%; overflow: hidden; text-overflow: ellipsis; }
.gl-hero__type  { font: 300 calc(20 * var(--u)) / calc(20 * var(--u)) Roboto, sans-serif; letter-spacing: calc(10 * var(--u)); transform: translate(-50%, calc(-50% - 40 * var(--u))); }
.gl-hero__title { font: 300 calc(53 * var(--u)) / calc(55 * var(--u)) Lato, sans-serif; letter-spacing: calc(5 * var(--u)); transform: translate(-50%, -50%); }
.gl-hero__desc  { font: 300 calc(30 * var(--u)) / calc(30 * var(--u)) Lato, sans-serif; letter-spacing: calc(5 * var(--u)); transform: translate(-50%, calc(-50% + 52 * var(--u))); }
.gl-hero__btn   { font: 500 calc(18 * var(--u)) / calc(40 * var(--u)) Roboto, sans-serif; padding: 0 calc(25 * var(--u)); border: max(1px, calc(2 * var(--u))) solid rgba(255, 255, 255, .35); border-radius: 6px; transform: translate(-50%, calc(-50% + 117 * var(--u))); transition: border-color .2s; }
.gl-hero__slide:hover .gl-hero__btn, .gl-hero__slide:focus-visible .gl-hero__btn { border-color: rgba(255, 255, 255, .75); }
@container (max-width: 777px) {
	.gl-hero__track { --u: min(1px, calc(100cqw / 480)); height: calc(400 * var(--u)); }
	.gl-hero__type  { font-size: calc(20 * var(--u)); line-height: calc(20 * var(--u)); letter-spacing: calc(3 * var(--u)); transform: translate(-50%, calc(-50% - 104 * var(--u))); }
	.gl-hero__title { font-size: calc(30 * var(--u)); line-height: calc(55 * var(--u)); letter-spacing: calc(1 * var(--u)); transform: translate(-50%, calc(-50% - 56 * var(--u))); }
	.gl-hero__desc  { font-size: calc(20 * var(--u)); line-height: calc(20 * var(--u)); letter-spacing: calc(1 * var(--u)); transform: translate(-50%, calc(-50% - 18 * var(--u))); }
	.gl-hero__btn   { font-size: calc(20 * var(--u)); line-height: calc(30 * var(--u)); padding: 0 calc(10 * var(--u)); border-width: 2px; transform: translate(-50%, calc(-50% + 30 * var(--u))); }
}
.gl-hero .gl-hero__arrow, .gl-hero .gl-hero__arrow:hover, .gl-hero .gl-hero__arrow:focus { border: 0; outline: 0; box-shadow: none; min-height: 0; line-height: 0; color: #fff; }
.gl-hero .gl-hero__arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gl-hero .gl-hero__arrow { position: absolute; top: 50%; z-index: 5; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); cursor: pointer; transition: background .2s; }
.gl-hero .gl-hero__arrow:hover, .gl-hero .gl-hero__arrow:focus-visible { background: #000; }
.gl-hero__arrow::before { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border: solid #fff; border-width: 0 0 2px 2px; }
.gl-hero__arrow--prev { left: 37px; transform: translateY(calc(-50% + 115px)); }
.gl-hero__arrow--prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.gl-hero__arrow--next { right: 41px; transform: translateY(calc(-50% + 113px)); }
.gl-hero__arrow--next::before { transform: translate(-70%, -50%) rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .gl-hero__slide { transition: none; } }

/* ==========================================================================
   Site-wide style touches
   ========================================================================== */

/* Hero edge: the bottom of each page's hero fades softly into the section
   below. The fade uses that section's own colour or texture (set by
   gl-site.js), lined up so there is no seam. */
.gl-edge-section, .gl-edge { position: relative; }
.gl-edge-section::after, .gl-edge::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: calc(min(48px, 32%) + 2px); background: var(--gl-edge-fill, #fff); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.04) 15%, rgba(0,0,0,.13) 30%, rgba(0,0,0,.28) 45%, rgba(0,0,0,.47) 60%, rgba(0,0,0,.67) 75%, rgba(0,0,0,.85) 88%, #000 100%); mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.04) 15%, rgba(0,0,0,.13) 30%, rgba(0,0,0,.28) 45%, rgba(0,0,0,.47) 60%, rgba(0,0,0,.67) 75%, rgba(0,0,0,.85) 88%, #000 100%); pointer-events: none; }
.gl-edge::after { z-index: 2; } /* above the slides, below the arrows */

/* Dry-ice fog over the fade band (added by gl-site.js). */
.gl-fog { position: absolute; left: 0; right: 0; bottom: 0; height: 72px; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 78%, rgba(0,0,0,.35) 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 78%, rgba(0,0,0,.35) 100%); }
.gl-hero .gl-fog { z-index: 2; }
.gl-fog i { position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + var(--w)); background: var(--img) repeat-x 0 0 / var(--w) 100%; opacity: var(--o); animation: gl-drift var(--t) linear infinite, gl-breathe var(--b) ease-in-out infinite alternate; will-change: transform; }
.gl-fog.is-paused i { animation-play-state: paused; }
@keyframes gl-drift { to { transform: translateX(calc(-1 * var(--w))); } }
@keyframes gl-breathe { from { translate: 0 5px; } to { translate: 0 -5px; } }
@media (prefers-reduced-motion: reduce) { .gl-fog i { animation: none; } }

/* Edge + 3D look (live; ?edge=0 turns it off for comparison), modelled on cypressstrand.com. */
.gl-window::after { display: none; }
.gl-band { position: absolute; left: 0; right: 0; top: 100%; height: 26px; pointer-events: none; z-index: 1;
	background: linear-gradient(to bottom, rgba(14,22,30,.92) 0%, rgba(14,22,30,.62) 18%, rgba(14,22,30,.32) 40%, rgba(14,22,30,.12) 65%, rgba(14,22,30,.03) 85%, rgba(14,22,30,0) 100%); }
.gl-3d .gl-card a.gl-card__btn,
.gl-3d .elementor-button:not([class*="outline"]) { background-image: linear-gradient(to bottom, #3c5266 0%, #233443 55%, #18242f 100%); box-shadow: 0 0 10px rgba(0,0,0,.35); border-color: #18242f; }
.gl-3d .gl-card a.gl-card__btn:hover { opacity: 1; background-image: linear-gradient(to bottom, #475f75 0%, #2a3e50 55%, #1c2b37 100%); }
.gl-3d .gl-card__badge { background-image: linear-gradient(to bottom, #2e3a72 0%, #1e2751 60%, #151c3c 100%); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.gl-3d .gl-card { background-image: linear-gradient(to bottom, #ffffff 60%, #f3efe8 100%); }
.gl-3d .gl-card--listing { box-shadow: 0 0 10px rgba(0,0,0,.5), 4px 4px 17px 2px rgba(0,0,0,.35); }

/* Rounded corners on images placed in page content (not logos, not cards). */
[data-elementor-type="wp-page"] .elementor-widget-image img,
[data-elementor-type="single"] .elementor-widget-image img,
[data-elementor-type="single-post"] .elementor-widget-image img,
[data-elementor-type="wp-page"] .elementor-widget-text-editor img,
[data-elementor-type="single"] .elementor-widget-text-editor img,
[data-elementor-type="single"] .elementor-widget-theme-post-content img,
[data-elementor-type="single"] .elementor-widget-image-carousel img,
[data-elementor-type="wp-page"] .elementor-widget-image-carousel img,
.entry-content img { border-radius: var(--gl-radius); }

/* Softer corners on the header contact buttons. */
/* One button radius everywhere (beats Elementor's per-element styles). */
.elementor .elementor-button, .elementor-location-header .elementor-button, .elementor-location-footer .elementor-button, .gl-card a.gl-card__btn, .gl-hero__btn { border-radius: var(--gl-btn-radius) !important; }

/* Twitter bird -> X logo. */
.elementor-social-icon-twitter i.fa-twitter::before { content: none; }
.elementor-social-icon-twitter i.fa-twitter { display: inline-block; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--gl-x) center / 80% no-repeat; mask: var(--gl-x) center / 80% no-repeat; }

/* 0.2.1: header (and its mobile dropdown) always stacks above the hero edge */
.elementor-location-header { position: relative; z-index: 50; }
/* 0.2.1: Elementor's ".elementor img {height:auto}" beat the hero image fill; force cover */
.gl-hero img.gl-hero__img { height: 100% !important; max-width: none; }

/* 0.2.1: zoom-out matching the original Rev Slider (115% to 100% over 10s, starts 0.3s in) */
.gl-hero .gl-hero__img { transform: scale(1.06); transition: transform 0s linear 1s; will-change: transform; }
.gl-hero.is-ready .gl-hero__slide.is-active .gl-hero__img { transform: scale(1); transition: transform 8.5s ease-out .3s; }
@media (prefers-reduced-motion: reduce) { .gl-hero .gl-hero__img, .gl-hero.is-ready .gl-hero__slide.is-active .gl-hero__img { transform: none !important; transition: none !important; } }

/* 0.2.1: home page on phones, drop the Texas map column and keep it as a faint watermark behind the intro text */
@media (max-width: 767px) {
  .elementor .elementor-element.elementor-element-f511ead { display: none !important; }
  .elementor-element-a67a0af > .elementor-widget-wrap { position: relative; }
  .elementor-element-a67a0af > .elementor-widget-wrap::before { content: ""; position: absolute; inset: 0; background: #233443; -webkit-mask: url(/wp-content/uploads/2020/03/texas-map-jgruberproperties.png) center 45% / min(92%, 420px) auto no-repeat; mask: url(/wp-content/uploads/2020/03/texas-map-jgruberproperties.png) center 45% / min(92%, 420px) auto no-repeat; opacity: .07; pointer-events: none; z-index: 0; }
  .elementor-element-a67a0af > .elementor-widget-wrap > .elementor-widget { position: relative; z-index: 1; }
}


/* 0.2.6: desktop hero fills the screen (minus the WP admin bar when logged in), with a scroll-down cue at bottom center */
@media (min-width: 1025px) {
  .gl-hero__track { height: max(calc(750 * var(--u)), calc(100vh - var(--wp-admin--admin-bar--height, 0px))); }
  @supports (height: 1svh) { .gl-hero__track { height: max(calc(750 * var(--u)), calc(100svh - var(--wp-admin--admin-bar--height, 0px))); } }
  .gl-hero button.gl-hero__more { display: block; }
}
.gl-hero .gl-hero__more { display: none; position: absolute; left: 50%; bottom: 22px; z-index: 6; width: 48px; height: 48px; margin-left: -24px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); cursor: pointer; animation: gl-bob 2.2s ease-in-out infinite; transition: background .2s; }
.gl-hero .gl-hero__more:hover, .gl-hero .gl-hero__more:focus-visible { background: rgba(0, 0, 0, .6); }
.gl-hero__more::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border: solid #fff; border-width: 0 2px 2px 0; transform: translate(-50%, -70%) rotate(45deg); }
@keyframes gl-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .gl-hero .gl-hero__more { animation: none; } }

/* 0.2.8: darker behind the text so it pops (original was a flat 50% black) */
.gl-hero .gl-hero__overlay { background: radial-gradient(ellipse 65% 60% at 50% 50%, rgba(0, 0, 0, .66) 0%, rgba(0, 0, 0, .52) 55%, rgba(0, 0, 0, .42) 100%); }
.gl-hero__type, .gl-hero__title, .gl-hero__desc { text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }

/* 0.2.9: Elementor's ".elementor img {height:auto}" left wide photos short of the card's photo box, so the type strip sat on grey instead of the photo */
.gl-card img.gl-card__img { height: 100% !important; max-width: none; }
