/* ============================= */
/*          VARIABLES            */
/* ============================= */
:root {
  --primary-color: #0A4C6A;     /* Navy/Teal */
  --secondary-color: #E8A900;   /* Gold/Amber */
  --primary-dark: #073549;
  --text-color: #111827;
  --text-muted: #6b7280;
  --bg-light: #f7f9fc;
  --border-color: #e5e7eb;
  --white-color: #ffffff;
  --whatsapp-color: #25D366;
  --waze-color: #33ccff;
  --main-font: "Heebo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ============================= */
/*          BASE RESET           */
/* ============================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--main-font);
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--white-color);
}

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

/* ============================= */
/*          CONTAINERS           */
/* ============================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ============================= */
/*            HEADER             */
/* ============================= */

.main-header {
  background-color: var(--white-color);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* לוגו */
.logo-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo-primary {
  color: var(--primary-color);
}

.logo-secondary {
  color: var(--secondary-color);
}

.logo-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* כפתור פרסום נכס */
.header-buttons-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================= */
/*             BUTTONS           */
/* ============================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-align: center;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-dark);
}

.btn-secondary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: #ffffff;
}

.btn-whatsapp:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-phone {
  background-color: var(--secondary-color);
  color: var(--primary-dark);
}

.btn-phone:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-waze {
  background-color: var(--waze-color);
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease-in-out;
}

.btn-waze:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ============================= */
/*        PROPERTY PAGE MAIN     */
/* ============================= */

.property-page-main {
  padding: 25px 0 40px;
}

/* ============================= */
/*          BREADCRUMBS          */
/* ============================= */

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.breadcrumbs a {
  color: var(--primary-color);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* ============================= */
/*         PROPERTY HEADER       */
/* ============================= */

.property-header {
  margin-bottom: 20px;
}

.property-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.property-header .location {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.property-header .location i {
  margin-left: 6px;
  color: var(--secondary-color);
}

/* ============================= */
/*       16:9 MEDIA GALLERY      */
/* ============================= */

.gallery-section {
  margin-bottom: 20px;
}

/* מעטפת הגלריה */
.gallery-wrapper {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background-color: #000000;
}

/* המסילה – 16:9 קבוע */
.gallery-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
}

/* שקופית (תמונה / וידאו) */
.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease-in-out;
  background-color: #000000;
}

.gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* תוכן השקופית */
.gallery-slide img,
.gallery-slide iframe,
.gallery-slide video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* תמונות – לא חותכות, מוצגות במלואן */
.gallery-slide img {
  object-fit: contain;
}

/* ============================= */
/*     GALLERY NAVIGATION ARROWS */
/* ============================= */

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.gallery-nav.prev {
  right: 12px;
}

.gallery-nav.next {
  left: 12px;
}

/* גם לפי ID */
#btnPrev,
#btnNext {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

#btnPrev {
  right: 12px;
}

#btnNext {
  left: 12px;
}

.gallery-nav:hover,
#btnPrev:hover,
#btnNext:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.05);
}

/* ============================= */
/*      GALLERY THUMBNAILS STRIP */
/* ============================= */

.gallery-thumbs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 8px;
  background-color: #050505;
  overflow-x: auto;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: #111827;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 999px;
}

/* כפתור Thumbnail בודד */
.gallery-thumb {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  width: 96px;
  height: 54px; /* 16:9 */
  opacity: 0.75;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-thumb:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(232, 169, 0, 0.7);
}

.gallery-thumb.active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--secondary-color);
}

/* Thumbnail של וידאו – אוברליי Play */
.thumb-video {
  position: relative;
  width: 100%;
  height: 100%;
}

.thumb-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-video-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.5) 0, transparent 60%);
  color: #ffffff;
  font-size: 1.2rem;
}

/* ============================= */
/*     INLINE CTA UNDER GALLERY  */
/* ============================= */

.property-cta-inline {
  margin: 18px 0 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================= */
/*       MAIN PAGE LAYOUT        */
/* ============================= */

.property-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 30px;
}

/* תוכן מרכזי */
.property-content {
  min-width: 0;
}

/* סיידבר */
.property-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ============================= */
/*          MAIN CONTENT         */
/* ============================= */

.property-details h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.property-details h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 22px;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.property-details h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 4px;
  color: var(--primary-dark);
}

.property-details p {
  margin-bottom: 10px;
  color: var(--text-color);
}

.target-audience-list {
  list-style: none;
  margin: 8px 0 12px;
  padding-right: 18px;
}

.target-audience-list li {
  position: relative;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.target-audience-list li::before {
  content: "•";
  position: absolute;
  right: -12px;
  color: var(--secondary-color);
}

/* סוגי סוויטות */
.suite-type {
  margin-bottom: 10px;
}

/* כותרת קטגוריית מתקנים */
.amenities-category-title {
  margin-top: 16px;
  margin-bottom: 5px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* רשימת מתקנים */
.amenities-list {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  font-size: 0.9rem;
}

.amenities-list li i {
  margin-left: 6px;
  color: var(--secondary-color);
}

/* ============================= */
/*            SIDEBAR            */
/* ============================= */

.sidebar-card {
  background-color: var(--white-color);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  padding: 16px 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

/* נתוני מפתח */
.key-stats .stat-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.key-stats .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.key-stats .value {
  font-size: 0.95rem;
  font-weight: 600;
}

/* כפתורי יצירת קשר בסיידבר */
.sidebar-contact {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ווידג'ט מיתוג */
.branding-widget {
  text-align: right;
}

.branding-widget i {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.branding-widget h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

/* חוות דעת */
.reviews-widget h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.review-card {
  border-radius: 10px;
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  margin-bottom: 8px;
  background-color: #f9fafb;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.review-name {
  font-weight: 700;
  color: var(--primary-dark);
}

.review-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* FAQ בסיידבר */
.faq-section h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  padding: 8px 0;
  border: none;
  background: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: inherit;
  text-align: right;
  cursor: pointer;
}

.faq-icon {
  margin-right: 10px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  margin-bottom: 6px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* מפה */
.map-widget h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}

/* ============================= */
/*             FOOTER            */
/* ============================= */

.main-footer {
  background-color: var(--primary-dark);
  color: #a0cbe0;
  padding: 30px 0;
  text-align: center;
}

.main-footer .footer-logo img {
  max-height: 50px;
  margin-bottom: 10px;
  opacity: 0.85;
}

.main-footer .footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.main-footer .footer-links a {
  color: #c7e0f3;
}

.main-footer .footer-links a:hover {
  color: #ffffff;
}

.main-footer .copyright {
  font-size: 0.85rem;
}

/* ============================= */
/*          RESPONSIVE           */
/* ============================= */

@media (max-width: 992px) {
  .property-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-header-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 10px;
  }

  .property-header h1 {
    font-size: 1.6rem;
  }

  .property-cta-inline {
    flex-direction: column;
  }

  .amenities-list {
    grid-template-columns: 1fr;
  }

  .gallery-nav,
  #btnPrev,
  #btnNext {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .gallery-thumb {
    width: 80px;
    height: 45px;
  }
}
