/* Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Barevná paleta - oranžová */
:root {
    --primary-color: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-light: #ff8c66;
    --secondary-color: #f4f4f4;
    --accent-color: #ffa726;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

/* Tlačítka */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Search Page Styles */
.search-page {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.search-header {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.search-header h1 {
    color: var(--text-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2em;
}

.results-count {
    color: var(--text-light);
    font-weight: normal;
    font-size: 0.7em;
}

.advanced-search-form {
    background: var(--secondary-color);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #eee;
}

.search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.search-row:last-child {
    margin-bottom: 0;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    z-index: 2;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-with-icon input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-field select {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-field select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.price-range .price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.price-inputs span {
    color: var(--text-light);
    font-weight: 500;
}

.search-actions {
    display: flex;
    gap: 15px;
    align-items: end;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.suggestion-item:hover {
    background: var(--secondary-color);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item i {
    color: var(--text-light);
    font-size: 12px;
}

.suggestion-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 16px;
}

.suggestion-item .no-image {
    width: 48px;
    height: 48px;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2em;
    border-radius: 8px;
    margin-right: 16px;
}

.suggestion-content {
    flex: 1;
    text-align: left;
}

.suggestion-title {
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
    text-align: left;
}

.suggestion-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
    text-align: left;
}

.search-results {
    margin-top: 30px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.listing-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.listing-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-card:hover .listing-image img {
    transform: scale(1.05);
}

.listing-badge {
    position: absolute;
    top: 15px;
    left: 15px;
}

.category-badge {
    background: rgba(255, 107, 53, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.favorite-btn:hover,
.favorite-btn.active {
    background: var(--primary-color);
    color: white;
}

.listing-content {
    padding: 20px;
}

.listing-content h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.4;
}

.listing-description {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.listing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.listing-price {
    color: var(--primary-color);
    font-weight: 700;
}

.listing-price strong {
    font-size: 1.2em;
}

.listing-price span {
    font-size: 0.9em;
    color: var(--text-light);
}

.listing-location {
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.listing-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.listing-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.listing-actions {
    display: flex;
    gap: 10px;
}

.listing-actions .btn-outline,
.listing-actions .btn-primary {
    flex: 1;
    justify-content: center;
    font-size: 13px;
    padding: 10px 15px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.no-results-icon {
    font-size: 4em;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-results h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1em;
}

.suggestions h4 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.1em;
}

.category-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.suggestion-tag {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.page-btn,
.page-number {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn:hover,
.page-number:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-number.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-dots {
    color: var(--text-light);
    padding: 0 10px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-btn {
    background: var(--secondary-color);
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: 10px;
    padding: 10px 0;
    z-index: 1001;
    top: 100%;
    margin-top: 5px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background: var(--secondary-color);
}

/* Hero sekce */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Vyhledávací lišta */
.search-bar {
    max-width: 600px;
    margin: 0 auto;
}

.search-bar form {
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: var(--shadow);
    gap: 8px;
}

.search-input, .location-input {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input i, .location-input i {
    position: absolute;
    left: 15px;
    color: var(--text-light);
    z-index: 1;
}

.search-input input, .location-input input {
    width: 100%;
    border: none;
    padding: 15px 15px 15px 45px;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
}

.search-bar button[type="submit"] {
    padding: 15px 30px;
    border-radius: 25px;
    white-space: nowrap;
}

/* Kategorie */
.categories {
    padding: 80px 0;
    background: white;
}

.categories h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--text-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2em;
    color: white;
}

.category-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--text-color);
}

.category-card p {
    color: var(--text-light);
}

/* Nejnovější inzeráty */
.latest-listings {
    padding: 80px 0;
    background: var(--secondary-color);
}

.latest-listings h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--text-color);
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.listing-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.listing-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    height: 100%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3em;
}

.listing-content {
    padding: 20px;
}

.listing-content h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--text-color);
}

.listing-price {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.listing-location {
    color: var(--text-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.listing-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.listing-actions .main-actions {
    display: flex;
    gap: 12px;
}

.listing-actions .main-actions .btn-outline {
    flex: 1;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.listing-actions .main-actions .btn-primary {
    flex: 1;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.listing-actions .main-actions .btn-outline:hover,
.listing-actions .main-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.listing-actions .promo-action {
    display: flex;
    justify-content: center;
}

.listing-actions .promo-action .btn-promo,
.listing-actions .promo-action .btn-promo-renew {
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.listing-actions .promo-action .btn-promo:hover,
.listing-actions .promo-action .btn-promo-renew:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* Prázdný stav */
.no-listings {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-listings i {
    font-size: 4em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.no-listings h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Enhanced Footer Styles */
.footer {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%) !important;
    color: white !important;
    padding: 80px 0 0 !important;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-content {
    display: grid !important;
    grid-template-columns: 2fr repeat(3, 1fr) !important;
    gap: 50px !important;
    margin-bottom: 60px !important;
}

.footer-brand .logo {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 32px !important;
    font-weight: bold !important;
    color: var(--primary-color) !important;
    margin-bottom: 20px !important;
}

.footer-brand .logo i {
    font-size: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 30px;
    font-size: 16px;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links a i {
    width: 16px;
    text-align: center;
    opacity: 0.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-weight: 500;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-section ul li a i {
    width: 16px;
    text-align: center;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-info {
    margin-top: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #ccc;
}

.contact-item i {
    color: var(--primary-color);
    width: 18px;
    text-align: center;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    margin-bottom: 5px;
    color: #ccc;
}

.footer-tagline {
    font-size: 14px;
    opacity: 0.8;
}

.footer-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-item span {
    font-size: 12px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
}

/* Responzivní design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }
    
    .user-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-content h1 {
        font-size: 2em;
    }
    
    .search-bar form {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        border-radius: 15px;
    }
    
    .search-bar button[type="submit"] {
        border-radius: 10px;
    }
    
    .category-grid,
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .listing-actions {
        flex-direction: column;
    }
    
    .footer {
        padding: 50px 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .footer-stats {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer-stats {
        flex-direction: column;
        gap: 15px;
    }
}

/* Formuláře */
.form-container {
    max-width: 500px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #cce7ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

/* Moderní oranžový flatpickr styl podle firemního UI */
.flatpickr-calendar {
    border-radius: 18px !important;
    box-shadow: 0 8px 32px rgba(255,107,53,0.18) !important;
    border: none !important;
    font-family: inherit;
    font-size: 1.08em;
}
.flatpickr-months {
    border-radius: 18px 18px 0 0;
    background: #FF6B35 !important;
    color: #fff !important;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: #fff !important;
    fill: #fff !important;
    opacity: 1 !important;
    transition: background 0.2s;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: #FF9F1C !important;
}
.flatpickr-current-month input.cur-year {
    background: transparent !important;
    color: #fff !important;
    font-weight: bold;
    font-size: 1.1em;
}
.flatpickr-weekdays {
    background: #fff3ed !important;
    border-radius: 0 0 0 0;
}
.flatpickr-weekday {
    color: #FF6B35 !important;
    font-weight: 700;
    font-size: 1em;
    letter-spacing: 0.02em;
}
.flatpickr-days {
    border-radius: 0 0 18px 18px;
    background: #fff;
    padding-bottom: 8px;
}
.flatpickr-day {
    font-size: 1.25em !important;
    font-weight: 700 !important;
    color: #222 !important;
    border-radius: 10px !important;
    transition: background 0.2s, color 0.2s;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    color: #fff !important;
}
.flatpickr-day.today {
    color: #FF6B35 !important;
    font-weight: 900 !important;
}
.flatpickr-day.disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #ccc !important;
}
.flatpickr-calendar.arrowTop:before, .flatpickr-calendar.arrowTop:after {
    border-top-color: #FF6B35 !important;
}
/* Větší inputy pro mobil */
@media (max-width: 600px) {
    .flatpickr-calendar {
        font-size: 1.2em;
    }
}

.flatpickr-day:not(.selected):not(.today):not(.inRange):not(.prevMonthDay):not(.nextMonthDay):not(.disabled) {
    color: #222 !important;
    background: transparent !important;
}

/* Favorites page specific styles */
.favorites-page {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.favorites-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    color: white;
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
}

.favorites-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.favorites-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.favorites-title-section h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

.favorites-title-section h1 i {
    color: rgba(255,255,255,0.9);
    font-size: 0.9em;
}

.favorites-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    margin: 0;
}

.favorites-stats {
    display: flex;
    gap: 20px;
}

.stat-card {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255,255,255,0.3);
}

.stat-icon {
    font-size: 2em;
    opacity: 0.9;
}

.stat-content {
    text-align: center;
}

.stat-number {
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 5px;
}

.favorites-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.view-controls {
    display: flex;
    gap: 10px;
}

.view-btn {
    background: var(--secondary-color);
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.view-btn:hover,
.view-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    transition: all 0.3s ease;
}

.favorites-grid.view-list {
    grid-template-columns: 1fr;
}

.favorites-grid.view-list .favorite-card {
    display: flex;
    gap: 20px;
}

.favorites-grid.view-list .favorite-image {
    width: 200px;
    flex-shrink: 0;
}

.favorites-grid.view-compact {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.favorite-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.favorite-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.favorite-image {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--secondary-color);
    overflow: hidden;
}

.favorite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.favorite-card:hover .favorite-image img {
    transform: scale(1.05);
}

.remove-favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: var(--danger-color);
    font-size: 1.1em;
}

.remove-favorite-btn:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.1);
}

.favorited-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 12px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 5px;
}

.favorite-content {
    padding: 25px;
}

.favorite-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.favorite-header h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.favorite-header h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.favorite-header h3 a:hover {
    color: var(--primary-color);
}

.favorite-price {
    text-align: right;
    color: var(--primary-color);
    font-weight: 700;
}

.favorite-price strong {
    font-size: 1.3em;
}

.favorite-price span {
    font-size: 0.9em;
    color: var(--text-light);
    font-weight: normal;
}

.favorite-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 14px;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 0.9em;
}

.favorite-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.favorite-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-view,
.btn-contact {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-view {
    background: var(--secondary-color);
    color: var(--text-color);
}

.btn-view:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-contact {
    background: var(--primary-color);
    color: white;
}

.btn-contact:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.empty-favorites {
    padding: 60px 0;
}

.empty-state-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Responsive design for favorites */
@media (max-width: 768px) {
    .favorites-header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .favorites-title-section h1 {
        font-size: 2em;
    }
    
    .favorites-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
    }
    
    .favorites-grid.view-list .favorite-card {
        flex-direction: column;
    }
    
    .favorites-grid.view-list .favorite-image {
        width: 100%;
    }
    
    .favorite-actions {
        flex-direction: column;
    }
    
    .empty-state-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .favorites-header {
        padding: 30px 20px;
    }
    
    .favorites-title-section h1 {
        font-size: 1.8em;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .favorite-content {
        padding: 20px;
    }
}