/* ========================================
   Rezidence Morava - Main Stylesheet
   ======================================== */

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

:root {
  --color-primary: #1a1a2e;
  --color-primary-light: #16213e;
  --color-accent: #c4a265;
  --color-accent-hover: #d4b275;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-dark: #2c2c2c;
  --color-bg-section: #f5f5f0;
  --color-border: #e0e0e0;
  --font-main: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Header / Navigation
   ======================================== */
.header {
  background-color: var(--color-bg-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

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

.logo a span {
  color: var(--color-accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 10px 16px;
  color: var(--color-text-white);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  background-color: rgba(196, 162, 101, 0.15);
  color: var(--color-accent);
}

/* Dropdown arrow - desktop */
.nav-menu > li > a.has-dropdown {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu > li > a.has-dropdown::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform var(--transition);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-bg-dark);
  min-width: 200px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition);
  padding: 8px 0;
}

.nav-menu > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #ccc;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.dropdown-menu li a:hover {
  color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.05);
}

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

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: var(--color-text-white);
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  color: var(--color-text-white);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 30, 35, 0.75) 0%, rgba(40, 45, 55, 0.7) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

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

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

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

.hero .btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero .btn:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(196, 162, 101, 0.4);
}

/* ========================================
   Section Styles
   ======================================== */
.section {
  padding: 80px 0;
}

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

.section-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.section-dark .section-title h2 {
  color: var(--color-text-white);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-title p {
  color: rgba(255, 255, 255, 0.7);
}

.section-title .accent-line {
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 15px auto 0;
}

/* ========================================
   Project Cards
   ======================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.project-card {
  background: var(--color-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.project-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

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

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

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

.project-card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-sale {
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
}

.badge-sold {
  background-color: #4caf50;
  color: white;
}

.badge-last {
  background-color: #e74c3c;
  color: white;
}

.project-card-content {
  padding: 25px;
}

.project-card-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--color-primary);
}

.project-card-location {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.project-card-content p {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 15px;
  line-height: 1.6;
}

.project-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--color-border);
}

.project-card-meta span {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.btn-link:hover {
  color: var(--color-accent-hover);
  gap: 10px;
}

.btn-link::after {
  content: '→';
  transition: transform var(--transition);
}

/* ========================================
   Partner Section
   ======================================== */
.partner-section {
  text-align: center;
}

.partner-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* ========================================
   Page Header (Subpages)
   ======================================== */
.page-header {
  background: linear-gradient(135deg, #2a2a35 0%, #33333f 100%);
  color: var(--color-text-white);
  padding: 60px 0 50px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   Property Detail
   ======================================== */
.container:has(.detail-top) > .section-title {
  text-align: left;
}

.container:has(.detail-top) > .section-title .accent-line {
  margin: 15px 0 0;
}
.detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.detail-top .property-spec {
  order: 1;
}

.detail-top .detail-top-image {
  order: 2;
}

.detail-top-image .detail-main-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  cursor: zoom-in;
  transition: opacity var(--transition);
}

.detail-top-image .detail-main-img:hover {
  opacity: 0.9;
}

/* Thumbnail gallery under main image */
.detail-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.detail-thumb {
  flex: 1 1 0;
  min-width: 100px;
  max-width: 180px;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all var(--transition);
}

.detail-thumb:hover,
.detail-thumb.active {
  border-color: var(--color-accent);
  opacity: 1;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10001;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  font-weight: 300;
  transition: opacity var(--transition);
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 3rem;
  cursor: pointer;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: background var(--transition);
  user-select: none;
}

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

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.property-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* Contact with photos */
.contact-person {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-person-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.property-spec {
  background: var(--color-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.property-spec h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--color-primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.spec-value {
  font-weight: 600;
  color: var(--color-primary);
}

.price-tag {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
}

/* Apartment table */
.apartment-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: var(--color-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.apartment-table thead {
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
}

.apartment-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.apartment-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.apartment-table tr:last-child td {
  border-bottom: none;
}

.apartment-table tbody tr:hover {
  background-color: var(--color-bg-section);
}

.status-available {
  color: #4caf50;
  font-weight: 600;
}

.status-reserved {
  color: #ff9800;
  font-weight: 600;
}

.status-sold {
  color: #e74c3c;
  font-weight: 600;
}

/* Apartment table rows */
.apartment-row-available {
  background-color: rgba(76, 175, 80, 0.04);
}

/* ========================================
   Timeline
   ======================================== */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background-color: var(--color-accent);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-content {
  width: 45%;
  padding: 20px;
  background: var(--color-bg);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background-color: var(--color-accent);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 3px var(--color-accent);
  z-index: 1;
}

.timeline-content h4 {
  color: var(--color-accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* ========================================
   Financing Steps
   ======================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.step-card {
  text-align: center;
  padding: 30px 25px;
  background: var(--color-bg);
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 15px;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ========================================
   Contact Section / Form
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: var(--color-primary);
}

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

.contact-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(196, 162, 101, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail h4 {
  font-size: 1.15rem;
  margin-bottom: 5px;
  color: var(--color-primary);
}

.contact-detail .contact-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-detail p,
.contact-detail a {
  font-size: 1.05rem;
  color: var(--color-text-light);
}

.contact-detail a:hover {
  color: var(--color-accent);
}

/* Contact section in dark mode */
.section-dark .contact-info h3 {
  color: var(--color-text-white);
}

.section-dark .contact-detail h4 {
  color: var(--color-accent);
}

.section-dark .contact-detail .contact-name,
.section-dark .contact-detail p {
  color: rgba(255, 255, 255, 0.85);
}

.section-dark .contact-detail a {
  color: rgba(255, 255, 255, 0.85);
}

.section-dark .contact-detail a:hover {
  color: var(--color-accent);
}

/* Calculator icon gold on dark background */
.section-dark img[src*="contact-navrat"] {
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(5deg) brightness(0.8);
  transform: scale(1.05);
}

.contact-form {
  background: var(--color-bg);
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: var(--color-primary);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: #fafafa;
}

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

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

.btn-submit {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
  padding: 14px 40px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
}

.btn-submit:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(196, 162, 101, 0.4);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background-color: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: var(--color-text-white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.8;
}

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

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

.footer-contact-item {
  margin-bottom: 12px;
}

.footer-contact-item strong {
  color: var(--color-text-white);
  display: block;
  margin-bottom: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

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

/* ========================================
   Cookie Consent
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
  padding: 20px;
  z-index: 10000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-content p {
  font-size: 0.9rem;
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.cookie-btn-accept {
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
}

.cookie-btn-accept:hover {
  background-color: var(--color-accent-hover);
}

.cookie-btn-necessary {
  background-color: transparent;
  color: var(--color-text-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-necessary:hover {
  border-color: var(--color-text-white);
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }

/* ========================================
   Image Gallery
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.5s ease;
}

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

/* ========================================
   Construction Description Sections
   ======================================== */
.content-section {
  margin-bottom: 40px;
}

.content-section h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--color-primary);
}

.content-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 15px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.two-col img {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Horizontal Project Card (overview pages)
   ======================================== */
.project-card-horizontal {
  display: flex;
  flex-direction: row;
  max-width: 900px;
  margin: 0 auto;
}

.project-card-horizontal .project-card-image {
  flex: 0 0 50%;
  max-width: 50%;
  height: auto;
}

.project-card-horizontal .project-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Title with logo (haj.html) */
.section-title-with-logo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.section-title-with-logo .section-title {
  flex: 1;
  text-align: left;
}

.section-title-with-logo .section-title .accent-line {
  margin: 15px 0 0;
}

.section-title-with-logo .project-logo {
  width: 150px;
  margin-left: 20px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
  .detail-top {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .detail-top .detail-top-image {
    order: 1;
  }

  .detail-top .property-spec {
    order: 2;
  }

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

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

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

  .two-col {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: row;
    text-align: left;
    padding-left: 50px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content {
    width: 100%;
  }

  .project-card-horizontal {
    flex-direction: column;
  }

  .project-card-horizontal .project-card-image {
    flex: none;
    max-width: 100%;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 5px;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu > li > a {
    padding: 14px 16px;
    font-size: 1.05rem;
  }

  /* Dropdown arrow - mobile override */
  .nav-menu > li > a.has-dropdown {
    justify-content: space-between;
  }

  .nav-menu > li > a.has-dropdown::after {
    width: 8px;
    height: 8px;
    border-width: 2.5px;
    margin-top: -4px;
    flex-shrink: 0;
  }

  .nav-menu > li > a.has-dropdown.open::after {
    transform: rotate(-135deg);
    margin-top: 2px;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0;
    padding-left: 16px;
    background: transparent;
    display: none;
  }

  .dropdown-menu.active {
    display: block;
  }

  .dropdown-menu li a {
    padding: 12px 16px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    border-left: 2px solid var(--color-accent);
  }

  .dropdown-menu li a:hover {
    color: var(--color-accent);
  }

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

  .hero p {
    font-size: 1rem;
  }

  .page-header {
    padding: 40px 0 35px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .section-title {
    margin-bottom: 30px;
  }

  /* Contact person photos */
  .contact-person {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-person-photo {
    width: 130px;
    height: 130px;
  }

  .contact-item {
    justify-content: center;
  }

  /* Contact form */
  .contact-form {
    padding: 25px 20px;
  }

  /* Gallery */
  .gallery-item img {
    height: 220px;
  }

  /* Thumbnails */
  .detail-thumb {
    height: 80px;
    min-width: 60px;
    max-width: 100px;
  }

  /* Lightbox */
  .lightbox-arrow {
    width: 44px;
    height: 44px;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
    font-size: 2rem;
  }

  /* Map iframe */
  iframe {
    height: 280px !important;
  }

  /* Cookie banner */
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }

  /* Apartment table */
  .apartment-table {
    font-size: 0.8rem;
  }

  .apartment-table th,
  .apartment-table td {
    padding: 10px 8px;
  }

  .property-hero {
    height: 250px;
  }

  /* Title with logo */
  .section-title-with-logo {
    flex-direction: column;
    align-items: center;
  }

  .section-title-with-logo .project-logo {
    margin-left: 0;
    margin-bottom: 15px;
    width: 120px;
    order: -1;
  }

  /* Spec items - stack on narrow screens */
  .spec-item {
    flex-direction: column;
    gap: 2px;
  }

  .spec-value {
    text-align: left;
  }

  .price-tag {
    font-size: 1.4rem;
  }

  /* Apartment table - horizontal scroll on mobile */
  .apartment-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .apartment-table-wrapper .apartment-table-clickable {
    min-width: 700px;
  }
}

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

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

  .section {
    padding: 35px 0;
  }

  .page-header {
    padding: 30px 0 25px;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

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

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

  .gallery-item img {
    height: 200px;
  }

  /* Contact person photos */
  .contact-person-photo {
    width: 100px;
    height: 100px;
  }

  .contact-form {
    padding: 20px 15px;
  }

  /* Detail thumbs */
  .detail-thumb {
    height: 70px;
    min-width: 55px;
  }

  /* Project card */
  .project-card-content {
    padding: 18px;
  }

  .project-card-content h3 {
    font-size: 1.15rem;
  }

  .project-card-image {
    height: 200px;
  }

  .project-card-horizontal .project-card-image {
    height: 200px;
  }

  /* Footer */
  .footer {
    padding: 40px 0 15px;
  }

  .footer-grid {
    gap: 25px;
  }

  /* Property spec */
  .property-spec {
    padding: 18px;
  }
}
