/*
Theme Name: Кияни Подобово Pro
Theme URI: https://podobovo.kiev.ua
Author: Web Master
Description: Профессиональный портал аренды с кастомными вкладками в шапке, полным списком районов в поиске, раздельными блоками записей и страниц на главной, и уникальным футером.
Version: 5.1
Text Domain: kiyany-podobovo-pro
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #2b2b2b;
    background-color: #fafbfc;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo a {
    font-size: 20px;
    font-weight: 700;
    color: #1a252f;
}

.site-logo span {
    color: #0088cc;
}

.custom-nav-tabs ul {
    display: flex;
    gap: 12px;
}

.custom-nav-tabs a {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    background: #f4f6f8;
}

.custom-nav-tabs a i {
    margin-right: 5px;
    color: #0088cc;
}

.custom-nav-tabs a:hover {
    background: #0088cc;
    color: #fff;
}

.custom-nav-tabs a:hover i {
    color: #fff;
}

.header-extras {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    font-size: 13px;
    font-weight: 700;
}

.lang-switch a {
    color: #888;
    padding: 3px 6px;
}

.lang-switch a.active-lang {
    color: #fff;
    background: #0088cc;
    border-radius: 4px;
}

.lang-switch .sep {
    color: #ccc;
}

.header-phone {
    font-size: 13px;
    font-weight: 700;
    color: #1a252f;
}

.header-phone i {
    color: #0088cc;
    margin-right: 5px;
}

/* Hero & Search with ALL Kyiv Districts */
.hero-search-area {
    background: linear-gradient(rgba(10, 25, 47, 0.75), rgba(10, 25, 47, 0.75)), url('https://images.unsplash.com/photo-1513694203232-719a280e022f?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.advanced-search-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    max-width: 1000px;
    margin: 0 auto;
}

.advanced-search-box form {
    display: grid;
    grid-template-columns: 2.2fr 1.8fr 1.2fr 1fr;
    gap: 15px;
    align-items: flex-end;
}

.search-group {
    text-align: left;
}

.search-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
}

.search-group label i {
    color: #0088cc;
    margin-right: 5px;
}

.search-group select, .search-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    color: #333;
    background: #fff;
}

.search-submit-btn {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-submit-btn:hover {
    background: #219653;
}

/* Main Content Layout */
.main-site-content {
    padding: 50px 0;
}

.block-section {
    margin-bottom: 60px;
}

.block-heading {
    font-size: 24px;
    font-weight: 700;
    color: #1a252f;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 10px;
}

.block-heading i {
    color: #0088cc;
}

/* Existing Pages Grid Block */
.pages-grid-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.page-card-item {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border-left: 4px solid #0088cc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
}

.page-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.page-card-item h3 a {
    font-size: 17px;
    font-weight: 700;
    color: #1a252f;
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s;
}

.page-card-item h3 a:hover {
    color: #0088cc;
}

.page-card-item p {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.read-more-link {
    font-size: 12px;
    font-weight: 700;
    color: #0088cc;
}

/* Existing Posts Grid Block */
.posts-grid-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.post-card-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.post-card-item:hover {
    transform: translateY(-5px);
}

.post-card-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.post-card-title a {
    font-size: 17px;
    font-weight: 700;
    color: #1a252f;
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s;
}

.post-card-title a:hover {
    color: #0088cc;
}

.post-card-excerpt {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.post-card-date {
    font-size: 11px;
    color: #999;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

/* Footer Unique Links */
.site-footer {
    background: #101820;
    color: #a0aec0;
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-widget h3, .footer-widget h4 {
    color: #fff;
    margin-bottom: 18px;
    font-size: 16px;
}

.footer-widget p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    font-size: 13px;
    color: #a0aec0;
    transition: color 0.3s;
}

.footer-widget ul li a:hover {
    color: #fff;
}

.footer-bottom-bar {
    background: #090e13;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #718096;
}

@media(max-width: 991px) {
    .advanced-search-box form {
        grid-template-columns: 1fr;
    }
    .custom-nav-tabs {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
