/* ============================================================
   Lucky Cats Realty – Stylesheet
   Farben: #EF3340 (Rot), #FFFFFF (Weiss), #00247D (Blau)
   Schrift: Arial
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #1a1a2e;
  background-color: #f8f9fc;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul {
  list-style: none;
}

/* ── CSS Variables ── */
:root {
  --red:    #EF3340;
  --blue:   #00247D;
  --white:  #FFFFFF;
  --light:  #f0f4ff;
  --grey:   #f8f9fc;
  --dark:   #1a1a2e;
  --shadow: 0 4px 20px rgba(0, 36, 125, 0.12);
  --radius: 12px;
  --transition: 0.3s ease;
}

/* ── Utility ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
  text-align: center;
}

.section-subtitle {
  font-size: 1rem;
  color: #666;
  text-align: center;
  margin-bottom: 48px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: #c9202d;
  border-color: #c9202d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 51, 64, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-blue:hover {
  background: #001f6b;
  border-color: #001f6b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 36, 125, 0.35);
}

/* ── Language Toggle ── */
.lang-bar {
  background: var(--blue);
  padding: 6px 0;
  text-align: right;
}

.lang-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.7);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: Arial, sans-serif;
  transition: all var(--transition);
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
  font-weight: 700;
}

/* ── Header / Navigation ── */
header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,36,125,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.5px;
}

.logo-text .brand span {
  color: var(--red);
}

.logo-text .tagline {
  font-size: 0.72rem;
  color: #888;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  gap: 8px;
  align-items: center;
}

nav ul li a {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  transition: all var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
  background: var(--light);
  color: var(--blue);
}

nav ul li a.nav-contact {
  background: var(--red);
  color: var(--white);
}

nav ul li a.nav-contact:hover {
  background: #c9202d;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--blue);
  border-radius: 3px;
  transition: all var(--transition);
}

/* ── Hero Section ── */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, #003399 50%, #00247D 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(239,51,64,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  background: rgba(239,51,64,0.2);
  border: 1px solid rgba(239,51,64,0.5);
  color: #ff8a8a;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: var(--red);
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}

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

.stat-item .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}

.stat-item .number span {
  color: var(--red);
}

.stat-item .label {
  font-size: 0.8rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Filter Bar ── */
.filter-section {
  background: var(--white);
  padding: 32px 0;
  box-shadow: 0 4px 16px rgba(0,36,125,0.08);
}

.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-group {
  display: flex;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  border: 2px solid var(--blue);
}

.filter-group button {
  padding: 10px 20px;
  background: transparent;
  border: none;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-group button.active,
.filter-group button:hover {
  background: var(--blue);
  color: var(--white);
}

.filter-group.type-group {
  border-color: var(--red);
}

.filter-group.type-group button {
  color: var(--red);
}

.filter-group.type-group button.active,
.filter-group.type-group button:hover {
  background: var(--red);
  color: var(--white);
}

/* ── Listings Section ── */
.listings-section {
  padding: 80px 0;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* ── Property Card ── */
.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,36,125,0.18);
}

.card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .card-image img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-rent {
  background: var(--blue);
  color: var(--white);
}

.badge-buy {
  background: var(--red);
  color: var(--white);
}

.card-type {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.92);
  color: var(--dark);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.card-body {
  padding: 20px;
}

.card-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 6px;
}

.card-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: #888;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}

.card-location {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-location::before {
  content: '📍';
  font-size: 0.8rem;
}

.card-features {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 16px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: #555;
}

.feature-icon {
  font-size: 1rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-footer .btn {
  padding: 9px 20px;
  font-size: 0.85rem;
}

.card-id {
  font-size: 0.75rem;
  color: #bbb;
}

/* ── About Section ── */
.about-section {
  background: linear-gradient(135deg, var(--blue) 0%, #003399 100%);
  color: var(--white);
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-inner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.about-image-inner img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-badge-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--red);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 8px 24px rgba(239,51,64,0.4);
}

.about-badge-float .big-num {
  font-size: 2.2rem;
  font-weight: 700;
  display: block;
}

.about-badge-float .small-txt {
  font-size: 0.75rem;
  opacity: 0.9;
}

.about-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-content h2 span {
  color: var(--red);
}

.about-content p {
  opacity: 0.85;
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.highlight-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 16px;
}

.highlight-item .hi-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.highlight-item .hi-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.highlight-item .hi-text {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ── Services Section ── */
.services-section {
  padding: 80px 0;
  background: var(--grey);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border-top: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  border-top-color: var(--red);
  box-shadow: 0 12px 40px rgba(0,36,125,0.15);
}

.service-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* ── Contact Section ── */
.contact-section {
  padding: 80px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 16px;
}

.contact-info p {
  color: #555;
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item-text .label {
  font-size: 0.8rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.contact-item-text .value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}

.contact-item-text .value a {
  color: var(--blue);
  transition: color var(--transition);
}

.contact-item-text .value a:hover {
  color: var(--red);
}

/* ── Contact Form ── */
.contact-form {
  background: var(--grey);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8ecf4;
  border-radius: 10px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Footer ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  cursor: pointer;
}

.social-link:hover {
  background: var(--red);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

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

/* ── Thai Flag Stripe Decoration ── */
.flag-stripe {
  height: 6px;
  background: linear-gradient(to right,
    var(--red) 0%, var(--red) 20%,
    var(--white) 20%, var(--white) 40%,
    var(--blue) 40%, var(--blue) 60%,
    var(--white) 60%, var(--white) 80%,
    var(--red) 80%, var(--red) 100%
  );
}

/* ── Scroll to Top ── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(239,51,64,0.4);
  transition: all var(--transition);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  background: #c9202d;
  transform: translateY(-3px);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 24px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--red);
}

.modal-body {
  padding: 20px 28px 28px;
}

.modal-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.modal-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 8px;
}

.modal-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.modal-detail-item {
  background: var(--grey);
  padding: 12px;
  border-radius: 8px;
}

.modal-detail-item .detail-label {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-detail-item .detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
}

.modal-description {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

/* ── Hidden language content ── */
[data-lang] {
  display: none;
}

[data-lang].lang-active {
  display: block;
}

[data-lang-inline] {
  display: none;
}

[data-lang-inline].lang-active {
  display: inline;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.1rem;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,36,125,0.12);
    gap: 4px;
  }

  nav ul.open {
    display: flex;
  }

  nav ul li a {
    display: block;
    padding: 12px 16px;
  }

  .hamburger {
    display: flex;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-badge-float {
    position: static;
    margin-top: 20px;
    display: inline-block;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .listings-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 24px;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .modal-details {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0 50px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    justify-content: center;
  }
}
