* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

:root {
  --blue: #24308f;
  --blue-dark: #151b63;
  --red: #e22b2f;
  --red-dark: #bd1f23;
  --white: #ffffff;
  --soft: #f5f7ff;
  --text: #111827;
  --muted: #64748b;
  --border: #e5e7eb;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--text);
}

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

.container {
  width: min(1200px, 92%);
  margin: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  width: 190px;
  height: auto;
  display: block;
}

nav {
  display: flex;
  gap: 28px;
  font-weight: 700;
  color: var(--blue);
}

nav a:hover,
nav a.active {
  color: var(--red);
}

.header-btn {
  background: var(--red);
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  transition: 0.2s;
}

.header-btn:hover {
  background: var(--red-dark);
}

.hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: white;
  padding: 82px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: rgba(226, 43, 47, 0.32);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: #eef2ff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero h1 {
  font-size: 58px;
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero h1 span {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 6px;
  text-underline-offset: 8px;
}

.hero p {
  max-width: 620px;
  color: #e2e8f0;
  line-height: 1.7;
  font-size: 17px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.primary-btn,
.secondary-btn {
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 900;
}

.primary-btn {
  background: var(--red);
  color: white;
}

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

.search-box {
  margin-top: 32px;
  background: white;
  border-radius: 20px;
  padding: 12px;
  display: flex;
  gap: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  border-top: 5px solid var(--red);
}

.search-box input,
.search-box select {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  outline: none;
  font-size: 15px;
  color: #334155;
}

.search-box input {
  flex: 1;
}

.search-box button {
  border: none;
  background: var(--red);
  color: white;
  font-weight: 900;
  border-radius: 14px;
  padding: 0 28px;
  cursor: pointer;
}

.hero-image {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 12px;
  border-radius: 28px;
}

.hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 22px;
  display: block;
}

.page-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: white;
  padding: 64px 0;
}

.page-hero h1 {
  font-size: 46px;
  margin-bottom: 14px;
}

.page-hero p {
  color: #e2e8f0;
  line-height: 1.7;
  max-width: 720px;
}

.section {
  padding: 76px 0;
}

.section-title {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-title span {
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
}

.section-title h2 {
  font-size: 38px;
  margin-top: 8px;
  color: var(--blue-dark);
}

.listing-count {
  color: var(--muted);
  font-size: 14px;
}

.listings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: 0.25s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(36, 48, 143, 0.18);
}

.card-image {
  position: relative;
}

.card-image img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.type-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--red);
  color: white;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.card-body {
  padding: 22px;
}

.location {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 21px;
  margin-bottom: 10px;
  color: var(--blue-dark);
}

.description {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 18px;
}

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

.feature {
  background: var(--soft);
  border-radius: 14px;
  padding: 12px;
  font-size: 14px;
  color: var(--blue-dark);
  font-weight: 800;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-size: 21px;
  font-weight: 900;
  color: var(--red);
}

.detail-btn {
  border: none;
  background: var(--blue);
  color: white;
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.empty-result {
  display: none;
  background: var(--soft);
  border: 1px dashed #b8c0ff;
  border-radius: 24px;
  padding: 44px;
  text-align: center;
  color: var(--muted);
}

.about {
  background: var(--soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.about h2 {
  font-size: 38px;
  margin: 10px 0 18px;
  color: var(--blue-dark);
}

.about p,
.content-text p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.about-card {
  background: white;
  padding: 28px;
  border-radius: 26px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border-top: 5px solid var(--red);
}

.about-card h3 {
  margin-bottom: 8px;
  color: var(--blue-dark);
}

.contact-box {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: white;
  border-radius: 28px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-left: 8px solid var(--red);
}

.contact-box h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.contact-box p {
  color: #dbe3ff;
}

.contact-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-light,
.btn-whatsapp {
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.btn-light {
  background: white;
  color: var(--blue-dark);
}

.btn-whatsapp {
  background: var(--red);
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start; 
}

.contact-card {
  background: var(--soft);
  padding: 28px;
  border-radius: 24px;
  border-left: 6px solid var(--red);
}

.contact-card h3 {
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--muted);
  line-height: 1.7;
}

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  width: min(780px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 28px;
  position: relative;
}

.modal-content img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 28px 28px 0 0;
  display: block;
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: white;
  color: var(--red);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.modal-body {
  padding: 28px;
}

.modal-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.modal-tags span {
  background: var(--soft);
  color: var(--blue-dark);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 900;
}

.modal-tags span:first-child {
  background: var(--red);
  color: white;
}

.modal-body h2 {
  font-size: 30px;
  margin-bottom: 10px;
  color: var(--blue-dark);
}

.modal-price {
  font-size: 26px;
  font-weight: 900;
  margin: 18px 0;
  color: var(--red);
}

.modal-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.modal-feature {
  background: var(--soft);
  padding: 16px;
  border-radius: 16px;
}

.modal-feature small {
  display: block;
  color: var(--muted);
  margin-bottom: 5px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-actions a {
  flex: 1;
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  font-weight: 900;
}

.call-btn {
  background: var(--blue);
  color: white;
}

.whatsapp-btn {
  background: var(--red);
  color: white;
}

@media (max-width: 900px) {
  nav,
  .header-btn {
    display: none;
  }

  .navbar {
    justify-content: center;
  }

  .logo img {
    width: 175px;
  }

  .hero-content,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 42px;
  }

  .search-box,
  .contact-box {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box button {
    padding: 14px;
  }

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

@media (max-width: 640px) {
  .listings,
  .about-cards,
  .modal-features {
    grid-template-columns: 1fr;
  }

  .section-title {
    align-items: start;
    flex-direction: column;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-image img {
    height: 300px;
  }

  .card-footer {
    align-items: start;
    flex-direction: column;
  }

  .detail-btn {
    width: 100%;
  }

  .logo img {
    width: 155px;
  }
}
.instagram-btn {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}

.sahibinden-btn {
  background: #ffd200;
  color: #111827;
}
.detail-title {
  margin: 24px 0 14px;
  color: var(--blue-dark);
  font-size: 22px;
}

.detail-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-table div {
  background: var(--soft);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.detail-table strong {
  color: var(--blue-dark);
  font-size: 14px;
}

.detail-table span {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

@media (max-width: 640px) {
  .detail-table {
    grid-template-columns: 1fr;
  }
}
#listingForm {
  display: grid;
  gap: 12px;
}

#listingForm input,
#listingForm select,
#listingForm textarea {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
}

#listingForm textarea {
  min-height: 120px;
}

.detail-title {
  margin: 24px 0 14px;
  color: var(--blue-dark);
  font-size: 22px;
}

.detail-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-table div {
  background: var(--soft);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.detail-table strong {
  color: var(--blue-dark);
  font-size: 14px;
}

.detail-table span {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}
.detail-page {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: start;
}

.detail-main-image {
  width: 100%;
  height: 470px;
  object-fit: cover;
  border-radius: 24px;
}

.detail-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}

.detail-thumb {
  width: 95px;
  height: 75px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
}

.detail-thumb:hover {
  border-color: var(--red);
}

.type-label-detail {
  display: inline-block;
  background: var(--red);
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 900;
  margin-bottom: 15px;
}

.detail-page h1 {
  color: var(--blue-dark);
  font-size: 36px;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .detail-page {
    grid-template-columns: 1fr;
  }

  .detail-main-image {
    height: 320px;
  }
}
.slider-box { position: relative; }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: white;
  font-size: 34px;
  cursor: pointer;
}
.slider-left { left: 10px; }
.slider-right { right: 10px; }
.active-thumb { border: 2px solid red !important; }
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

#closeLightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 42px;
  cursor: pointer;
  z-index: 10000;
}

.lightbox-left {
  left: 30px;
}

.lightbox-right {
  right: 30px;
}

.lightbox-btn:hover {
  background: var(--red);
}
.detail-page {
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 24px;
  align-items: start;
}

.detail-main-image {
  width: 100%;
  height: 430px;
  object-fit: contain;
  background: #f3f5fb;
  border-radius: 18px;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
  max-height: none;
  overflow: visible;
}

.detail-thumb {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

.detail-page h1 {
  font-size: 26px;
  line-height: 1.15;
}

.detail-table {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-table div {
  padding: 10px;
}

.detail-table strong,
.detail-table span {
  font-size: 12px;
}

.description {
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .detail-page {
    grid-template-columns: 1fr;
  }

  .detail-main-image {
    height: 300px;
  }

  .detail-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}
.detail-page {
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 24px;
  align-items: start;
}

.detail-main-image {
  width: 100%;
  height: 430px;
  object-fit: contain;
  background: #f3f5fb;
  border-radius: 18px;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
  max-height: none;
  overflow: visible;
}

.detail-thumb {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

.detail-page h1 {
  font-size: 26px;
  line-height: 1.15;
}
.card-image {
  overflow: hidden;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
}

.card-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.card-image img {
  transition: transform 0.4s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}
.image-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}

.image-preview img {
  width: 105px;
  height: 82px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--border);
  cursor: grab;
}

.image-preview img:active {
  cursor: grabbing;
  opacity: 0.7;
}
.image-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}

.image-preview img {
  width: 110px;
  height: 85px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  cursor: grab;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-preview img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.image-preview img:active {
  cursor: grabbing;
  opacity: 0.6;
}
.preview-area {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.preview-item {
  width: 150px;
  position: relative;
}

.preview-item img {
  width: 150px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.preview-item button {
  margin-top: 5px;
  width: 100%;
  cursor: pointer;
}
#imagePreview {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

#imagePreview img {
  width: 150px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #ddd;
  cursor: grab;
}
.preview-item {
  position: relative;
  display: inline-block;
}

.preview-item img {
  width: 110px;
  height: 85px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  cursor: grab;
}

.preview-delete {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: #e22b2f;
  color: white;
  cursor: pointer;
  font-weight: bold;
}
@media (max-width: 768px) {
  .section {
    padding: 24px 0;
  }

  .detail-page {
    display: block;
  }

  .detail-main-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
  }

  .detail-thumbs {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin-top: 8px;
    padding-bottom: 6px;
  }

  .detail-thumb {
    min-width: 64px;
    width: 64px;
    height: 54px;
    border-radius: 8px;
  }

  .detail-page h1 {
    font-size: 22px;
    line-height: 1.2;
    margin-top: 18px;
  }

  .modal-price {
    font-size: 22px;
  }

  .description {
    font-size: 13px;
    line-height: 1.55;
  }

  .detail-table {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 16px;
  }

  .detail-table div {
    padding: 12px;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .modal-actions a {
    width: 100%;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }
}