@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

:root {
  --color-red: #e62525;
  --color-red-hover: #c21a1a;
  --color-yellow-light: #fef7d8;
  --color-brown: #5d4a3e;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-gray-light: #f5f5f5;
  --color-border: #e0e0e0;
  
  --font-main: 'Roboto', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

.text-red {
  color: var(--color-red) !important;
}

.text-center {
  text-align: center;
}

.font-bold {
  font-weight: 700;
}

.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }

.btn {
  display: inline-block;
  background-color: var(--color-red);
  color: var(--color-white);
  padding: 10px 20px;
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--color-red-hover);
}

.section-heading {
  font-size: 2rem;
  color: var(--color-red);
  text-transform: uppercase;
  text-align: center;
  margin: 15px 0 20px;
  font-weight: 900;
}

/* HEADER */
.header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px 0 10px 0;
  gap: 12px;
}

.header-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-red);
}

.location-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-black);
}

.separator {
  color: #888;
  font-weight: 400;
  font-size: 1.2rem;
}

.header-phone {
  padding: 6px 18px;
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.phone-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-red);
  color: var(--color-white) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 900;
  font-size: 1.25rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(230, 37, 37, 0.3);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.phone-badge:hover {
  background-color: var(--color-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(230, 37, 37, 0.4);
}

.phone-badge .icon {
  margin-right: 8px;
  font-size: 1.3rem;
  animation: ring 2s infinite ease-in-out;
}

@keyframes ring {
  0% { transform: rotate(0); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-10deg); }
  30% { transform: rotate(5deg); }
  40% { transform: rotate(-5deg); }
  50% { transform: rotate(0); }
  100% { transform: rotate(0); }
}

.hotline-pulse {
  background-color: var(--color-red);
  color: var(--color-white) !important;
  padding: 5px 22px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: 0 0 0 0 rgba(230, 37, 37, 0.7);
  animation: pulse-hotline 2s infinite;
  transition: transform 0.3s ease;
  border: 2px solid #fff;
}

.hotline-pulse:hover {
  transform: scale(1.05);
}

.hotline-pulse .icon {
  margin-right: 8px;
  font-size: 1.4rem;
  animation: ring 2s infinite ease-in-out;
}

@keyframes pulse-hotline {
  0% { box-shadow: 0 0 0 0 rgba(230, 37, 37, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(230, 37, 37, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 37, 37, 0); }
}

/* HERO SLIDER */
.hero-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  height: 75vh;
  min-height: 500px;
  max-height: 800px;
}
.hero-slider::-webkit-scrollbar {
  display: none;
}
.hero-slider .slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: gentleZoom 30s infinite alternate ease-in-out;
}

@keyframes gentleZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* INTRO TEXT */
.intro-text {
  padding: 20px 0;
  text-align: center;
}
.intro-text p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* SMOOTH GALLERY */
.smooth-gallery-container {
  position: relative;
  width: 100%;
  margin-top: 20px;
}
.smooth-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 20px;
  padding-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}
.smooth-gallery::-webkit-scrollbar {
  height: 6px;
}
.smooth-gallery::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.smooth-gallery::-webkit-scrollbar-thumb {
  background: var(--color-red);
  border-radius: 10px;
}
.gallery-item {
  flex: 0 0 85%;
  height: 400px;
  scroll-snap-align: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
  position: relative;
  background-color: #000;
}
@media (min-width: 768px) {
  .gallery-item {
      flex: 0 0 65%;
      height: 600px;
  }
}
@media (min-width: 1200px) {
  .gallery-item {
      flex: 0 0 55%;
  }
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.scroll-hint {
  text-align: center;
  color: #666;
  font-size: 1rem;
  margin-top: 15px;
  font-weight: bold;
}
.scroll-hint .swipe-icon {
  display: inline-block;
  color: var(--color-red);
  margin-right: 8px;
  font-size: 1.2rem;
  animation: bounceX 1.5s infinite ease-in-out;
}
@keyframes bounceX {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

/* OVERVIEW & FORM */
.overview-section {
  padding: 40px 0;
}
.overview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.overview-content {
  flex: 1 1 60%;
}

.bullet-list {
  list-style: none;
}

.bullet-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.bullet-list li::before {
  content: "✔";
  color: var(--color-red);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.form-box {
  flex: 1 1 35%;
  background-color: var(--color-yellow-light);
  padding: 30px;
  border: 1px solid #f0e6b2;
  border-radius: 8px;
  text-align: center;
}

.form-box h3 {
  color: var(--color-red);
  margin-bottom: 20px;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.form-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.form-box button {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  text-transform: uppercase;
}

/* NIGHT VIEW */
.full-width-img {
  width: 100%;
  margin: 40px 0;
}
.full-width-img img {
  width: 100%;
  height: auto;
}

/* DATA TABLES */
.data-table-wrapper {
  overflow-x: auto;
  margin-bottom: 40px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.data-table th {
  background-color: var(--color-red);
  color: var(--color-white);
  padding: 12px;
  text-transform: uppercase;
  font-size: 1rem;
  border: 1px solid var(--color-red);
}

.data-table td {
  padding: 10px;
  border: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.data-table tr:nth-child(even) {
  background-color: var(--color-gray-light);
}

/* VILLA CARDS (Image + Brown Text Box) */
.villa-section {
  position: relative;
  margin: 40px 0;
  display: flex;
  align-items: stretch;
}

.villa-img {
  width: 70%;
}

.villa-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.villa-text-box {
  width: 30%;
  background-color: var(--color-brown);
  color: var(--color-white);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.villa-text-box h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #e8d0a9; /* Soft gold/tan color for heading inside brown box */
}

.villa-text-box ul {
  list-style: none;
}

.villa-text-box ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 15px;
}

.villa-text-box ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #e8d0a9;
}

/* ALTERNATE VILLA ALIGNMENT */
.villa-section.reverse {
  flex-direction: row-reverse;
}

/* MAP SECTION */
.map-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 60px;
}

.map-content {
  flex: 1 1 40%;
}

.map-img {
  flex: 1 1 55%;
}

.map-img img {
  width: 100%;
  border: 1px solid var(--color-border);
}

/* FLOATING BUTTONS (LEFT) */
.floating-left {
  position: fixed;
  left: 20px;
  bottom: 50px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.float-btn {
  width: 50px;
  height: 50px;
  background-color: var(--color-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-btn.zalo {
  background-color: #0068ff; /* Zalo official blue */
}
.float-btn.messenger {
  background-color: #0084ff; /* FB Messenger blue */
}

/* FOOTER / POLICY */
.footer {
  padding: 40px 0;
  background-color: var(--color-gray-light);
  border-top: 1px solid var(--color-border);
}

.policy-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}

.policy-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

.policy-list li::before {
  content: "■";
  color: var(--color-red);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.8em;
}

/* ARCHITECTURE GALLERY */
.architecture-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .architecture-gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
  }
  .arch-img-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }
}

.arch-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.arch-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.arch-item:hover {
  transform: scale(1.05);
}

/* GALLERY NAVIGATION BUTTONS */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 26, 26, 0.7);
  color: var(--color-yellow);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.gallery-nav:hover {
  background: var(--color-yellow);
  color: var(--color-black);
}
.gallery-nav.prev {
  left: 10px;
}
.gallery-nav.next {
  right: 10px;
}
.product-gallery::-webkit-scrollbar {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .villa-section, .villa-section.reverse {
    flex-direction: column;
  }
  .villa-img, .villa-text-box {
    width: 100%;
  }
  .map-section {
    flex-direction: column;
  }
  .header .nav-links {
    display: none; /* Hide nav links on mobile for simplicity */
  }
}

@media (max-width: 768px) {
  .overview-container {
    flex-direction: column;
  }
  .section-heading {
    font-size: 1.5rem;
  }
  .floating-left {
    bottom: 20px;
    left: 10px;
  }
  .float-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* FOOTER NAV AUTO-LAYOUT */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
  font-weight: 500;
  font-size: 1.05rem;
  text-transform: uppercase;
  justify-content: center;
}

.footer-nav a {
  flex: 0 0 auto;
  text-align: center;
  background-color: var(--color-brown);
  color: var(--color-white);
  border: 1px solid #735d4f;
  padding: 12px 20px;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.footer-nav a:hover {
  background-color: var(--color-red);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .footer-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    scroll-snap-type: x mandatory;
  }
  
  .footer-nav::-webkit-scrollbar {
    height: 0px; /* Hide scrollbar for cleaner look, like native apps */
  }

  .footer-nav a {
    font-size: 0.85rem;
    padding: 10px 15px;
    scroll-snap-align: center;
  }
}
