/* custom.css - AGP-Dom additional styles */

/* ===== Cyrillic font overrides ===== */
/* Gobold -> Oswald (geometric bold headings with cyrillic) */
h1, h2, h3, h4, h5, h6,
.large-heading, .medium-heading,
.heading h2, .heading h4, .heading h5,
.title-row h2, .title-row h1 {
  font-family: 'Oswald', sans-serif !important;
}

/* Lato with cyrillic for body text */
body,
p, a, span, li, td, th, label, input, select, textarea, button {
  font-family: 'Lato', 'Open Sans', sans-serif;
}

/* Droid Sans -> Open Sans for navigation and UI */
.navigation ul li a,
.navigation-mobile ul li a,
.btn, .form-control,
.meta, .meta-list, .meta-list2 {
  font-family: 'Open Sans', 'Lato', sans-serif;
}

/* Roboto with cyrillic where used */
.properties-descriptions,
.tab-content,
.contents p {
  font-family: 'Roboto', 'Lato', sans-serif;
}

/* Price: bold Oswald for impact */
.price, .btn-danger.disabled {
  font-family: 'Oswald', sans-serif !important;
}

/* Footer */
.main-footer, .footer-sub {
  font-family: 'Open Sans', 'Lato', sans-serif;
}

/* Heading paragraph (was gobold — no cyrillic) */
.heading p {
  font-family: 'Oswald', sans-serif !important;
}

/* ===== End font overrides ===== */

/* Property card badge (replaces triangle .box-type) */
.grid-box .box-label {
  position: absolute;
  top: 12px;
  left: 0;
  z-index: 2;
  background: #433636;
  color: #fff;
  font-family: 'Open Sans', 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  line-height: 1;
}
.grid-box .image {
  position: relative;
  overflow: hidden;
}

/* Property card links */
a.property-card-link {
  color: inherit;
  text-decoration: none;
}
a.property-card-link:hover {
  color: #e74c3c;
}

/* Grid box equal height */
.grid-box-all {
  display: flex;
  flex-wrap: wrap;
}
.grid-box {
  display: flex;
  flex-direction: column;
}
.grid-box .image img {
  width: 100%;
  height: 234px;
  object-fit: cover;
}
.grid-box .description {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.grid-box .description h3 {
  min-height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.grid-box .description .price {
  margin-top: auto;
}

/* Property details table */
.property-details-table {
  width: 100%;
  margin-top: 20px;
}
.property-details-table td {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.property-details-table td:first-child {
  width: 200px;
  color: #666;
}

/* Price styling */
.price {
  font-weight: bold;
  color: #e74c3c;
}

/* Discount badge */
.property-discount-badge {
  display: inline-block;
  padding: 5px 15px;
  background: #27ae60;
  color: #fff;
  border-radius: 3px;
  font-size: 14px;
}

/* ===== Filter sidebar (matching original template) ===== */

/* Native select styled as template dropdown */
.widget-search .filter_menu2 {
  border: 1px solid #e7e7e7;
  padding: 0;
  float: left;
  width: 100%;
  margin-bottom: 15px;
  background: #fff;
  position: relative;
}

.filter-select,
.filter-input {
  width: 100%;
  padding: 8px 15px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  outline: none;
  font-family: 'Open Sans', 'Lato', sans-serif;
}
.filter-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
}
.filter-select:focus,
.filter-input:focus {
  outline: none;
}
.filter-input {
  cursor: text;
}
/* Hide number input spinners */
.filter-input::-webkit-outer-spin-button,
.filter-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.filter-input[type=number] {
  -moz-appearance: textfield;
}

/* Price/area range labels */
.widget-search .no-slider {
  margin-bottom: 5px;
}
.widget-search .no-slider .info {
  display: block;
  overflow: hidden;
}
.widget-search .no-slider .min,
.widget-search .no-slider .max {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
}

/* Form inputs inside sidebar */
.widget-search .form-group {
  margin-bottom: 12px;
}
.widget-search .form-control {
  font-size: 14px;
  border: 1px solid #e7e7e7;
  box-shadow: none;
  height: 38px;
}
.widget-search .form-control:focus {
  border-color: #ccc;
  box-shadow: none;
}

/* Submit button */
.widget-search .btn-primary {
  margin-top: 10px;
}

/* Reset button */
.widget-search .btn-ghost.btn-block {
  border: 1px solid #ddd;
  color: #888;
  font-size: 13px;
  padding: 8px;
}
.widget-search .btn-ghost.btn-block:hover {
  background: #f5f5f5;
  color: #555;
}

/* Pagination active state */
.pagination > li.active > a {
  background-color: #333;
  border-color: #333;
  color: #fff;
}
.pagination > li > a {
  color: #333;
}

/* Residential complex name */
.residential-complex-name {
  font-size: 25px !important;
  font-family: 'Oswald', sans-serif !important;
  font-weight: 500 !important;
}

/* Property detail price enlarged */
.content-table .btn-danger.disabled {
  font-size: 36px;
  padding: 12px 24px;
  line-height: 1.2;
}

/* Developer badge — aligned to the right edge */
.developer-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}
.developer-badge img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.developer-badge span {
  font-size: 13px;
  color: #888;
  font-family: 'Open Sans', 'Lato', sans-serif;
}

/* Map tab responsive */
.tab-pane .map-responsive,
.tab-pane iframe.map-responsive {
  width: 100%;
  height: 450px;
  border: 0;
}

/* ===== Property photo gallery ===== */
.gallery {
  width: 100%;
}
.gallery-main {
  position: relative;
  width: 100%;
  height: 450px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.gallery-arrow:hover {
  background: rgba(0,0,0,0.7);
}
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.gallery-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}
.gallery-thumb:hover {
  opacity: 0.8;
}
.gallery-thumb.active {
  opacity: 1;
  border-color: #e74c3c;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Скрытие скроллбара для миниатюр */
.gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}
.gallery-thumbs::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 2px;
}
.gallery-thumbs::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}
.gallery-thumbs::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* Communication status */
.text-success {
  color: #27ae60;
  font-weight: bold;
}
.text-muted {
  color: #999;
}

/* No results */
.pad-top-large.text-center h3 {
  color: #666;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 10px 0;
  margin-bottom: 10px;
}
.breadcrumb > li + li::before {
  content: "/";
  padding: 0 8px;
  color: #999;
}

/* Table responsive */
@media (max-width: 768px) {
  .property-details-table td:first-child {
    width: 120px;
  }
  .grid-box .image img {
    height: 200px;
  }
  .gallery-main {
    height: 300px;
  }
  .gallery-thumb {
    width: 60px;
    height: 45px;
  }
}

/* Sidebar filter reset button */
.btn-ghost.btn-block {
  text-align: center;
  margin-top: 5px;
  border: 1px solid #ccc;
  color: #666;
}
.btn-ghost.btn-block:hover {
  background: #f5f5f5;
}

/* ===== Hero home section ===== */
.hero-home {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}
.hero-nav {
  position: relative;
  z-index: 10;
  padding: 15px 0;
}
.hero-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-nav .logo {
  flex-shrink: 0;
}
.hero-nav .logo img {
  height: 70px;
  width: auto;
}
.hero-nav .navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}
.hero-nav .navigation ul li a {
  color: #fff;
  font-family: 'Open Sans', 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.2s;
}
.hero-nav .navigation ul li a:hover {
  color: #e74c3c;
}
.hero-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0 80px;
}
.hero-title {
  color: #fff;
  font-family: 'Oswald', sans-serif !important;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.hero-subtitle {
  color: rgba(255,255,255,0.85);
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 45px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
/* Hero search bar */
.hero-search {
  max-width: 820px;
  margin: 0 auto;
}
.hero-search-fields {
  display: flex;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.hero-search-field {
  flex: 1;
  border-right: 1px solid #eee;
}
.hero-search-field:last-child {
  border-right: none;
}
.hero-select,
.hero-input {
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #555;
  font-family: 'Open Sans', 'Lato', sans-serif;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.hero-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
  padding-right: 32px;
}
.hero-input {
  cursor: text;
}
.hero-input::-webkit-outer-spin-button,
.hero-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.hero-input[type=number] {
  -moz-appearance: textfield;
}
.hero-search-btn {
  flex-shrink: 0;
}
.hero-search-btn .btn {
  height: 100%;
  padding: 16px 35px;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
/* Hero responsive */
@media (max-width: 991px) {
  .hero-title {
    font-size: 36px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
}
@media (max-width: 768px) {
  .hero-home {
    min-height: 90vh;
  }
  .hero-title {
    font-size: 28px;
    letter-spacing: 1px;
  }
  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .hero-search-fields {
    flex-direction: column;
  }
  .hero-search-field {
    border-right: none;
    border-bottom: 1px solid #eee;
  }
  .hero-search-btn .btn {
    padding: 14px 20px;
  }
  .hero-nav .logo img {
    height: 50px;
  }
}
/* ===== End hero home section ===== */

/* Social link brand colors */
.social-links .social-telegram { background: #2AABEE; }
.social-links .social-vk { background: #0077FF; }
.social-links .social-youtube { background: #FF0000; }
.social-links .social-rutube {
  display: inline-block;
  width: 39px;
  height: 39px;
  margin-right: 5px;
  margin-top: 10px;
  transition: all .3s ease;
  text-decoration: none;
}
.social-links .social-rutube img {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  object-fit: cover;
}
.social-links .social-rutube:hover { opacity: .8; }

/* About section left column indent */
.content-section .background > .col-md-3 {
  padding-left: 60px;
}

/* Card grid spacing */
.grid-box-all .grid-box {
  margin-bottom: 30px;
}

/* ===== Contact buttons ===== */
.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.btn-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid #e74c3c;
  border-radius: 6px;
  font-size: 15px;
  font-family: 'Open Sans', 'Lato', sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}
.btn-show-phone {
  background: #fff;
  color: #333;
}
.btn-show-phone:hover {
  background: #fdf2f2;
}
.btn-show-phone .phone-label {
  font-size: 13px;
  color: #e74c3c;
  font-weight: 600;
}
.btn-show-phone .phone-number {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}
.btn-callback {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
  font-weight: 600;
}
.btn-callback:hover {
  background: #c0392b;
  border-color: #c0392b;
}

/* ===== Callback modal ===== */
.callback-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.callback-modal {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  width: 420px;
  max-width: 90vw;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.callback-modal h3 {
  margin: 0 0 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
}
.callback-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
}
.callback-modal-close:hover {
  color: #333;
}
.callback-status-msg {
  padding: 10px 14px;
  border-radius: 5px;
  font-size: 14px;
  margin-bottom: 15px;
}
.callback-work {
  background: #eafaf1;
  color: #27ae60;
  border: 1px solid #27ae60;
}
.callback-offwork {
  background: #fdf2f2;
  color: #e74c3c;
  border: 1px solid #e74c3c;
}
.callback-field {
  margin-bottom: 15px;
}
.callback-field label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}
.callback-field input,
.callback-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 15px;
  font-family: 'Open Sans', 'Lato', sans-serif;
  outline: none;
}
.callback-field input:focus,
.callback-field select:focus {
  border-color: #e74c3c;
}
.callback-consent {
  font-size: 11px;
  color: #999;
  margin-top: 10px;
  text-align: center;
}
.callback-success {
  text-align: center;
  padding: 20px 0;
}
.callback-success p {
  font-size: 16px;
  color: #27ae60;
}
@media (max-width: 768px) {
  .contact-buttons {
    margin-top: 15px;
  }
  .btn-contact {
    padding: 10px 15px;
    font-size: 14px;
  }
}
/* ===== End contact buttons ===== */
