/* WD Hotel Management - Design System: Soft UI Evolution + Trust & Authority */

:root {
  --primary: #0D9488;
  --secondary: #0369A1;
  --cta: #D97706;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #1E293B;
  --text-muted: #64748B;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: 200ms ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  background: var(--surface);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1rem;
}

.logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.lang-toggle {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity var(--transition);
}

.lang-toggle:hover {
  opacity: 0.9;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.95;
  margin: 0 0 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
}

.section-alt {
  background: var(--surface);
}

.section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.section-desc {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

/* Properties Grid */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.property-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}

.property-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.property-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.property-body {
  padding: 1.25rem;
}

.property-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.property-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.property-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

/* QR Placeholder */
.qr-placeholder {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.qr-box {
  background: var(--surface);
  border: 2px dashed var(--text-muted);
  border-radius: var(--radius);
  padding: 2rem 3rem;
  text-align: center;
  max-width: 400px;
}

.qr-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.qr-box p {
  color: var(--text-muted);
  margin: 0;
}

.qr-code {
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.modal-content {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-hover);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

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

.modal-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.booking-total {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1rem 0;
  color: var(--primary);
}

/* Property Detail Modal */
.modal-detail .modal-content {
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-detail-content {
  padding: 0;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
  padding: 1rem;
  background: #F1F5F9;
  border-radius: var(--radius) var(--radius) 0 0;
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity var(--transition);
}

.detail-gallery img:hover {
  opacity: 0.9;
}

.detail-info {
  padding: 1.5rem 1.5rem 1rem;
}

.detail-info h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.detail-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 1rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.detail-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  margin-bottom: 1rem;
}

#detailBookBtn {
  margin: 0 1.5rem 1.5rem;
}

.detail-gallery img {
  cursor: pointer;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  transition: background 200ms ease;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-image {
  position: relative;
  z-index: 1;
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

/* Footer */
.footer {
  background: var(--text);
  color: white;
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-text {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .section {
    padding: 3rem 1rem;
  }
}
