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

body { font-size: 18px; color: #4E3E34;  background-color: #f5f0e8;}

/* NAV */
.navbar { padding: 0; margin: 0; }
.container-fluid { background-color: #4E3E34; color: #F1C888; padding: 10px; }
.container-fluid a { color: #F1C888; }
.offcanvas-body, .offcanvas-header { color: #F1C888; background-color: #4E3E34; }
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }
iframe {
   border-radius: 15px; 
   width:100%;
   
    border:0;
    border-radius:15px}

/* HERO */
.hero { height: 100vh; position: relative; overflow: hidden; }
.hero_photo { background-image: url(photo/f5.jpg); background-size: cover; background-position: center; width: 100%; height: 100%; }
.hero-title { text-shadow: 2px 2px 4px rgba(0,0,0,0.5); position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: white; font-size: 80px; font-weight: bold; letter-spacing: 5px; }
main { margin-top: 80px; }

/* APARTMENT SECTION */
.apartment-section { background-color: white; padding: 30px; border-radius: 20px; }

/* BUILDING SVG */
.building { position: relative; width: 100%; max-width: 1280px; display: block; }
.main-apartament { width: 100%; height: auto; display: block; border-radius: 12px; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.floor { fill: transparent; cursor: pointer; transition: fill 0.25s; }
.floor:hover { fill: rgba(255,199,68,0.45); stroke: #FFC744; stroke-width: 1.5; }
.floor-active { fill: rgba(255,199,68,0.3); stroke: #FFC744; stroke-width: 2; }
.floor-label { text-align: center; font-size: 15px; font-weight: bold; margin-top: 6px; min-height: 24px; color: #4E3E34; }

/* FLOOR PLAN */
.floor-plan-wrap { background: rgba(255,255,255,0.4); border-radius: 12px; padding: 15px; }
.floor-plan-container { max-width: 600px; }
.floor-plan-img { width: 100%; border-radius: 8px; }

/* LEGEND */
.apt-legend { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 0; }
.legend-title { font-weight: bold; font-size: 15px; }
.legend-items { display: flex; gap: 10px; flex-wrap: wrap; }
.legend-badge { padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.legend-badge.available { background: #d4edda; color: #155724; }
.legend-badge.reserved  { background: #fff3cd; color: #856404; }
.legend-badge.sold      { background: #f8d7da; color: #721c24; }

/* STATUS BADGES in accordion */
.status-badge { padding: 2px 10px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.status-badge.available { background: #d4edda; color: #155724; }
.status-badge.reserved  { background: #fff3cd; color: #856404; }
.status-badge.sold      { background: #f8d7da; color: #721c24; }

/* SEARCH FORM */
.form-building { display: flex; flex-direction: column; gap: 16px; }
.inputs { display: flex; gap: 20px; flex-wrap: wrap; }
.building-element { display: flex; flex-direction: row; gap: 12px; align-items: center; border-bottom: 2px solid #987E46; padding-bottom: 8px; flex: 1; min-width: 140px; }
.building-element label { white-space: nowrap; font-size: 14px; }
.building-element input { flex: 1; background: transparent; border: none; outline: none; color: #4E3E34; font-size: 15px; width: 80px; }
.btn-reset { background: transparent; border: 2px solid #4E3E34; color: #4E3E34; border-radius: 10px; padding: 6px 18px; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
button[type=submit] { background-color: #4E3E34; color: #F1C888; border: none; border-radius: 10px; padding: 8px 24px; font-size: 15px; cursor: pointer; }

/* ACCORDION TABLE */
.apt-table-header, .apt-row-header {
  display: grid;
  grid-template-columns: 80px 70px 70px 90px 110px 130px 80px;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
}
.apt-table-header {
  background: #4E3E34;
  color: #F1C888;
  border-radius: 10px 10px 0 0;
  font-size: 13px;
  font-weight: 600;
}
.apt-row { border: none; border-bottom: 0.4px solid #808080 }
.apt-row:last-child { border-bottom: none; }
.apt-row-header {
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.apt-row-header:hover { background: rgba(255,255,255,0.8); }
.apt-actions { display: flex; gap: 8px; align-items: center; }
.chevron { font-size: 18px; transition: transform 0.3s; display: inline-block; }

/* DETAIL */
.apt-detail-inner { padding: 20px; background: rgba(255,255,255,0.6); border-radius: 0 0 10px 10px; }
.apt-detail-list { line-height: 2; }
.apt-plan-img { max-width: 100%; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.btn-contact { background: #4E3E34; color: #F1C888; padding: 8px 20px; border-radius: 10px; text-decoration: none; font-size: 14px; display: inline-block; }
.btn-contact:hover { background: #3a2e26; color: #F1C888; }
.apt-results { border-radius: 10px; overflow: hidden; background: rgba(255,255,255,0.3); }

/* GALLERY */
.gallery-section { display: flex; gap: 16px; align-items: stretch; }
.gallery-main-link { position: relative; flex: 0 0 60%; display: block; border-radius: 12px; overflow: hidden; text-decoration: none; }
#gallery-main { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; border-radius: 12px; }
.gallery-main-link:hover #gallery-main { transform: scale(1.03); }
.gallery-hint { position: absolute; bottom: 14px; right: 14px; background: rgba(0,0,0,0.55); color: white; font-size: 13px; padding: 6px 12px; border-radius: 20px; opacity: 0; transition: opacity 0.3s; }
.gallery-main-link:hover .gallery-hint { opacity: 1; }
.gallery-thumbs-wrapper { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.gallery-thumbs-wrapper::-webkit-scrollbar { display: none; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumb { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; cursor: pointer; transition: opacity 0.2s, outline 0.2s; outline: 2px solid transparent; }
.thumb:hover { opacity: 0.85; }
.thumb.active { outline: 2px solid #4E3E34; }

/* GALLERY PAGE */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; }
.gallery-grid-item img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; transition: transform 0.3s; cursor: pointer; }
.gallery-grid-item img:hover { transform: scale(1.03); }

/* FEATURES */
.adv-box { background: rgba(255,255,255,0.4); border-radius: 12px; padding: 20px; height: 100%; }

/* LOCATION */
.location-wraper { display: flex; flex-direction: row; gap: 20px; overflow-x: auto; padding-bottom: 8px; justify-content: space-between;}
.location-wrap { display: flex; align-items: flex-end; gap: 12px; }
.location-content { display: flex; flex-direction: column; }
.location-content p { margin: 0; white-space: nowrap; font-size: 14px; }

/* CONTACT */
.contact-section .contact-container { display: flex; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.contact-section .left { flex: 1; min-width: 280px; }
.contact-section .right { flex: 1; min-width: 220px; padding-top: 60px; }
.form-contact { background: white; border-radius: 15px; padding: 30px; }
.form-element { display: flex; flex-direction: row; gap: 20px; margin-bottom: 15px; align-items: center; justify-content: space-between; border-bottom: 2px solid #987E46; }
.form-element label { white-space: nowrap; font-size: 14px; }
.form-element input, .form-element textarea { flex: 1; padding: 10px; border: none; outline: none; color: #4E3E34; font-size: 15px; background: transparent; }
.alert-success { background: #d4edda; color: #155724; border-radius: 8px; }
.alert-error { background: #f8d7da; color: #721c24; border-radius: 8px; }

/* FOOTER */
footer { color: #F1C888; background-color: #4E3E34; padding: 20px 40px; display: flex; gap: 20px; justify-content: space-between; align-items: flex-end; }

/* MOBILE */
@media (max-width: 768px) {
  .inputs { flex-direction: column; }
  .gallery-section { flex-direction: column; }
  .gallery-main-link { flex: none; height: 240px; }
  .gallery-thumbs { flex-direction: row; overflow-x: auto; }
  .thumb { width: 90px; height: 70px; flex-shrink: 0; }
  .apt-table-header { display: none; }
  .apt-row-header { grid-template-columns: 1fr 1fr 1fr; font-size: 13px; }
  .hero-title { font-size: 40px; }
}
