/*
Theme Name: Art's Arenda
Theme URI: https://artsarenda.ru
Author: Art's Arenda
Author URI: https://artsarenda.ru
Description: Кастомная тема для сайта аренды коммерческой недвижимости Art's Arenda. Воспроизводит дизайн оригинального сайта на Amiro CMS.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: arts-arenda
*/

/* =========================================================
   БАЗОВЫЕ СТИЛИ
   ========================================================= */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Verdana, Tahoma, Arial, sans-serif;
    font-size: 13px;
    color: #333333;
    line-height: 1.5;
    background: #f1f1f1;
}

img { max-width: 100%; height: auto; }
a { color: #a95300; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    font-family: Tahoma, Verdana, sans-serif;
    font-weight: bold;
    margin: 0 0 15px;
    line-height: 1.3;
}
h1 { font-size: 24px; }
h2 { font-size: 20px; color: #a95300; }
h3 { font-size: 17px; }

p { margin: 0 0 15px; }

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================================================
   ШАПКА
   ========================================================= */
#site-header {
    background: #f1f1f1;
}

.site-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-branding .site-logo img {
    max-height: 60px;
}

.site-branding .site-logo-img img {
    display: block;
    max-width: 300px;
    height: auto;
}
.site-branding-text .site-title {
    font-size: 26px;
    font-weight: bold;
    color: #a95300;
    margin: 0;
}
.site-branding-text .site-description {
    font-size: 12px;
    color: #666666;
    margin: 4px 0 0;
}

.header-contacts {
    text-align: right;
    font-size: 13px;
}
.header-contacts .phone a {
    font-size: 20px;
    font-weight: bold;
    color: #8c870d;
    white-space: nowrap;
}
.header-contacts .email {
    font-size: 13px;
}

/* --- Горизонтальное меню --- */
.main-navigation {
    background: #5b5344;
    border-top: 1px solid #6e6554;
    border-bottom: 1px solid #3f3a30;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.main-navigation ul li {
    position: relative;
}
.main-navigation ul a {
    display: block;
    padding: 13px 22px;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
}
.main-navigation ul a:hover,
.main-navigation ul li.current-menu-item > a {
    background: #a95300;
    color: #ffffff;
}

.menu-toggle {
    display: none;
    background: #a95300;
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}
.main-navigation ul.open { display: flex; }

/* =========================================================
   СЛАЙДЕР (лента изображений)
   ========================================================= */
.hero-slider {
    position: relative;
    max-width: 1180px;
    margin: 16px auto 0;
    padding: 15px 15px 0;
    overflow: hidden;
    height: 355px;
}
.hero-slider .slides {
    display: flex;
    height: 100%;
    transition: transform 0.9s ease-in-out;
}
.hero-slider .slide {
    flex: 0 0 100%;
    min-width: 100%;
    text-align: center;
}
.hero-slider .slide img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 8px;
}
.hero-slider .slider-nav {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
}
.hero-slider .slider-nav button {
    background: rgba(255,255,255,0.6);
    border: none;
    width: 34px;
    height: 6px;
    margin: 0 3px;
    cursor: pointer;
    padding: 0;
}
.hero-slider .slider-nav button.active { background: #a95300; }

/* =========================================================
   КОНТЕНТ
   ========================================================= */
#content {
    padding: 30px 0 50px;
}
#content .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
#primary {
    flex: 1 1 720px;
    min-width: 0;
}
#secondary {
    flex: 1 1 260px;
    max-width: 300px;
}
.two-column #secondary,
.sidebar-none #secondary { display: none; }
.sidebar-none #primary { flex: 1 1 100%; max-width: 100%; }

.entry-header { margin-bottom: 20px; }
.entry-title { color: #a95300; font-size: 26px; }

/* =========================================================
   ГЛАВНАЯ СТРАНИЦА — СЕТКА ОБЪЕКТОВ
   ========================================================= */
.home-section-title {
    background-image: url('assets/img/main/bn.png');
    background-repeat: repeat;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.objects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
}
.objects-grid .object-card {
    flex: 1 1 240px;
    background: #f1f1f1;
    text-align: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
}
.objects-grid .object-card .object-thumb img {
    display: block;
    margin: 0 auto 8px;
}
.objects-grid .object-card .object-name {
    font-weight: bold;
    color: #8c870d;
    margin-bottom: 6px;
}
.objects-grid .object-card .object-meta {
    font-size: 11px;
    color: #555555;
}

/* =========================================================
   СТРАНИЦА ОБЪЕКТА НЕДВИЖИМОСТИ
   ========================================================= */
.property-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}
.property-gallery img {
    width: 200px;
    height: auto;
    border: 1px solid #a95300;
    padding: 4px;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.property-gallery img:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Лайтбокс: увеличение картинки на весь экран */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox-overlay.lightbox-open {
    display: flex;
}
.lightbox-overlay img {
    max-width: 95vw;
    max-height: 95vh;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
    position: absolute;
    top: 14px;
    right: 24px;
    font-size: 44px;
    line-height: 1;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}
.lightbox-close:hover {
    color: #f0a860;
}
body.lightbox-open-body {
    overflow: hidden;
}
.property-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}
.property-info .details {
    background: #f8f7f3;
    border: 1px solid #e3dfd2;
    padding: 15px 20px;
    flex: 1 1 320px;
}
.property-info .details p { margin: 0 0 10px; }
.property-info .details .label {
    font-weight: bold;
    color: #8c870d;
}
.property-iframe {
    margin: 15px 0;
    text-align: center;
}
.property-iframe iframe { max-width: 100%; }

/* =========================================================
   НОВОСТИ
   ========================================================= */
.news-item {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 20px;
    margin-bottom: 25px;
}
.news-item h2 { margin-bottom: 5px; }
.news-meta {
    font-size: 12px;
    color: #888888;
    margin-bottom: 12px;
}
.news-item .news-thumb { float: left; margin: 0 15px 10px 0; }

/* =========================================================
   ФОРМА ОБРАТНОЙ СВЯЗИ
   ========================================================= */
.contact-form label { display: block; font-weight: bold; margin-bottom: 5px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    max-width: 480px;
    padding: 9px 12px;
    border: 1px solid #cccccc;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 15px;
}
.contact-form textarea { min-height: 120px; }
.contact-form input[type="submit"] {
    background: #a95300;
    color: #ffffff;
    border: none;
    padding: 11px 28px;
    font-size: 15px;
    cursor: pointer;
}
.contact-form input[type="submit"]:hover { background: #8c870d; }

/* =========================================================
   CONTACT FORM 7
   ========================================================= */
.wpcf7-form label { display: block; font-weight: bold; margin-bottom: 5px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    max-width: 480px;
    padding: 9px 12px;
    border: 1px solid #cccccc;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 15px;
}
.wpcf7-form textarea { min-height: 120px; }
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
    background: #a95300;
    color: #ffffff;
    border: none;
    padding: 11px 28px;
    font-size: 15px;
    cursor: pointer;
}
.wpcf7-form input[type="submit"]:hover { background: #8c870d; }
.wpcf7-form .wpcf7-not-valid-tip { color: #d00000; font-size: 12px; }
.wpcf7 form.wpcf7-response-output { margin: 15px 0; padding: 12px; border: 1px solid #a95300; }

/* =========================================================
   ПОДВАЛ
   ========================================================= */
#site-footer {
    background-image: url('assets/img/main/footer-tc.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-color: #4a4436;
    color: #ffffff;
    font-size: 12px;
    padding: 30px 0 25px;
    margin-top: 40px;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 25px;
}
.footer-inner .col { flex: 1 1 220px; }
.footer-inner h3 {
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 12px;
}
.footer-inner a { color: #eeeeee; }
.footer-contacts .c-item { margin-bottom: 8px; }
.footer-copy {
    border-top: 1px solid #5b5344;
    margin-top: 25px;
    padding-top: 15px;
    text-align: center;
    font-size: 11px;
    color: #cccccc;
}

/* =========================================================
   ПРОЧЕЕ
   ========================================================= */
.breadcrumbs { font-size: 12px; color: #888888; margin-bottom: 15px; }
.breadcrumbs a { color: #a95300; }

.content-area .post-content ul,
.content-area .post-content ol { margin: 0 0 15px 20px; }

/* Кнопки напр */
.wp-block-buttons .wp-block-button__link,
.button {
    background: #a95300;
    color: #ffffff !important;
    padding: 10px 22px;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
}

/* Поисковая форма */
.search-form { margin: 20px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.search-form .search-field {
    padding: 9px 12px;
    border: 1px solid #cccccc;
    font-size: 14px;
    font-family: inherit;
    min-width: 220px;
}

/* =========================================================
   АДАПТИВНОСТЬ
   ========================================================= */
@media (max-width: 900px) {
    #content .wrap { flex-direction: column; }
    #secondary { max-width: 100%; }
    .site-header-inner { flex-direction: column; text-align: center; }
    .header-contacts { text-align: center; }
    .main-navigation ul {
        flex-direction: column;
        display: none;
        width: 100%;
    }
    .main-navigation ul.open { display: flex; }
    .menu-toggle { display: inline-block; }
}