/* Atrakce Page Specific Styles */

/* Main content adjustment for navbar */
.main-content {
    margin-top: 3.5rem;
    min-height: calc(100vh - 80px);
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.container-vyroba{
    padding-top: 40px;
    padding-bottom: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Filters Section */
.filters-section {
    background: var(--text-dark);
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.filters-wrapper {
    background: var(--text-dark);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative; /* important for dropdown positioning */
}


.filters-header h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin: 0;
}


.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.2rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    min-height: 45px;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent));
    transition: left 0.4s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.filter-icon {
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.filter-btn span:not(.filter-icon) {
    position: relative;
    z-index: 1;
}

/* Attractions Section */
.attractions-section {
    padding: 0.5rem 0;
    background: white;
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 0.5rem;
}

/* Attraction Card */
.attraction-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    opacity: 1;
    transform: translateY(0);
    height: fit-content;
}

.attraction-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.attraction-card.fade-out {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.card-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

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

.attraction-card:hover .card-image {
    transform: scale(1.05);
}

.card-type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--secondary-color);
    border-radius: 0.5rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.spec-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.spec-value {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}

.spec-price {
    grid-column: 1 / -1;   /* ⬅ spans both columns */
    margin-top: 0.5rem;
}

.spec-balicky {
    grid-column: 1 / -1;   /* ⬅ spans both columns */
    margin-top: 0.5rem;
}

.spec-price .spec-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.card-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-actions {
    display: flex;
    gap: 1rem;
}

.card-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-detail {
    background: var(--primary-color);
    color: white;
}

.btn-detail:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-contact {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-contact:hover::before {
    left: 0;
}

.btn-contact span {
    position: relative;
    z-index: 1;
}

.btn-contact:hover {
    color: white;
    transform: translateY(-2px);
}

/* Loading States */
.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-left: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results State */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--secondary-color);
    border-radius: 1rem;
    margin: 2rem 0;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.no-results h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.mobile-filters-btn {
  display: none;
}

/* Filter Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.attraction-card.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

.pagination-section {
    padding: 2rem 0;
    background: white;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.pagination-btn:hover:not(.disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #94a3b8;
}

.pagination-dots {
    color: var(--text-light);
    padding: 0 0.5rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .attractions-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.5rem;
    }
    
    .page-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .main-content{
        padding-top: 1.5rem;
    }

    .mobile-filters-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        position: relative;
        right: 1rem;
        z-index: 999;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 0.75rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        font-weight: bold;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        justify-content: center;
    }

    .mobile-filters-btn:hover {
        background: #1d4ed8;
        transform: scale(1.05);
    }

    .toggle-icon {
        position: absolute;
        transition: opacity 0.3s ease, transform 0.3s ease;
        font-weight: bold;
    }

    .toggle-icon.close {
        opacity: 1;
        transform: rotate(0deg);
    }

    .toggle-icon.open {
        opacity: 0;
        transform: rotate(0deg);
    }

    /* When filters are visible */
    .mobile-filters-btn.active .toggle-icon.close {
        opacity: 0;
        transform: rotate(90deg);
    }

    .mobile-filters-btn.active .toggle-icon.open {
        opacity: 1;
        transform: rotate(0deg);
    }

    .filters-header {
        position: relative; /* anchor for absolute positioning */
        flex-wrap: wrap;
        margin-bottom: 0;
    }

    .filters-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    border: 2px solid var(--text-dark);
    border-radius: 0.5rem;
    }

    .filters-toggle span {
    width: 22px;
    height: 3px;
    background: var(--text-dark);
    margin: 4px 0;
    transition: 0.3s;
    }


  #filtersContainer {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    position: relative;  /* ✅ relative instead of absolute */
    width: 100%;         /* full width inside wrapper */
    top: 100%;
    margin-top: 2rem; /* pushes it below header so not cut off */
  }

  #filtersContainer.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
  }
}

@media (max-width: 768px) {
    .mobile-filters-btn {
        display: flex;
    }
    .pagination-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .pagination-container {
        gap: 0.25rem;
    }

    .container-vyroba{
        justify-content: space-between;
        padding: 1rem;
    }
}