/* ===== GUN DOGS MARKET - GLOBAL STYLES ===== */
/* Author: Gun Dogs Market Team */
/* Version: 1.1 */

/* ===== FONT IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&family=Inter:wght@300;400;500;600;700;800&family=Cardo:wght@400;700&family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    /* === COLOR SYSTEM === */
    /* Primary Colors - Green Theme */
    --color-primary: #16a34a;
    --color-primary-light: #22c55e;
    --color-primary-dark: #15803d;

    /* Secondary Colors */
    --color-secondary: #6b7280;
    --color-secondary-light: #9ca3af;
    --color-secondary-dark: #4b5563;

    /* Base Colors */
    --color-white: #ffffff;
    --color-black: #000000;

    /* Gray Scale */
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;

    /* Status Colors */
    --color-success: #16a34a;
    --color-success-light: #22c55e;
    --color-success-dark: #15803d;
    --color-warning: #f59e0b;
    --color-warning-light: #fbbf24;
    --color-warning-dark: #d97706;
    --color-error: #dc2626;
    --color-error-light: #ef4444;
    --color-error-dark: #b91c1c;
    --color-info: #3b82f6;
    --color-info-light: #60a5fa;
    --color-info-dark: #2563eb;

    /* === GRADIENTS === */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    --gradient-success: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-dark) 100%);
    --gradient-warning: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning-dark) 100%);
    --gradient-error: linear-gradient(135deg, var(--color-error) 0%, var(--color-error-dark) 100%);
    --gradient-info: linear-gradient(135deg, var(--color-info) 0%, var(--color-info-dark) 100%);
    --gradient-light: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-gray-200) 100%);
    --gradient-dark: linear-gradient(135deg, var(--color-gray-800) 0%, var(--color-gray-900) 100%);

    /* === TYPOGRAPHY === */
    /* Font Families */
    --font-family-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-family-secondary: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, serif;
    --font-family-heading: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-family-mono: monospace, monospace;

    /* Simplified Typography - Single Values */
    --text-size: 1rem;
    --font-weight: 400;
    --line-height: 1.5;
    --letter-spacing: 0.3px;

    /* === SPACING SYSTEM === */
    /* Simplified Spacing - Single Value */
    --spacing: 1rem;

    /* === BORDER RADIUS === */
    /* Simplified Radius - Single Value */
    --radius: 0.4rem;

    /* === SHADOWS === */
    /* Simplified Shadow - Single Value */
    --shadow: unset;

    /* === TRANSITIONS === */
    /* Simplified Transition - Single Value */
    --transition: 0.2s ease;

    /* === Z-INDEX SCALE === */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;

    /* === LAYOUT CONSTANTS === */
    --container-max-width: 1300px;
    --header-height: 80px;
    --sidebar-width: 400px;

    /* === BREAKPOINTS === */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-size: var(--text-size);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight);
    line-height: var(--line-height);
    color: var(--color-gray-800);
    letter-spacing: var(--letter-spacing);
    background: var(--gradient-light);
    min-height: 100vh;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    margin: 0 0 var(--spacing) 0;
    letter-spacing: var(--letter-spacing);
    line-height: 1.2;
    text-transform: none;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 500; }
h5 { font-size: 1.25rem; font-weight: 500; }
h6 { font-size: 1.125rem; font-weight: 500; }

p {
    font-family: var(--font-family-primary);
    margin: 0 0 var(--spacing) 0;
    font-size: 14px;
    line-height: var(--line-height);
    letter-spacing: var(--letter-spacing);
}

/* Text Elements */
a {
    background-color: transparent;
}

b, strong {
    font-weight: bolder;
}

small {
    font-size: 80%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

code, kbd, samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline dotted;
}

/* ===== LAYOUT ELEMENTS ===== */
main {
    display: block;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

img {
    border-style: none;
}

details {
    display: block;
}

summary {
    display: list-item;
}

template {
    display: none;
}

[hidden] {
    display: none;
}

/* ===== FORM ELEMENTS BASE ===== */
button,
input,
optgroup,
select,
textarea {
    font-family: "Inter", sans-serif;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

progress {
    vertical-align: baseline;
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

/* ===== FORM STYLES ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing);
}

.form-group {
    flex: 1 1 0;
    margin-bottom: var(--spacing);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing) * 0.25);
}

label {
    display: inline-block;
    transition: color var(--transition);
    width: fit-content;
    margin: 0 0 5px 0;
    font-size: 14px;
    font-family: var(--font-family-secondary);
    font-weight: 500;
    line-height: 14px;
    letter-spacing: var(--letter-spacing);
}

input,
select,
textarea {
    width: 100%;
    padding: calc(var(--spacing) - 10px) calc(var(--spacing) * 0.9);
    border-radius: var(--radius);
    border: 1px solid #e5e7eb;
    font-size: 13px;
    font-family: var(--font-family-primary);
    font-weight: 400;
    line-height: var(--line-height);
    letter-spacing: var(--letter-spacing);
    background: #f9fafb;
    transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
    min-height: 48px;
    margin: 0rem;
}

select {
    cursor: pointer;
}

input::placeholder,
textarea::placeholder {
    color: #929292;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #c9a037;
    outline: none;
    box-shadow: var(--shadow);
    background: #fff;
}

textarea {
    resize: vertical;
    min-height: 120px;
    flex: 1;
}

/* ===== CHECKBOX & RADIO STYLES ===== */
[type="checkbox"],
[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all var(--transition);
    background: white;
}

[type="radio"] {
    border-radius: 50%;
}

[type="checkbox"]:checked,
[type="radio"]:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(11, 91, 54, 0.1);
}

[type="checkbox"]:hover,
[type="radio"]:hover {
    border-color: var(--color-primary);
}

[type="checkbox"]:focus,
[type="radio"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(11, 91, 54, 0.1);
}

/* ===== BUTTON STYLES ===== */
button,
.btn {
    display: inline-flex;
    align-content: center;
    align-items: center;
    gap: calc(var(--spacing) * 0.625);
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
    font-size: 14px;
    padding: calc(var(--spacing) * 0.7) calc(var(--spacing) * 1);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: var(--letter-spacing);
    line-height: var(--line-height);
    min-height: 44px;
    justify-content: center;
    white-space: nowrap;
    min-width: 0;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

button:hover,
.btn:hover {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
}

button.secondary-btn,
.btn.secondary-btn {
    background: linear-gradient(135deg, rgb(251, 191, 36), rgb(201, 160, 55));
}

button.secondary-btn:hover,
.btn.secondary-btn:hover {
    background: linear-gradient(135deg, rgb(201, 160, 55), rgb(251, 191, 36));
}

button::before,
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

button:hover::before,
.btn:hover::before {
    left: 100%;
}

button:active,
.btn:active {

}

.m-0 {
    margin: 0px !important;
}

/* ===== COMPONENT STYLES ===== */
.card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: calc(var(--spacing) * 2);
    box-shadow: var(--shadow);
    margin-bottom: var(--spacing);
    border: 0px;
}

.card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-gray-800);
    letter-spacing: 1px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

.card p:last-child  {
    margin-bottom: 0px;
}

/* ===== NAVIGATION STYLES ===== */
.nav a.active {
    color: #c9a037;
}

.nav a.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #c9a037;
    border-radius: 1px;
}

/* ===== LAYOUT COMPONENTS ===== */
.main-content {
    padding: 0px;
    min-height: calc(100vh - 155px);
}

.container {
    margin: 0 auto;
    width: 100%;
    max-width: 1240px;
    padding: 0 1rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

.title-container {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.title-container .section-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 38px;
    background: linear-gradient(135deg, #0b5b36 0%, #c9a037 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-container .section-subtitle {
    font-size: 16px;
    max-width: 700px;
    margin: 0px auto;
    text-align: center;
    color: #64748b;
}

.max-w-100 {
    max-width: 100% !important;
}

.text-start {
    text-align: start !important;
}

.text-center {
    text-align: center !important;
}

.text-end {
    text-align: end !important;
}


/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: linear-gradient(135deg, #c9a037 0%, #0b5b36 100%);
    color: white;
    padding: var(--spacing);
    text-decoration: none;
    border-radius: var(--radius);
    z-index: 1000;
    transition: top var(--transition);
    font-size: var(--text-size);
    font-weight: var(--font-weight);
    line-height: var(--line-height);
    letter-spacing: var(--letter-spacing);
}

.skip-link:focus {
    top: 6px;
}

/* ===== BREADCRUMB COMPONENT ===== */
.breadcrumbs {
    position: relative;
    overflow: hidden;
}

.breadcrumbs::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

@keyframes breadcrumbShapes {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(60px) translateY(60px); }
}

.breadcrumb-wrapper {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing) * .50);
    position: relative;
    z-index: 1;
    padding: 40px 0 10px 0;
}

.breadcrumb-title {
    font-size: calc(var(--text-size) * 1.8);
    font-family: var(--font-family-heading);
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: var(--line-height);
    letter-spacing: var(--letter-spacing);
    position: relative;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing) * 0.75);
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing) * 0.5);
    font-size: 12px;
    line-height: var(--line-height);
    letter-spacing: var(--letter-spacing);
    color: #1f2937;
    font-weight: 500;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    color: #9CA3AF;
    font-weight: var(--font-weight);
    font-size: var(--text-size);
    transition: color var(--transition);
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing) * 0.375);
    color: #0b5b36;
    text-decoration: none;
    transition: all var(--transition);
    font-size: 12px;
    line-height: var(--line-height);
    letter-spacing: var(--letter-spacing);
}

.breadcrumb-link:hover {
    color: #0A5B35;
}

.breadcrumb-icon {
    width: 16px;
    height: 16px;
    color: #9CA3AF;
    transition: color var(--transition);
}

.breadcrumb-link:hover .breadcrumb-icon {
    color: #0A5B35;
}

.breadcrumb-current {
    font-size: 12px;
    line-height: var(--line-height);
    letter-spacing: var(--letter-spacing);
    color: #1f2937;
    font-weight: 500;
}


/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100% !important;
    max-width: 100% !important;
    transition: all var(--transition);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    color: #6b7280;
    padding: 8px 6px;
    border-radius: var(--radius);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
    flex: 1;
    max-width: 20%;
    min-height: 44px;
    position: relative;
    -webkit-tap-highlight-color: rgba(22, 101, 52, 0.1);
    touch-action: manipulation;
}

/* CSS-only touch feedback */
.mobile-nav-item:active {
    transform: scale(0.95);
    opacity: 0.8;
}

.mobile-nav-item:hover {
    color: #166534;
    background: rgba(22, 101, 52, 0.05);
    transform: translateY(-2px);
}

.mobile-nav-item.active {
    color: #166534;
    background: rgba(22, 101, 52, 0.1);
}

.mobile-nav-item.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #166534;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(22, 101, 52, 0.2);
}

.mobile-nav-item svg {
    width: 20px;
    height: 20px;
    transition: all var(--transition);
}

.mobile-nav-item:hover svg {
    transform: scale(1.1);
}

.mobile-nav-item.active svg {
    transform: scale(1.1);
}

.mobile-nav-label {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    line-height: var(--line-height);
    max-width: 100%;
    letter-spacing: var(--letter-spacing);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-nav-post-ad {
    background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
    color: #ffffff !important;
    border-radius: var(--radius);
    padding: 12px 16px;
    margin: 0 4px;
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.3);
}

/* CSS-only touch feedback for post ad button */
.mobile-nav-post-ad:active {
    transform: scale(0.95);
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(22, 101, 52, 0.4);
}

.mobile-nav-post-ad:hover {
    background: linear-gradient(135deg, #14532d 0%, #16a34a 100%);
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(22, 101, 52, 0.4);
}

.mobile-nav-post-ad.active {
    background: linear-gradient(135deg, #14532d 0%, #16a34a 100%);
    color: #ffffff !important;
}

.mobile-nav-post-ad svg {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
}

.mobile-nav-post-ad .mobile-nav-label {
    font-weight: var(--font-weight);
}

/* Hide mobile navigation on desktop */
@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}



.header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    position: sticky;
    top: 0;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: auto;
    height: auto;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    cursor: pointer;
    padding: calc(var(--spacing) * 0.5) var(--spacing);
    z-index: 998;
    transition: all var(--transition);
    color: #000;
    min-width: 0;
}

/* Hide mobile navigation on desktop */
@media (min-width: 992px) {
    .nav {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        gap: 1.5rem;
        transform: none;
        opacity: 1;
        visibility: visible;
        transition: none;
        z-index: auto;
        width: auto;
        height: auto;
        overflow: visible;
    }

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

    .mobile-nav-content {
        display: contents;
    }

    .nav-link {
        padding: calc(var(--spacing) * 0.5) 0;
        border-bottom: none;
        width: auto;
        text-align: left;
        font-size: 14px;
        font-weight: 600;
        display: block;
        align-items: center;
        justify-content: flex-start;
    }

    .nav-link.active::after {
        display: block;
    }
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: currentColor;
    border-radius: unset;
    transition: all var(--transition);
}

.mobile-menu-toggle:hover {
    border-color: #16a34a;
    background: #f0fdf4;
    color: #16a34a;
}

.mobile-menu-toggle.active {
    border-color: #16a34a;
    background: #f0fdf4;
    color: #16a34a;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Logo */
.logo {
    min-width: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.logo a {
    display: flex;
    text-decoration: none;
}

.logo a img {
    width: 100%;
    max-width: 175px;
    margin: 0;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing) * 1.25);
}

.nav-link {
    color: #000;
    font-size: 16px;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color var(--transition);
    padding: 0;
}

.nav-link:hover {
    color: #16a34a;
}

.nav-link.active {
    color: #16a34a;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #16a34a;
    border-radius: var(--radius);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing);
    flex-shrink: 0;
    min-width: 0;
    position: relative;
}

.btn-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight);
    font-size: var(--text-size);
    transition: all var(--transition);
    position: relative;
    z-index: 1;
}

.btn:hover .btn-icon {
    transform: scale(1.1) rotate(90deg);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Messages Icon */
.header-messages-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #374151;
    transition: all var(--transition);
    text-decoration: none;
    flex-shrink: 0;
}

.header-messages-icon:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: var(--color-primary);
}

.messages-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 1px solid #aaa;
    line-height: 1;
    z-index: 1;
}

.user-menu {
    position: relative;
}

.user-menu .user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: calc(var(--spacing) * 0.219) calc(var(--spacing) * .5);
    cursor: pointer;
    transition: all var(--transition);
    color: #374151;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    display: none;
    white-space: nowrap;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    overflow: hidden;
}

.user-avatar img {
    width: 35px;
    height: 35px;
    object-fit: cover;
    aspect-ratio: 1;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1004;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    margin-top: 0.5rem;
    display: block;
}

.user-menu.active .user-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
}

.user-dropdown .dropdown-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: calc(var(--spacing) - 10px);
    padding: 0.75rem 1rem;
    color: #0f172a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
    letter-spacing: 1px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.user-dropdown .dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0;
}

.user-dropdown .dropdown-link.logout-btn {
    color: #dc2626;
}

.user-dropdown .dropdown-link.logout-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

.user-dropdown .dropdown-link:hover {
    background: #f8fafc;
    color: #16a34a;
}

.user-dropdown .dropdown-link svg {
    width: 18px;
    height: 18px;
}

.auth-menu {
    position: relative;
    display: block !important;
    visibility: visible !important;
}

.auth-menu-toggle {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    display: flex;
}

.auth-menu-toggle svg {
    fill: #159746;
}

.auth-menu-toggle:hover svg {
    fill: #fff;
}

.auth-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    z-index: 1004;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    margin-top: 0.5rem;
    display: block;
}

.auth-menu.active .auth-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
    overflow: hidden;
}

.auth-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.auth-dropdown-link:hover {
    background: #f8fafc;
    color: #16a34a;
}

.auth-dropdown-link svg {
    transition: transform var(--transition);
}

/* Mobile Search Toggle */
.mobile-search-toggle:active {
    transform: scale(0.95);
}

.mobile-search-toggle:focus {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
    box-shadow: var(--shadow);
}

.mobile-search-toggle svg {
    transition: all var(--transition);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-search-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    transition: transform var(--transition);
}

.mobile-search-overlay.active .mobile-search-content {
    transform: translateY(0);
}

.mobile-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.mobile-search-header h3 {
    font-size: var(--text-size);
}

.mobile-search-close {
    background: #f3f4f6;
}

.mobile-search-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.mobile-search-close svg {
    fill: #000;
    height: 20px;
    width: 20px;
}

.mobile-search-input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.mobile-search-button {
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    position: absolute;
}

.mobile-search-button:hover {
    background: #15803d;
    transform: translateY(-50%) scale(1.05);
}

.mobile-search-suggestions h4 {
    font-size: var(--text-size);
    font-weight: 600;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-tag {
    padding: calc(var(--spacing) * 0.5) var(--spacing);
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: var(--text-size);
    font-weight: var(--font-weight);
    transition: all var(--transition);
    border: 1px solid transparent;
}

.suggestion-tag:hover {
    background: #e5e7eb;
    color: #16a34a;
    border-color: #16a34a;
    transform: translateY(-1px);
}


/* Responsive Navigation */
@media (max-width: 1024px) {
    .header-search {
        max-width: 300px;
        margin: 0 var(--spacing);
    }
}

@media (max-width: 991.98px) {
    .header {
        position: relative;
        padding: 5px 0px;
    }

    .header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(22, 163, 74, 0.02) 0%, rgba(201, 160, 55, 0.02) 100%);
        pointer-events: none;
    }

    .header-flex {
        padding: 0 var(--spacing);
        height: 64px;
        gap: 0.5rem;
        flex-wrap: nowrap;
        position: relative;
        z-index: 1;
    }

    .header-actions {
        order: 3;
        position: unset !important;
        margin-left: auto;
    }

    .header-actions .btn.secondary-btn {
        display: none;
    }

    .user-menu {
        position: unset !important;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-shrink: 0;
        order: 1;
        width: 40px;
        min-width: 20px !important;
        height: 40px;
        padding: 5px 8px !important;
        gap: 0px;
        border-radius: var(--radius);
        background: transparent;
        border: 1px solid #e2e8f0;
        color: #374151;
    }

    .mobile-menu-toggle, .mobile-search-toggle, .user-menu-toggle, .auth-link {
        min-height: 44px;
        min-width: 44px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .mobile-menu-toggle:hover {
        background: #f0fdf4;
        border-color: #16a34a;
        transform: scale(1.05);
    }

    .logo {
        font-size: var(--text-size);
        flex-shrink: 0;
        order: 2;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .logo a img {
        max-width: 160px;
        height: auto;
        transition: transform var(--transition);
    }

    .logo a:hover img {
        transform: scale(1.05);
    }

    .header-search {
        display: none;
    }

    /* Mobile header visual enhancements */
    .logo a {
        position: relative;
        z-index: 2;
    }

    /* Add subtle animation to header elements */
    .header-flex > * {
        transition: all var(--transition);
    }

    /* Improve mobile search overlay animations */
    .mobile-search-overlay {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .mobile-search-content {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        background: #fff;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        flex-direction: column;
        padding: 0;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        z-index: 999;
        width: 100%;
        height: 100vh;
        overflow-y: auto;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 1.5rem 2rem;
        border-bottom: 1px solid #f1f5f9;
        width: 100%;
        text-align: left;
        font-size: var(--text-size);
        font-weight: var(--font-weight);
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link.active::after {
        display: none;
    }

    /* Mobile Navigation Header */
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid #e2e8f0;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .mobile-nav-logo img {
        max-width: 150px;
        height: auto;
    }

    .mobile-nav-close {
        background: none;
        border: none;
        color: #374151;
        cursor: pointer;
        padding: calc(var(--spacing) * 0.5);
        border-radius: var(--radius);
        transition: all var(--transition);
    }

    .mobile-nav-close:hover {
        background: #f3f4f6;
        color: #16a34a;
    }

    .mobile-nav-content {
        flex: 1;
        padding: 2rem 0;
        width: 100%;
    }

    .header-actions {
        gap: 0.25rem;
        flex-shrink: 0;
        order: 3;
        display: flex;
        align-items: center;
        min-width: 0;
        position: unset !important;
        margin-left: auto;
    }

    .header-actions a.btn.btn-secondary {
        display: none !important;
    }

    .header-messages-icon {
        width: 40px;
        height: 40px;
    }

    .messages-badge {
        font-size: 9px;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        padding: 0 4px;
    }

    .auth-dropdown {
        width: calc(100% - 24px);
        right: 0;
        left: 0;
        margin: 10px 12px 0 12px;
        border-radius: var(--radius);
        border-left: none;
        border-right: none;
    }

    .auth-menu {
        position: unset !important;
    }

    .auth-link {
        padding: 0.375rem 0.5rem;
        font-size: var(--text-size);
        min-width: auto;
    }

    .auth-text {
        display: none;
    }

    .user-menu-toggle {
        padding: 0.375rem 0.5rem;
        min-width: auto;
    }

    .user-dropdown {
        position: fixed;
        top: 70px;
        right: 0.75rem;
        left: 0.75rem;
        min-width: auto;
        width: calc(100% - 1.5rem);
        z-index: 1002;
    }

    .user-dropdown {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border: 1px solid #d1d5db;
    }

    .btn {
        padding: 0.375rem 0.75rem;
        min-width: auto;
        white-space: nowrap;
        gap: 5px;
    }

    .btn-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 0px;
    }
}

@media (max-width: 480px) {
    .header-flex {
        padding: 0 0.75rem;
        height: 60px;
        gap: 0.375rem;
    }

    .logo a img {
        margin: 0px;
        max-width: 140px;
    }

    .mobile-menu-toggle,
    .mobile-search-toggle {
        padding: 0.375rem;
    }

    .header-actions {
        min-width: 0;
        gap: var(--spacing);
        margin-left: auto;
    }

    .auth-link {
        padding: 0.375rem 0.5rem;
        font-size: var(--text-size);
    }

    .user-menu-toggle {
        padding: 0.375rem 0.5rem;
        min-height: 40px;
    }

    .user-dropdown {
        left: 0.5rem;
        right: 0.5rem;
        width: calc(100% - 1rem);
    }

    .mobile-menu-toggle {
        min-height: unset;
    }
}

@media (max-width: 360px) {
    .header-flex {
        padding: 0 0.5rem;
        height: 56px;
        gap: 0.25rem;
    }

    .logo a img {
        max-width: 100px;
    }

    .mobile-menu-toggle,
    .mobile-search-toggle {
        width: 36px;
        height: 36px;
        padding: 0.25rem;
    }

    .auth-link {
        padding: 0.25rem 0.375rem;
        font-size: var(--text-size);
    }

    .user-menu-toggle {
        padding: 0.25rem 0.375rem;
        min-height: 36px;
    }

    .mobile-search-content {
        padding: 0.75rem;
    }

    .mobile-search-input {
        padding: 0.75rem 2.5rem 0.75rem 0.75rem;
        font-size: var(--text-size);
    }

    .mobile-search-button {
        width: 32px;
        height: 32px;
        right: 6px;
    }

    .user-dropdown {
        right: 0.25rem;
        left: 0.25rem;
        width: calc(100% - 0.5rem);
    }

    .btn {
        padding: 0.25rem 0.375rem;
    }

    .btn-icon {
        margin-right: 0.125rem;
    }
}

/* Enhanced Featured Listings Section */
.featured-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 70px 0 80px 0px;
    position: relative;
    overflow: hidden;
}

.featured-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="featured-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="%23e2e8f0" opacity="0.4"/></pattern></defs><rect width="100" height="100" fill="url(%23featured-pattern)"/></svg>');
    poInter-events: none;
}

.featured-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.featured-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing);
    margin-top: 25px;
}

.featured-stat {
    text-align: center;
}

.featured-stat .stat-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
    gap: var(--spacing);
    position: relative;
    z-index: 1;
    margin: 0px auto calc(var(--spacing) + 3rem) auto;
}

.featured-card {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.featured-card:hover .featured-image img {
    transform: scale(1.1);
}

.featured-card:hover .featured-overlay {
    opacity: 1;
}

.featured-card .featured-card-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-card .featured-card-inner .featured-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.featured-card .featured-card-inner .featured-image-wrapper .boosted-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: calc(var(--spacing) * 0.25) var(--spacing);
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: var(--font-weight);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 2;
    letter-spacing: var(--letter-spacing);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    min-height: 30px;
}

.featured-card .featured-card-inner .featured-image-wrapper .boosted-badge .boosted-icon {
    width: 16px;
    height: 16px;
}

.featured-card .featured-card-inner .featured-image-wrapper .featured-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5e7c3 0%, #c9a037 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.featured-card .featured-card-inner .featured-image-wrapper .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}


.featured-card .featured-card-inner .featured-image-wrapper .featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 91, 54, 0.9) 0%, rgba(201, 160, 55, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.featured-card .featured-card-inner .featured-image-wrapper .featured-overlay .featured-overlay-content {
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.featured-card .featured-card-inner .featured-image-wrapper .featured-overlay .featured-overlay-content .view-details {
    font-size: var(--text-size);
    font-weight: var(--font-weight);
    letter-spacing: var(--letter-spacing);
}

.featured-card .featured-card-inner .featured-image-wrapper .photo-count-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 2;
}

.featured-card .featured-card-inner .featured-image-wrapper .photo-count-badge .photo-count-icon {
    width: 12px;
    height: 12px;
}

.featured-card .featured-card-inner .featured-image-wrapper .featured-price {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
}

.featured-card .featured-card-inner .featured-image-wrapper .featured-price .price-tag {
    display: inline-block;
    background: linear-gradient(135deg, #0b5b36 0%, #c9a037 100%);
    color: white;
    padding: 3px 10px;
    border-radius: var(--radius);
    font-size: var(--text-size);
    font-weight: 500;
    min-height: 30px;
}

.featured-card .featured-card-inner .featured-image-wrapper .featured-price .price-tag.stud {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

.featured-card .featured-card-inner .featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing);
    padding: var(--spacing);
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5e7c3 0%, #c9a037 100%);
}

.featured-placeholder svg {
    width: 60px;
    height: 60px;
    color: #0b5b36;
    opacity: 0.7;
}

/* Favorite Button */
.favorite-button {
    cursor: poInter;
    padding: 0px;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    color: #15803d;
    font-weight: 600;
    background: transparent;
    min-height: unset;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-button:hover {
    background: transparent;
}

.heart-icon {
    width: 20px;
    height: 20px;
    color: #15803d;
    stroke: #15803d;
    stroke-width: 2;
    fill: none;
}

.favorite-button:hover .heart-icon {
    fill: #15803d;
}


.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.listing-type .type-badge {
    padding: 2px 10px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: var(--letter-spacing);
    display: inline-flex;
    align-items: center;
}

.type-badge.sale {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.type-badge.stud {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
}

.type-badge.wanted {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.listing-age {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

.age-icon {
    width: 14px;
    height: 14px;
    color: #16a34a;
}

.featured-title {
    font-size: var(--text-size);
    font-weight: 600;
    color: #000;
    line-height: var(--line-height);
    min-height: 38px;
    margin: 0;
    display: -webkit-box;
    white-space: normal;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.listing-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    font-weight: 500;
    line-height: var(--line-height);
    letter-spacing: .8px;
    color: #aaaaaa;
    margin: 0px 0px -15px 0px;
}

.location-icon {
    width: 20px;
    height: 20px;
    color: #16a34a;
}

.breed-type {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: var(--letter-spacing);
    color: #0b5b36;
}

.featured-desc {
    color: #000;
    margin: 0;
    display: -webkit-box;
    white-space: normal;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.featured-cta {
    text-align: center;
    position: relative;
    z-index: 1;
}

.breeds-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing);
    position: relative;
    z-index: 1;
    margin: 0px auto calc(var(--spacing) + 3rem) auto;
}

.breed-card {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.breed-card-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.breed-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.breed-content {
    padding: var(--spacing);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing);
    text-align: start;
}

.breed-content h3 {
    font-size: var(--text-size);
    letter-spacing: var(--letter-spacing);
    margin: 0;
 }

.breed-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5e7c3 0%, #c9a037 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.breed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.breed-card:hover .breed-image img {
    transform: scale(1.1);
}

.breed-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5e7c3 0%, #c9a037 100%);
}

.breed-placeholder svg {
    width: 60px;
    height: 60px;
    color: #0b5b36;
    opacity: 0.7;
}

.breed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 91, 54, 0.9) 0%, rgba(201, 160, 55, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.breed-card:hover .breed-overlay {
    opacity: 1;
}

.breed-overlay-content {
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.view-more {
    font-size: 1.1rem;
    font-weight: var(--font-weight);
}

.arrow-icon {
    width: 24px;
    height: 24px;
    transition: transform var(--transition);
}

.breed-card:hover .arrow-icon {
    transform: translateX(5px);
}

.breed-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing);
}

.breed-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 12px;
    font-weight: 500;
    color: #aaaaaa;
}

.count-icon {
    width: 20px;
    height: 20px;
    color: #16a34a;
}

.popularity-badge {
    padding: calc(var(--spacing) * 0.25) calc(var(--spacing) * 0.50);
    border-radius: var(--radius);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: calc(var(--spacing) * 0.25);
}

.popularity-badge.hot {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.popularity-badge.trending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.popularity-badge.new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.popularity-badge.new::before {
    content: '';
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.breeds-cta {
    text-align: center;
    position: relative;
    z-index: 1;
}

.breeds-cta svg {
    width: 20px;
}

.breed-card.placeholder {
    opacity: 0.6;
    cursor: default;
}

.breed-card.placeholder:hover {
    transform: none;
}

.breed-card.placeholder .breed-card-inner {
    box-shadow: var(--shadow);
}


.cta-section {
    text-align: center;
    margin-top: 70px;
}

.cta-section .cta-card {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 50%, #14532d 100%);
    color: white;
    padding: calc(var(--spacing) + 3rem);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.cta-section .cta-card .cta-content {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    max-width: 715px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing);
}

.cta-section .cta-card .cta-content h3 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section .cta-card .cta-content .cta-description {
    font-size: 16px;
    color: #fff;
    margin: 0px;
}

.cta-section .cta-card .cta-content .cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing);
    position: relative;
    z-index: 1;
}

.cta-section .cta-card .cta-content .cta-buttons .cta-btn-primary {
    background: white;
    color: #16a34a;
}

.cta-section .cta-card .cta-content .cta-buttons .cta-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}


.cta-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots-white" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1.5" fill="white" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23dots-white)"/></svg>');
    pointer-events: none;
}

/* Enhanced Footer */
.footer {
    background: linear-gradient(135deg, #0b5b36 0%, #166534 50%, #c9a037 100%);
    color: #fff;
    padding: 70px 0 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
}

.footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: var(--spacing);
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo a {
    display: block;
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight);
    color: #fff;
    text-decoration: none;
    transition: all var(--transition);
    margin-bottom: var(--spacing);
}

.footer-logo a:hover {
    color: #fbbf24;
}

.footer-logo-img {
    width: auto;
    height: 50px;
    filter: brightness(0) invert(1);
    transition: all var(--transition);
}

.footer-logo a:hover .footer-logo-img {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(45deg);
}

.footer-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: var(--line-height);
    margin-bottom: calc(var(--spacing) * 2);
    max-width: 315px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--spacing);
    position: relative;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    transition: all var(--transition);
    position: relative;
}

.footer-nav a:hover {
    color: #fbbf24;
    padding-left: 0.5rem;
}

.footer-nav a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.footer-nav a:hover::before {
    width: 0.25rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    transform: translateY(-2px);
}

.footer-newsletter {
    max-width: 300px;
}

.newsletter-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: var(--line-height);
    margin-bottom: 1.5rem;
}

.newsletter-input-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing);
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 10px 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    margin: 0;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-btn {
    background: linear-gradient(135deg, #fbbf24, #c9a037);
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #c9a037, #fbbf24);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin: 0;
}

.copyright a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition);
}

.copyright a:hover {
    color: #fbbf24;
}

.footer-badges {
    display: flex;
    gap: 0.75rem;
}

.footer-badges .badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: var(--font-weight);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition);
}


@media(max-width: 767.98px) {
    .cta-section .cta-card {
        padding: calc(var(--spacing) * 3) calc(var(--spacing) * 2);
    }

    .cta-section .cta-card .cta-content h3 {
        font-size: 26px;
    }

    .cta-section .cta-card .cta-content .cta-description {
        font-size: 16px;
    }
}

/* Hide Google Maps watermark/attribution globally */
.gm-style-cc,
.gm-style-mtc,
.gm-fullscreen-control,
.gm-style .gm-style-cc a,
.gm-style .gm-style-mtc a,
.pac-corner .pac-watermark {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Hide Google Places autocomplete attribution */
.pac-container:after {
    display: none !important;
}

/* Hide any Google branding elements */
[aria-label*="Google"],
[aria-label*="powered by"],
.gm-style div[style*="font-family"],
.gm-style div[title*="Google"],
.gm-style [alt*="Google"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media(min-width: 768px) and (max-width: 991.98px) {
    footer {
        margin-bottom: 87px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-section {
        align-items: center;
        text-align: center;
    }

    .newsletter-input-group {
        flex-direction: row;
    }

    .footer-brand, .footer-newsletter {
        margin: 0px auto;
        grid-column: 1 / -1;
        max-width: 500px;
    }

    .footer-description {
        max-width: unset;
        margin-bottom: 15px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom-content {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .breadcrumb-title {
        font-size: calc(var(--text-size) * 1.75);
    }

    .breadcrumb-list {
        gap: calc(var(--spacing) * 0.5);
    }

    .breadcrumb-item {
        font-size: var(--text-size);
    }

    .breadcrumb-icon {
        width: 14px;
        height: 14px;
    }

    footer {
        margin-bottom: 83px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand, .footer-newsletter {
        grid-column: 1 / -1;
        text-align: center;
        max-width: unset;
        width: 100%;
    }

    .footer-description {
        max-width: unset;
        margin-bottom: 15px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom-content {
        justify-content: center;
    }
}


/* Favorite Popup Modal */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.favorite-popup {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: calc(var(--spacing) * 2);
    max-width: 420px;
    width: 90%;
    text-align: center;
    transform: scale(0.85) translateY(30px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.popup-overlay.show .favorite-popup {
    transform: scale(1) translateY(0);
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.popup-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
    border-radius: var(--radius);
    border: 2px solid rgba(231, 76, 60, 0.1);
}

.popup-icon.popup-error {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border: 2px solid rgba(245, 158, 11, 0.2);
}

.popup-error-icon {
    width: 32px;
    height: 32px;
    color: #f59e0b;
}

.popup-heart-icon {
    width: 36px;
    height: 36px;
    fill: #e74c3c;
    transition: all 0.3s ease;
}

.popup-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    letter-spacing: var(--letter-spacing);
    margin: 0;
    line-height: 1.2;
}

.popup-message {
    color: #000;
    line-height: var(--line-height);
    font-weight: 400;
    margin: 0;
}

.popup-close-btn {
    background: #e74c3c;
}

.popup-close-btn:hover {
    background: #c0392b;
}

.popup-close-btn:active {
    transform: translateY(0);
}

.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Mobile responsive */
@media (min-width: 768px) and (max-width: 991.98px) {
    .title-container {
        margin-bottom: 40px;
    }

    .title-container .section-subtitle,
    .cta-section .cta-card .cta-content .cta-description {
        font-size: 16px;
    }

    .cta-section {
        margin-top: 40px;
    }

    .cta-section .cta-card .cta-content h3 {
        font-size: 28px;
    }
}

@media (max-width: 767.98px) {
    .title-container {
        margin-bottom: 25px;
    }

    .title-container .section-title {
        font-size: 28px;
    }

    .title-container .section-subtitle {
        font-size: 16px;
    }

    .card {
        padding: var(--spacing);
    }

    .cta-section {
        margin-top: 40px;
    }

    .favorite-popup {
        padding: 32px 24px;
        margin: 20px;
        width: calc(100% - 40px);
        border-radius: 16px;
    }

    .popup-icon {
        width: 64px;
        height: 64px;
    }

    .popup-heart-icon {
        width: 32px;
        height: 32px;
    }

    .popup-title {
        font-size: 22px;
    }

    .popup-message {
        font-size: 15px;
    }

    .popup-buttons {
        gap: 12px;
    }

    .the-watermark {
        position: absolute !important;
        visibility: hidden !important;
        opacity: 0 !important;
        z-index: -1 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
    }

    /* Hide Google Maps watermark/attribution */
    .gm-style-cc,
    .gm-style-mtc,
    .gm-fullscreen-control,
    .gm-style .gm-style-cc a,
    .gm-style .gm-style-mtc a {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Hide any potential Google branding */
    [aria-label*="Google"],
    [aria-label*="powered by"],
    .gm-style div[style*="font"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* ===== ALERT STYLES ===== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.alert ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style: disc;
}

.alert ul li {
    margin: 0.25rem 0;
}

/* Success Alert - Green Theme */
.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-color: #059669;
}

.alert-success svg {
    color: #059669;
}

/* Danger/Error Alert - Red Theme */
.alert-danger,
.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-color: #dc2626;
}

.alert-danger svg,
.alert-error svg {
    color: #dc2626;
}

/* Warning Alert - Golden Theme */
.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-color: #d97706;
}

.alert-warning svg {
    color: #d97706;
}

/* Info Alert - Blue Theme */
.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-color: #3b82f6;
}

.alert-info svg {
    color: #3b82f6;
}

/* Alert with close button */
.alert-dismissible {
    padding-right: 3rem;
    position: relative;
}

.alert .close,
.alert .btn-close {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s ease;
}

.alert .close:hover,
.alert .btn-close:hover {
    opacity: 1;
}

/* Alert variations */
.alert-solid {
    color: white;
    font-weight: 600;
}

.alert-solid.alert-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #047857;
}

.alert-solid.alert-danger,
.alert-solid.alert-error {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: #b91c1c;
}

.alert-solid.alert-warning {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    border-color: #b45309;
}

.alert-solid.alert-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
}

/* Alert sizing */
.alert-sm {
    padding: 0.625rem 1rem;
    font-size: 14px;
}

.alert-sm svg {
    width: 16px;
    height: 16px;
}

.alert-lg {
    padding: 1.5rem 1.75rem;
    font-size: 16px;
}

.alert-lg svg {
    width: 24px;
    height: 24px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .alert {
        padding: 0.875rem 1rem;
        font-size: 14px;
        margin-bottom: 1rem;
    }

    .alert svg {
        width: 18px;
        height: 18px;
    }

    .alert-dismissible {
        padding-right: 2.5rem;
    }

    .alert .close,
    .alert .btn-close {
        right: 0.75rem;
        font-size: 1.25rem;
    }
}

.featured-card .featured-card-inner {
    border: 1px solid #eaeaea;
    border-radius: var(--radius);
}

/* FAQ Section Styles */
.faq-section {
    padding: 60px 0 70px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(425px, 1fr));
    gap: var(--spacing);
    margin-top: 48px;
}

.faq-item {
    background: white;
    border-radius: var(--radius);
    padding: var(--spacing);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--color-gray-200);
}

.faq-question {
    font-size: var(--text-size);
    font-weight: 600;
    color: rgb(0, 0, 0);
    line-height: var(--line-height);
    margin: 0 0 1rem 0;
}

.faq-answer {
    color: #64748b;
    line-height: 1.6;
}

.faq-answer p {
    margin: 0;
}

@media(max-width: 767.98px) {
    .faq-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}
