/* Ankalya marka renkleri ve tipografi */
:root {
  --cream: #fbf8f3;
  --cream-dark: #f3ecdf;
  --charcoal: #2b2420;
  --orange: #e08a3c;
  --orange-dark: #c96f28;
  --teal: #1f6f78;
  --teal-dark: #17555c;
  --gold: #d4a24c;
  --gray: #7d766a;
  --gray-light: #e8e0d2;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', 'Poppins', Verdana, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4, .logo-word {
  font-family: 'Poppins', 'Nunito', Verdana, sans-serif;
  font-weight: 600;
  margin: 0 0 0.5em 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .logo-word { font-size: 24px; color: var(--charcoal); }
.brand-text .tagline { font-size: 10px; letter-spacing: 2px; color: var(--gray); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
}
.nav-links a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--orange); }
.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--teal-dark); border-bottom: none !important; }

.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--charcoal); }

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--gray-light);
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--cream-dark), var(--cream));
  padding: 64px 0 56px;
  text-align: center;
}
.hero h1 { font-size: 40px; color: var(--charcoal); }
.hero p.lead { font-size: 18px; color: var(--gray); max-width: 640px; margin: 0 auto 28px; }
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Cards / Grid ---------- */
.section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 8px; font-size: 30px; }
.section-sub { text-align: center; color: var(--gray); margin-bottom: 40px; max-width: 620px; margin-left: auto; margin-right: auto; }

.apt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}
.apt-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(43,36,32,0.07);
  transition: transform .2s, box-shadow .2s;
}
.apt-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(43,36,32,0.12); }
.apt-card .img-wrap { aspect-ratio: 4/3; background: var(--gray-light); overflow: hidden; position: relative; }
.apt-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.apt-card .badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.92); color: var(--teal);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.apt-card .body { padding: 20px; }
.apt-card h3 { font-size: 20px; margin-bottom: 4px; }
.apt-card .meta { color: var(--gray); font-size: 14px; margin-bottom: 14px; }
.apt-card .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag { background: var(--cream-dark); color: var(--charcoal); font-size: 12px; padding: 4px 10px; border-radius: 999px; }

/* ---------- Amenities ---------- */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.amenity-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--gray-light);
  border-radius: 10px; padding: 12px 14px; font-size: 14px;
}
.amenity-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 8px;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.gallery-grid a:first-child img { }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* Buyuk (tiklaninca degisen) kapak foto + altinda tek satir kucuk foto seridi */
.gallery-hero { border-radius: 16px; overflow: hidden; margin-bottom: 8px; }
.gallery-hero img { width: 100%; height: 420px; object-fit: cover; display: block; transition: opacity .15s; }
.gallery-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}
.gallery-scroll .thumb {
  flex: 0 0 auto; width: 160px; height: 110px; border-radius: 10px; overflow: hidden;
  cursor: pointer; scroll-snap-align: start; border: 3px solid transparent; padding: 0;
  background: none; display: block;
}
.gallery-scroll .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-scroll .thumb.active { border-color: var(--orange); }
.gallery-scroll::-webkit-scrollbar { height: 8px; }
.gallery-scroll::-webkit-scrollbar-track { background: var(--cream-dark); border-radius: 4px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
@media (max-width: 700px) {
  .gallery-hero img { height: 240px; }
  .gallery-scroll .thumb { width: 120px; height: 84px; }
}

/* ---------- Availability widget (Airbnb tarzı takvim) ---------- */
.avail-card {
  background: var(--white); border-radius: 16px; padding: 24px;
  box-shadow: 0 2px 14px rgba(43,36,32,0.07);
}
.avail-status { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-weight: 600; }
.avail-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-light); }
.avail-dot.ok { background: #3f9142; }
.avail-dot.loading { background: var(--gold); }
#avail-calendar { font-size: 13px; color: var(--gray); }
.avail-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--gray); }
.avail-legend span { display: flex; align-items: center; gap: 6px; }
.avail-legend .sw { width: 10px; height: 10px; border-radius: 3px; }
.sw-free { background: #dff2df; border: 1px solid #3f9142; }
.sw-busy { background: #f6d9d9; border: 1px solid #c85c5c; }

.avail-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.avail-cal-nav button {
  border: 1px solid var(--gray-light); background: var(--white); width: 28px; height: 28px;
  border-radius: 50%; cursor: pointer; font-size: 14px; color: var(--charcoal); line-height: 1; padding: 0;
}
.avail-cal-nav button:disabled { opacity: .3; cursor: default; }
.avail-months { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.avail-month-title { text-align: center; font-weight: 700; font-size: 12px; margin-bottom: 8px; text-transform: capitalize; }
.avail-weekdays, .avail-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.avail-weekdays span { text-align: center; font-size: 10px; color: var(--gray); padding-bottom: 4px; }
.avail-day {
  position: relative; text-align: center; font-size: 12px; padding: 6px 0; cursor: pointer;
  border-radius: 50%; color: var(--charcoal);
}
.avail-day.empty { cursor: default; }
.avail-day.past, .avail-day.busy { color: var(--gray-light); text-decoration: line-through; cursor: default; }
.avail-day:not(.past):not(.busy):not(.empty):hover { background: var(--cream-dark); }
.avail-day.in-range { background: var(--cream-dark); border-radius: 0; }
.avail-day.range-start, .avail-day.range-end { background: var(--orange); color: var(--white); font-weight: 700; }
.avail-day.range-start { border-radius: 50% 0 0 50%; }
.avail-day.range-end { border-radius: 0 50% 50% 0; }
.avail-day.range-start.range-end { border-radius: 50%; }
.avail-selected { font-size: 13px; margin: 14px 0 0; color: var(--charcoal); min-height: 18px; }
.avail-selected strong { color: var(--orange-dark); }

@media (max-width: 700px) {
  .avail-months { grid-template-columns: 1fr; }
}

/* ---------- Form ---------- */
.form-card {
  background: var(--white); border-radius: 16px; padding: 32px;
  box-shadow: 0 2px 14px rgba(43,36,32,0.07);
  max-width: 640px; margin: 0 auto;
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--gray-light);
  border-radius: 10px; font-size: 15px; font-family: inherit; background: var(--cream);
}
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--gray); margin-top: 10px; }
#form-msg { margin-top: 14px; font-size: 14px; font-weight: 600; }
#form-msg.ok { color: #2f7d33; }
#form-msg.err { color: #b6392f; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal); color: #d8d2c8; padding: 48px 0 24px; margin-top: 64px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px;
}
.footer-grid h4 { color: var(--white); font-size: 15px; }
.footer-grid a { display: block; color: #b7b0a4; font-size: 14px; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid #453d35; padding-top: 20px; font-size: 13px; color: #9a9284;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Ust bant (usta banner) ---------- */
.promo-bar {
  background: var(--teal); color: var(--white); text-align: center;
  font-size: 13px; padding: 8px 16px;
}
.promo-bar a { text-decoration: underline; font-weight: 700; }

/* ---------- Placeholder icerik uyarisi (sadece gelistirme asamasinda) ---------- */
.wip-note {
  background: #fff7e6; border: 1px dashed var(--gold); color: #8a6d1f;
  padding: 10px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 20px;
}

/* ---------- SSS accordion ---------- */
.faq-item { border-bottom: 1px solid var(--gray-light); padding: 18px 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 16px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--gray); font-size: 15px; }
.faq-item.open .faq-a { max-height: 400px; margin-top: 10px; }
.faq-q .chevron { transition: transform .2s; }
.faq-item.open .chevron { transform: rotate(180deg); }

/* ---------- Misafir yorumlari ---------- */
.review-badge {
  display: flex; align-items: center; gap: 14px; background: var(--white);
  border-radius: 16px; padding: 16px 20px; margin-bottom: 16px;
  box-shadow: 0 2px 14px rgba(43,36,32,0.07); cursor: pointer; transition: box-shadow .2s;
}
.review-badge:hover { box-shadow: 0 8px 22px rgba(43,36,32,0.13); }
.review-badge .rb-score {
  font-family: 'Poppins', sans-serif; font-size: 26px; font-weight: 700; color: var(--white);
  background: var(--teal); border-radius: 10px; padding: 6px 14px; flex-shrink: 0;
}
.review-badge .rb-text { font-size: 13px; color: var(--gray); line-height: 1.4; }
.review-badge .rb-text strong { display: block; color: var(--charcoal); font-size: 15px; }

.review-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px;
}
.review-card {
  background: var(--white); border: 1px solid var(--gray-light); border-radius: 14px;
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
}
.review-card .rhead { display: flex; align-items: center; justify-content: space-between; }
.review-card .reviewer { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.review-card .flag { font-size: 18px; }
.review-card .rmeta { font-size: 12px; color: var(--gray); }
.review-card .rscore { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--teal); font-size: 14px; background: var(--cream-dark); padding: 2px 9px; border-radius: 999px; }
.review-card .rtext { font-size: 14px; color: var(--charcoal); line-height: 1.6; }
.review-more { text-align: center; margin-top: 18px; }

.review-translate-btn {
  align-self: flex-start; border: none; background: none; color: var(--teal);
  font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; margin-top: -2px;
}
.review-translate-btn:hover { text-decoration: underline; }
.review-translate-btn:disabled { color: var(--gray); cursor: default; }
.review-translated {
  font-size: 13px; color: var(--gray); line-height: 1.5; font-style: italic;
  border-left: 3px solid var(--teal); padding-left: 10px;
}
.review-translated.review-translate-error { border-left-color: #c85c5c; color: #c85c5c; font-style: normal; }

/* ---------- Olanaklar: acilir/kapanir ---------- */
.amenity-wrap { max-height: 172px; overflow: hidden; position: relative; transition: max-height .3s ease; }
.amenity-wrap.expanded { max-height: 1000px; }
.amenity-wrap:not(.expanded)::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 44px;
  background: linear-gradient(to bottom, rgba(251,248,243,0), var(--cream));
}
.amenity-toggle-btn {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none;
  color: var(--teal); font-weight: 700; font-size: 14px; font-family: inherit;
  cursor: pointer; margin-top: 12px; padding: 0;
}
.amenity-toggle-btn .chev { transition: transform .2s; display: inline-block; }
.amenity-toggle-btn.open .chev { transform: rotate(180deg); }

/* ---------- Dil secici ---------- */
.lang-switch { position: relative; }
.lang-switch select {
  appearance: none; background: var(--cream-dark); border: 1px solid var(--gray-light);
  border-radius: 999px; padding: 7px 30px 7px 14px; font-size: 13px; font-weight: 700;
  color: var(--charcoal); cursor: pointer; font-family: inherit;
}
.lang-switch::after {
  content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 10px; color: var(--gray); pointer-events: none;
}

/* ---------- Diger platformlarda gor (ikincil, dusuk vurgu) ---------- */
.ota-links { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-light); }
.ota-label { font-size: 12px; color: var(--gray); margin-bottom: 8px; }
.ota-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ota-btn {
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  border: 1.5px solid; transition: background .15s, color .15s;
}
.ota-btn.ota-airbnb { color: #FF385C; border-color: #FF385C; }
.ota-btn.ota-airbnb:hover { background: #FF385C; color: var(--white); }
.ota-btn.ota-booking { color: #003580; border-color: #003580; }
.ota-btn.ota-booking:hover { background: #003580; color: var(--white); }
.ota-btn.ota-trip { color: #287DFA; border-color: #287DFA; }
.ota-btn.ota-trip:hover { background: #287DFA; color: var(--white); }

/* ---------- Chatbot (yer tutucu widget) ---------- */
.chat-bubble {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--teal); color: var(--white); border: none;
  font-size: 26px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(43,36,32,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .15s;
}
.chat-bubble:hover { background: var(--teal-dark); transform: scale(1.06); }
.chat-bubble.open { transform: scale(0.94); }

.chat-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 90;
  width: 340px; max-width: calc(100vw - 32px);
  max-height: min(480px, 70vh);
  background: var(--white); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(43,36,32,0.22);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.chat-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }

.chat-panel-header {
  background: var(--teal); color: var(--white);
  padding: 14px 16px; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.chat-close { background: none; border: none; color: var(--white); font-size: 16px; cursor: pointer; opacity: .85; }
.chat-close:hover { opacity: 1; }

.chat-log { padding: 16px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.chat-bubble-msg.bot { background: var(--cream-dark); color: var(--charcoal); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble-msg.user { background: var(--teal); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }

.chat-quick-replies { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 12px; flex-shrink: 0; }
.chat-chip {
  text-align: left; background: var(--white); border: 1.5px solid var(--gray-light);
  color: var(--charcoal); border-radius: 10px; padding: 9px 12px; font-size: 13px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.chat-chip:hover { border-color: var(--teal); background: var(--cream); }

.chat-faq-link {
  display: block; text-align: center; font-size: 12.5px; font-weight: 700;
  color: var(--teal); padding: 12px 16px; border-top: 1px solid var(--gray-light); flex-shrink: 0;
}
.chat-faq-link:hover { color: var(--teal-dark); }

@media (max-width: 480px) {
  .chat-panel { right: 16px; left: 16px; width: auto; bottom: 86px; }
  .chat-bubble { right: 16px; bottom: 16px; }
}

/* ---------- Rezervasyon sayfasi: musaitlik arama ---------- */
.search-card { margin-bottom: 0; }
.search-card-title { font-size: 20px; margin-bottom: 4px; }
.search-card-sub { color: var(--gray); font-size: 14px; margin-bottom: 18px; }
.search-row {
  display: grid; grid-template-columns: 1.6fr 0.8fr auto; gap: 14px; align-items: end;
}
.search-btn-wrap .btn { width: 100%; white-space: nowrap; }
.search-status { margin-top: 12px; font-size: 14px; }
.search-status.err { color: #c0392b; }
@media (max-width: 760px) {
  .search-row { grid-template-columns: 1fr; }
  .search-btn-wrap { grid-column: 1 / -1; }
}

.date-field { position: relative; }
.date-range-btn {
  width: 100%; text-align: left; padding: 11px 14px; border: 1px solid var(--gray-light);
  border-radius: 10px; background: var(--cream-dark); font-family: inherit; font-size: 14px;
  color: var(--charcoal); cursor: pointer;
}
.date-range-btn:hover { border-color: var(--teal); }
.date-range-popover {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 40;
  background: var(--white); border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 12px 32px rgba(43,36,32,0.18); width: 520px; max-width: calc(100vw - 48px);
}
.date-range-popover.open { display: block; }
@media (max-width: 600px) {
  .date-range-popover { width: calc(100vw - 48px); }
  .date-range-popover .avail-months { grid-template-columns: 1fr; }
}

.search-results-hint, .search-all-busy { text-align: center; color: var(--gray); margin: 24px 0 20px; font-size: 15px; }
.search-all-busy { color: var(--charcoal); font-weight: 600; }
.search-results-grid { margin-top: 4px; }
.search-result-card.is-busy { opacity: .6; }
.apt-card .avail-badge { top: 12px; right: 12px; left: auto; }
.apt-card .avail-badge.free { background: #1f6f78; color: var(--white); }
.apt-card .avail-badge.busy { background: var(--gray); color: var(--white); }
.search-result-actions { display: flex; gap: 8px; }
.search-result-actions .btn { flex: 1; text-align: center; padding: 10px 12px; font-size: 13.5px; }
.search-result-actions .choose-apt-btn[disabled] { opacity: .5; cursor: not-allowed; }
