/* ===============================================
   AGORIST.MARKET - MODERN RESPONSIVE STYLESHEET v2.0
   =============================================== */

/* === ROOT VARIABLES === */
:root {
    --primary-green: #2d5a45;
    --secondary-green: #4a8a6a;
    --accent-gold: #D4AF37;
    --link-blue: #4095DF;
    --text-dark: #2E2E2E;
    --text-light: #666;
    --bg-light: #F8F9FA;
    --white: #ffffff;
    --highlight-soft: #FFF9E6;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--link-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

strong {
    font-weight: 600;
}

/* === LAYOUT CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
.site-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--white);
    padding: 2rem 0 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow);
}

.site-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.site-title a {
    color: var(--white);
    text-decoration: none;
}

.site-tagline {
    font-size: 1.25rem;
    font-style: italic;
    opacity: 0.95;
    font-weight: 300;
}

/* === NAVIGATION === */
.main-nav {
    background-color: var(--white);
    box-shadow: 0 2px 5px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-green);
}

/* Subtle accent styling instead of yellow highlight */
.nav-menu a.highlight {
    color: var(--primary-green);
    font-weight: 600;
}

/* Hover underline effect - not for highlighted items */
.nav-menu a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: var(--secondary-green);
    border-radius: 2px 2px 0 0;
}

/* === HAMBURGER MENU (iOS Fixed) === */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

/* Hamburger icon using spans */
.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-green);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--primary-green);
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* Animate to X when active */
.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* === BREADCRUMB === */
.breadcrumb-container {
    background-color: var(--white);
    border-bottom: 1px solid #e0e0e0;
    padding: 0.5rem 20px;
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 0;
    font-size: 0.85rem;
    color: var(--text-light);
    /* Align with nav - left side under Home */
}

.breadcrumb a {
    color: var(--link-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 0.5rem;
    color: #999;
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 500;
}

/* === MAIN CONTENT GRID === */
.content-grid {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1400px;
    padding: 0 20px;
    overflow-x: hidden;
}

.main-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    min-height: 400px;
    overflow-x: hidden;
    max-width: 100%;
}

/* === SIDEBARS === */
.sidebar {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
}

.sidebar-sponsor {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.sidebar-sponsor:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--shadow);
}

.sidebar-sponsor img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 0.5rem;
    border-radius: 4px;
}

.sidebar-sponsor a {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--link-blue);
}

/* === BANNER === */
.banner {
    text-align: center;
    margin: 2rem 0;
}

.banner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--link-blue) 0%, #2d7ab8 100%);
    color: var(--white);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
    color: var(--white);
    text-decoration: none;
}

.btn-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #005f8f 100%);
}

/* === LISTINGS === */
.listing {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    background-color: var(--white);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.listing:hover {
    box-shadow: 0 4px 12px var(--shadow);
}

.listing-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.listing-image {
    flex-shrink: 0;
}

.listing-image img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
}

.listing-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.listing-info h3 {
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.listing-details {
    font-size: 0.95rem;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.listing-details a {
    word-break: break-all;
}

.listing-details strong {
    color: var(--primary-green);
    display: inline-block;
    min-width: 100px;
}

/* Contact links stacked vertically and centered */
.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    margin: 0.5rem 0;
}

.contact-links a,
.contact-links span {
    display: block;
}

/* === NEW LISTING CARD (Mobile-First) === */
.listing-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

.card-header-mobile {
    display: none;
}

.card-header-mobile .card-image img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.card-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.card-badges .badge {
    margin-left: 0;
}

.card-body {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.card-body .card-image img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.card-content {
    flex: 1;
}

.card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.card-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--primary-green);
}

.card-description {
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
}

.card-categories {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.category-btn {
    display: inline-block;
    background: #f0f0f0;
    color: var(--text-dark);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s;
}

.category-btn:hover {
    background: var(--primary-green);
    color: white;
}

/* Desktop: Traditional side-by-side layout */
@media (min-width: 769px) {
    .card-header-mobile {
        display: none !important;
    }
    
    .card-body {
        display: flex;
        flex-direction: row;
    }
    
    .card-body > .card-image {
        flex-shrink: 0;
    }
    
    .card-body > .card-image img {
        width: 160px;
        height: 160px;
    }
    
    .card-categories {
        display: none;
    }
}

/* Mobile: New layout with image left, badges right */
@media (max-width: 768px) {
    .listing-card {
        padding: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .card-header-mobile {
        display: flex !important;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0.75rem;
    }
    
    .card-header-mobile .card-image img {
        width: 70px;
        height: 70px;
    }
    
    .card-body {
        display: block;
    }
    
    .card-body > .card-image {
        display: none !important;
    }
    
    .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .card-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .card-categories {
        display: flex;
    }
    
    .category-btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
}

/* === LISTING BADGES === */
.badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
    font-weight: 600;
}

.badge-verified {
    background: #28a745;
    color: white;
}

.badge-media {
    background: #5c6bc0;
    color: white;
}

.badge-advertiser {
    background: linear-gradient(135deg, #c9a227 0%, #b8860b 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(201, 162, 39, 0.3);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.badge-partner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Partner Exchange Box on Listing Pages */
.partner-exchange-box {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.partner-exchange-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.partner-exchange-content h3 {
    margin: 0 0 0.5rem 0;
    color: #5a4a9a;
}

.partner-exchange-content p {
    margin: 0 0 1rem 0;
    color: #555;
}

.partner-banners-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.partner-banners-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* === FOOTER === */
.site-footer {
    background-color: #4a7a62;  /* 18% lighter than primary-green #2d5a45 */
    color: var(--white);
    padding: 2.5rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* Footer center content */
.footer-content {
    text-align: center;
    width: 100%;
}

/* Footer navigation links */
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-nav a:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

/* Footer info */
.footer-info {
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.footer-info a {
    color: var(--white);
    text-decoration: underline;
}

.footer-info a:hover {
    color: var(--accent-gold);
}

.footer-email {
    font-weight: 600;
    font-size: 1rem;
}

.footer-email .email-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email .email-link:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-links a {
    opacity: 0.85;
}

/* === FOOTER EMAIL SIGNUP (SLIM VERSION) === */
.footer-signup {
    margin: 1.5rem 0;
}

.footer-signup-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 400px;
    margin: 0 auto;
}

.footer-signup-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.footer-signup-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-signup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.15);
}

.footer-signup-form button {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-green);
    background-color: var(--accent-gold);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.footer-signup-form button:hover {
    background-color: #e5c04b;
    transform: translateY(-1px);
}

.footer-signup-form button:active {
    transform: translateY(0);
}

.footer-signup-form button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Honeypot - hidden */
.footer-signup-form .hp-field,
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}

.footer-form-message {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 6px 12px;
    border-radius: 4px;
    display: none;
}

.footer-form-message.success {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    display: block;
}

.footer-form-message.error {
    background-color: rgba(255, 100, 100, 0.2);
    color: #ff9999;
    display: block;
}

/* Footer logos mobile container */
.footer-logos-mobile {
    display: none;
}

/* === EMAIL LINK STYLING === */
.email-link {
    color: var(--link-blue);
    text-decoration: none;
}

.email-link:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-highlight { background-color: var(--highlight-soft); padding: 0.2rem 0.4rem; border-radius: 3px; }
.clearfix::after { content: ""; display: table; clear: both; }

/* === RESPONSIVE DESIGN === */

/* Mobile Sponsor Banner */
.mobile-sponsor {
    display: none; /* Hidden by default on desktop */
    visibility: hidden;
    width: 100%;
    background-color: var(--primary-green);
    text-align: center;
    padding: 0;
    overflow: hidden;
}

.mobile-sponsor a {
    display: block;
    line-height: 0;
}

.mobile-sponsor img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Tablet */
@media only screen and (max-width: 1024px) {
    /* Show mobile sponsor on tablet and below */
    .mobile-sponsor {
        display: block !important;
        visibility: visible !important;
    }
    
    /* Hide sidebars on mobile - sponsor handles it */
    .sidebar {
        display: none !important;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .site-title {
        font-size: 2.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-logo.left,
    .footer-logo.right {
        display: none;
    }
    
    .footer-logos-mobile {
        display: flex;
        justify-content: center;
        gap: 2rem;
    }
}

/* View Listing Button - visible on all screens */
.view-listing-btn {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.view-listing-btn:hover {
    background: #1a3a2a;
    color: white;
    text-decoration: none;
}

/* Mobile */
@media (max-width: 768px) {
    /* Hide contact, location, payments on mobile */
    .desktop-only {
        display: none !important;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-container {
        justify-content: center;
        min-height: 56px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 80%;
        max-width: 300px;
        height: 100vh;
        height: 100dvh;
        box-shadow: 4px 0 20px var(--shadow);
        transition: left 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Mobile menu header */
    .nav-menu::before {
        content: 'Menu';
        display: block;
        padding: 1.25rem 1.5rem;
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--primary-green);
        border-bottom: 2px solid var(--primary-green);
        background-color: var(--bg-light);
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-menu a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Remove underline effect on mobile, use left border instead */
    .nav-menu a::after {
        display: none;
    }
    
    .nav-menu a.highlight {
        background-color: rgba(45, 90, 69, 0.05);
        border-left: 4px solid var(--primary-green);
    }
    
    .nav-menu a:hover,
    .nav-menu a:active {
        background-color: rgba(45, 90, 69, 0.1);
    }
    
    .site-header {
        padding: 1.5rem 0 1rem;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .site-tagline {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .listing-header {
        flex-direction: row;
        gap: 1rem;
    }
    
    .listing-image img {
        width: 80px;
        height: 80px;
        object-fit: cover;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .footer-nav {
        gap: 0.25rem 1.5rem;
    }
    
    .footer-nav a {
        font-size: 0.95rem;
    }
    
    .footer-logo-img {
        max-width: 100px;
        max-height: 65px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .site-title {
        font-size: 1.75rem;
    }
    
    .site-tagline {
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .footer-signup-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-signup-form input[type="email"] {
        min-width: unset;
    }
}

/* === PRINT STYLES === */
@media print {
    .site-header,
    .main-nav,
    .sidebar,
    .site-footer {
        display: none;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* In-Content Ads */
.content-ad {
    width: 100% !important;
    max-width: 100% !important;
    margin: 1.5rem 0 !important;
    text-align: center;
    display: block !important;
}

.content-ad a {
    display: block !important;
    line-height: 0;
    width: 100% !important;
}

.content-ad img {
    width: 100% !important;
    max-width: 1200px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto;
    border-radius: 6px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.page-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-green);
    border-radius: 4px;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: var(--primary-green);
    color: white;
}

.page-link.current {
    background: var(--primary-green);
    color: white;
}

/* Hidden class for search filtering */
.hidden {
    display: none !important;
}

/* No Sidebars Layout (full-width main content) */
.content-grid.no-sidebars {
    display: block;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

.content-grid.no-sidebars .main-content {
    width: 100%;
    max-width: 100%;
}

/* ===============================================
   LIST YOUR BUSINESS PAGE (list.php)
   =============================================== */
.list-form {
    max-width: 700px;
    margin: 0 auto 3rem;
}

.list-form .form-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.list-form .form-section h2 {
    color: #166534;
    font-size: 1.2rem;
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #dcfce7;
}

.form-row {
    margin-bottom: 1rem;
}

.form-row label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: .35rem;
    font-size: .95rem;
}

.form-row .hint {
    font-size: .8rem;
    color: #9ca3af;
    margin-bottom: .35rem;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="url"],
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .2s;
    box-sizing: border-box;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: #166534;
}

.form-row textarea {
    min-height: 100px;
    resize: vertical;
}

.check-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
}

.check-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #166534;
    flex-shrink: 0;
}

.check-row label {
    font-weight: 400;
    margin: 0;
}

.list-form .payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .5rem;
}

.payment-group h3 {
    font-size: .95rem;
    color: #374151;
    margin: .75rem 0 .5rem;
}

.payment-group:first-child h3 {
    margin-top: 0;
}

.btn-submit {
    display: block;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 14px;
    background: linear-gradient(135deg, #166534 0%, #14532d 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22,101,52,.3);
}

.btn-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.msg-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.msg-error a {
    color: #166534;
}

.msg-success-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    padding: 2.5rem;
    max-width: 550px;
    margin: 2rem auto;
    text-align: center;
}

.msg-success-box h2 {
    color: #166534;
    margin: 0 0 1rem;
}

.msg-success-box p {
    color: #6b7280;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .list-form .payment-grid {
        grid-template-columns: 1fr 1fr;
    }

    .list-form .form-section {
        padding: 1rem;
    }
}

/* ===============================================
   PUBLIC PROFILE PAGE (profile.php)
   =============================================== */

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, #1a3a2a 0%, #2d5a45 60%, #3d7a5a 100%);
    border-radius: 12px;
    padding: 2rem;
    color: #fff;
    margin-bottom: 2rem;
}

.profile-header h1 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
}

.profile-tier-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.profile-bio {
    color: rgba(255,255,255,.85);
    line-height: 1.6;
    margin: 0.75rem 0 0;
    max-width: 600px;
}

.profile-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,.7);
}

/* Profile Listings Grid */
.profile-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-listing-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.profile-listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.profile-listing-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.profile-listing-card .card-body {
    padding: 1rem;
}

.profile-listing-card .card-body h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
}

.profile-listing-card .card-body h3 a {
    color: var(--primary-green);
    text-decoration: none;
}

.profile-listing-card .card-body h3 a:hover {
    text-decoration: underline;
}

.profile-listing-card .card-cta {
    color: #2d5a45;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 0 0.4rem;
}

.profile-listing-card .card-location {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0;
}

.profile-listing-card .card-subdomain {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: monospace;
    font-size: 0.8rem;
    background: #f0fdf4;
    color: #166534;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Profile Reviews Section */
.profile-reviews-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.profile-reviews-summary .avg-number {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

.profile-reviews-summary .review-count {
    color: #6b7280;
}

.star-rating .star {
    color: #fbbf24;
    font-size: 1.25rem;
}

.star-rating .star.empty {
    color: #d1d5db;
}

.profile-review-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.profile-review-item .review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.profile-review-item .reviewer-name {
    font-weight: 600;
    color: #111827;
}

.profile-review-item .review-date {
    color: #6b7280;
    font-size: 0.85rem;
}

.profile-review-item .review-listing-link {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.profile-review-item .review-listing-link a {
    color: var(--link-blue);
}

.profile-review-item .review-body {
    color: #4b5563;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-state p {
    font-size: 1.1rem;
}

.section-heading {
    font-size: 1.4rem;
    color: #166534;
    margin: 0 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dcfce7;
}

@media (max-width: 768px) {
    .profile-header {
        padding: 1.5rem;
    }

    .profile-header h1 {
        font-size: 1.5rem;
    }

    .profile-listings-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================================
   EARTH HUB PAGE (earth.php)
   =============================================== */
.earth-hero {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.earth-hero h1 {
    font-size: 1.75rem;
    color: #2d5a45;
    margin: 0 0 .5rem;
}

.earth-hero .tagline {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0 0 1.25rem;
}

.earth-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.earth-stats .stat {
    text-align: center;
}

.earth-stats .stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d5a45;
}

.earth-stats .stat-label {
    font-size: .85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* SVG Map */
.earth-map-wrap {
    margin: 0 0 1.5rem;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    overflow: hidden;
    position: relative;
}

.earth-map-wrap svg {
    width: 100%;
    height: auto;
    display: block;
}

.earth-map-wrap .country {
    fill: #e5e7eb;
    stroke: #fff;
    stroke-width: 0.5;
    cursor: pointer;
    transition: fill 0.15s ease;
}

.earth-map-wrap .country.has-listings {
    fill: #2d5a45;
}

.earth-map-wrap .country:hover {
    fill: #4a8a6a;
}

.earth-map-wrap .country.has-listings:hover {
    fill: #4a8a6a;
}

/* Earth Tooltip */
.earth-tooltip {
    position: absolute;
    pointer-events: none;
    background: #1f2937;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: .85rem;
    white-space: nowrap;
    z-index: 100;
    display: none;
    transform: translate(-50%, -100%);
    margin-top: -8px;
}

.earth-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
}

/* Earth Legend */
.earth-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: .85rem;
    color: #6b7280;
}

.earth-legend-item {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.earth-legend-swatch {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid #d1d5db;
}

/* Earth Region Lists */
.earth-regions {
    margin-bottom: 2rem;
}

.earth-region {
    margin-bottom: 1.5rem;
}

.earth-region h2 {
    color: #2d5a45;
    font-size: 1.25rem;
    margin: 0 0 .75rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid #e5e7eb;
}

.earth-region-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .3rem .75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.earth-region-list li {
    padding: .2rem 0;
    font-size: .9rem;
}

.earth-region-list li a {
    color: #4095DF;
    text-decoration: none;
}

.earth-region-list li a:hover {
    text-decoration: underline;
}

.earth-region-list li.has-listings a {
    font-weight: 700;
}

.earth-region-list .country-count {
    color: #9ca3af;
    font-size: .8rem;
    font-weight: 400;
}

/* Earth Featured Listing Card */
.earth-featured {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.earth-featured-img {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
}

.earth-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.earth-featured-body h3 {
    margin: 0 0 .4rem;
    color: #2d5a45;
    font-size: 1.1rem;
}

.earth-featured-body p {
    margin: 0 0 .5rem;
    color: #4b5563;
    font-size: .9rem;
}

.earth-featured-label {
    display: inline-block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #D4AF37;
    font-weight: 600;
    margin-bottom: .4rem;
}

/* Earth CTA Section */
.earth-cta {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.earth-cta h2 {
    margin: 0 0 .5rem;
    color: #2d5a45;
    font-size: 1.25rem;
}

.earth-cta p {
    margin: 0 0 1rem;
    color: #6b7280;
}

.earth-cta .cta-btn {
    display: inline-block;
    padding: .65rem 1.75rem;
    background: #2d5a45;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background .15s;
}

.earth-cta .cta-btn:hover {
    background: #4a8a6a;
}

@media (max-width: 600px) {
    .earth-hero h1 {
        font-size: 1.35rem;
    }

    .earth-stats {
        gap: 1rem;
    }

    .earth-stats .stat-number {
        font-size: 1.35rem;
    }

    .earth-region-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .earth-featured {
        flex-direction: column;
    }

    .earth-featured-img {
        width: 100%;
        height: 200px;
    }
}
