:root {
    --pny-red: #b10b0b;
    --pny-red-dark: #8e0808;
    --pny-green: #28a745;
    --pny-green-dark: #1f8637;
    --pny-dark: #111827;
    --pny-slate: #374151;
    --pny-muted: #6b7280;
    --pny-bg: #f4f6f9;
    --pny-border: #e5e7eb;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--pny-bg);
    color: #1f2937;
    line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* 1. Top Utility Bar */
.utility-bar {
    background: var(--pny-dark);
    color: #e5e7eb;
    font-size: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #1f2937;
}
.utility-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.gps-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1f2937;
    padding: 3px 10px;
    border-radius: 20px;
}
.gps-btn {
    background: var(--pny-green);
    color: #fff;
    border: none;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.gps-btn:hover { background: var(--pny-green-dark); }

/* 2. Sticky Main Header */
.main-header {
    background: #fff;
    border-bottom: 1px solid var(--pny-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 16px;
    flex-wrap: wrap;
}
.brand-box { display: flex; align-items: center; gap: 10px; }
.brand-badge {
    width: 38px;
    height: 38px;
    background: var(--pny-red);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-title { font-size: 21px; font-weight: 800; color: var(--pny-red); line-height: 1.1; }
.brand-sub { font-size: 11px; color: var(--pny-muted); }
.main-nav { display: flex; gap: 20px; align-items: center; font-size: 14px; font-weight: 600; }
.main-nav a:hover { color: var(--pny-red); }
.nav-near-me { color: var(--pny-red); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.btn-green {
    background: var(--pny-green);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}
.btn-green:hover { background: var(--pny-green-dark); }
.btn-red {
    background: var(--pny-red);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}
.btn-red:hover { background: var(--pny-red-dark); }
.btn-outline {
    border: 1px solid #d1d5db;
    padding: 7px 13px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
}
.btn-outline:hover { border-color: var(--pny-red); color: var(--pny-red); }

/* 3. Hero Tabbed Search Console */
.hero-banner {
    background: linear-gradient(135deg, #1f2937 0%, #3b0d0d 55%, #7f1d1d 100%);
    color: #fff;
    padding: 36px 0 42px;
}
.hero-heading { text-align: center; margin-bottom: 22px; }
.hero-heading h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; }
.hero-heading p { margin: 0; font-size: 14px; color: #e5e7eb; }
.search-box-wrap {
    max-width: 1020px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
    overflow: hidden;
    color: #1f2937;
}
.search-tabs {
    display: flex;
    background: #f9fafb;
    border-bottom: 1px solid var(--pny-border);
    overflow-x: auto;
}
.search-tab {
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    color: var(--pny-slate);
    border-bottom: 3px solid transparent;
}
.search-tab.active, .search-tab:hover {
    color: var(--pny-red);
    border-bottom-color: var(--pny-red);
    background: #fff;
}
.search-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 1fr 1fr 1.1fr auto;
    gap: 10px;
    padding: 16px;
    align-items: end;
}
.field-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--pny-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
}
.field-group select, .field-group input {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
}
.quick-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 16px 14px;
    font-size: 12px;
}
.quick-pills a {
    background: #f3f4f6;
    color: var(--pny-slate);
    padding: 4px 11px;
    border-radius: 16px;
    font-weight: 600;
}
.quick-pills a:hover { background: #fee2e2; color: var(--pny-red); }

/* 4. Ad & Sponsored Inventory Slots */
.ad-slot {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    position: relative;
}
.ad-tag {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 10px;
    background: #f1f5f9;
    color: #64748b;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}
.ad-leaderboard { margin: 20px auto; min-height: 90px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.ad-rect { min-height: 250px; display: flex; align-items: center; justify-content: center; flex-direction: column; margin-bottom: 18px; }
.ad-tall { min-height: 460px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.ad-native {
    background: linear-gradient(90deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* 5. Trending Localities Strip */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}
.section-head h2 { margin: 0; font-size: 20px; font-weight: 800; color: #111827; }
.section-head span { font-size: 12px; color: var(--pny-muted); }
.hub-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}
.hub-card {
    background: #fff;
    border: 1px solid var(--pny-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hub-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.hub-card img { width: 100%; height: 95px; object-fit: cover; display: block; }
.hub-card-body { padding: 10px; }
.hub-card-body h4 { margin: 0 0 2px; font-size: 14px; font-weight: 700; }
.hub-card-body p { margin: 0; font-size: 12px; color: var(--pny-muted); }

/* 6. Main 75% / 25% Portal Split */
.portal-split {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 24px;
    align-items: start;
}
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.prop-card {
    background: #fff;
    border: 1px solid var(--pny-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.prop-card:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(0,0,0,0.09); }
.prop-thumb { position: relative; height: 165px; background: #e5e7eb; }
.prop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge-intent {
    position: absolute; top: 10px; left: 10px;
    background: var(--pny-red); color: #fff;
    font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase;
}
.badge-verified {
    position: absolute; top: 10px; right: 10px;
    background: var(--pny-green); color: #fff;
    font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
}
.prop-body { padding: 13px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.prop-price { font-size: 18px; font-weight: 800; color: var(--pny-red); margin-bottom: 3px; }
.prop-title { font-size: 15px; font-weight: 700; color: #111827; margin: 0 0 4px; }
.prop-loc { font-size: 12px; color: var(--pny-muted); margin-bottom: 10px; }
.prop-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.prop-tags span {
    background: #f3f4f6;
    color: var(--pny-slate);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}
.prop-footer {
    border-top: 1px solid #f3f4f6;
    padding-top: 9px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

/* Sidebar Widgets */
.sidebar-box {
    background: #fff;
    border: 1px solid var(--pny-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 18px;
}
.sidebar-box h3 { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { border-bottom: 1px solid #f3f4f6; padding: 7px 0; font-size: 13px; }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a:hover { color: var(--pny-red); font-weight: 600; }

/* 7. Connectivity & High-Density SEO Link Matrix */
.connectivity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 28px 0;
}
.conn-card {
    background: #fff;
    border: 1px solid var(--pny-border);
    border-radius: 8px;
    padding: 16px;
}
.conn-card h3 { margin: 0 0 10px; font-size: 15px; color: var(--pny-red); }
.conn-card a { display: block; font-size: 13px; padding: 4px 0; color: var(--pny-slate); }
.conn-card a:hover { color: var(--pny-red); text-decoration: underline; }

.seo-directory {
    background: #fff;
    border-top: 1px solid var(--pny-border);
    padding: 30px 0;
    margin-top: 24px;
}
.seo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.seo-col h4 { margin: 0 0 10px; font-size: 14px; font-weight: 800; color: #111827; }
.seo-col ul { list-style: none; padding: 0; margin: 0; }
.seo-col li { margin-bottom: 6px; font-size: 12px; color: var(--pny-muted); }
.seo-col a:hover { color: var(--pny-red); text-decoration: underline; }

/* 8. Footer */
.cta-strip {
    background: var(--pny-green);
    color: #fff;
    text-align: center;
    padding: 24px 20px;
}
.cta-strip h3 { margin: 0 0 6px; font-size: 20px; }
.cta-strip p { margin: 0 0 12px; font-size: 13px; }
.cta-white-btn {
    display: inline-block;
    background: #fff;
    color: var(--pny-green-dark);
    font-weight: 800;
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 13px;
}
.site-footer { background: var(--pny-dark); color: #d1d5db; padding: 34px 0 18px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; font-size: 12px; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 14px;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}

/* ==========================================================
   5-Second Location Modal Styles
   ================================================---------- */
.pny-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pny-modal-box {
    background: #fff;
    width: 90%;
    max-width: 420px;
    padding: 28px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.pny-modal-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.pny-modal-title {
    margin: 0 0 8px;
    font-size: 20px;
    color: #111827;
}

.pny-modal-desc {
    margin: 0 0 20px;
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.5;
}

.pny-modal-btn {
    width: 100%;
    padding: 11px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
    font-weight: 700;
    background: #b10b0b;
    color: #fff;
    border-radius: 6px;
}

.pny-modal-sub-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

/* ==========================================================
   Sticky Right-Side Contact Widget Styles
   ================================================---------- */
.sticky-contact-widget {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.contact-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-right: none;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    width: 240px;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s ease;
    opacity: 0;
}

.sticky-contact-widget:hover .contact-panel {
    max-width: 260px;
    opacity: 1;
    padding: 16px;
}

.contact-panel-title {
    margin: 0 0 6px;
    font-size: 14px;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-panel-desc {
    margin: 0 0 10px;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.4;
}

.contact-panel-phone {
    font-size: 13px;
    font-weight: 700;
    color: #b10b0b;
    margin-bottom: 4px;
}

.contact-panel-hours {
    font-size: 11px;
    color: #6b7280;
}

.contact-panel-action {
    display: block;
    margin-top: 10px;
    text-align: center;
    background: #b10b0b;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px;
    border-radius: 4px;
    text-decoration: none;
}

.sticky-contact-tab {
    background: #b10b0b;
    color: #fff;
    padding: 12px 8px;
    border-radius: 6px 0 0 6px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pny-login-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: 225px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    padding: 6px;
    z-index: 1000;
}

/* Click toggle (works on mobile, tablet, and desktop) */
.pny-login-dropdown.is-open .pny-login-menu {
    display: block;
}

/* Hover support only on devices with a mouse */
@media (hover: hover) {
    .pny-login-dropdown:hover .pny-login-menu {
        display: block;
    }
}

.pny-login-item {
    display: flex;
    flex-direction: column;
    padding: 9px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.pny-login-item:hover {
    background: #fef2f2;
}

.pny-login-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

.pny-login-sub {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

@media (max-width: 1024px) {
    .search-grid { grid-template-columns: 1fr 1fr; }
    .hub-grid { grid-template-columns: repeat(3, 1fr); }
    .portal-split { grid-template-columns: 1fr; }
    .property-grid { grid-template-columns: repeat(2, 1fr); }
    .connectivity-grid, .seo-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .search-grid, .hub-grid, .property-grid, .connectivity-grid, .seo-grid, .footer-grid { grid-template-columns: 1fr; }
}