/* ============================================
   EQITHRA HORSES CSS
   Moodne, minimalistlik ja 100% responsive
   ============================================ */

/* SMOOTH SCROLL - sujuv kerimine ankru juurde */
html {
    scroll-behavior: smooth;
}

/* CSS MUUTUJAD - ELEGANTNE MINIMALISTLIK KUJUNDUS */
:root {
    --color-primary: #2c3e50;        /* Sügav sinakashall - elegantne ja rahulik */
    --color-secondary: #34495e;      /* Pehmem tumeroheline-hall */
    --color-success: #27ae60;        /* Mõnus roheline */
    --color-warning: #7f8c8d;        /* Neutraalne hall */
    --color-danger: #c0392b;         /* Elegantne punane */
    --color-text: #2c3e50;           /* Pehmem tekst tumehalli asemel */
    --color-text-light: #7f8c8d;    /* Loetav hall */
    --color-border: #bdc3c7;         /* Hele pehmehall piirjooned */
    --color-bg: #ffffff;             /* Puhas valge */
    --color-bg-light: #ecf0f1;       /* Helehall taust */
    --color-bg-dark: #34495e;        /* Tumesinine-hall */
    --color-accent: #3498db;         /* Elegantne sinine rõhutus */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    --shadow-strong: 0 4px 16px rgba(44, 62, 80, 0.12);
    --radius: 0px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;
    background: #fafafa;
    letter-spacing: -0.01em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.6;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.main-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.main-nav a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.main-nav a:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
}

/* Lisa Hobune nupp - lihtsalt mustana silmapaistev */
.main-nav .btn-add-horse {
    color: #000000 !important;
    font-weight: 500;
}

.main-nav .btn-add-horse:hover {
    color: #000000 !important;
    background: var(--color-bg-light);
}

/* Lemmikute link - kergelt eristuv */
.main-nav a[href*="favorites"] {
    position: relative;
    margin-left: 0.5rem;
    padding-left: 1rem;
}

.main-nav a[href*="favorites"]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--color-border);
}

.language-switcher {
    margin-left: 0.5rem;
    position: relative;
}

.lang-dropdown {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0.75rem;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-current:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.lang-current svg {
    transition: transform 0.2s ease;
}

.lang-dropdown.open .lang-current svg {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 60px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

.lang-option:hover {
    background: var(--color-primary);
    color: white;
}

.lang-option:first-child {
    border-radius: 3px 3px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 3px 3px;
}

/* Legacy support */
.lang-link {
    padding: 0.5rem 0.875rem;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    transition: var(--transition);
}

/* MAIN CONTENT */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: white;
}

.search-form-hero {
    max-width: 800px;
    margin: 0 auto;
}

.search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Hero section form controls */
.hero-section .form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #2c3e50;
}

.hero-section .form-control:focus {
    background: white;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Hero section search button - EREDAM JA LOETAVAM */
.hero-section .btn-primary {
    background: #3498db;
    border-color: #3498db;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.hero-section .btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.advanced-search-link {
    color: white;
    text-align: center;
    display: block;
    text-decoration: underline;
    opacity: 0.9;
}

.advanced-search-link:hover {
    opacity: 1;
    color: var(--color-accent);
}

/* ALERTS */
.alert {
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--color-border);
    position: relative;
}

.alert-success {
    background: #d5f4e6;
    color: var(--color-success);
    border-left: 4px solid var(--color-success);
}

.alert-error {
    background: #fadbd8;
    color: var(--color-danger);
    border-left: 4px solid var(--color-danger);
}

.alert-info {
    background: #d6eaf8;
    color: var(--color-primary);
    border-left: 4px solid var(--color-accent);
}

/* HORSES GRID */
.horses-section {
    margin: 3rem 0;
    padding-top: 2rem;
}

.horses-section .section-header {
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

.horses-section .section-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    z-index: 0;
}

.horses-section .section-header h2 {
    font-size: 1.75rem;
    margin: 0;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

.section-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.horses-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 1rem;
}

.horses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.horse-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow);
}

.horse-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
    border-color: var(--color-accent);
}

.featured-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-accent);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

/* Featured info text in bottom right corner of horse cards */
.horse-card-featured-info {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    font-size: 0.7rem;
    color: var(--color-text-light);
    text-align: right;
    line-height: 1.4;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .horse-card-featured-info {
        bottom: 0.5rem;
        right: 0.5rem;
        font-size: 0.65rem;
    }
}

.reserved-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #1976d2;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.rental-badge {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    background: #2e7d32;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

/* When both reserved and rental badges are present, move rental badge down */
.horse-card .reserved-badge ~ .rental-badge {
    top: 32px !important;
}

/* Rental info box for horse detail page */
.rental-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8f9fa;
    border-left: 3px solid #666;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.rental-info-box .rental-info-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: #555;
    margin-top: 2px;
}

.rental-info-box p {
    margin: 0;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Rental tag for my listings */
.rental-tag {
    display: inline-block;
    background: #2e7d32;
    color: white;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.horse-card-link {
    color: inherit;
    display: block;
    position: relative;
}

.horse-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.horse-image-placeholder {
    width: 100%;
    height: 280px;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    border: 1px solid var(--color-border);
}

.horse-card-content {
    padding: 1.5rem;
}

.horse-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.horse-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.horse-meta span {
    padding: 0.25rem 0.75rem;
    background: var(--color-bg-light);
    color: var(--color-text);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--color-border);
}

/* Horse parents (sire/dam) info on cards - same style as .horse-meta */
.horse-parents {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.horse-parents span {
    padding: 0.25rem 0.75rem;
    background: var(--color-bg-light);
    color: var(--color-text);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border: 1px solid var(--color-border);
}

.horse-parents strong {
    font-weight: 600;
    margin-right: 0.25rem;
}

.horse-price {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

/* SEARCH PAGE */
.search-page {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Mobile filter toggle button - hidden on desktop */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow);
}

.mobile-filter-toggle:hover {
    background: var(--color-secondary);
    box-shadow: var(--shadow-strong);
}

.mobile-filter-toggle .filter-icon {
    font-size: 1.25rem;
}

.mobile-filter-toggle .filter-text {
    flex: 1;
}

.mobile-filter-toggle .filter-count {
    background: var(--color-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.mobile-filter-toggle .filter-count:empty {
    display: none;
}

/* Mobile filters overlay - hidden by default */
.search-filters-overlay {
    display: none;
}

.search-filters {
    background: var(--color-bg);
    padding: 2rem;
    border: 1px solid var(--color-border);
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow);
}

/* Hide close button on desktop */
.search-filters .filter-close {
    display: none;
}

/* Desktop: filter-content should not affect layout */
.search-filters .filter-content {
    height: auto;
    overflow: visible;
}

.search-filters h2 {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.checkbox-label input {
    width: auto;
}

.range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* --- SORTEERIMISE JA TULEMUSTE PÄIS --- */
.results-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-bg-light);
}

.results-count {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 500;
    margin: 0;
}

.sort-select {
    border: 1px solid transparent;
    background-color: transparent;
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    padding: 4px 24px 4px 4px;
    border-radius: 4px;
    outline: none;
    transition: all 0.2s ease;
    
    /* Custom nooleke */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232c3e50%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 0.65em auto;
    appearance: none;
    -webkit-appearance: none;
}

.sort-select:hover {
    background-color: var(--color-bg-light);
}

.sort-select:focus {
    border-color: var(--color-border);
}

/* Mobiilis: paiguta üksteise alla või hoia ruumi kokku */
@media (max-width: 480px) {
    .results-header-bar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .sort-label {
        display: none; /* Mobiilis peidame sõna "Järjesta", et ruumi säästa */
    }
    
    .sort-select {
        font-size: 0.85rem;
        background-color: var(--color-bg-light);
        padding: 6px 24px 6px 10px;
    }
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-light);
    font-size: 1.125rem;
}

/* HORSE DETAIL */
.horse-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--color-bg);
    padding: 3rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
}

.horse-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.gallery-main {
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.gallery-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--color-accent);
    border-width: 2px;
}

.no-image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.horse-info h1 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.horse-price-detail {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    padding: 1rem 0;
    border-top: 2px solid var(--color-border);
    border-bottom: 2px solid var(--color-border);
}

.horse-specs {
    margin-bottom: 2rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.spec-item strong {
    color: var(--color-primary);
}

/* Age info tooltip icon */
.age-info-tooltip {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    cursor: help;
    position: relative;
}

.age-info-icon {
    width: 16px;
    height: 16px;
    fill: var(--color-secondary);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.age-info-tooltip:hover .age-info-icon {
    opacity: 1;
}

/* Tooltip popup */
.age-info-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    right: 0;
    transform: none;
    background: var(--color-primary);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    margin-bottom: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.age-info-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

.horse-description,
.horse-pedigree,
.horse-health,
.horse-videos,
.horse-documents,
.horse-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
}

.contact-name-link {
    color: var(--color-accent);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.contact-name-link:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    opacity: 1;
}

.view-seller-listings-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.875rem;
    margin-left: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
    vertical-align: middle;
}

.view-seller-listings-link svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
}

.view-seller-listings-link:hover {
    background: var(--color-bg-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
    opacity: 1;
}

.horse-description h3,
.horse-pedigree h3,
.horse-health h3,
.horse-videos h3,
.horse-documents h3,
.horse-contact h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* Video nupu stiilid */
.video-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a5490 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
    margin: 0.5rem 0.5rem 0.5rem 0;
    border: 2px solid transparent;
}

.video-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    color: white;
}

.video-button .video-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.video-button .video-text {
    font-size: 1rem;
}

.video-button .video-platform {
    font-size: 0.85rem;
    opacity: 0.9;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.video-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.video-info-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-style: italic;
}

/* ============================================
   SHARE BUTTON - MINIMAL DESIGN
   ============================================ */

.title-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    position: relative; /* OLULINE: dropdown positsioneerimine */
}

.share-btn-detail {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn-detail svg {
    width: 24px;
    height: 24px;
    fill: var(--color-text-light);
    transition: all 0.2s ease;
}

.share-btn-detail:hover svg {
    fill: var(--color-primary);
    transform: scale(1.1);
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* FORMS */
.form-control {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--color-border);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background: white;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.horse-form {
    background: var(--color-bg);
    padding: 2.5rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.preview-item {
    position: relative;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.5rem;
    background: var(--color-bg-light);
    transition: var(--transition);
}

.preview-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.preview-info {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.preview-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-buttons .btn {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.875rem;
}

/* Vana nupu stiil - enam ei kasutata, aga jätan alles tagasiühilduvuse jaoks */
.btn-remove-preview {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border: 2px solid white;
    background: var(--color-danger);
    color: white;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-weight: 600;
}

.btn-remove-preview:hover {
    background: #a93226;
    color: white;
    border-color: white;
    transform: scale(1.1);
}

.text-info {
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
}

.form-help {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* BUTTONS - ELEGANTNE MINIMALISTLIK STIIL */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: 1px solid var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.btn-primary:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
    opacity: 1;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--color-success);
    color: white;
    border-color: var(--color-success);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.btn-success:hover {
    background: #229954;
    border-color: #229954;
    color: white;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-warning {
    background: var(--color-warning);
    color: white;
    border-color: var(--color-warning);
}

.btn-warning:hover {
    background: #6c7a89;
    border-color: #6c7a89;
    color: white;
    opacity: 1;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--color-danger);
    color: white;
    border-color: var(--color-danger);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-danger:hover {
    background: #a93226;
    border-color: #a93226;
    color: white;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* AUTH PAGES */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-form {
    background: var(--color-bg);
    padding: 3rem;
    border: 1px solid var(--color-border);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-strong);
}

.auth-form h1 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.75rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 1rem;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* MY LISTINGS */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-listings-subtitle {
    color: var(--color-text-light);
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.user-listings-count {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
    border-top: 1px solid var(--color-border);
}

.my-listings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.listing-card {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 1.5rem;
    background: var(--color-bg);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    align-items: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
}

.listing-card:hover {
    box-shadow: var(--shadow-strong);
    transform: translateX(4px);
    border-color: var(--color-accent);
}

.listing-image,
.listing-image-placeholder {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border: 1px solid var(--color-border);
}

.listing-image-placeholder {
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.listing-content h3 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.listing-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.listing-meta .status {
    padding: 0.375rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    border: 1px solid var(--color-border);
}

.status-active {
    background: var(--color-success);
    color: white;
    border-color: var(--color-success);
}

.status-pending {
    background: #fff8e1;
    color: #f39c12;
    border: 1px solid #f39c12;
}

.status-reserved {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #1976d2;
}

.status-sold {
    background: var(--color-text-light);
    color: white;
    border-color: var(--color-text-light);
}

.view-count {
    background: #f0f7ff;
    color: #1976d2;
    padding: 0.375rem 1rem;
    border: 1px solid #bbdefb;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.listing-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.listing-featured-info {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    font-size: 0.65rem;
    color: var(--color-text-light);
    text-align: right;
    line-height: 1.3;
    z-index: 5;
}

.featured-info-line {
    margin-bottom: 0.25rem;
}

.featured-info-line:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .listing-featured-info {
        bottom: 0.75rem;
        right: 0.75rem;
        font-size: 0.65rem;
    }
}

/* Desktop version - pildi peal */
.listing-featured-info-desktop {
    display: block;
}

/* Mobile version - inline */
.listing-featured-info-mobile {
    display: none;
}

.listing-featured-info-inline {
    margin: 0.5rem 0;
    padding: 0.5rem 0.75rem;
    background: #f0f7ff;
    border: 1px solid #d1e8ff;
    border-left: 3px solid var(--color-accent);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--color-text);
    line-height: 1.5;
}

.listing-featured-info-inline .featured-info-line {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    color: var(--color-text-light);
}

.listing-featured-info-inline .featured-info-line:last-child {
    margin-bottom: 0;
}

.listing-featured-info-inline .featured-info-line:before {
    content: "✓";
    margin-right: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--color-success);
}

@media (max-width: 768px) {
    /* Telefonis peida desktop versioon */
    .listing-featured-info-desktop {
        display: none !important;
    }
    
    /* Telefonis näita mobile versioon */
    .listing-featured-info-mobile {
        display: block;
    }
    
    .listing-featured-info-inline {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
}

.listing-featured-status {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: #28a745;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
}

/* PROFILE */
.profile-sections {
    display: grid;
    gap: 2rem;
}

.profile-section {
    background: var(--color-bg);
    padding: 2rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
}

.profile-section h2 {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

/* ADMIN */
/* ==========================================
   ADMIN DASHBOARD - Ülevaate kaardid
   ========================================== */

.admin-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-overview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-bg);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.admin-overview-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.admin-overview-card--alert {
    border-left: 4px solid var(--color-primary);
}

.admin-overview-card--warning {
    border-left: 4px solid #f39c12;
    background: #fffbf0;
}

.admin-overview-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light, #f5f5f5);
    border-radius: 10px;
}

.admin-overview-icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
}

.admin-overview-card--warning .admin-overview-icon {
    background: #fef3cd;
}

.admin-overview-card--warning .admin-overview-icon svg {
    color: #d68910;
}

.admin-overview-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-overview-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

.admin-overview-label {
    font-size: 0.8rem;
    color: var(--color-text-light, #888);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

/* ==========================================
   ADMIN DASHBOARD - Navigatsiooni grupid
   ========================================== */

.admin-nav-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.admin-nav-group {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.admin-nav-group-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-light, #888);
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--color-border);
}

.admin-nav-group-title svg {
    color: var(--color-text-light, #888);
    flex-shrink: 0;
}

.admin-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: 7px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.admin-nav-link:hover {
    background: var(--color-bg-light, #f5f5f5);
    color: var(--color-primary);
}

.admin-nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-text-light, #999);
    transition: color 0.15s ease;
}

.admin-nav-link:hover svg {
    color: var(--color-primary);
}

.admin-nav-link--highlight {
    color: var(--color-primary);
    font-weight: 600;
}

.admin-nav-link--highlight svg {
    color: var(--color-primary);
}

.admin-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: auto;
}

.admin-nav-badge--warning {
    background: #f39c12;
}

/* Legacy dashboard stats (tagasiühilduvus) */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--color-bg);
    padding: 2.5rem;
    border: 1px solid var(--color-border);
    text-align: center;
    box-shadow: var(--shadow);
}

.dashboard-stats .stat-card:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-strong);
}

.dashboard-stats .stat-card:hover h3,
.dashboard-stats .stat-card:hover .stat-value {
    color: white;
}

.stat-card h3 {
    color: var(--color-text);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.03em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
}

.admin-section {
    background: var(--color-bg);
    padding: 2rem;
    border: 1px solid var(--color-border);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.admin-section h2 {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--color-border);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.admin-table th {
    background: var(--color-primary);
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* Admin search box */
.admin-search {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.admin-search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
}

.admin-search-input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
}

.admin-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.admin-search-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.admin-search .btn {
    white-space: nowrap;
}

/* Admin filters grid - responsive layout for user management */
.admin-filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

/* Admin filters grid with 5 columns for all horses page */
.admin-filters-grid-5 {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr auto;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.filter-item .admin-search-input {
    width: 100%;
    min-width: 0;
}

.admin-search-results {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #e3f2fd;
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius);
}

.admin-search-results strong {
    color: var(--color-primary);
}

.existing-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.existing-image {
    position: relative;
}

.existing-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 1px solid var(--color-border);
}

.existing-image {
    position: relative;
    background: var(--color-bg-light);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.existing-image:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.existing-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.primary-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--color-success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.image-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.image-actions .btn {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.875rem;
}

.image-actions form {
    margin: 0;
}

/* Olemasolevad videod muutmise vaates */
.existing-videos-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 20px;
}

.existing-video-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.existing-video-item .video-button {
    flex: 1;
    margin: 0;
    min-width: 0;
}

.existing-video-item .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Mobile responsive for video items */
@media (max-width: 768px) {
    .existing-video-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .existing-video-item .video-button {
        width: 100%;
    }
    
    .existing-video-item .btn {
        width: 100%;
    }
}

/* LIGHTBOX MODAL */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

/* Email modal specific styling */
.lightbox-content form {
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.lightbox-content h2 {
    background: var(--color-primary);
    color: white;
    padding: 1.25rem 2rem;
    margin: 0;
    border-radius: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: left;
    border-bottom: 3px solid #2980b9;
}

/* Form inside modal styling */
.lightbox-content form .form-group {
    margin-bottom: 1.5rem;
}

.lightbox-content form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

.lightbox-content form .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.lightbox-content form .form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.lightbox-content form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Modal buttons */
.lightbox-content form .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lightbox-content form .btn-secondary {
    background: #ecf0f1;
    color: #34495e;
    border: 2px solid #bdc3c7;
}

.lightbox-content form .btn-secondary:hover {
    background: #bdc3c7;
    border-color: #95a5a6;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border: 2px solid white;
    transition: opacity 0.2s ease;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transform-origin: center center;
}

/* Smooth image transition on mobile */
@media (max-width: 768px) {
    .lightbox-content img {
        border: none;
    }
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    z-index: 10;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: none;
    transition: var(--transition);
    padding: 0 10px;
}

.lightbox-close:hover {
    background: var(--color-danger);
    color: white;
    transform: scale(1.1) rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(44, 62, 80, 0.8);
    border: 2px solid white;
    padding: 10px 20px;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: var(--color-accent);
    color: white;
    border-color: white;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.9);
    padding: 8px 20px;
    border: 2px solid white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.lightbox-zoom-hint {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 16px;
    font-size: 13px;
    border: 2px solid white;
    z-index: 10;
    opacity: 0.9;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    display: none;
}

.lightbox-zoom-indicator {
    position: absolute;
    top: -50px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid white;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Make gallery images clickable */
.gallery-main img {
    cursor: pointer;
    transition: var(--transition);
}

.gallery-main img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.gallery-thumb {
    cursor: pointer;
}

/* FOOTER */
.main-footer {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .main-footer {
        padding: 1.5rem 0 1rem 0;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.footer-logo {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .footer-logo {
        margin-bottom: 0.5rem;
    }
    
    .footer-logo-img {
        height: 45px;
    }
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-style: italic;
    opacity: 0.9;
    margin: 0.5rem 0;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: 0.875rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

@media (max-width: 768px) {
    .footer-bottom {
        margin-top: 1rem;
        padding-top: 1rem;
    }
}

.language-switcher-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.language-switcher-footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    text-decoration: none;
}

.language-switcher-footer a:hover {
    color: white;
}

.language-switcher-footer .current-lang {
    color: white;
    font-weight: 600;
}

/* Footer Mobile Accordion */
.footer-section h4 .footer-toggle {
    display: none;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

@media (max-width: 768px) {
    /* Compact footer on mobile */
    .footer-content {
        gap: 0;
    }
    
    .footer-section {
        margin-bottom: 0;
    }
    
    .footer-section h4 {
        cursor: pointer;
        position: relative;
        padding: 12px 0;
        margin-bottom: 0;
        user-select: none;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-section h4 .footer-toggle {
        display: inline-block;
    }
    
    .footer-section ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        padding-top: 0;
    }
    
    .footer-section ul li {
        margin-bottom: 0.35rem;
    }
    
    .footer-section.active ul {
        max-height: 400px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .footer-section.active h4 .footer-toggle {
        transform: rotate(180deg);
    }
    
    /* Keep first section (logo) always open but compact */
    .footer-section:first-child {
        padding-bottom: 0.75rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-section:first-child h4 {
        cursor: default;
        padding: 0;
        border-bottom: none;
    }
    
    .footer-section:first-child h4 .footer-toggle {
        display: none !important;
    }
    
    .footer-section:first-child ul {
        max-height: none !important;
        overflow: visible !important;
        padding-top: 0;
    }
    
    .footer-section:first-child p {
        display: block;
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
    }
    
    .footer-section:first-child h3 {
        margin-bottom: 0.5rem;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-content {
        justify-content: center;
        position: relative;
    }
    
    .logo {
        text-align: center;
    }
    
    .logo a {
        display: inline-block;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .mobile-menu-toggle {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .footer-logo-img {
        height: 50px;
    }
    
    .main-nav {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        display: none;
        z-index: 999;
        /* Mobiilmenüü keritavaks - et keelevahetuse nupud ei läheks ekraanilt välja */
        max-height: calc(100vh - 110px);
        max-height: calc(100dvh - 110px); /* Dynamic viewport height mobiili brauseritele */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: 2rem; /* Lisa ruumi menüü allossa */
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .search-row {
        grid-template-columns: 1fr;
    }
    
    .horses-grid {
        grid-template-columns: 1fr;
    }
    
    .search-page {
        grid-template-columns: 1fr;
    }
    
    /* Show mobile filter toggle button */
    .mobile-filter-toggle {
        display: flex;
    }
    
    /* Mobile filters overlay */
    .search-filters-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .search-filters-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Hide filters by default on mobile */
    .search-filters {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile browsers */
        z-index: 1000;
        background: var(--color-bg);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: none;
        border: none;
        overflow: hidden; /* Parent doesn't scroll */
    }
    
    /* Scrollable content wrapper inside filters */
    .search-filters .filter-content {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    /* Add padding to content inside filters */
    .search-filters h2,
    .search-filters .filter-form {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .search-filters h2 {
        padding-top: 1rem;
        padding-bottom: 1rem;
        margin: 0;
    }
    
    .search-filters .filter-close {
        margin: 1rem 1.5rem;
        width: calc(100% - 3rem);
    }
    
    .search-filters .filter-form {
        padding-bottom: 2rem;
    }
    
    /* Show filters when active */
    .search-filters.active {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    /* Close button for mobile filters */
    .search-filters .filter-close {
        display: block;
        padding: 0.75rem;
        background: var(--color-danger);
        color: white;
        border: none;
        cursor: pointer;
        font-size: 1rem;
        font-weight: 600;
        text-transform: uppercase;
        transition: var(--transition);
        border-radius: 4px;
    }
    
    .search-filters .filter-close:hover {
        background: #a93226;
    }
    
    /* Make filter form buttons full width on mobile */
    .search-filters .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .search-filters .filter-form {
        display: flex;
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: center;
    }
    
    .footer-section {
        padding: 0;
    }
    
    .horse-detail {
        grid-template-columns: 1fr;
    }
    
    .horse-gallery {
        position: static;
    }
    
    .listing-card {
        grid-template-columns: 1fr;
    }
    
    .listing-image,
    .listing-image-placeholder {
        width: 100%;
        height: 200px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .page-header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .page-header-actions .btn {
        width: 100%;
    }
    
    .form-actions,
    .contact-buttons,
    .listing-actions {
        flex-direction: column;
    }
    
    .form-actions .btn,
    .contact-buttons .btn,
    .listing-actions .btn {
        width: 100%;
    }
    
    /* Admin table responsive - convert to cards like listing-card on mobile */
    .admin-table {
        border: none;
    }
    
    .admin-table thead {
        display: none;
    }
    
    .admin-table tbody {
        display: block;
    }
    
    .admin-table tr {
        display: grid;
        grid-template-columns: 1fr;
        margin-bottom: 1.5rem;
        border: 1px solid var(--color-border);
        border-radius: 8px;
        background: var(--color-bg);
        box-shadow: var(--shadow);
        padding: 0;
        overflow: hidden;
    }
    
    .admin-table tr:hover {
        box-shadow: var(--shadow-strong);
        border-color: var(--color-accent);
    }
    
    /* ID cell - compact header */
    .admin-table td:first-child {
        background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
        color: white;
        font-weight: bold;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        border-bottom: 2px solid var(--color-accent);
    }
    
    .admin-table td:first-child::before {
        color: rgba(255, 255, 255, 0.8);
        font-weight: 500;
        font-size: 0.75rem;
    }
    
    /* Image cell - full width at top like listing-card */
    .admin-table td:nth-child(2) {
        padding: 0 !important;
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }
    
    .admin-table td:nth-child(2)::before {
        display: none;
    }
    
    .admin-table td:nth-child(2) img,
    .admin-table td:nth-child(2) div {
        width: 100% !important;
        height: 200px !important;
        border-radius: 0 !important;
        object-fit: cover;
    }
    
    /* Other data cells - VERTICAL LAYOUT */
    .admin-table td {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--color-border);
        text-align: left;
        min-height: 44px;
        gap: 0.25rem;
    }
    
    .admin-table td:last-child {
        border-bottom: none;
        padding-bottom: 1.5rem;
    }
    
    .admin-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-primary);
        text-align: left;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.25rem;
        width: 100%;
    }
    
    /* Content wrapper - full width, left aligned */
    .admin-table td > * {
        width: 100%;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }
    
    /* Prevent any overflow */
    .admin-table td {
        overflow: hidden;
    }
    
    /* Ensure text content wraps */
    .admin-table td strong,
    .admin-table td span:not(.badge) {
        display: inline-block;
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    
    /* Email cell - special handling for long emails */
    .admin-table td.user-email-cell {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        font-size: 0.9rem;
    }
    
    .admin-table td.user-email-cell::before {
        margin-bottom: 0.5rem;
    }
    
    /* Name cell - larger text, LEFT ALIGNED */
    .admin-table td:nth-child(2) {
        font-size: 1.1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .admin-table td:nth-child(2) strong {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        display: block;
        width: 100%;
        text-align: left;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Badge in role cell */
    .admin-table .badge {
        display: inline-block;
        white-space: nowrap;
    }
    
    /* Status cell with icon */
    .admin-table td:nth-child(7) {
        font-weight: 500;
    }
    
    /* Listings cell - better layout for view button */
    .admin-table td:nth-child(6) {
        gap: 0.5rem;
    }
    
    .admin-table td:nth-child(6) .btn {
        margin-left: 0 !important;
        margin-top: 0.5rem;
        width: auto;
        display: inline-block;
    }
    
    /* Actions cell - buttons vertical */
    .admin-table td:last-child {
        gap: 0.5rem;
        padding: 1rem;
        background: var(--color-bg-light);
        align-items: stretch;
    }
    
    .admin-table td:last-child::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-primary);
        text-align: left;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .admin-table td:last-child > div {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .admin-table td:last-child form,
    .admin-table td:last-child .btn,
    .admin-table td:last-child a,
    .admin-table td:last-child button {
        width: 100%;
        margin: 0;
        text-align: center;
        justify-content: center;
    }
    
    .admin-table td:last-child span {
        text-align: center;
    }
    
    /* Make sure forms inside actions are full width */
    .admin-table td:last-child form {
        display: block;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    /* Admin Dashboard - responsive overrides */
    .admin-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .admin-overview-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    .admin-overview-icon {
        width: 36px;
        height: 36px;
    }

    .admin-overview-icon svg {
        width: 18px;
        height: 18px;
    }

    .admin-overview-value {
        font-size: 1.35rem;
    }

    .admin-overview-label {
        font-size: 0.7rem;
    }

    .admin-nav-sections {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Admin search responsive - stack vertically on mobile */
    .admin-search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-search-input {
        width: 100%;
        min-width: 0;
    }
    
    .admin-search-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .admin-search-buttons .btn {
        width: 100%;
    }
    
    /* Admin filters grid - stack vertically on mobile */
    .admin-filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filter-item {
        width: 100%;
    }
    
    .filter-item .admin-search-input {
        width: 100%;
        min-width: 0;
    }
    
    .filter-item.admin-search-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-item.admin-search-buttons .btn {
        width: 100%;
    }
    
    /* Email modal responsive */
    .lightbox-content {
        max-width: 95%;
        margin: 1rem;
    }
    
    .lightbox-content h2 {
        font-size: 1.25rem;
        padding: 1rem 1.5rem;
    }
    
    .lightbox-content form {
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 30px;
        background: rgba(255, 255, 255, 0.9);
        color: var(--color-text);
    }
    
    .lightbox-close:hover {
        background: var(--color-danger);
        color: white;
    }
    
    /* Hide navigation arrows on mobile by default */
    .lightbox-nav {
        opacity: 0;
        transition: opacity 0.3s ease;
        font-size: 30px;
        padding: 5px 15px;
        pointer-events: none;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    /* Show arrows when controls are visible */
    .lightbox-modal.show-controls .lightbox-nav {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Touch devices - hide arrows by default regardless of screen size */
@media (hover: none) and (pointer: coarse) {
    .lightbox-nav {
        opacity: 0;
        transition: opacity 0.3s ease;
        font-size: 30px;
        padding: 5px 15px;
        pointer-events: none;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    /* Show arrows only when controls are visible */
    .lightbox-modal.show-controls .lightbox-nav {
        opacity: 1;
        pointer-events: auto;
    }
    
    .lightbox-counter {
        bottom: 10px;
        font-size: 12px;
        padding: 6px 15px;
    }
    
    .lightbox-content img {
        border: none;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination-link,
.pagination-current {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-link {
    color: var(--color-text);
    background: var(--color-bg);
}

.pagination-link:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.pagination-current {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    font-weight: 600;
    cursor: default;
}

/* Info Tooltip Styles */
.info-tooltip {
    display: inline-block;
    position: relative;
    cursor: help;
    font-size: 1rem;
    color: #2196F3;
    margin-left: 8px;
    user-select: none;
    transition: transform 0.2s ease;
}

.info-tooltip:hover {
    transform: scale(1.2);
}

.info-tooltip:hover::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(33, 150, 243, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    white-space: normal;
    width: max-content;
    max-width: 300px;
    font-size: 0.875rem;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    pointer-events: none;
    font-weight: normal;
    text-align: left;
}

.info-tooltip:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(33, 150, 243, 0.95);
    z-index: 1000;
}

@media (max-width: 768px) {
    .info-tooltip:hover::before {
        max-width: 250px;
        font-size: 0.8rem;
    }
}

/* WhatsApp Notice Box */
.whatsapp-notice-box {
    background: #e8f5e9;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.whatsapp-notice-box:hover {
    background: #c8e6c9;
    border-color: #388E3C;
    transform: translateX(2px);
}

.whatsapp-notice-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
    flex-wrap: wrap;
}

.whatsapp-notice-text {
    color: #2E7D32;
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
    min-width: 200px;
}

.whatsapp-notice-text strong {
    font-weight: 600;
    color: #1B5E20;
}

.whatsapp-notice-action {
    color: #1B5E20;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 6px 12px;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.whatsapp-notice-box:hover .whatsapp-notice-action {
    background: rgba(76, 175, 80, 0.3);
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .whatsapp-notice-box {
        padding: 10px 14px;
        margin: 15px 0;
    }
    
    .whatsapp-notice-text {
        font-size: 0.85rem;
    }
    
    .whatsapp-notice-action {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
    
    .whatsapp-notice-content {
        gap: 10px;
    }
}

/* WhatsApp Prompt Modal */
.modal-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: 10000;
    padding: 20px;
}

.modal-overlay .modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay .modal-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.whatsapp-modal-hint {
    background: #f5f5f5;
    border-left: 3px solid #2196F3;
    padding: 10px 12px;
    margin: 15px 0 20px 0;
    font-size: 0.9rem;
    color: #555;
    border-radius: 4px;
    line-height: 1.5;
}

.modal-overlay .form-group {
    margin-bottom: 15px;
}

.modal-overlay .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.modal-overlay .form-group input[type="checkbox"] {
    margin-right: 8px;
}

.modal-overlay .form-actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .modal-overlay .modal-content {
        padding: 20px;
        margin: 10px;
    }
    
    .modal-overlay .form-actions {
        flex-direction: column;
    }
    
    .modal-overlay .form-actions button {
        width: 100%;
    }
}

/* ============================================
   FEATURE DURATION MODAL STYLES
   ============================================ */

.feature-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    animation: fadeIn 0.2s ease;
}

.feature-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.feature-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.feature-modal-body {
    padding: 30px;
}

.feature-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.form-group-modal {
    margin-bottom: 20px;
}

.form-group-modal label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
    font-size: 14px;
}

.form-group-modal select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    background: white;
    cursor: pointer;
}

.form-group-modal select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.info-box-modal {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 6px;
    font-size: 14px;
    color: #0c5460;
}

.info-box-modal strong {
    color: #1976D2;
    display: block;
    margin-bottom: 5px;
}

.horse-name-display {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.horse-name-display strong {
    display: block;
    color: #3498db;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.horse-name-display span {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}

/* ============================================
   STATISTIKA LEHT / STATISTICS PAGE
   ============================================ */

.statistics-page {
    padding: 20px 0;
}

.statistics-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.statistics-page .page-header h1 {
    margin: 0;
    font-size: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.statistics-page .header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Ülevaade kaardid */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stats-overview .stat-card:hover {
    box-shadow: var(--shadow-strong);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
    color: var(--color-primary);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-light);
    margin-top: 5px;
}

/* Kuulutuse valija */
.listing-selector {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.listing-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.listing-selector select {
    width: 100%;
    max-width: 500px;
}

/* Statistika sektsioonid */
.stats-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.stats-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.section-description {
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 15px;
}

/* Trend graafikud */
.trend-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-bg-light);
}

.trend-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-light);
    transition: var(--transition);
    margin-bottom: -2px;
}

.trend-tab:hover {
    color: var(--color-primary);
}

.trend-tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.chart-container {
    position: relative;
    height: 350px;
    margin: 20px 0;
}

.chart-container canvas {
    max-height: 100%;
}

.chart-caption {
    text-align: center;
    color: var(--color-text-light);
    font-size: 14px;
    margin-top: 15px;
}

/* Turuvõrdlus */
.market-comparison {
    background: #fafafa;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.comparison-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--color-border);
    transition: var(--transition);
}

.comparison-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.comparison-card.your-listing {
    border-color: var(--color-primary);
    background: #f8f9fa;
}

.comparison-card h3 {
    font-size: 16px;
    color: var(--color-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.listing-name,
.breed-name,
.age-group,
.market-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-bg-light);
}

.comparison-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-bg-light);
}

.comparison-stat:last-of-type {
    border-bottom: none;
}

.comparison-stat .label {
    color: var(--color-text-light);
    font-size: 14px;
}

.comparison-stat .value {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
}

.comparison-stat .value.insufficient-data {
    font-size: 14px;
    color: var(--color-text-light);
    font-weight: 400;
    font-style: italic;
}

.comparison-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 10px;
    background: var(--color-bg-light);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.comparison-badge.higher {
    background: #f5f5f5;
    color: var(--color-text);
    border-color: #ddd;
}

.comparison-badge.lower {
    background: #f5f5f5;
    color: var(--color-text);
    border-color: #ddd;
}

.comparison-insight {
    margin-top: 15px;
    padding: 12px 15px;
    background: var(--color-bg-light);
    border-radius: 6px;
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.5;
    border-left: 3px solid var(--color-border);
}

.comparison-insight.success {
    background: #f8f9fa;
    color: var(--color-text);
    border-left-color: var(--color-primary);
}

.comparison-insight.warning {
    background: #f8f9fa;
    color: var(--color-text);
    border-left-color: var(--color-text-light);
}

.info-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-light);
    font-size: 16px;
}

/* Sarnaste hobuste võrdlus / Similar horses comparison */
.comparison-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.comparison-filters h3 {
    font-size: 16px;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.filter-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    color: var(--color-text);
    user-select: none;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.filter-checkbox:hover span {
    color: var(--color-primary);
}

.comparison-criteria {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    margin-bottom: 25px;
}

.comparison-criteria h3 {
    font-size: 16px;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.criteria-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.criteria-item strong {
    color: var(--color-text-light);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.criteria-item span {
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 500;
}

.criteria-summary {
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 15px;
}

.criteria-summary strong {
    color: var(--color-primary);
    font-size: 18px;
}

.comparison-stats {
    margin-top: 20px;
}

.comparison-stats h3,
.comparison-stats h4 {
    font-size: 16px;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.comparison-stats h4 {
    margin-top: 25px;
}

.comparison-card h4 {
    font-size: 14px;
    color: var(--color-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.comparison-card.your-horse {
    border-color: var(--color-accent);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.comparison-card.market-stats {
    border-color: var(--color-border);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-bg-light);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row .stat-label {
    color: var(--color-text-light);
    font-size: 14px;
}

.stat-row .stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
}

.comparison-analysis {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--color-border);
}

.analysis-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 500;
}

.analysis-result svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.analysis-result.positive {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.analysis-result.warning {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.analysis-result.neutral {
    background: rgba(127, 140, 141, 0.1);
    color: #7f8c8d;
    border: 1px solid rgba(127, 140, 141, 0.3);
}

.empty-comparison-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed var(--color-border);
}

.empty-comparison-state svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--color-text-light);
}

.empty-comparison-state p {
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 10px;
}

.empty-comparison-state .text-muted {
    font-size: 14px;
    color: var(--color-text-light);
}

.comparison-note {
    margin-top: 20px;
    padding: 15px 20px;
    background: #f0f7ff;
    border: 1px solid #bde0ff;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
}

.comparison-note svg {
    width: 24px;
    height: 24px;
    margin: 0;
    color: var(--color-accent);
    flex-shrink: 0;
}

.comparison-note p {
    font-size: 14px;
    color: var(--color-text);
    margin: 0;
    line-height: 1.5;
}

.debug-info {
    margin-top: 20px;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    text-align: left;
}

.debug-info h4 {
    margin: 0 0 15px 0;
    color: #856404;
    font-size: 16px;
}

.debug-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    font-size: 13px;
}

.debug-grid div {
    padding: 8px;
    background: white;
    border-radius: 4px;
}

.debug-grid strong {
    color: #856404;
}

.text-muted {
    color: var(--color-text-light);
}

/* Kuulutuste tabel */
.listings-stats-table {
    overflow-x: auto;
}

.listings-stats-table table {
    width: 100%;
    border-collapse: collapse;
}

.listings-stats-table th {
    background: var(--color-bg-light);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-border);
}

.listings-stats-table td {
    padding: 15px;
    border-bottom: 1px solid var(--color-bg-light);
}

.listings-stats-table tr:hover {
    background: #f8f9fa;
}

.listings-stats-table tr.selected {
    background: #f8f9fa;
    border-left: 3px solid var(--color-primary);
}

.listing-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.listing-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.listing-name {
    font-weight: 600;
    color: var(--color-primary);
}

.listing-breed {
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 3px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state p {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* Empty state for statistics cards */
.empty-state-card {
    text-align: center;
    padding: 50px 30px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px dashed var(--color-border);
}

.empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--color-text-light);
    opacity: 0.4;
}

.empty-message {
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.5;
}

.empty-hint {
    font-size: 14px;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.4;
}

/* Responsive kujundus */
@media (max-width: 768px) {
    .statistics-page .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .statistics-page .page-header h1 {
        font-size: 24px;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .listings-stats-table {
        font-size: 14px;
    }
    
    .listings-stats-table th,
    .listings-stats-table td {
        padding: 10px 8px;
    }
    
    .listing-thumb {
        width: 50px;
        height: 50px;
    }
    
    .trend-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 20px 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    /* Sarnaste hobuste võrdlus responsive */
    .comparison-filters {
        padding: 15px;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 12px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .criteria-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
    }
    
    .page-icon {
        width: 24px;
        height: 24px;
    }
    
    .section-icon {
        width: 20px;
        height: 20px;
    }
    
    .listing-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   TAGASI ÜLES NUPP / BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-strong);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    opacity: 0;
    transform: translateY(100px);
}

.back-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Arrow icon */
.back-to-top::before {
    content: '↑';
    font-size: 28px;
    line-height: 1;
    font-weight: bold;
}

/* Mobile optimeeritud */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .back-to-top::before {
        font-size: 24px;
    }
}

/* ============================================
   LEMMIKUD / FAVORITES SYSTEM
   ============================================ */

/* Favorite button on horse cards - pildi peal */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
}

.favorite-btn:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.favorite-btn svg {
    width: 28px;
    height: 28px;
    transition: all 0.25s ease;
}

/* Mittelemmik - läbipaistev süda (stroke ainult) */
.favorite-btn:not(.active) svg {
    fill: rgba(255, 255, 255, 0.15);
    stroke: white;
    stroke-width: 1.5;
    opacity: 0.8;
}

.favorite-btn:not(.active):hover svg {
    fill: rgba(255, 255, 255, 0.3);
    stroke: white;
    opacity: 1;
}

/* Lemmik - täidetud süda */
.favorite-btn.active svg {
    fill: var(--color-secondary);
    stroke: white;
    stroke-width: 1;
    opacity: 1;
}

.favorite-btn.active:hover svg {
    fill: var(--color-primary);
    stroke: white;
}

/* Favorite button on detail page */
.horse-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}

.favorite-btn-detail {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}

.favorite-btn-detail:hover {
    transform: scale(1.12);
}

.favorite-btn-detail svg {
    width: 36px;
    height: 36px;
    transition: all 0.25s ease;
}

/* Mittelemmik - läbipaistev süda (stroke ainult) */
.favorite-btn-detail:not(.active) svg {
    fill: none;
    stroke: var(--color-text-light);
    stroke-width: 1.5;
    opacity: 0.65;
}

.favorite-btn-detail:not(.active):hover svg {
    fill: rgba(44, 62, 80, 0.08);
    stroke: var(--color-primary);
    opacity: 1;
}

/* Lemmik - täidetud süda */
.favorite-btn-detail.active svg {
    fill: var(--color-secondary);
    stroke: var(--color-secondary);
    stroke-width: 1;
    opacity: 0.95;
}

.favorite-btn-detail.active:hover svg {
    fill: var(--color-primary);
    stroke: var(--color-primary);
}

.favorite-count-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
}

.favorite-count-info small {
    color: var(--color-text-light);
}

/* Animations for notifications */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .favorite-btn {
        width: 26px;
        height: 26px;
        top: 8px;
        right: 8px;
    }
    
    .favorite-btn svg {
        width: 26px;
        height: 26px;
    }
    
    .favorite-btn-detail {
        width: 32px;
        height: 32px;
    }
    
    .favorite-btn-detail svg {
        width: 32px;
        height: 32px;
    }
    
    .horse-title-row {
        flex-direction: row;
    }
    
    .horse-title-row h1 {
        font-size: 1.5rem;
    }
}

/* ============================================
   PREMIUM SHOWCASE SECTION (AVALEHE ESILETÕSTMINE)
   ============================================ */

.premium-feed-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
    border-bottom: 3px solid #f39c12;
    margin-bottom: 3rem;
    overflow: visible; /* Lubame nooledel väljaspool paista */
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.08);
}

.premium-header {
    margin-bottom: 2rem;
    text-align: center;
}

.premium-header h2 {
    font-size: 2rem;
    margin: 0;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-icon {
    width: 32px;
    height: 32px;
    color: #f39c12;
    filter: drop-shadow(0 2px 4px rgba(243, 156, 18, 0.3));
}

/* --- CAROUSEL WRAPPER (noolte jaoks) --- */
.premium-carousel-wrapper {
    position: relative;
    padding: 0; /* Eemaldame padding - nooled lähevad overlay'ks */
}

/* --- NAVIGATION NOOLED (Minimalistlik) --- */
.premium-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    
    /* Lihtsalt nool ilma taustata */
    width: 40px;
    height: 40px;
    
    /* Läbipaistev taust */
    background: transparent;
    border: none;
    
    /* Kuldne nool */
    color: #f39c12;
    
    cursor: pointer;
    transition: all 0.3s ease;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0.7;
}

.premium-nav-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
    color: #e67e22;
}

.premium-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.premium-nav-btn svg {
    width: 36px;
    height: 36px;
    stroke-width: 3;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.premium-nav-prev {
    left: -25px; /* Väljaspool container'i */
}

.premium-nav-next {
    right: -25px; /* Väljaspool container'i */
}

/* Nooled kaovad mobiilis (puhas swipe) */
@media (max-width: 768px) {
    .premium-nav-btn {
        display: none;
    }
}

/* --- SCROLLER CONTAINER --- */
.premium-scroller {
    /* ALATI horisontaalne scroll (nii desktop kui mobiil) */
    display: flex;
    flex-wrap: nowrap; /* OLULINE: Kaardid EI MURDU uuele reale! */
    overflow-x: auto;
    overflow-y: hidden; /* Peida vertikaalne scroll */
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    
    /* Eemaldame negatiivsed marginid - täielik laius nagu horses-grid */
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    
    /* Smooth scrolling */
    scroll-behavior: smooth;
    
    /* Desktop scrollbar - kuldne, õhuke */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #f39c12 #f5f5f5; 
    -ms-overflow-style: auto;
    
    /* Hiire cursor muutub grab'iks */
    cursor: grab;
}

.premium-scroller:active {
    cursor: grabbing;
    scroll-snap-type: none; /* Keela snap ajutiselt drag ajal */
}

/* Chrome/Safari scrollbar - Desktop */
.premium-scroller::-webkit-scrollbar {
    height: 8px;
}

.premium-scroller::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.premium-scroller::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    border-radius: 10px;
}

.premium-scroller::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e67e22, #f39c12);
}

/* --- PREMIUM CARD DISAIN --- */
.premium-card {
    /* DESKTOP: Optimaalne laius, et kolm kaarti mahuks ilusti */
    /* 1160px container / 3 = ~387px - gap */
    flex: 0 0 calc((100% - 40px) / 3);
    width: calc((100% - 40px) / 3);
    min-width: 320px;
    max-width: 400px;
    scroll-snap-align: start;
    
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--color-bg);
    border-radius: var(--radius);
    
    /* Vältida kaardi kokkutõmbumist */
    flex-shrink: 0;
}

/* Eristuv äär ja efekt hõljumisel */
.premium-card:hover {
    border-color: #f39c12; /* Kuldne toon */
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.15);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.premium-card:hover::before {
    transform: scaleX(1);
}

.premium-badge-corner {
    position: absolute;
    top: 12px;
    left: 12px;
    
    /* Minimalistlik - ainult täht */
    width: 28px;
    height: 28px;
    
    /* Ilma taustata */
    background: transparent;
    border: none;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    z-index: 2;
    
    transition: all 0.3s ease;
}

.premium-badge-corner svg {
    width: 28px;
    height: 28px;
    color: #f39c12;
    opacity: 0.85; /* Kergelt läbipaistev */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.premium-card:hover .premium-badge-corner svg {
    opacity: 1; /* Hover'il täiesti nähtav */
    transform: scale(1.15) rotate(15deg);
    filter: drop-shadow(0 3px 6px rgba(243, 156, 18, 0.3));
}

/* --- MOBIILI VAADE (SWIPE) --- */
/* Tablettidel kaks kaarti */
@media (max-width: 1024px) {
    .premium-card {
        flex: 0 0 calc((100% - 20px) / 2);
        width: calc((100% - 20px) / 2);
        min-width: 280px;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .premium-scroller {
        gap: 15px;
        padding: 0 10px; /* Lisa pisut ruumi mõlemale poole */
        
        /* Peida scrollbar mobiilis täielikult */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE/Edge */
    }
    
    .premium-scroller::-webkit-scrollbar {
        display: none; /* Chrome/Safari - peida mobiilis */
    }

    .premium-card {
        /* Kaardi laius mobiilis - pisut väiksem, et kontuur oleks näha */
        flex: 0 0 80vw; /* 80% ekraani laiusest */
        width: 80vw;
        min-width: 260px;
        max-width: 360px;
        scroll-snap-align: center; /* Scrollides tsentreerib */
    }
    
    .premium-header h2 {
        font-size: 1.5rem;
    }
    
    .horses-section .section-header h2 {
        font-size: 1.35rem;
        padding: 0 20px;
    }
}

/* Väga väikesed ekraanid */
@media (max-width: 480px) {
    .premium-card {
        flex: 0 0 85vw;
        width: 85vw;
        min-width: 250px;
        max-width: 320px;
    }
    
    .premium-scroller {
        padding: 0 8px; /* Veidi rohkem ruumi väikestel ekraanidel */
    }
    
    .premium-header h2 {
        font-size: 1.25rem;
        letter-spacing: 0.05em;
    }
    
    .premium-icon {
        width: 24px;
        height: 24px;
    }
    
    .horses-section .section-header h2 {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .section-icon {
        width: 22px;
        height: 22px;
    }
}

/* ============================================
   PUSH NOTIFICATION BUTTON
   ============================================ */

/* Header actions - keele vahetus ja teavitused kõrvuti */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Push teavituste nupp - lihtne kelluke päises */
.push-notification-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    background: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 6px;
    
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.push-notification-btn:hover {
    color: var(--color-text);
    border-color: var(--color-text);
}

.push-notification-btn .bell-icon {
    width: 16px;
    height: 16px;
}

/* Kriips kellukese peal - nähtav ainult kui pole lubatud */
.push-notification-btn .bell-slash {
    opacity: 0;
    stroke: currentColor;
}

.push-notification-btn.not-subscribed .bell-slash {
    opacity: 1;
}

.push-notification-btn.subscribed {
    color: var(--color-text);
    border-color: var(--color-text);
}

/* ============================================
   MOBILE LANGUAGE DROPDOWN - OPENS UPWARD
   ============================================ */

@media (max-width: 768px) {
    /* Mobiilmenüüs keelevahetuse dropdown avaneb ülespoole */
    .main-nav .lang-dropdown-menu {
        top: auto;
        bottom: calc(100% + 4px);
        transform-origin: bottom center;
    }
    
    .main-nav .lang-dropdown.open .lang-dropdown-menu {
        transform: translateY(0);
    }
    
    /* Ensure header-actions are nicely styled in mobile menu */
    .main-nav .header-actions {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--color-border);
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   FEEDBACK WIDGET - Tagasiside hüpikaken
   ============================================ */

/* Trigger nupp (floating) - vasakul all, eemale back-to-top nupust */
.feedback-trigger {
    display: none; /* Peidetud vaikimisi, JS näitab */
    position: fixed;
    bottom: 30px;
    left: 20px;
    z-index: 998;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
}

.feedback-trigger-visible {
    opacity: 1;
    transform: translateY(0);
}

.feedback-trigger-minimal {
    opacity: 1;
    transform: translateY(0);
    padding: 10px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    justify-content: center;
}

.feedback-trigger-minimal .feedback-trigger-text {
    display: none;
}

.feedback-trigger:hover {
    background: var(--color-secondary);
    box-shadow: 0 6px 24px rgba(44, 62, 80, 0.35);
    transform: translateY(-2px);
    opacity: 1;
}

.feedback-trigger svg {
    flex-shrink: 0;
}

/* Modal overlay */
.feedback-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(44, 62, 80, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    justify-content: center;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.feedback-overlay.active {
    display: flex;
    opacity: 1;
    align-items: center;
}

/* Popup kast */
.feedback-popup {
    background: var(--color-bg);
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 16px 64px rgba(44, 62, 80, 0.2);
    animation: feedbackSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes feedbackSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 24px 12px;
    border-bottom: 1px solid var(--color-bg-light);
}

.feedback-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.3;
}

.feedback-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin: 4px 0 0;
}

.feedback-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--color-text-light);
    transition: color 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.feedback-close:hover {
    color: var(--color-danger);
}

/* Form */
.feedback-form {
    padding: 16px 24px 20px;
}

.feedback-section {
    margin-bottom: 16px;
}

.feedback-label {
    display: block;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

/* Stars */
.feedback-stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.feedback-star {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #ddd;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-star:hover,
.feedback-star.active {
    color: #f39c12;
}

.feedback-star.active svg {
    fill: #f39c12;
}

.feedback-star:hover svg {
    fill: #f5b041;
}

.feedback-rating-text {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-left: 8px;
    font-weight: 500;
}

/* Categories */
.feedback-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feedback-category-pill {
    cursor: pointer;
}

.feedback-category-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.feedback-pill-content {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: 0.8rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    transition: all 0.2s ease;
    font-family: var(--font-main);
    cursor: pointer;
}

.feedback-pill-content svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.feedback-category-radio:checked + .feedback-pill-content svg {
    opacity: 1;
}

.feedback-category-radio:checked + .feedback-pill-content {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.feedback-pill-content:hover {
    border-color: var(--color-primary);
}

/* Textarea */
.feedback-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 0.85rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 72px;
    transition: border-color 0.2s ease;
}

.feedback-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.08);
}

.feedback-textarea::placeholder {
    color: var(--color-text-light);
    font-size: 0.8rem;
}

.feedback-char-count {
    text-align: right;
    font-size: 0.7rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* Submit button */
.feedback-actions {
    margin-top: 4px;
}

.feedback-submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.feedback-submit-btn:hover:not(:disabled) {
    background: var(--color-secondary);
}

.feedback-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.feedback-submit-loading {
    display: inline-flex;
    align-items: center;
}

.feedback-spinner {
    animation: feedbackSpin 1s linear infinite;
}

@keyframes feedbackSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success state */
.feedback-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    gap: 12px;
}

.feedback-success h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

.feedback-success p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin: 0;
    max-width: 300px;
}

.feedback-success-icon {
    animation: feedbackCheckPop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes feedbackCheckPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ============================================
   ADMIN FEEDBACK - Admin tagasiside leht
   ============================================ */

/* Hinnangute jaotuse graafikud */
.feedback-distribution {
    max-width: 500px;
}

.feedback-dist-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.feedback-dist-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    min-width: 40px;
    text-align: right;
}

.feedback-dist-bar-bg {
    flex: 1;
    height: 20px;
    background: var(--color-bg-light);
    overflow: hidden;
}

.feedback-dist-bar {
    height: 100%;
    background: #f39c12;
    transition: width 0.5s ease;
    min-width: 0;
}

.feedback-dist-count {
    font-size: 0.8rem;
    color: var(--color-text-light);
    min-width: 40px;
}

/* Admin filtrid */
.feedback-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.feedback-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.feedback-filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-right: 4px;
}

/* Admin tagasiside kaardid */
.feedback-admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-admin-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 16px 20px;
    transition: border-color 0.2s ease;
}

.feedback-admin-card:hover {
    border-color: var(--color-primary);
}

.feedback-admin-card.feedback-unread {
    border-left: 3px solid var(--color-accent);
    background: #f8f9ff;
}

.feedback-admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.feedback-admin-rating {
    font-size: 1.1rem;
}

.feedback-admin-rating-num {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-left: 4px;
}

.feedback-admin-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.8rem;
}

.feedback-admin-category {
    color: var(--color-text);
    font-weight: 500;
}

.feedback-admin-date {
    color: var(--color-text-light);
}

.feedback-admin-comment {
    padding: 12px 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text);
    border-top: 1px solid var(--color-bg-light);
}

.feedback-admin-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--color-bg-light);
}

/* Admin feedback statistika tärnid */
.feedback-admin-stars-inline {
    display: inline-flex;
    gap: 1px;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
    .feedback-trigger {
        bottom: 20px;
        left: 14px;
    }
    
    .feedback-trigger-minimal {
        width: 40px;
        height: 40px;
    }
    
    .feedback-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .feedback-overlay.active {
        align-items: flex-end;
    }
    
    .feedback-popup {
        max-width: 100%;
        max-height: 85vh;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
    }
    
    .feedback-header {
        padding: 16px 18px 10px;
    }
    
    .feedback-form {
        padding: 12px 18px 16px;
    }
    
    .feedback-categories {
        gap: 4px;
    }
    
    .feedback-pill-content {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .feedback-admin-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .feedback-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .feedback-filter-group {
        width: 100%;
    }
    
    .feedback-admin-card-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

