/* Modern Responsive Design for Kamechy.cz - Roboto Font */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    color: #374151;
    background: #fafafa;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
}

.logo {
    text-align: center;
    padding: 32px 0 24px 0;
    background: #ffffff;
}

.logo img {
    max-width: 280px;
    height: auto;
    filter: brightness(0) saturate(100%) invert(52%) sepia(89%) saturate(2476%) hue-rotate(343deg) brightness(102%) contrast(101%);
}

/* ===== NAVIGATION ===== */
.nav {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 3px solid #ff6b35;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.nav li {
    margin: 0;
}

.nav a {
    display: block;
    padding: 18px 28px;
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.nav a:hover,
.nav a.active {
    background: #fff5f0;
    color: #ff6b35;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #ffffff;
    padding: 40px;
    margin: 40px 0;
    border-radius: 24px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 1.8em;
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.05em;
    line-height: 1.8;
    margin: 0;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: left;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 1.8em;
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 12px;
}

/* ===== MAIN CONTENT GRID ===== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    margin: 40px 0;
}

/* ===== APARTMENTS SECTION ===== */
.apartments {
    background: #ffffff;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.apartments-full {
    margin: 40px 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

.apartments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.apartment-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.apartment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(255, 107, 53, 0.2);
}

.apartment-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
}

.apartment-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.apartment-card:hover img {
    transform: scale(1.1);
}

.apartment-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f59e0b;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.apartment-info {
    padding: 24px;
}

.apartment-info h3 {
    color: #1f2937;
    font-size: 1.3em;
    margin-bottom: 2px;
    font-weight: 700;
}

.apartment-info .price {
    color: #ff6b35;
    font-weight: 800;
    font-size: 1.2em;
    margin-bottom: 2px;
    display: block;
}

.apartment-info .details {
    color: #6b7280;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== NEWS SIDEBAR ===== */
.news-sidebar {
    background: #ffffff;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    height: fit-content;
}

.news-sidebar h2 {
    color: #1f2937;
    margin-bottom: 32px;
    font-size: 1.8em;
    font-weight: 700;
}

.news-item {
    margin-bottom: 24px;
    padding: 0 0 20px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e5e7eb;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item:hover {
    opacity: 0.8;
}

.news-date {
    color: #ff6b35;
    font-weight: 700;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.news-text {
    color: #374151;
    font-size: 1.05em;
    line-height: 1.7;
}

.news-text a,
.news-archive-text a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.news-text a:hover,
.news-archive-text a:hover {
    color: #e55a2b;
    border-bottom-color: #e55a2b;
}

.news-more {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.news-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

/* ===== DISCUSSION SECTION ===== */
.discussion-section {
    background: #ffffff;
    padding: 32px;
    margin: 40px 0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.discussion-section h2 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 700;
}

.discussion-section p {
    color: #374151;
    font-size: 1.05em;
    margin-bottom: 24px;
    line-height: 1.6;
}

.discussion-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.discussion-links li {
    margin: 0;
}

.discussion-links a {
    display: block;
    padding: 20px 24px;
    background: #f3f4f6;
    color: #1f2937;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.discussion-links a:hover {
    background: #ff6b35;
    color: #ffffff;
    transform: translateX(4px);
}

/* ===== MAP SECTION ===== */
.map-section {
    background: #ffffff;
    padding: 32px;
    margin: 40px 0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.map-section h2 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 700;
}

.map-section p {
    color: #374151;
    font-size: 1.05em;
    margin-bottom: 24px;
    line-height: 1.6;
}

.map-section iframe {
    width: 100%;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* ===== PAGE SECTION (GENERIC) ===== */
.page-section {
    background: #ffffff;
    padding: 32px;
    margin: 40px 0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.page-title {
    color: #1f2937;
    margin-top: 48px;
    margin-bottom: 32px;
    font-size: 1.8em;
    font-weight: 700;
}

.info-box {
    background: #f3f4f6;
    padding: 20px 24px;
    margin-bottom: 32px;
    border-radius: 8px;
}

.info-box p {
    margin: 0;
    color: #4b5563;
    font-size: 1.05em;
    line-height: 1.6;
}

/* ===== NEWS ARCHIVE ===== */
.news-archive {
    max-width: 900px;
}

.news-archive-item {
    margin-bottom: 32px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.news-archive-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateX(4px);
}

.news-archive-date {
    color: #ff6b35;
    font-weight: 700;
    font-size: 0.95em;
    margin-bottom: 12px;
}

.news-archive-text {
    color: #374151;
    font-size: 1.05em;
    line-height: 1.7;
}

/* ===== PAGINATION ===== */
.pagination {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #e5e7eb;
    text-align: center;
}

.pagination-link {
    display: inline-block;
    padding: 14px 28px;
    margin: 0 8px;
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.pagination-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

/* ===== INFO, LEGAL & TRANSPORT PAGES ===== */
.info-content,
.legal-content,
.transport-content,
.contact-content {
    max-width: 800px;
}

.contact-content p {
    color: #374151;
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
}

.contact-email {
    font-size: 1.2em;
    font-weight: 600;
    margin: 32px 0;
}

.contact-email a {
    color: #ff6b35;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email a:hover {
    color: #e55a2b;
    text-decoration: underline;
}

.contact-note {
    margin-top: 40px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border-left: 4px solid #6b7280;
}

.contact-note p {
    margin-bottom: 16px;
}

.contact-note p:last-child {
    margin-bottom: 0;
}

.developer-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.developer-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.developer-list li:last-child {
    border-bottom: none;
}

.developer-list a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.developer-list a:hover {
    color: #e55a2b;
    text-decoration: underline;
}

/* Info content paragraphs */
.info-content p,
.legal-content p {
    color: #374151;
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
}

.info-content a,
.legal-content a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-content a:hover,
.legal-content a:hover {
    color: #e55a2b;
    text-decoration: underline;
}

/* Legal content headings */
.legal-content h2 {
    color: #1f2937;
    font-size: 1.4em;
    font-weight: 700;
    margin: 32px 0 16px 0;
}

.legal-content h3 {
    color: #1f2937;
    font-size: 1.2em;
    font-weight: 600;
    margin: 24px 0 12px 0;
}

.legal-list {
    list-style-position: outside;
    padding-left: 24px;
    margin: 16px 0 24px 0;
}

.legal-list li {
    color: #374151;
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 12px;
    padding-left: 8px;
}

/* Transport list */
.transport-list {
    list-style-position: outside;
    padding-left: 24px;
    margin: 16px 0;
}

.transport-list li {
    color: #374151;
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 16px;
    padding-left: 8px;
}

/* Culture content */
.culture-content p {
    color: #374151;
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ===== MAP PAGE ===== */
.map-content {
    max-width: 900px;
}

.map-content p {
    color: #374151;
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 32px;
}

.map-content a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.map-content a:hover {
    color: #e55a2b;
    text-decoration: underline;
}

.map-plan-section {
    margin: 40px 0;
    padding: 32px;
    background: #f9fafb;
    border-radius: 12px;
}

.map-plan-section h2 {
    color: #1f2937;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 24px;
}

.map-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-link {
    margin: 16px 0;
    font-size: 0.95em;
}

/* ===== CATEGORY FILTERS ===== */
.category-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-filter {
    padding: 12px 24px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-filter:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.category-filter.active {
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: #ffffff;
    border-color: #ff6b35;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* ===== SHOPS & AMENITIES LISTS ===== */
.shops-list {
    max-width: 100%;
}

.shops-grid-home {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.shops-grid-home .shop-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
    padding: 0;
}

.shops-grid-home .shop-thumbnail {
    width: 100%;
    flex-shrink: 0;
    position: relative;
}

.shops-grid-home .shop-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.shop-top-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #6b7280;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.shops-grid-home .shop-info {
    padding: 24px;
}

.shop-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.shop-item:hover {
    box-shadow: 0 12px 48px rgba(255, 107, 53, 0.15);
    transform: translateY(-2px);
}

.shop-thumbnail {
    flex-shrink: 0;
}

.shop-thumbnail img {
    width: 143px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.shop-info {
    flex: 1;
}

.shop-info h2 {
    color: #1f2937;
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 12px;
}

.shop-info h2 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.shop-info h2 a:hover {
    color: #ff6b35;
}

.shop-info p {
    color: #374151;
    font-size: 1.05em;
    line-height: 1.6;
    margin-bottom: 16px;
}

.shop-address {
    color: #6b7280;
    font-size: 0.95em;
    margin: 8px 0 12px 0;
}

.shop-more {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1em;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.shop-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* ===== GALLERY PAGES ===== */
.gallery-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.gallery-link-item {
    background: #f9fafb;
    padding: 20px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.gallery-link-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateX(4px);
}

.gallery-link-item a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.gallery-link-item a:hover {
    color: #ff6b35;
}

/* Construction Gallery */
.construction-gallery {
    max-width: 100%;
}

.construction-stage {
    margin-bottom: 40px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
}

.construction-stage h3 {
    color: #1f2937;
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ff6b35;
}

.gallery-dates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.gallery-dates a {
    display: block;
    padding: 12px 16px;
    background: #ffffff;
    color: #1f2937;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    font-size: 0.95em;
}

.gallery-dates a:hover {
    background: #ff6b35;
    color: #ffffff;
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Page section h2 styling */
.page-section h2 {
    color: #1f2937;
    font-size: 1.5em;
    font-weight: 700;
    margin: 32px 0 20px 0;
}

.page-section p {
    color: #374151;
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ===== FOOTER ===== */
.footer {
    background: #1f2937;
    color: #ffffff;
    padding: 48px 0;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer a {
    color: #ff6b35;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer a:hover {
    color: #ffffff;
}

/* ===== PHOTO GALLERY GRID ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

/* ===== PHOTO GALLERY VERTICAL (VYSTAVBA) ===== */
.gallery-vertical {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 40px 0;
}

.gallery-vertical .gallery-item {
    display: block;
}

.gallery-vertical .gallery-item img {
    display: block;
    border: none;
    max-width: 100%;
    height: auto;
}

.gallery-grid .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: #ffffff;
}

.gallery-grid .gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-navigation-top {
    margin-bottom: 32px;
}

.gallery-navigation {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #e5e7eb;
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .content-grid .apartments {
        order: 2;
    }

    .content-grid .news-sidebar {
        order: 1;
    }

    .news-sidebar {
        position: static;
    }

    .apartments-grid,
    .shops-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
        gap: 0;
    }

    .nav a {
        text-align: center;
        border-radius: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .hero {
        padding: 24px;
        margin: 40px 0;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1.05em;
    }

    .apartments {
        padding: 32px 24px;
    }

    .apartments-grid,
    .shops-grid-home {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-header h2 {
        font-size: 1.8em;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .shop-item {
        flex-direction: column;
    }

    .shop-thumbnail img {
        width: 100%;
        height: auto;
    }

    .gallery-dates {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .gallery-links {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8em;
    }

    .logo img {
        max-width: 220px;
    }

    .apartments {
        padding: 24px 16px;
    }

    .news-sidebar {
        padding: 24px 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
