/*
Theme Name: Sunday Hotel
Theme URI: https://sunday-hotel.ru/
Author: Sun Day
Description: Официальная тема сайта отеля «Сан Дэй» в пос. Витязево, Анапа. Стильный неоновый темный дизайн, интерактивные галереи студий, адаптивная верстка и онлайн-бронирование.
Version: 1.0.0
Text Domain: sunday-hotel
*/

/* WordPress Admin Bar Compatibility */
body.admin-bar .header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }
}

    :root {
      --bg: #090a0c;
      --bg-gradient: linear-gradient(180deg, #090a0c 0%, #12141a 100%);
      --panel: #161920;
      --panel-hover: #1e222c;
      --neon: #d4ff2a;
      --neon-glow: rgba(212, 255, 42, 0.35);
      --ink: #ffffff;
      --muted: #8b95a5;
      --line: rgba(255, 255, 255, 0.05);
      --white: #ffffff;
      --radius: 12px;
    }

    /* Custom Webkit Scrollbar */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }
    ::-webkit-scrollbar-track {
      background: var(--bg);
    }
    ::-webkit-scrollbar-thumb {
      background: var(--neon);
      border-radius: 4px;
      border: 2px solid var(--bg);
    }
    ::-webkit-scrollbar-thumb:hover {
      background: #e1ff5e;
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: 'Inter', sans-serif;
      font-weight: 300;
      color: var(--ink);
      background: var(--bg);
      background-image: var(--bg-gradient);
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    h1, h2, h3, h4, .serif {
      font-family: 'Outfit', sans-serif;
      font-weight: 400;
      letter-spacing: 0.02em;
    }

    /* Fixed Glassmorphic Navigation */
    .header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      padding: 24px clamp(20px, 6vw, 80px);
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(9, 10, 12, 0.75);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--line);
    }

    .logo {
      font-family: 'Outfit', sans-serif;
      font-size: 24px;
      color: var(--white);
      text-decoration: none;
      letter-spacing: 0.05em;
      font-weight: 700;
      text-transform: uppercase;
    }

    .logo span {
      color: var(--neon);
    }

    .nav-links {
      display: flex;
      gap: 36px;
    }

    .nav-links a {
      color: var(--muted);
      text-decoration: none;
      font-size: 12px;
      font-weight: 400;
      text-transform: uppercase;
      letter-spacing: 0.2em;
      transition: color 0.3s;
    }

    .nav-links a:hover {
      color: var(--white);
    }

    .nav-cta {
      border: 1px solid var(--neon);
      background: transparent;
      padding: 10px 24px;
      color: var(--neon);
      font-family: 'Outfit', sans-serif;
      font-size: 11px;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      border-radius: var(--radius);
    }

    .nav-cta:hover {
      background: var(--neon);
      color: var(--bg);
      box-shadow: 0 0 20px var(--neon-glow);
    }

    /* Hero Section */
    .hero {
      height: 95vh;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
      color: var(--white);
      text-align: center;
      padding: 0 20px;
    }

    .hero-bg {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(9,10,12,0.4) 0%, rgba(9,10,12,0.9) 100%),
        url("images/foto_10.jpg") center/cover;
      animation: slowZoom 20s infinite alternate;
      z-index: 1;
    }

    @keyframes slowZoom {
      from { transform: scale(1); }
      to { transform: scale(1.06); }
    }

    .hero-content {
      position: relative;
      z-index: 2;
      max-width: 900px;
      animation: fadeUp 1.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(50px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .hero p {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.4em;
      color: var(--neon);
      margin-bottom: 24px;
    }

    .hero h1 {
      font-size: clamp(46px, 8vw, 110px);
      line-height: 0.95;
      margin: 0;
      text-shadow: 0 10px 40px rgba(0,0,0,0.5);
      font-weight: 700;
    }

    /* Sleek Yacht-Cockpit booking form */
    .booking-bar {
      max-width: 1080px;
      margin: -70px auto 0;
      background: rgba(22, 25, 32, 0.85);
      backdrop-filter: blur(30px);
      border: 1px solid var(--line);
      padding: 26px 36px;
      position: relative;
      z-index: 10;
      box-shadow: 0 25px 50px rgba(0,0,0,0.3);
      display: grid;
      grid-template-columns: 1fr 1fr 1fr minmax(230px, 1.4fr) auto;
      gap: 24px;
      align-items: end;
      border-radius: var(--radius);
    }

    .booking-field {
      display: grid;
      gap: 8px;
    }

    .booking-field label {
      color: var(--muted);
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.18em;
      font-weight: 600;
    }

    .booking-field input, .booking-field select {
      background: transparent;
      border: none;
      border-bottom: 1px solid var(--line);
      min-height: 44px;
      color: var(--white);
      font-family: inherit;
      font-size: 15px;
      outline: none;
      padding: 4px 0;
      transition: border-color 0.3s;
    }

    .booking-field input[type="date"] {
      cursor: pointer;
    }

    .booking-field input:focus, .booking-field select:focus {
      border-color: var(--neon);
    }

    .booking-field select option {
      background: var(--panel);
      color: var(--white);
    }

    .booking-feedback {
      grid-column: 1 / -1;
      min-height: 20px;
      margin-top: -8px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.4;
    }

    .booking-feedback.is-error {
      color: #ff8b8b;
    }

    .booking-feedback.is-success {
      color: #b7ff7a;
    }

    .booking-submit {
      background: var(--neon);
      color: var(--bg);
      border: none;
      min-height: 48px;
      padding: 0 32px;
      font-family: 'Outfit', sans-serif;
      font-size: 11px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.3s;
      border-radius: var(--radius);
    }

    .booking-submit:hover {
      background: var(--white);
      color: var(--bg);
      box-shadow: 0 0 15px rgba(255,255,255,0.4);
    }

    /* Section Styles */
    .section {
      padding: clamp(90px, 13vw, 170px) 0;
    }

    .container {
      width: min(1200px, calc(100% - 48px));
      margin: 0 auto;
    }

    .section-header {
      max-width: 800px;
      margin: 0 auto 80px;
      text-align: center;
    }

    .section-header h2 {
      font-size: clamp(36px, 5.5vw, 64px);
      margin: 0 0 20px;
      line-height: 1.1;
    }

    .section-header p {
      color: var(--muted);
      font-size: 16px;
    }

    /* Info Grid */
    .info-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: clamp(40px, 7vw, 100px);
      align-items: center;
    }

    .info-media {
      position: relative;
    }

    .info-collage {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      position: relative;
    }

    .info-collage-item {
      position: relative;
      border-radius: var(--radius);
      overflow: hidden;
      border: 1px solid var(--line);
      height: 232px;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .info-collage-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .info-collage-item:hover {
      border-color: var(--neon);
      transform: translateY(-4px);
      box-shadow: 0 10px 20px rgba(212,255,42,0.12);
    }

    .info-collage-item:hover img {
      transform: scale(1.05);
    }

    .info-content h2 {
      font-size: clamp(34px, 5.5vw, 62px);
      line-height: 1.05;
      margin: 0 0 28px;
      color: var(--white);
    }

    .info-content p {
      font-size: 15.5px;
      line-height: 1.8;
      color: var(--muted);
      margin-bottom: 24px;
    }

    .stats-box {
      margin-top: 40px;
      border-left: 2px solid var(--neon);
      padding-left: 28px;
    }

    .stats-box h4 {
      font-size: 14px;
      color: var(--white);
      margin: 0 0 10px;
      text-transform: uppercase;
      letter-spacing: 0.15em;
    }

    .stats-box p {
      font-size: 14px;
      margin: 0;
      color: var(--muted);
      line-height: 1.6;
    }

    /* Residences Grid */
    .residences-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
    }

    .residence-card {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .residence-card:hover {
      border-color: var(--neon);
      transform: translateY(-8px);
      box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 25px rgba(212,255,42,0.18);
    }

    .residence-media-frame {
      height: 300px;
      overflow: hidden;
      position: relative;
    }

    .residence-photo {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 8s ease, opacity 0.25s ease;
    }

    .residence-card:hover .residence-photo {
      transform: scale(1.03);
    }

    /* Mini Gallery Thumbnails Styles */
    .gallery-thumbs {
      position: absolute;
      bottom: 12px;
      left: 12px;
      right: 12px;
      display: flex;
      gap: 6px;
      z-index: 5;
      background: rgba(9, 10, 12, 0.75);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      padding: 6px;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.05);
      opacity: 0;
      transform: translateY(8px);
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .residence-card:hover .gallery-thumbs {
      opacity: 1;
      transform: translateY(0);
    }

    .gallery-thumbs .thumb {
      flex: 1;
      height: 34px;
      border-radius: 4px;
      overflow: hidden;
      cursor: pointer;
      border: 1.5px solid transparent;
      opacity: 0.5;
      transition: all 0.2s ease;
    }

    .gallery-thumbs .thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .gallery-thumbs .thumb:hover,
    .gallery-thumbs .thumb.active {
      opacity: 1;
      border-color: var(--neon);
      box-shadow: 0 0 8px var(--neon-glow);
    }

    .residence-content {
      padding: 36px 30px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      flex-grow: 1;
    }

    .residence-content h3 {
      font-size: 24px;
      margin: 0 0 14px;
      color: var(--white);
    }

    .residence-content p {
      font-size: 13.5px;
      line-height: 1.7;
      color: var(--muted);
      margin: 0 0 28px;
      min-height: 72px;
    }

    .residence-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-top: 1px solid var(--line);
      padding-top: 20px;
    }

    .residence-price {
      font-size: 16px;
      font-weight: 700;
      color: var(--neon);
    }

    .residence-size {
      font-size: 11px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }

    /* Seasonal Pricing section */
    .pricing-sec {
      background: #111216;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .prices-list {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
      margin-top: 40px;
    }

    .price-card {
      background: var(--panel);
      border: 1px solid var(--line);
      padding: 30px;
      border-radius: var(--radius);
      text-align: center;
      transition: all 0.3s;
    }

    .price-card:hover {
      border-color: var(--neon);
      transform: translateY(-4px);
      box-shadow: 0 0 15px rgba(212,255,42,0.1);
    }

    .price-card h4 {
      margin: 0 0 12px;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: var(--muted);
    }

    .price-card strong {
      display: block;
      font-size: 36px;
      color: var(--neon);
      margin-bottom: 12px;
    }

    .price-card p {
      font-size: 13px;
      color: var(--muted);
      margin: 0;
    }

    /* New Pool Section Design */
    .pool-section {
      background: #111216;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .pool-layout {
      display: grid;
      grid-template-columns: 0.9fr 1.1fr;
      gap: 60px;
      align-items: center;
    }

    .pool-info-block h2 {
      font-size: clamp(34px, 5vw, 56px);
      margin: 0 0 24px;
      line-height: 1.1;
      color: var(--white);
    }

    .pool-info-block p {
      font-size: 15.5px;
      line-height: 1.8;
      color: var(--muted);
      margin-bottom: 36px;
    }

    .pool-gallery-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      grid-template-rows: repeat(2, 110px);
      gap: 12px;
    }

    .pool-gal-item {
      position: relative;
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid var(--line);
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .pool-gal-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .pool-gal-item:hover {
      border-color: var(--neon);
      transform: translateY(-4px) scale(1.02);
      box-shadow: 0 8px 20px rgba(212,255,42,0.12);
      z-index: 2;
    }

    .pool-gal-item:hover img {
      transform: scale(1.08);
    }

    @media (max-width: 1020px) {
      .pool-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
      }
      .pool-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 90px);
        max-width: 540px;
        margin: 0 auto;
      }
    }

    @media (max-width: 540px) {
      .pool-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 90px);
      }
    }

    /* Minimalist CTA Section */
    .cta-minimal {
      text-align: center;
      padding: clamp(100px, 14vw, 180px) 24px;
      position: relative;
    }

    .cta-minimal h2 {
      font-size: clamp(34px, 5.5vw, 56px);
      margin: 0 0 24px;
    }

    .cta-minimal p {
      font-size: clamp(16px, 1.8vw, 22px);
      color: var(--muted);
      max-width: 680px;
      margin: 0 auto 48px;
      line-height: 1.65;
    }

    /* SEO Section */
    .seo-section {
      padding: 0 24px 96px;
      max-width: 980px;
    }

    .seo-box {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: clamp(28px, 4vw, 44px);
    }

    .seo-section h2 {
      font-size: clamp(28px, 4vw, 42px);
      margin: 0 0 18px;
    }

    .seo-section p {
      margin: 0 0 16px;
      color: var(--muted);
      line-height: 1.75;
      font-size: 15px;
    }

    .seo-section p:last-child {
      margin-bottom: 0;
    }

    /* Footer */
    footer {
      background: #060708;
      color: #79808d;
      padding: 100px 0 48px;
      font-size: 13.5px;
      border-top: 1px solid var(--line);
    }

    footer a {
      color: var(--white);
      text-decoration: none;
      transition: color 0.3s;
    }

    footer a:hover {
      color: var(--neon);
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.6fr 1fr 1fr;
      gap: 80px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
      padding-bottom: 80px;
      margin-bottom: 40px;
    }

    .footer-logo-text {
      font-family: 'Outfit', sans-serif;
      font-size: 28px;
      color: var(--white);
      letter-spacing: 0.05em;
      margin-bottom: 18px;
      display: inline-block;
      text-transform: uppercase;
      font-weight: 700;
    }

    .footer-logo-text span {
      color: var(--neon);
    }

    .footer-col h4 {
      color: var(--white);
      font-size: 11px;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      margin: 0 0 28px;
    }

    .footer-phone {
      display: inline-block;
      margin-top: 8px;
      color: var(--neon);
      font-family: 'Outfit', sans-serif;
      font-size: 20px;
      font-weight: 700;
      letter-spacing: 0.04em;
    }

    .messenger-links {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 18px;
    }

    .messenger-links a {
      border: 1px solid rgba(212, 255, 42, 0.45);
      border-radius: var(--radius);
      color: var(--neon);
      padding: 10px 14px;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .messenger-links a:hover {
      background: var(--neon);
      color: var(--bg);
    }

    .footer-links {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      gap: 16px;
    }

    .footer-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: rgba(255, 255, 255, 0.25);
    }

    .footer-bottom a {
      color: var(--neon);
    }

    @media (max-width: 1020px) {
      .header {
        padding: 20px clamp(16px, 4vw, 40px);
      }
      .nav-links {
        display: none; /* Simplified mobile layout */
      }
      .booking-bar {
        grid-template-columns: 1fr;
        padding: 30px 24px;
        gap: 20px;
        margin-top: 40px;
      }
      .info-layout {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
      }
      .info-img {
        height: 380px;
      }
      .stats-box {
        text-align: left;
      }
      .residences-grid, .prices-list {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
      }
      .pool-content {
        padding: 0 20px;
        text-align: center;
      }
      .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
      }
    }

    @media (max-width: 768px) {
      .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
      }
    }
