/* =========================================================
   SUNNY HOMESTAY — Main stylesheet
   Brand: Royal blue (#0033A0), Sun yellow (#FFB627),
          Palm green (#1F7A1F)
   ========================================================= */

:root {
   /* Brand palette */
   --brand-blue:        #0033A0;
   --brand-blue-soft:   #E8F0FF;
   --brand-blue-dark:   #002274;
   --brand-sun:         #FFB627;
   --brand-sun-soft:    #FFF4D9;
   --brand-sun-dark:    #7A5500;
   --brand-palm:        #1F7A1F;
   --brand-palm-soft:   #E8F5E8;
   --brand-palm-dark:   #0E4A0E;

   /* Neutrals */
   --ink:               #1A1A1F;
   --ink-soft:          #4A4A52;
   --ink-muted:         #7A7A82;
   --line:              #E8E8EC;
   --line-soft:         #F2F2F4;
   --surface:           #FFFFFF;
   --surface-tint:      #FAFAFB;

   /* Typography */
   --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
   --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

   /* Radii & shadows */
   --r-sm: 6px;
   --r-md: 10px;
   --r-lg: 16px;
   --r-xl: 24px;
   --shadow-sm: 0 1px 2px rgba(0, 51, 160, 0.04);
   --shadow-md: 0 4px 16px rgba(0, 51, 160, 0.06);
   --shadow-lg: 0 12px 32px rgba(0, 51, 160, 0.08);

   /* Container */
   --max-w: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
   overflow-x: hidden;
   max-width: 100vw;
}

html { scroll-behavior: smooth; }

body {
   font-family: var(--font-body);
   font-size: 16px;
   line-height: 1.6;
   color: var(--ink);
   background: var(--surface);
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.container {
   max-width: var(--max-w);
   margin: 0 auto;
   padding: 0 24px;
}

/* Scroll lock (used by your nav.js) */
.lock-scroll {
   overflow: hidden;
}

/* =========================================================
   SHARED COMPONENTS
   ========================================================= */

.section__eyebrow {
   display: inline-block;
   font-size: 12px;
   font-weight: 500;
   letter-spacing: 1.5px;
   text-transform: uppercase;
   color: var(--brand-blue);
   margin-bottom: 16px;
}

.section__title {
   font-family: var(--font-display);
   font-weight: 500;
   font-size: clamp(28px, 4vw, 40px);
   line-height: 1.15;
   letter-spacing: -0.5px;
   color: var(--ink);
   margin-bottom: 20px;
}

/* Buttons */
.btn {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 14px 24px;
   border-radius: var(--r-md);
   font-family: var(--font-body);
   font-size: 15px;
   font-weight: 500;
   cursor: pointer;
   border: none;
   transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
   white-space: nowrap;
   text-decoration: none;
}

.btn i { font-size: 17px; }

.btn--primary {
   background: var(--brand-blue);
   color: white;
   box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
   background: var(--brand-blue-dark);
   transform: translateY(-1px);
   box-shadow: var(--shadow-md);
}

.btn--sun {
   background: var(--brand-sun);
   color: var(--brand-sun-dark);
}
.btn--sun:hover {
   background: #FFA500;
   transform: translateY(-1px);
   box-shadow: var(--shadow-md);
}

.btn--ghost {
   background: transparent;
   color: var(--ink);
   border: 1px solid var(--line);
}
.btn--ghost:hover {
   background: var(--surface-tint);
   border-color: var(--ink-muted);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
   max-width: var(--max-w);
   margin: 0 auto;
   padding: 80px 24px 40px;
   text-align: center;
}

.hero__inner {
   max-width: 720px;
   margin: 0 auto;
}

.hero__eyebrow {
   display: inline-block;
   font-size: 12px;
   font-weight: 500;
   letter-spacing: 2px;
   text-transform: uppercase;
   color: var(--brand-blue);
   margin-bottom: 24px;
   padding: 6px 14px;
   background: var(--brand-blue-soft);
   border-radius: 999px;
}

.hero__title {
   font-family: var(--font-display);
   font-weight: 500;
   font-size: clamp(34px, 5.5vw, 56px);
   line-height: 1.05;
   letter-spacing: -1px;
   color: var(--ink);
   margin-bottom: 24px;
}

.hero__lede {
   font-size: clamp(16px, 1.6vw, 18px);
   line-height: 1.6;
   color: var(--ink-soft);
   max-width: 540px;
   margin: 0 auto 36px;
}

.hero__cta {
   display: inline-flex;
   gap: 12px;
   flex-wrap: wrap;
   justify-content: center;
}

/* =========================================================
   BANNER SLIDESHOW — restyle (overrides any existing rule)
   Uses aspect-ratio so full banner shows on every screen,
   no cropping. Falls back to a sensible height if no slides yet.
   ========================================================= */

.banner-slideshow-container {
   width: calc(100% - 48px);
   max-width: var(--max-w);
   margin: 20px auto 0;
   aspect-ratio: 1200 / 480;
   position: relative;
   overflow: hidden;
   border-radius: var(--r-lg);
   box-shadow: var(--shadow-md);
   background: var(--surface-tint);
}

.banner-slideshow-container .slides {
   width: 100%;
   height: 100%;
   position: relative;
}

.banner-slideshow-container .slide {
   display: flex;
   justify-content: center;
   align-items: center;
   width: 100%;
   height: 100%;
   position: absolute;
   top: 0; left: 0;
   opacity: 0;
   transition: opacity 1s ease-in-out;
}

.banner-slideshow-container .slide.active { opacity: 1; }

.banner-slideshow-container .slide img {
   width: 100%;
   height: 100%;
   object-fit: contain;
   object-position: center;
}

/* =========================================================
   QUICK FACTS
   ========================================================= */

.facts {
   background: var(--brand-blue-soft);
   padding: 48px 24px;
   margin: 60px 0 0;
}

.facts__inner {
   max-width: var(--max-w);
   margin: 0 auto;
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 24px;
}

.fact { text-align: center; }

.fact__number {
   font-family: var(--font-display);
   font-size: clamp(26px, 3.2vw, 38px);
   font-weight: 500;
   color: var(--brand-blue);
   line-height: 1.1;
   margin-bottom: 6px;
}

.fact__label {
   font-size: 12px;
   color: var(--ink-muted);
   font-weight: 500;
   text-transform: uppercase;
   letter-spacing: 1px;
}

/* =========================================================
   ABOUT
   ========================================================= */

.about {
   max-width: var(--max-w);
   margin: 0 auto;
   padding: 80px 24px;
}

.about__inner {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 64px;
   align-items: center;
}

.about__text p {
   color: var(--ink-soft);
   margin-bottom: 18px;
}

.about__text strong {
   color: var(--ink);
   font-weight: 600;
}

.about__tagline {
   font-family: var(--font-display);
   font-style: italic;
   font-size: 20px;
   color: var(--brand-blue) !important;
   margin-top: 24px !important;
}

.about__link {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   margin-top: 16px;
   color: var(--brand-blue);
   font-weight: 500;
   font-size: 15px;
   transition: gap 0.15s ease;
}
.about__link:hover { gap: 12px; }

.about__image {
   display: flex;
   align-items: center;
   justify-content: center;
}

.about__image img {
   border-radius: var(--r-lg);
   box-shadow: var(--shadow-lg);
   max-width: 100%;
   height: auto;
   object-fit: contain;
   background: white;
}

/* =========================================================
   APARTMENTS
   ========================================================= */

.apartments {
   max-width: var(--max-w);
   margin: 0 auto;
   padding: 40px 24px 80px;
}

.apartments__header {
   display: flex;
   justify-content: space-between;
   align-items: flex-end;
   margin-bottom: 40px;
   flex-wrap: wrap;
   gap: 16px;
}

.apartments__address {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   font-size: 14px;
   color: var(--ink-muted);
}

.apartments__grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 24px;
}

.apt-card {
   display: block;
   background: var(--surface);
   border: 1px solid var(--line);
   border-radius: var(--r-lg);
   overflow: hidden;
   transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
   color: var(--ink);
}

.apt-card:hover {
   transform: translateY(-4px);
   box-shadow: var(--shadow-lg);
   border-color: var(--brand-blue);
}

.apt-card__image {
   position: relative;
   height: 200px;
   display: flex;
   align-items: center;
   justify-content: center;
}

.apt-card__image--blue { background-color: var(--brand-blue-soft); }
.apt-card__image--sun  { background-color: var(--brand-sun-soft); }
.apt-card__image--green { background-color: var(--brand-palm-soft); }

.apt-card__icon {
   font-size: 64px;
   color: var(--brand-blue);
   opacity: 0.7;
}
.apt-card__icon--sun   { color: var(--brand-sun-dark); }
.apt-card__icon--green { color: var(--brand-palm); }

.apt-card__badge {
   position: absolute;
   top: 14px;
   left: 14px;
   background: white;
   font-size: 11px;
   font-weight: 500;
   color: var(--brand-blue);
   padding: 5px 12px;
   border-radius: 999px;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.apt-card__badge--sun   { color: var(--brand-sun-dark); }
.apt-card__badge--green { color: var(--brand-palm); }

.apt-card__body { padding: 20px 22px 22px; }

.apt-card__row {
   display: flex;
   justify-content: space-between;
   align-items: baseline;
   margin-bottom: 6px;
   gap: 12px;
}

.apt-card__title {
   font-family: var(--font-display);
   font-size: 20px;
   font-weight: 500;
   color: var(--ink);
}

.apt-card__price {
   font-size: 15px;
   font-weight: 600;
   color: var(--brand-blue);
   white-space: nowrap;
}
.apt-card__price span {
   font-size: 12px;
   font-weight: 400;
   color: var(--ink-muted);
}
.apt-card__price--muted {
   color: var(--ink-muted);
   font-weight: 500;
   font-size: 13px;
}

.apt-card__meta {
   font-size: 13px;
   color: var(--ink-muted);
   margin-bottom: 14px;
}

.apt-card__tags {
   display: flex;
   gap: 6px;
   flex-wrap: wrap;
}

.tag {
   font-size: 11px;
   padding: 4px 10px;
   border-radius: 999px;
   font-weight: 500;
}
.tag--sun   { background: var(--brand-sun-soft); color: var(--brand-sun-dark); }
.tag--blue  { background: var(--brand-blue-soft); color: var(--brand-blue); }
.tag--green { background: var(--brand-palm-soft); color: var(--brand-palm); }

.apartments__cta {
   text-align: center;
   margin-top: 32px;
}

/* =========================================================
   AMENITIES
   ========================================================= */

.amenities {
   background: var(--surface-tint);
   padding: 80px 24px;
}

.amenities__inner {
   max-width: var(--max-w);
   margin: 0 auto;
}

.amenities__grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 16px;
   margin-top: 32px;
}

.amenity {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   gap: 10px;
   padding: 20px;
   background: var(--surface);
   border-radius: var(--r-md);
   border: 1px solid var(--line);
   transition: transform 0.15s ease, border-color 0.15s ease;
}
.amenity:hover {
   transform: translateY(-2px);
   border-color: var(--brand-blue);
}

.amenity i {
   font-size: 28px;
   color: var(--brand-blue);
}

.amenity span {
   font-size: 14px;
   font-weight: 500;
   color: var(--ink);
}

/* =========================================================
   BOOKING CTA
   ========================================================= */

.cta {
   background: var(--brand-blue);
   color: white;
   padding: 100px 24px;
   text-align: center;
   position: relative;
   overflow: hidden;
}

.cta::before {
   content: '';
   position: absolute;
   top: -100px;
   right: -100px;
   width: 300px;
   height: 300px;
   border-radius: 50%;
   background: var(--brand-sun);
   opacity: 0.15;
}

.cta::after {
   content: '';
   position: absolute;
   bottom: -150px;
   left: -150px;
   width: 400px;
   height: 400px;
   border-radius: 50%;
   background: var(--brand-palm);
   opacity: 0.15;
}

.cta__inner {
   position: relative;
   z-index: 1;
   max-width: 600px;
   margin: 0 auto;
}

.cta__pill {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 6px 16px;
   background: rgba(255, 255, 255, 0.15);
   border-radius: 999px;
   font-size: 12px;
   font-weight: 500;
   letter-spacing: 1.5px;
   text-transform: uppercase;
   margin-bottom: 24px;
}
.cta__pill i { color: var(--brand-sun); }

.cta__title {
   font-family: var(--font-display);
   font-size: clamp(30px, 4.5vw, 44px);
   font-weight: 500;
   line-height: 1.1;
   margin-bottom: 16px;
   color: white;
}

.cta__lede {
   font-size: 16px;
   opacity: 0.9;
   margin-bottom: 32px;
}

.cta__phones {
   margin-top: 24px;
   font-family: var(--font-display);
   font-size: 22px;
   opacity: 0.95;
   display: flex;
   justify-content: center;
   gap: 14px;
   align-items: center;
   flex-wrap: wrap;
}

.cta__phones a { color: white; }
.cta__phones a:hover { color: var(--brand-sun); }

.cta__divider { opacity: 0.5; }

.cta__note {
   margin-top: 8px;
   font-size: 13px;
   opacity: 0.7;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 880px) {
   .about__inner { grid-template-columns: 1fr; gap: 40px; }
   .about__image img { max-width: 480px; margin: 0 auto; }
   .apartments__grid { grid-template-columns: 1fr; }
   .facts__inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
   .amenities__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
   .hero { padding: 48px 20px 32px; }
   .banner-slideshow-container {
      width: calc(100% - 32px);
      margin-top: 16px;
   }
   .hero__cta { flex-direction: column; width: 100%; }
   .hero__cta .btn { width: 100%; justify-content: center; }
   .facts { padding: 32px 20px; margin-top: 40px; }
   .facts__inner { gap: 20px; }
   .about, .apartments, .amenities { padding: 56px 20px; }
   .about__image img { max-width: 100%; }
   .apt-card__image { height: 160px; }
   .amenities__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
   .amenity { padding: 16px; }
   .cta { padding: 60px 20px; }
   .cta__phones { font-size: 18px; }
}