/* ============================================
   DAIRELER DETAIL PAGE STYLES
   ============================================ */

/* Type Navigation - Sticky below header */
.type-nav {
  position: sticky;
  top: 120px;
  z-index: 900;
  background: var(--color-white);
  border-bottom: 2px solid var(--color-bone);
  padding: 0.75rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.type-nav-inner {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.type-btn {
  padding: 0.65rem 2rem;
  border: 2px solid var(--color-night-blue);
  background: transparent;
  color: var(--color-night-blue);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.type-btn:hover {
  background-color: rgba(4, 19, 63, 0.05);
}

.type-btn.active {
  background-color: var(--color-night-blue);
  color: var(--color-white);
}

/* Genel Tanıtım Section */
.genel-tanitim {
  padding: 6rem 0 0;
  background: var(--color-bone);
}

.genel-wrapper {
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.genel-wrapper img {
  width: 100%;
  display: block;
}

/* Vaziyet Planı Section */
.vaziyet-section {
  padding: 3rem 0 2rem;
  background: var(--color-bone);
}

.vaziyet-title {
  font-size: 1.3rem;
  color: var(--color-night-blue);
  text-align: center;
  margin-bottom: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.vaziyet-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.vaziyet-wrapper img {
  width: 100%;
  display: block;
}

/* Type Section */
.type-section {
  padding: 4rem 0 6rem;
  background: var(--color-white);
}

.type-section-title {
  font-size: 2.2rem;
  color: var(--color-night-blue);
  text-align: center;
  margin-bottom: 2rem;
}

/* Tip Sub-Navigation - Sticky below type-nav */
.tip-nav {
  position: sticky;
  top: 180px;
  z-index: 850;
  background: var(--color-white);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 0;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.tip-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid #ccc;
  background: var(--color-bone);
  color: var(--color-anthracite);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.tip-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.tip-btn.active {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

/* Tip Row - Zigzag Layout */
.tip-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  scroll-margin-top: 250px;
}

.tip-row:last-child {
  border-bottom: none;
}

/* Reverse: text left, images right */
.tip-row.reverse {
  direction: rtl;
}

.tip-row.reverse>* {
  direction: ltr;
}

/* Tip Images */
.tip-images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.plan-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.kroki-image {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #eee;
  background: #fafafa;
  padding: 0.5rem;
}

/* Tip Info (text side) */
.tip-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tip-info h3 {
  font-size: 1.5rem;
  color: var(--color-night-blue);
  font-weight: 700;
  line-height: 1.3;
}

.tip-subtitle {
  font-size: 1.1rem;
  color: var(--color-gold);
  font-weight: 600;
  font-family: var(--font-heading);
  margin: -0.5rem 0 0 0;
}

.tip-desc {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* ====== BADGE DESIGN (from reference) ====== */
.tip-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.badge-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  min-width: 80px;
  text-align: center;
  line-height: 1;
}

.badge-type-wide {
  font-size: 1.6rem;
  min-width: 100px;
}

.badge-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.badge-block {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.badge-block.block-a {
  background: var(--color-night-blue);
  color: var(--color-white);
}

.badge-block.block-b {
  background: #1a5c2e;
  color: var(--color-white);
}

.badge-tip {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-anthracite);
}

.badge-area {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
}

.badge-dubleks {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-gold);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 3px;
}

/* Spec List */
.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px dashed #e0e0e0;
  font-size: 1rem;
  color: #555;
}

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

.spec-list li.total {
  font-weight: 700;
  color: var(--color-night-blue);
  border-top: 2px solid var(--color-night-blue);
  border-bottom: none;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-size: 1.05rem;
}

/* ====== TERAS SECTION (2,5+1 Dubleks) ====== */
.teras-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--color-bone);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.teras-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  max-width: 600px;
}

.teras-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-night-blue);
  line-height: 1.2;
  margin: 0;
}

.teras-subtitle {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-gold);
  margin: 0;
}

.teras-desc {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.teras-img {
  width: 100%;
  max-width: 700px;
  border-radius: 8px;
}

.contact-intro {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Contact Grid & Form */
.contact-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3rem;
  margin-top: 2rem;
}

@media (min-width: 992px) {
  .contact-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.location-contact {
  background-color: var(--color-bone);
  padding: 4rem 0;
  margin-top: 4rem;
}

.location-info {
  flex: 1;
  max-width: 500px;
}

.location-info h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-night-blue);
  margin-bottom: 1rem;
}

.lead-form-box {
  flex: 1;
  max-width: 500px;
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  width: 100%;
}

.lead-form-box h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-night-blue);
  margin-bottom: 1.5rem;
}

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

.lead-form-box input {
  width: 100%;
  padding: 0 1.2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  height: 55px;
  outline: none;
  transition: var(--transition);
}

.lead-form-box input:focus {
  border-color: var(--color-gold);
}

.lead-form-box button {
  width: 100%;
  margin-top: 0.5rem;
  height: 55px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 991px) {
  .tip-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tip-row.reverse {
    direction: ltr;
  }

  .kroki-image {
    max-width: 100%;
  }

  .tip-nav {
    position: sticky;
    top: 180px;
    z-index: 90;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
  }

  .teras-section {
    gap: 2rem;
  }

  .teras-img {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .type-nav {
    top: 80px;
    overflow-x: auto;
  }

  .type-nav-inner {
    min-width: max-content;
    padding: 0 1rem;
  }

  .type-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
  }

  .tip-nav {
    top: 140px;
    /* 80px header + approx 60px type-nav */
    gap: 0.35rem;
    padding: 0.5rem 1rem;
  }

  .tip-row {
    scroll-margin-top: 200px;
  }

  .tip-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }

  .badge-type {
    font-size: 1.5rem;
    padding: 0.4rem 1rem;
  }

  .tip-info h3 {
    font-size: 1.1rem;
  }

  .type-section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .tip-badge {
    gap: 0.5rem;
  }

  .badge-type {
    font-size: 1.3rem;
    min-width: 60px;
  }
}