/* WFK / Gravitas Dizajn */
:root { 
  --primary: #1a1a1a; --accent: #b4975a; --bg: #f9f9f9; 
  --white: #ffffff; --text: #333333; --border: #eeeeee;
}
html { scroll-behavior: smooth; max-width: 100vw; overflow-x: hidden; }

body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; margin: 0; padding: 0; background: var(--white); display: flex; flex-direction: row; height: 100vh; height: 100dvh; overflow-x: hidden; overflow-y: hidden; color: var(--text); max-width: 100vw; }

.app-container { display: flex; flex-grow: 1; overflow: hidden; position: relative; width: 100%; max-width: 100%; }
.main-web { flex-grow: 1; overflow-y: auto; overflow-x: hidden; transition: 0.4s ease-in-out; display: flex; flex-direction: column; width: 100%; max-width: 100%; }

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 50px; background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; box-sizing: border-box; }
.nav-links { display: flex; gap: 30px; font-size: 13px; font-weight: bold; color: var(--primary); letter-spacing: 1px; text-transform: uppercase; }
.nav-links a { text-decoration: none; color: inherit; cursor: pointer; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }
.logo { font-size: 28px; font-weight: bold; color: var(--primary); text-align: center; cursor: pointer; }
.nav-actions .btn-sell { background: var(--primary); color: var(--white); padding: 10px 20px; text-decoration: none; font-size: 13px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; transition: 0.3s; border-radius: 4px; border: none; cursor: pointer;}
.nav-actions .btn-sell:hover { background: var(--accent); }

.tech-badges { position: absolute; top: 15px; right: 15px; display: flex; gap: 8px; z-index: 5; }
.tech-badge { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); color: var(--white); padding: 6px 10px; border-radius: 4px; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.tech-badge svg { width: 14px; height: 14px; fill: var(--accent); } 
.hero { position: relative; height: 60vh; min-height: 400px; background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat; display: flex; align-items: center; justify-content: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); }
.hero-content { position: relative; z-index: 2; text-align: center; color: var(--white); }
.hero-content h1 { font-size: 48px; margin: 0 0 20px 0; font-weight: normal; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

.categories-wrapper { background: var(--bg); padding: 0 50px; margin-top: -50px; position: relative; z-index: 5; display: flex; justify-content: center; box-sizing: border-box; width: 100%; }
.categories { display: flex; background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,0.08); width: 100%; max-width: 1200px; box-sizing: border-box; }
.cat-box { flex: 1; padding: 30px 10px; text-align: center; border-right: 1px solid var(--border); cursor: pointer; transition: 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; box-sizing: border-box; }
.cat-box:hover { background: #f0f0f0; }
.cat-box svg { width: 35px; height: 35px; fill: var(--primary); transition: 0.3s; }
.cat-box:hover svg { transform: translateY(-5px); fill: var(--accent); }
.cat-box span { font-size: 14px; color: var(--primary); font-weight: bold; }

.cat-box.selected-cat { background: var(--primary); }
.cat-box.selected-cat svg { fill: var(--accent); }
.cat-box.selected-cat span { color: var(--white); }

.cat-box.ai-trigger { background: var(--primary); }
.cat-box.ai-trigger svg { fill: var(--accent); }
.cat-box.ai-trigger span { color: var(--white); }
.cat-box.ai-trigger:hover { background: #000; }

.dynamic-tags-wrapper { display: none; background: var(--bg); padding: 15px 50px; border-bottom: 1px solid var(--border); box-sizing: border-box; width: 100%; }
.dynamic-tags-wrapper.active { display: flex; justify-content: center; }
.tags-container { display: flex; gap: 10px; overflow-x: auto; max-width: 1000px; scrollbar-width: none; }
.tags-container::-webkit-scrollbar { display: none; }
.filter-tag { background: var(--white); border: 1px solid var(--border); color: var(--primary); padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: bold; cursor: pointer; white-space: nowrap; transition: 0.3s; }
.filter-tag:hover { border-color: var(--accent); color: var(--accent); }
.filter-tag.active { background: var(--accent); color: var(--white); border-color: var(--accent); }

.search-section { padding: 40px 50px; text-align: center; max-width: 900px; margin: 0 auto; flex-shrink: 0; box-sizing: border-box; width: 100%; }
.search-tabs { display: flex; justify-content: center; gap: 40px; margin-bottom: 25px; font-size: 16px; font-weight: bold; color: #888; letter-spacing: 1px; }
.search-tabs span { cursor: pointer; transition: 0.3s; }
.search-tabs span:hover { color: var(--primary); }
.search-tabs span.active { color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: 5px; }

.search-bar { display: flex; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid var(--border); box-sizing: border-box; width: 100%; }
.search-bar input { flex: 1; padding: 20px; border: none; font-size: 15px; outline: none; box-sizing: border-box; width: 100%; }
.search-bar button { padding: 0 40px; background: var(--primary); color: var(--white); border: none; font-size: 18px; cursor: pointer; transition: 0.3s; }

.property-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; padding: 0 50px 50px 50px; max-width: 1400px; margin: 0 auto; box-sizing: border-box; }
.property-card { width: 320px; max-width: 100%; background: var(--white); box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; cursor: pointer; position: relative; display: flex; flex-direction: column; box-sizing: border-box; }
.property-card:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.1); transform: translateY(-5px); }

.property-img { width: 100%; aspect-ratio: 16 / 9; background-color: #ddd; position: relative; overflow: hidden; }
.bg-img { width: 100%; height: 100%; background-position: center; background-size: cover; transition: transform 0.6s ease; }
.property-card:hover .bg-img { transform: scale(1.08); }

.property-info { padding: 20px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.property-info h3 { margin: 0 0 15px 0; font-size: 16px; color: var(--primary); font-weight: normal; line-height: 1.4em; height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.property-features { display: flex; justify-content: space-around; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 0; margin-bottom: 15px; color: #666; font-size: 13px; }
.feature-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.feature-item svg { width: 18px; height: 18px; fill: #999; }
.property-price { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #666; }
.price-value { font-size: 18px; font-weight: bold; color: var(--primary); }

.quick-view-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 26, 26, 0.85); color: var(--white); display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; padding: 20px; box-sizing: border-box; text-align: left; z-index: 3; }
.property-img:hover .quick-view-overlay { opacity: 1; }
.qv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; font-size: 13px; }
.qv-item { border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 5px; }
.qv-item strong { color: var(--accent); display: block; font-size: 11px; text-transform: uppercase; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 9999999 !important; display: none; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.modal-content { background: var(--white); width: 95%; max-width: 1400px; max-height: 95vh; border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.modal-header { padding: 20px 30px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: var(--bg); }
.modal-header h2 { margin: 0; font-size: 22px; color: var(--primary); }
.modal-close { font-size: 30px; cursor: pointer; background: none; color: var(--primary); border: none; }
.modal-body { display: flex; flex-wrap: wrap; overflow-y: auto; overflow-x: hidden; }

.modal-left { flex: 1; min-width: 320px; max-width: 420px; padding: 30px; border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow-y: auto; }
.modal-right { flex: 2; min-width: 400px; padding: 30px; background: #fafafa; overflow-y: auto; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 20px; margin-bottom: 35px; }
.info-box { display: flex; align-items: center; gap: 15px; }
.info-box svg { width: 26px; height: 26px; fill: var(--accent); flex-shrink: 0; }
.info-box div { font-size: 15px; color: var(--primary); font-weight: 500; line-height: 1.2; }
.info-box div strong { display: block; font-size: 11px; color: #888; text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.5px; font-weight: bold; }

.modal-price { background: var(--accent); color: var(--white); padding: 15px; text-align: center; font-size: 24px; font-weight: bold; border-radius: 4px; margin-bottom: 30px; }

.broker-card { display: flex; align-items: center; gap: 15px; padding: 15px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 15px; }
.broker-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: top center; border: 2px solid var(--accent); }
.broker-info { display: flex; flex-direction: column; }
.broker-name { font-weight: bold; font-size: 15px; color: var(--primary); }
.broker-phone { font-size: 14px; color: var(--accent); text-decoration: none; font-weight: bold; margin-top: 5px; display: inline-flex; align-items: center; gap: 5px;}
.broker-phone svg { width: 14px; height: 14px; fill: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.contact-form input, .contact-form textarea, .contact-form select { padding: 12px; border: 1px solid var(--border); border-radius: 4px; font-family: inherit; font-size: 14px; box-sizing: border-box; width: 100%; }
.contact-form button { background: var(--primary); color: var(--white); border: none; padding: 15px; font-weight: bold; text-transform: uppercase; cursor: pointer; transition: 0.3s; border-radius: 4px; }
.contact-form button:hover { background: var(--accent); }

.naber-modal-content { background: var(--white); width: 90%; max-width: 500px; border-radius: 8px; overflow: hidden; position: relative; }
.naber-body { padding: 30px; }
.naber-body p { color: #666; font-size: 14px; line-height: 1.5; margin-bottom: 20px; }

.media-tabs { display: flex; gap: 10px; margin-bottom: 15px; }
.media-tab { flex: 1; padding: 12px; border-radius: 4px; background: #e0e0e0; color: var(--primary); font-size: 13px; font-weight: bold; cursor: pointer; text-transform: uppercase; border: none; transition: 0.3s; text-align: center; display: flex; justify-content: center; align-items: center; gap: 8px; }
.media-tab svg { width: 16px; height: 16px; fill: currentColor; }
.media-tab.active { background: var(--primary); color: var(--white); }
.media-tab:hover:not(.active) { background: #d0d0d0; }

.gallery-container { position: relative; margin-bottom: 20px; }
.gallery-main { position: relative; width: 100%; aspect-ratio: 16/9; max-height: 60vh; background: #000; border-radius: 8px; overflow: hidden; cursor: zoom-in; display: flex; justify-content: center; align-items: center; }
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; transition: 0.3s; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; cursor: pointer; z-index: 2; transition: 0.3s; }
.gallery-arrow:hover { background: var(--accent); }
.arrow-left { left: 10px; }
.arrow-right { right: 10px; }

.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-top: 10px; }
.gallery-thumbs img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; cursor: pointer; opacity: 0.6; transition: 0.3s; border: 2px solid transparent; }
.gallery-thumbs img:hover, .gallery-thumbs img.active { opacity: 1; border-color: var(--accent); }

.iframe-container { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; display: none; }
.btn-fullscreen { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.7); color: white; border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; z-index: 10; font-size: 12px; font-weight: bold; text-transform: uppercase; display: flex; align-items: center; gap: 6px; transition: 0.3s; backdrop-filter: blur(4px); }
.btn-fullscreen:hover { background: var(--accent); }
.btn-fullscreen svg { width: 16px; height: 16px; fill: currentColor; }

#modal-desc { font-size: 15px; line-height: 1.6; color: #444; white-space: pre-wrap; font-family: inherit; }

.fs-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.95); z-index: 99999999 !important; display: none; justify-content: center; align-items: center; }
.fs-overlay img { width: 100%; height: 100%; max-width: 95vw; max-height: 95vh; object-fit: contain; display: block; margin: auto; }
.fs-close { position: absolute; top: 20px; right: 30px; font-size: 40px; color: white; background: none; border: none; cursor: pointer; }
.fs-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: none; color: white; border: none; font-size: 50px; cursor: pointer; padding: 20px; }
.fs-arrow:hover { color: var(--accent); }

.chat-drawer { width: 0; background: var(--bg); border-left: 1px solid var(--border); display: flex; flex-direction: column; transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); overflow: hidden; box-shadow: -10px 0 30px rgba(0,0,0,0.05); z-index: 100000; }
.chat-drawer.open { width: 450px; }

.chat-header { background: var(--primary); padding: 20px; color: var(--white); display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.chat-header h2 { margin: 0; font-size: 16px; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; }
.close-btn { background: none; border: none; color: var(--white); font-size: 28px; cursor: pointer; line-height: 1; transition: 0.3s; }
.close-btn:hover { color: var(--accent); transform: scale(1.1); }
#chat-box { flex-grow: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; background: var(--white); }
.msg-row { display: flex; width: 100%; }
.msg-row.user { justify-content: flex-end; }
.msg-row.bot { justify-content: flex-start; }
.msg-bubble { max-width: 85%; padding: 15px 20px; border-radius: 12px; font-size: 14px; line-height: 1.6; }
.msg-row.user .msg-bubble { background: var(--primary); color: var(--white); border-bottom-right-radius: 2px; }
.msg-row.bot .msg-bubble { background: var(--bg); color: var(--primary); border: 1px solid var(--border); border-bottom-left-radius: 2px; }

.typing-indicator { display: none; align-items: center; gap: 10px; padding: 10px 20px; background-color: var(--bg); border-radius: 20px; width: fit-content; margin: 5px 0 15px 20px; color: var(--primary); font-size: 13px; font-weight: bold; letter-spacing: 0.5px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.feather-icon { font-size: 24px; color: var(--accent); animation: writingMotion 1.6s infinite ease-in-out; transform-origin: bottom left; }
@keyframes writingMotion { 0% { transform: translateX(0px) rotate(0deg); } 15% { transform: translateX(6px) rotate(22deg); } 30% { transform: translateX(12px) rotate(-3deg); } 45% { transform: translateX(18px) rotate(18deg); } 60% { transform: translateX(24px) rotate(0deg); } 100% { transform: translateX(0px) rotate(0deg); } }
.typing-text-dots { animation: dotsPulse 1.5s infinite; }
@keyframes dotsPulse { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

.input-area { display: flex; padding: 15px; background: var(--white); border-top: 1px solid var(--border); flex-shrink: 0; align-items: center; gap: 10px !important; }
.input-area input { flex-grow: 1; padding: 12px; border: 1px solid #ddd; border-radius: 30px; outline: none; font-size: 14px; background: var(--bg); min-width: 0; }
.input-area button.btn-round { width: 45px !important; height: 45px !important; flex-shrink: 0; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; border: none; }

.mobile-slide-btn { display: none; width: 100%; background: var(--accent); color: var(--white); border: none; padding: 15px; border-radius: 8px; font-weight: bold; font-size: 14px; text-transform: uppercase; cursor: pointer; margin-top: 25px; transition: 0.3s; box-shadow: 0 4px 15px rgba(180, 151, 90, 0.4); }
.mobile-slide-btn.outline { background: transparent; color: var(--primary); border: 2px solid var(--border); box-shadow: none; }

@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
.pulse-anim { animation: pulse 1s infinite; }

.info-modal-content { background: var(--white); width: 95%; max-width: 900px; max-height: 85vh; border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.info-modal-body { padding: 40px; overflow-y: auto; font-size: 15px; line-height: 1.7; color: var(--text); }
.info-modal-body h3 { color: var(--primary); margin-top: 0; font-size: 24px; border-bottom: 2px solid var(--accent); padding-bottom: 10px; margin-bottom: 20px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.team-card-styled { background: var(--bg); padding: 20px; border-radius: 8px; text-align: center; border: 1px solid var(--border); }
.team-card-styled .icon { font-size: 30px; margin-bottom: 10px; }
.team-card-styled h4 { margin: 0 0 5px 0; color: var(--primary); font-size: 18px; }
.team-card-styled .role { color: var(--accent); font-weight: bold; margin-bottom: 10px; font-size: 13px; }

.price-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--white); border: 1px solid var(--border); }
.price-table th, .price-table td { padding: 12px 15px; border-bottom: 1px solid var(--border); text-align: left; }
.price-table th { background: var(--primary); color: var(--white); font-weight: bold; }
.price-table td.price { font-weight: bold; color: var(--primary); white-space: nowrap; text-align: right; }
.price-table tr:nth-child(even) { background: var(--bg); }

#mobile-chat-bubble { display: none; position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: var(--accent); border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,0.3); cursor: pointer; z-index: 1000; justify-content: center; align-items: center; transition: 0.3s; }
#mobile-chat-bubble svg { width: 30px; height: 30px; fill: var(--white); }
#mobile-chat-bubble:hover { transform: scale(1.1); }

/* Skrytie bubliny na PC cez media query pre istotu */
@media (min-width: 769px) {
    #mobile-chat-bubble { display: none !important; }
}

/* Pravidlá LEN pre mobily */
@media (max-width: 950px) {
    .property-grid { padding: 0 15px 30px 15px !important; gap: 20px !important; }
    .property-card { width: 100% !important; max-width: 400px !important; margin: 0 auto !important; }

    #mobile-chat-bubble { display: flex !important; position: fixed !important; width: 60px !important; height: 60px !important; background: var(--accent) !important; border-radius: 50% !important; bottom: 25px !important; right: 25px !important; z-index: 999999 !important; box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important; align-items: center !important; justify-content: center !important; }
    #mobile-chat-bubble svg { width: 30px !important; height: 30px !important; fill: #ffffff !important; }
    .cat-box.ai-trigger { display: none !important; } 
    
    .ai-text { font-size: 24px !important; font-weight: 900 !important; color: var(--white) !important; font-family: Arial, sans-serif !important; letter-spacing: 1px !important; }
    .ai-tooltip { position: absolute; right: 75px; bottom: 12px; background: var(--primary); color: var(--accent); padding: 10px 15px; border-radius: 8px; font-size: 14px; font-weight: bold; white-space: nowrap; box-shadow: 0 5px 15px rgba(0,0,0,0.3); opacity: 0; pointer-events: none; animation: showAiTooltip 8s ease-in-out 2s forwards; }
    .ai-tooltip::after { content: ''; position: absolute; top: 50%; right: -8px; transform: translateY(-50%); border-width: 8px 0 8px 8px; border-style: solid; border-color: transparent transparent transparent var(--primary); }
    @keyframes showAiTooltip { 0% { opacity: 0; transform: translateX(20px); } 10% { opacity: 1; transform: translateX(0); } 90% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; transform: translateX(10px); } }
    
    .chat-drawer { position: fixed !important; top: 0 !important; right: 0 !important; width: 0 !important; height: 100dvh !important; z-index: 100000 !important; }
    .chat-drawer.open { width: 100% !important; }
    #mobile-chat-bubble.hide-bubble { display: none !important; }

    .navbar { flex-direction: column; padding: 10px 15px; gap: 10px; width: 100%; box-sizing: border-box; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 11px; }
    .logo { font-size: 22px; }
    .nav-actions { width: 100%; }
    .nav-actions .btn-sell { width: 100%; box-sizing: border-box; text-align: center; padding: 12px; font-size: 12px; }

    .categories-wrapper { padding: 0 10px; margin-top: -30px; box-sizing: border-box; width: 100%; }
    .categories { flex-wrap: wrap; box-sizing: border-box; width: 100%; }
    .cat-box { flex: 1 1 40%; padding: 10px 5px; border-bottom: 1px solid var(--border); gap: 5px; box-sizing: border-box; }
    .cat-box svg { width: 25px; height: 25px; }
    .cat-box span { font-size: 12px; }
    
    .hero { min-height: 250px; height: 40vh; }
    .hero-content h1 { font-size: 26px; padding: 0 15px; margin-bottom: 10px; }
    .hero-content p { font-size: 14px !important; padding: 0 15px; }
    
    .search-section { padding: 20px 15px; box-sizing: border-box; width: 100%; }
    .search-tabs { gap: 15px; font-size: 12px; margin-bottom: 15px; flex-wrap: wrap; }

    .main-web { padding-bottom: 0; } 
    footer { padding-bottom: 100px !important; }
    footer > div { flex-direction: column !important; align-items: center !important; text-align: center !important; gap: 15px !important; }
    footer > div > div:nth-child(2) { flex-wrap: wrap !important; justify-content: center !important; line-height: 2 !important; }
    footer a { display: inline-block; padding: 5px 10px; font-size: 11px; }

    .mobile-slide-btn { display: block !important; }

    /* OPRAVA MOBILNÉHO SLIDERA - Fixácia presne na 100% šírky displeja */
    .modal-content, .info-modal-content, .naber-modal-content { width: 100% !important; max-width: 100vw !important; height: 100dvh !important; max-height: 100dvh !important; border-radius: 0 !important; margin: 0 !important; overflow-x: hidden !important; }
    
    #property-modal .modal-body { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto !important; scroll-snap-type: x mandatory !important; scrollbar-width: none; width: 100vw !important; max-width: 100vw !important; }
    #property-modal .modal-body::-webkit-scrollbar { display: none; }
    
    .modal-right { order: 1 !important; flex: 0 0 100vw !important; width: 100vw !important; min-width: 100vw !important; max-width: 100vw !important; padding: 20px !important; box-sizing: border-box !important; border-right: none !important; scroll-snap-align: start !important; }
    .modal-left { order: 2 !important; flex: 0 0 100vw !important; width: 100vw !important; min-width: 100vw !important; max-width: 100vw !important; padding: 20px !important; box-sizing: border-box !important; border-right: none !important; scroll-snap-align: start !important; }
    
    .grid-2 { grid-template-columns: 1fr !important; gap: 15px; }
    .grid-3 { grid-template-columns: 1fr !important; }
    .info-grid { grid-template-columns: 1fr; }
    
    .info-modal-body { padding: 20px !important; }
    .price-table { display: block; overflow-x: auto; font-size: 12px; }
    .price-table th, .price-table td { white-space: normal !important; padding: 10px 5px !important; }
    
    #kontakt-modal .info-modal-body > div > div { min-width: 0 !important; padding: 20px !important; border-right: none !important; box-sizing: border-box !important; }
    #gdpr-modal .modal-content > div:nth-child(2) { max-height: 75vh !important; }

    #market-modal .modal-body { display: block !important; overflow-x: hidden !important; overflow-y: auto !important; }
    #market-modal .modal-body > div { display: block !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important; padding: 15px !important; box-sizing: border-box !important; border: none !important; }
    #chart-container { width: 100% !important; max-width: 100% !important; }
    
    #market-modal .modal-body > div:first-child > div:first-child > div:first-child { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 15px !important; }
    #market-modal .modal-body > div:first-child > div:first-child > div:first-child > div { display: flex !important; flex-direction: column !important; width: 100% !important; }
    #region-select, #category-select { width: 100% !important; margin-bottom: 5px !important; box-sizing: border-box !important; font-size: 14px !important; }
    .media-tabs { flex-wrap: wrap !important; }
.media-tab { flex: 1 1 45% !important; font-size: 11px !important; padding: 10px 5px !important; }
}

/* Súhlas s Cookies */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: #222222; color: #ffffff; padding: 15px 20px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; z-index: 9999; box-shadow: 0 -5px 15px rgba(0,0,0,0.3); box-sizing: border-box; }
.cookie-content p { margin: 0; font-size: 13px; line-height: 1.5; text-align: left; }
.cookie-link { color: var(--accent); cursor: pointer; font-weight: bold; margin-left: 5px; transition: opacity 0.3s; }
.cookie-link:hover { opacity: 0.8; }
.cookie-buttons { display: flex; gap: 10px; margin-top: 15px; width: 100%; justify-content: stretch; }
.btn-cookie-primary, .btn-cookie-secondary { flex: 1; padding: 12px 15px; font-weight: bold; border-radius: 4px; cursor: pointer; font-size: 13px; text-align: center; transition: all 0.3s; }
.btn-cookie-primary { background-color: var(--accent); color: #ffffff; border: 1px solid var(--accent); }
.btn-cookie-primary:hover { background-color: transparent; color: var(--accent); }
.btn-cookie-secondary { background-color: transparent; color: #ffffff; border: 1px solid #777777; }
.btn-cookie-secondary:hover { border-color: var(--accent); color: var(--accent); }

@media (min-width: 768px) {
    .cookie-banner { flex-direction: row; padding: 15px 40px; }
    .cookie-content { flex: 1; padding-right: 30px; }
    .cookie-buttons { margin-top: 0; width: auto; justify-content: flex-end; }
    .btn-cookie-primary, .btn-cookie-secondary { flex: none; }
}

.media-tabs { flex-wrap: wrap !important; }
    .media-tab { flex: 1 1 45% !important; font-size: 11px !important; padding: 10px 5px !important; }
} /* Toto je zátvorka, ktorá uzatvára @media (max-width: 950px) */


/* TU VLOŽÍŠ KÓD PRE MOBIL NA ŠÍRKU - Úplne na spodok súboru */
@media (max-height: 500px) and (orientation: landscape) {
    .gallery-main { max-height: 70vh !important; }
}