/*
Theme Name: Alexeevskaya Rental Hunter
Theme URI: https://alhostel.ru/
Author: Alexeevskaya Rental
Description: Сайт посуточной аренды домов в станице Алексеевская.
Version: 1.31
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: alexeevskaya-rental
*/
:root{
  --burg:#b21e1e;
  --burg-dark:#8f1515;
  --green:#12833d;
  --ink:#211c1a;
  --muted:#7894a3;
  --cream:#fff;
  --line:#d7d7d7;
  --max:1820px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--ink);font-family:Arial,"Helvetica Neue",sans-serif;line-height:1.45}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.container{width:min(var(--max),calc(100% - 80px));margin:auto}

/* HEADER — fixed, desktop + mobile */
.site-header{
  position:fixed;top:0;left:0;right:0;width:100%;z-index:1000;
  background:#fff;border-bottom:1px solid #ececec;box-shadow:0 2px 10px rgba(0,0,0,.04);
}
body{padding-top:66px}
.site-header .header-inner{
  width:100%;max-width:none;min-height:66px;margin:0;padding:4px 24px;
  display:flex;align-items:center;justify-content:space-between;gap:14px;
}
.brand{display:flex;align-items:center;gap:10px;min-width:0;flex:0 1 auto}
.brand img{width:96px;height:56px;object-fit:contain;object-position:center;flex:0 0 auto}
.brand-copy{display:flex;flex-direction:column;min-width:0}
.brand-title{font-weight:700;font-size:22px;line-height:1;color:#211c1a;white-space:nowrap}
.brand-prefix{font-size:.62em;font-weight:400;color:#7894a3;vertical-align:baseline}
.brand-sub{font-size:13px;line-height:1.1;margin-top:4px;white-space:nowrap}
.main-nav{display:none!important}
.header-contact{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:14px;min-width:0}
.phone{color:var(--burg);font-weight:800;white-space:nowrap;text-align:center}
.phone-line{display:flex;align-items:center;justify-content:center;gap:7px;font-size:17px;line-height:1}
.phone-icon{font-size:17px;line-height:1}
.phone small{display:block;color:#476879;font-size:11px;font-weight:400;text-align:center;margin-top:4px}
.wa{display:flex;align-items:center;justify-content:center;gap:8px;background:var(--green);color:#fff;padding:0 14px;height:44px;border-radius:7px;font-size:14px;font-weight:700;white-space:nowrap}
.wa:hover{background:#0d6e32}
.wa-icon{width:20px;height:20px;display:inline-flex;flex:0 0 20px}
.wa-icon svg{width:100%;height:100%;display:block}
@media(max-width:700px){
  body{padding-top:60px}
  .site-header .header-inner{height:58px;min-height:58px;padding:3px 8px;gap:6px;flex-wrap:nowrap}
  .brand{gap:5px;min-width:0;flex:1 1 auto}
  .brand img{width:70px;height:48px}
  .brand-title{font-size:11px}
  .brand-sub{font-size:8px;margin-top:1px}
  .header-contact{margin-left:auto;gap:6px;flex:0 0 auto}
  .phone{display:block!important}
  .phone-line{font-size:11px;gap:3px}
  .phone-icon{font-size:11px}
  .phone small{font-size:7px;margin-top:2px}
  .wa{width:38px;min-width:38px;height:38px;padding:0;border-radius:7px;font-size:0;gap:0}
  .wa-icon{width:22px;height:22px;flex-basis:22px}
}
@media(max-width:390px){
  .site-header .header-inner{padding-left:5px;padding-right:5px}
  .brand img{width:64px;height:44px}
  .brand-title{font-size:13px}
  .brand-sub{font-size:7px}
  .phone-line{font-size:10px}
  .phone small{font-size:6.5px}
  .wa{width:34px;min-width:34px;height:34px}
  .wa-icon{width:20px;height:20px;flex-basis:20px}
}

/* HERO */
.hero{
  position:relative;
  width:100%;
  min-height:385px;
  background:#ead8c4 url('assets/images/hero-banner.webp') center center/cover no-repeat;
}

/* BENEFITS — directly under hero, like screenshot */
.benefits{
  background:#fff;
  border:0;
}
.benefit-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  min-height:145px;
}
.benefit{
  display:flex;
  align-items:center;
  gap:27px;
  padding:20px 38px;
  border-right:1px solid #cfcfcf;
}
.benefit:first-child{padding-left:80px}
.benefit:last-child{border-right:0}
.benefit .icon{
  flex:0 0 76px;
  width:76px;
  height:76px;
}
.benefit .icon svg{
  width:100%;
  height:100%;
  fill:none;
  stroke:var(--burg);
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.benefit h3{
  margin:0 0 5px;
  color:#103d5c;
  font-size:21px;
  line-height:1.2;
}
.benefit p{
  margin:0;
  color:#7d9aaa;
  font-size:19px;
  line-height:1.35;
}

/* CONTENT BELOW THE SCREENSHOT */
.section{padding:58px 0}
.houses-section{background:#fff}
.section-title{text-align:center;margin:0 0 10px;font-family:Georgia,serif;font-size:42px}
.section-lead{text-align:center;margin:0 auto 34px;color:#685b55}
.houses{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.house-card{
  background:#fffaf4;
  border:1px solid #dfcdb9;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 7px 22px rgba(75,43,24,.10)
}
.house-card .photo{height:215px;background:#d8e1d5;overflow:hidden}
.house-card .photo img{width:100%;height:100%;object-fit:cover}
.house-card .body{padding:22px}
.house-card h3{margin:0 0 8px;font-family:Georgia,serif;font-size:25px}
.house-card p{margin:0 0 18px;color:#655954}
.btn{display:inline-block;background:var(--burg);color:#fff;padding:11px 19px;border-radius:7px;font-weight:700}
.btn:hover{background:var(--burg-dark)}

.content-page{padding:48px 0 70px}
.content-card{background:#fffaf4;border:1px solid #dfcdb9;border-radius:12px;padding:36px;box-shadow:0 7px 22px rgba(75,43,24,.08)}
.content-card h1{font-family:Georgia,serif;font-size:42px;margin-top:0}
.content-card h2{font-family:Georgia,serif}
.content-card a{color:var(--burg);text-decoration:underline}
.contact-box{display:grid;grid-template-columns:1fr 1fr;gap:25px}
.contact-item{padding:22px;background:#f6eadc;border-radius:10px}
.contact-item strong{display:block;font-size:19px;margin-bottom:7px}

.site-footer{background:#3a201a;color:#f9eee3;margin-top:0}
.footer-inner{padding:45px 0;display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:35px}
.site-footer h3{font-family:Georgia,serif;font-size:21px;margin:0 0 12px}
.site-footer p{margin:6px 0;color:#e6d5c8}
.footer-nav{display:grid;gap:6px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.15);padding:15px 0;text-align:center;color:#cdbcb0;font-size:13px}

@media(max-width:1500px){
  .container{width:min(var(--max),calc(100% - 50px))}
  
  
  
  
  
  
  
  
  .benefit{padding:18px 24px;gap:18px}
  .benefit:first-child{padding-left:35px}
  .benefit .icon{flex-basis:62px;width:62px;height:62px}
  .benefit h3{font-size:18px}
  .benefit p{font-size:16px}
}

@media(max-width:1050px){
  
  
  
  
  
  .hero{min-height:330px}
  .benefit-grid{grid-template-columns:1fr 1fr}
  .benefit{border-bottom:1px solid #d0d0d0}
  .houses{gap:14px}
}

@media(max-width:700px){
  .container{width:min(100% - 24px,var(--max))}
  
  
  
  
  
  
  
  
  
  
  
  .hero{min-height:230px}
  .benefit-grid{grid-template-columns:1fr}
  .benefit,.benefit:first-child{padding:18px 22px;border-right:0}
  .benefit .icon{flex-basis:56px;width:56px;height:56px}
  .benefit h3{font-size:17px}
  .benefit p{font-size:15px}
  .houses{grid-template-columns:1fr}
  .section-title{font-size:34px}
  .footer-inner{grid-template-columns:1fr}
  .contact-box{grid-template-columns:1fr}
}

/* v1.2.7 brand: Станица above Алексеевская */
.brand-prefix{display:block;font-size:13px;line-height:1;font-weight:400;color:#211c1a;margin:0 0 2px;white-space:nowrap}

/* v1.2.9 — mobile Hunter: scale the ORIGINAL banner proportionally, no crop/stretch */
@media (max-width:700px){
  .hero{
    width:100% !important;
    min-height:0 !important;
    height:auto !important;
    aspect-ratio:2126 / 740 !important;
    background-image:url('assets/images/hero-banner.webp') !important;
    background-size:100% auto !important;
    background-position:center top !important;
    background-repeat:no-repeat !important;
    background-color:#ead8c4 !important;
  }
}

/* v1.2.10 — mobile: remove only the empty block below Hunter. Hunter itself is unchanged. */
@media (max-width:700px){
  .benefits{display:none !important;}
}

/* v1.2.11 — remove the obsolete empty benefits block below Hunter on mobile only. */
@media (max-width:700px){
  section.section.benefits{display:none !important;margin:0 !important;padding:0 !important;min-height:0 !important;height:0 !important;overflow:hidden !important;}
}

/* v1.2.12 — mobile: Hunter keeps original proportions; no empty hero background below it. */
@media (max-width:700px){
  .hero{
    min-height:0 !important;
    height:auto !important;
    aspect-ratio:2126 / 740 !important;
    background-size:100% auto !important;
    background-position:center top !important;
    background-repeat:no-repeat !important;
  }
  section.section.benefits{display:none !important;}
  .houses-section{margin-top:0 !important;}
}

/* v1.2.13 — mobile: pull "Наши дома" closer to Hunter. Hunter is untouched. */
@media (max-width:700px){
  .houses-section{
    margin-top:0 !important;
    padding-top:14px !important;
  }
}

/* v1.2.14 — desktop: the feature strip is already part of hero-banner.webp.
   Hide the duplicated HTML benefits block and pull “Наши дома” closer to Hunter. */
@media (min-width:701px){
  section.section.benefits{
    display:none !important;
    margin:0 !important;
    padding:0 !important;
    min-height:0 !important;
    height:0 !important;
    overflow:hidden !important;
  }
  .houses-section{
    margin-top:0 !important;
    padding-top:24px !important;
  }
}

/* v1.2.16 — Yandex Maps links only on the location pin in Hunter and in footer */
.hero-map-hotspot{
  position:absolute;
  z-index:20;
  left:52.1%;
  top:76.0%;
  width:6.2%;
  height:21%;
  display:block;
  cursor:pointer;
  background:transparent;
  border:0;
}
.hero-map-hotspot:focus-visible{outline:2px solid #b21e1e;outline-offset:2px;border-radius:8px}
.footer-map-row{margin-top:10px!important}
.footer-map-icon{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid rgba(255,255,255,.35);border-radius:10px;color:#f9eee3;text-decoration:none!important;transition:transform .15s ease,background .15s ease}
.footer-map-icon:hover{background:rgba(255,255,255,.10);transform:translateY(-1px)}
.footer-map-icon svg{width:27px;height:27px;display:block;fill:currentColor}
.footer-map-icon:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* v1.2.18 — footer map label */
.footer-map-link{display:inline-flex;align-items:center;gap:10px;color:#f9eee3;text-decoration:none!important;font-weight:600}
.footer-map-link .footer-map-icon{flex:0 0 42px}
.footer-map-link:hover .footer-map-icon{background:rgba(255,255,255,.10);transform:translateY(-1px)}
.footer-map-link:hover .footer-map-label{text-decoration:underline}
.footer-map-label{font-size:16px;line-height:1.2}
@media(max-width:620px){.footer-map-link{gap:8px}.footer-map-label{font-size:15px}}


/* v1.2.20 — visible WhatsApp icons in footer on desktop and mobile */
.site-footer .footer-wa-text{display:inline-flex;align-items:center;gap:8px;color:#f9eee3;text-decoration:none}
.site-footer .footer-wa-text .wa-icon{width:20px;height:20px;flex:0 0 20px;color:#fff}
.site-footer .footer-wa-button{width:auto!important;min-width:0!important;height:44px!important;min-height:44px!important;padding:0 14px!important;font-size:14px!important;gap:8px!important;display:inline-flex!important}
.site-footer .footer-wa-button .wa-icon{width:22px!important;height:22px!important;flex:0 0 22px!important;color:#fff}
.site-footer .footer-wa-button-label{display:inline!important;font-size:14px!important;line-height:1!important;color:#fff!important}
@media(max-width:620px){
 .site-footer .footer-wa-button{width:auto!important;min-width:0!important;height:42px!important;padding:0 13px!important;gap:8px!important}
 .site-footer .footer-wa-button .wa-icon{width:22px!important;height:22px!important;flex-basis:22px!important}
 .site-footer .footer-wa-button-label{display:inline!important;font-size:13px!important}
}

/* v1.2.23 — страницы домов */
.house-detail-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0 30px}
.house-detail-photo{display:block;overflow:hidden;border-radius:12px;background:#f4f1ee}
.house-detail-photo img{display:block;width:100%;height:420px;object-fit:cover;transition:transform .2s ease}
.house-detail-photo:hover img{transform:scale(1.015)}
.house-detail-text{font-size:17px;line-height:1.65}
@media(max-width:700px){
 .house-detail-gallery{grid-template-columns:1fr;gap:12px;margin:18px 0 22px}
 .house-detail-photo img{height:auto;aspect-ratio:4/3;object-fit:cover}
 .house-detail-text{font-size:16px}
}


/* v1.2.28 — performance and casual image-copy protection */
.alex-protected-image,.house-card .photo img,.house-detail-gallery img{
  -webkit-user-drag:none;
  -webkit-user-select:none;
  user-select:none;
}
@media (min-width:701px){
  .houses-section,.content-page{content-visibility:auto;contain-intrinsic-size:900px;}
}

/* v1.3 mobile typography fix: make main title and subtitle fit the screen */
@media (max-width:700px){
  .section-title{font-size:24px !important; line-height:1.15 !important; margin:0 0 10px !important; text-wrap:balance;}
  .section-lead{font-size:16px !important; line-height:1.35 !important; margin:0 auto 22px !important; max-width:320px; text-align:center;}
}
@media (max-width:390px){
  .section-title{font-size:22px !important; line-height:1.12 !important;}
  .section-lead{font-size:15px !important; line-height:1.3 !important; max-width:290px;}
}

/* v1.31 — mobile house cards typography/layout */
@media (max-width:700px){
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%;}
  .house-card .body{padding:16px 16px 18px !important;}
  .house-card h3{
    font-size:20px !important;
    line-height:1.18 !important;
    margin:0 0 9px !important;
    letter-spacing:-.25px;
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:normal;
  }
  .house-card p{
    font-size:15px !important;
    line-height:1.45 !important;
    margin:0 0 16px !important;
    max-width:100%;
    overflow-wrap:break-word;
  }
  .house-card .btn{
    font-size:16px !important;
    line-height:1.15 !important;
    padding:10px 16px !important;
    border-radius:7px !important;
  }
}
@media (max-width:390px){
  .house-card .body{padding:14px 14px 16px !important;}
  .house-card h3{font-size:18px !important;line-height:1.18 !important;}
  .house-card p{font-size:14px !important;line-height:1.42 !important;}
  .house-card .btn{font-size:15px !important;padding:9px 15px !important;}
}
