/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 800px; }
.section { padding: 4rem 0; }
.text-center { text-align: center; }

/* === HEADER === */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo-img { height: 42px; width: auto; }
.logo-text { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.main-nav { display: flex; gap: 2rem; }
.nav-link { font-weight: 500; color: var(--text); transition: color .2s; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--primary); border-radius: 1px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === HERO === */
.hero { position: relative; min-height: 500px; display: flex; align-items: center; justify-content: center; color: var(--white); text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: var(--primary); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.3)); }
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-subtitle { font-size: 1.2rem; opacity: 0.95; margin-bottom: 2rem; }

/* === BUTTONS === */
.btn { display: inline-block; padding: 0.75rem 1.75rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem; border: 2px solid transparent; cursor: pointer; transition: all .2s; text-align: center; }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* === SECTION TITLES === */
.section-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 0.5rem; color: var(--text); }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 2.5rem; }

/* === PAGE HEADER === */
.page-header { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, black)); color: var(--white); padding: 3rem 0; text-align: center; }
.page-header h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.page-header p { opacity: 0.9; }

/* === PROPERTY CARDS === */
.properties-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.property-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.property-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.card-link { display: block; color: inherit; }
.card-image { position: relative; height: 220px; overflow: hidden; background: var(--border); }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-light); }
.card-badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--white); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.card-body { padding: 1.25rem; }
.card-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.card-location { display: flex; align-items: center; gap: 4px; color: var(--text-light); font-size: 0.9rem; margin-bottom: 0.75rem; }
.card-features { display: flex; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.feature { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; color: var(--text-light); }
.card-price { border-top: 1px solid var(--border); padding-top: 0.75rem; }
.price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.per-night { font-size: 0.85rem; color: var(--text-light); }

/* === ADVANTAGES === */
.advantages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.advantage-card { text-align: center; padding: 2rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.advantage-icon { margin-bottom: 1rem; }
.advantage-card h3 { margin-bottom: 0.5rem; color: var(--primary); }

/* === BLOG === */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.blog-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.blog-card:hover { transform: translateY(-3px); }
.blog-card a { display: block; color: inherit; }
.blog-card-img { height: 200px; width: 100%; object-fit: cover; }
.blog-card-placeholder { height: 200px; background: linear-gradient(135deg, var(--primary-light), var(--accent-light)); }
.blog-card-body { padding: 1.25rem; }
.blog-card-body h2, .blog-card-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.blog-category { display: inline-block; background: var(--primary-light); color: var(--primary); padding: 2px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 500; margin-bottom: 0.5rem; }
.blog-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-light); }
.read-more { color: var(--primary); font-weight: 500; }

/* === ARTICLE === */
.article-hero-img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; }
.article-page h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.article-meta { display: flex; gap: 1rem; align-items: center; color: var(--text-light); margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.article-content { line-height: 1.8; }
.article-content h2, .article-content h3 { margin-top: 2rem; margin-bottom: 1rem; }
.article-content p { margin-bottom: 1rem; }
.article-back { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* === PROPERTY DETAIL === */
.breadcrumb { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1.5rem; padding: 1rem 0; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.detail-gallery { margin-bottom: 2rem; }
.gallery-main { border-radius: var(--radius); overflow: hidden; height: 450px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding: 4px 0; }
.thumb { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: 0.6; transition: opacity .2s; border: 2px solid transparent; }
.thumb:hover, .thumb.active { opacity: 1; border-color: var(--primary); }
.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; align-items: start; }
.detail-main h1 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.detail-location { display: flex; align-items: center; gap: 6px; color: var(--text-light); margin-bottom: 1.5rem; }
.detail-features { display: flex; gap: 1.5rem; flex-wrap: wrap; padding: 1.25rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.detail-feature { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.detail-description { margin-bottom: 2rem; }
.detail-description h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.description-text { line-height: 1.8; color: var(--text); }
.detail-amenities { margin-bottom: 2rem; }
.detail-amenities h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.amenities-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity-tag { background: var(--primary-light); color: var(--primary); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; }
.detail-reviews h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.review-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.review-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.review-stars { color: var(--accent); }

/* === BOOKING WIDGET === */
.booking-widget { position: sticky; top: 90px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.booking-price { text-align: center; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.price-amount { font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.price-unit { color: var(--text-light); }
.booking-form .form-group { margin-bottom: 1rem; }
.booking-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.booking-form input, .booking-form select { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.95rem; }
.booking-form input:focus, .booking-form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.price-summary { background: var(--bg); border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
.booking-note { text-align: center; font-size: 0.8rem; color: var(--text-light); margin-top: 1rem; }

/* === CONTACT === */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 0.7rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.95rem; font-family: inherit; }
.contact-form textarea { resize: vertical; }
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 1.25rem; }
.contact-item a { color: var(--primary); }

/* === CONFIRMATION === */
.confirmation-card { max-width: 600px; margin: 0 auto; text-align: center; padding: 3rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.confirmation-icon { margin-bottom: 1.5rem; }
.confirmation-subtitle { color: var(--text-light); margin-bottom: 2rem; }
.confirmation-details { text-align: left; margin: 2rem 0; padding: 1.5rem; background: var(--bg); border-radius: 8px; }
.confirmation-details h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.details-grid { display: grid; gap: 0.75rem; }
.detail-item { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.detail-label { color: var(--text-light); }
.price-highlight { font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.confirmation-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === LEGAL === */
.legal-content h2 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--primary); }
.legal-content p { margin-bottom: 0.75rem; }

/* === ALERTS === */
.alert { padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem; }
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }

/* === EMPTY STATE === */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-light); }
.empty-state h3 { margin: 1rem 0 0.5rem; color: var(--text); }

/* === FOOTER === */
.site-footer { background: var(--text); color: rgba(255,255,255,0.8); padding: 3rem 0 0; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer-col h4 { color: var(--white); margin-bottom: 1rem; font-size: 1rem; }
.footer-desc { font-size: 0.9rem; line-height: 1.6; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a:hover { color: var(--white); }
.social-links { display: flex; gap: 12px; margin-top: 1rem; }
.social-icon { color: rgba(255,255,255,0.7); transition: color .2s; }
.social-icon:hover { color: var(--white); }
.footer-bottom { margin-top: 2rem; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.85rem; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .main-nav { display: none; position: fixed; top: 70px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 1.5rem; gap: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { min-height: 400px; }
  .hero h1 { font-size: 2rem; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { order: -1; }
  .booking-widget { position: static; }
  .gallery-main { height: 300px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .properties-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .confirmation-actions { flex-direction: column; }
}
