/* =========================================================
   Accommodation Manager — Frontend CSS
   NewsMag teması ile uyumlu, tam responsive tasarım
   ========================================================= */

:root {
  --acm-primary:   #1a6fc4;
  --acm-secondary: #2c3e50;
  --acm-accent:    #f5a623;
  --acm-bg:        #f8f9fa;
  --acm-card-bg:   #ffffff;
  --acm-border:    #e2e8f0;
  --acm-text:      #2d3748;
  --acm-muted:     #718096;
  --acm-radius:    12px;
  --acm-shadow:    0 2px 16px rgba(0,0,0,.09);
  --acm-shadow-hover: 0 8px 32px rgba(0,0,0,.16);
}

/* ── RESET ─────────────────────────────────────────────── */
.acm-single-wrap *, .acm-archive-wrap * { box-sizing: border-box; }
.acm-single-wrap a, .acm-archive-wrap a { text-decoration: none; }

/* ═══════════════════════════════════════════════════════
   SINGLE PAGE
   ═══════════════════════════════════════════════════════ */
.acm-single-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px 60px; }

/* ── HERO GALLERY ──────────────────────────────────────── */
.acm-gallery-slider { position: relative; width: 100%; height: 480px; overflow: hidden; border-radius: var(--acm-radius); margin-bottom: 32px; background: #1a1a2e; }
.acm-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.acm-slide.active { opacity: 1; }
.acm-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acm-slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.55); color: #fff; border: none; width: 46px; height: 46px; border-radius: 50%; font-size: 20px; cursor: pointer; z-index: 10; transition: background .2s; display: flex; align-items: center; justify-content: center; }
.acm-slider-btn:hover { background: rgba(0,0,0,.8); }
.acm-slider-btn.prev { left: 16px; }
.acm-slider-btn.next { right: 16px; }
.acm-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.acm-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s, transform .2s; }
.acm-dot.active { background: #fff; transform: scale(1.3); }

/* ── HEADER BLOCK ──────────────────────────────────────── */
.acm-content-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.acm-header-block { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--acm-border); }
.acm-title-row { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.acm-title { font-size: 2rem; font-weight: 700; color: var(--acm-secondary); margin: 0; line-height: 1.2; }
.acm-stars-badge { display: flex; align-items: center; gap: 4px; background: #fff8e1; padding: 6px 12px; border-radius: 20px; border: 1px solid #f5a623; white-space: nowrap; }
.acm-stars-badge span { color: #f5a623; font-size: 16px; }
.acm-stars-badge small { color: #92400e; font-size: 12px; font-weight: 600; }
.acm-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.acm-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; }
.acm-badge.type { background: #e0f2fe; color: #0369a1; }
.acm-badge.location { background: #dcfce7; color: #166534; }
.acm-badge.time { background: #f3f4f6; color: #374151; }
.acm-price-tag { display: inline-flex; align-items: baseline; gap: 6px; background: linear-gradient(135deg, #1a6fc4, #2563eb); color: #fff; padding: 12px 24px; border-radius: 30px; }
.acm-from { font-size: 12px; opacity: .85; }
.acm-amount { font-size: 26px; font-weight: 800; }
.acm-per { font-size: 12px; opacity: .85; }

/* ── DESCRIPTION ───────────────────────────────────────── */
.acm-description { font-size: 16px; line-height: 1.8; color: var(--acm-text); margin-bottom: 40px; }
.acm-description p { margin: 0 0 16px; }

/* ── SECTION TITLE ─────────────────────────────────────── */
.acm-section-title { font-size: 1.35rem; font-weight: 700; color: var(--acm-secondary); margin: 0 0 20px; padding-bottom: 10px; border-bottom: 2px solid var(--acm-primary); display: inline-block; }

/* ── DOĞRUDAN REZERVASYON BANNERI ──────────────────────── */
.acm-direct-banner {
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 60%, #166534 100%);
  border-radius: var(--acm-radius);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 6px 24px rgba(22,101,52,.35);
  position: relative;
}
.acm-direct-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.acm-direct-left {
  flex: 1;
  padding: 28px 32px;
  color: #fff;
  position: relative;
}
.acm-direct-ribbon {
  display: inline-block;
  background: #fbbf24;
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.acm-direct-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.2;
}
.acm-direct-note {
  font-size: 14px;
  color: rgba(255,255,255,.88);
  margin: 0 0 16px;
}
.acm-direct-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.acm-direct-perks li {
  font-size: 13px;
  color: rgba(255,255,255,.9);
}
.acm-direct-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 36px;
  background: rgba(0,0,0,.15);
  min-width: 220px;
  text-align: center;
  position: relative;
}
.acm-direct-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}
.acm-direct-from { font-size: 12px; opacity: .8; }
.acm-direct-amount {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.acm-direct-per { font-size: 13px; opacity: .8; }
.acm-direct-btn {
  display: inline-block;
  background: #fff;
  color: #15803d !important;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}
.acm-direct-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  color: #14532d !important;
}
.acm-direct-subnote {
  font-size: 11px;
  color: rgba(255,255,255,.7);
}

@media (max-width: 700px) {
  .acm-direct-banner { flex-direction: column; }
  .acm-direct-right { min-width: auto; padding: 20px 24px; }
}

/* ── BOOKING PLATFORMS ─────────────────────────────────── */
.acm-booking-section { margin-bottom: 48px; }
.acm-booking-note { color: var(--acm-muted); font-size: 14px; margin: -10px 0 20px; }
.acm-booking-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.acm-booking-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 16px; background: #fff; border-radius: var(--acm-radius); border: 1px solid var(--acm-border); box-shadow: var(--acm-shadow); transition: transform .25s, box-shadow .25s; text-align: center; overflow: hidden; }
.acm-booking-card:hover { transform: translateY(-6px); box-shadow: var(--acm-shadow-hover); }
.acm-platform-badge { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 700; color: #fff; padding: 2px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: .5px; }
.acm-platform-logo { font-size: 32px; line-height: 1; }
.acm-platform-name { font-size: 13px; font-weight: 700; }
.acm-platform-price strong { font-size: 22px; font-weight: 800; color: var(--acm-secondary); }
.acm-platform-price small { font-size: 11px; color: var(--acm-muted); display: block; }
.acm-platform-price span { font-size: 13px; color: var(--acm-muted); }
.acm-book-btn { width: 100%; padding: 9px 0; color: #fff; border-radius: 8px; font-size: 13px; font-weight: 600; transition: opacity .2s; margin-top: auto; }
.acm-book-btn:hover { opacity: .88; }

/* ── AMENITIES ─────────────────────────────────────────── */
.acm-amenities-section { margin-bottom: 48px; }
.acm-amenities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.acm-amenity-item { background: var(--acm-bg); border: 1px solid var(--acm-border); border-radius: 8px; padding: 10px 14px; font-size: 14px; color: var(--acm-text); }

/* ── MAP ───────────────────────────────────────────────── */
.acm-map-section { margin-bottom: 48px; }
.acm-address-text { color: var(--acm-muted); font-size: 14px; margin-bottom: 14px; }
.acm-map-container { border-radius: var(--acm-radius); overflow: hidden; box-shadow: var(--acm-shadow); }
.acm-directions-link { display: inline-block; margin-top: 14px; padding: 10px 20px; background: #4285F4; color: #fff; border-radius: 8px; font-size: 14px; font-weight: 600; transition: background .2s; }
.acm-directions-link:hover { background: #1a73e8; color: #fff; }

/* ── SIDEBAR ───────────────────────────────────────────── */
.acm-sidebar-col { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.acm-sidebar-card { background: #fff; border: 1px solid var(--acm-border); border-radius: var(--acm-radius); padding: 20px; box-shadow: var(--acm-shadow); }
.acm-sidebar-card h3 { font-size: 15px; font-weight: 700; color: var(--acm-secondary); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--acm-border); }
.acm-contact-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f1f5f9; color: var(--acm-text); font-size: 14px; transition: color .2s; }
.acm-contact-row:last-of-type { border-bottom: none; }
.acm-contact-row:hover { color: var(--acm-primary); }
.acm-contact-row.whatsapp { color: #25D366; font-weight: 600; }
.acm-contact-row.whatsapp:hover { color: #128C7E; }
.acm-social-row { display: flex; gap: 8px; margin-top: 12px; }
.acm-social-btn { flex: 1; text-align: center; padding: 8px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #fff; }
.acm-social-btn.facebook { background: #1877F2; }
.acm-social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.acm-info-row { font-size: 14px; color: var(--acm-text); padding: 7px 0; border-bottom: 1px solid #f1f5f9; }
.acm-info-row:last-child { border-bottom: none; }
.acm-similar-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f1f5f9; color: var(--acm-text); transition: color .2s; }
.acm-similar-item:last-child { border-bottom: none; }
.acm-similar-item:hover { color: var(--acm-primary); }
.acm-similar-thumb { width: 60px; height: 50px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.acm-similar-info strong { display: block; font-size: 13px; line-height: 1.3; }
.acm-similar-info small { font-size: 12px; color: var(--acm-primary); font-weight: 600; }

/* ═══════════════════════════════════════════════════════
   ARCHIVE PAGE
   ═══════════════════════════════════════════════════════ */
.acm-archive-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px 60px; }
.acm-archive-header { margin-bottom: 36px; }
.acm-archive-title { font-size: 1.8rem; font-weight: 800; color: var(--acm-secondary); margin: 0 0 8px; }
.acm-archive-desc { color: var(--acm-muted); margin-bottom: 20px; }

/* Filtre formu */
.acm-filter-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #fff; padding: 16px 20px; border-radius: var(--acm-radius); box-shadow: var(--acm-shadow); border: 1px solid var(--acm-border); }
.acm-filter-form select { padding: 9px 14px; border: 1px solid var(--acm-border); border-radius: 8px; font-size: 14px; background: var(--acm-bg); color: var(--acm-text); cursor: pointer; }
.acm-filter-form button { padding: 9px 20px; background: var(--acm-primary); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; }
.acm-filter-form button:hover { background: #1558a3; }
.acm-reset { font-size: 13px; color: var(--acm-muted); padding: 9px 12px; }
.acm-reset:hover { color: #e53e3e; }

/* Kart Grid */
.acm-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-bottom: 40px; }
.acm-card { background: var(--acm-card-bg); border-radius: var(--acm-radius); overflow: hidden; box-shadow: var(--acm-shadow); border: 1px solid var(--acm-border); transition: transform .25s, box-shadow .25s; position: relative; display: flex; flex-direction: column; }
.acm-card:hover { transform: translateY(-6px); box-shadow: var(--acm-shadow-hover); }
.acm-card.is-featured { border-color: var(--acm-accent); }
.acm-featured-label { position: absolute; top: 12px; left: 12px; background: var(--acm-accent); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 12px; z-index: 2; text-transform: uppercase; letter-spacing: .5px; }
.acm-card-img-link { display: block; position: relative; height: 220px; overflow: hidden; }
.acm-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.acm-card:hover .acm-card-img { transform: scale(1.06); }
.acm-no-img { display: flex; align-items: center; justify-content: center; font-size: 60px; background: #f0f4f8; height: 100%; }
.acm-card-type { position: absolute; bottom: 12px; left: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 10px; backdrop-filter: blur(4px); }
.acm-card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.acm-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.acm-card-title { font-size: 16px; font-weight: 700; margin: 0; line-height: 1.3; }
.acm-card-title a { color: var(--acm-secondary); }
.acm-card-title a:hover { color: var(--acm-primary); }
.acm-card-stars { white-space: nowrap; }
.acm-card-stars span { color: #f5a623; font-size: 14px; }
.acm-card-location { font-size: 13px; color: var(--acm-muted); margin: 0 0 8px; }
.acm-card-excerpt { font-size: 13px; color: var(--acm-muted); line-height: 1.6; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acm-card-amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.acm-card-amenities span { background: var(--acm-bg); border: 1px solid var(--acm-border); border-radius: 6px; padding: 3px 9px; font-size: 11px; color: var(--acm-muted); }
.acm-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--acm-border); gap: 8px; }
.acm-card-price { display: flex; align-items: baseline; gap: 3px; }
.acm-card-from { font-size: 11px; color: var(--acm-muted); }
.acm-card-amount { font-size: 22px; font-weight: 800; color: var(--acm-primary); }
.acm-card-per { font-size: 11px; color: var(--acm-muted); }
.acm-card-noprize { font-size: 13px; color: var(--acm-muted); }
.acm-card-btn { background: var(--acm-primary); color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .2s; }
.acm-card-btn:hover { background: #1558a3; color: #fff; }

/* Sayfalama */
.acm-pagination { text-align: center; margin-top: 20px; }
.acm-pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border: 1px solid var(--acm-border); border-radius: 8px; color: var(--acm-text); font-size: 14px; transition: all .2s; }
.acm-pagination .page-numbers.current, .acm-pagination .page-numbers:hover { background: var(--acm-primary); color: #fff; border-color: var(--acm-primary); }
.acm-not-found { text-align: center; padding: 60px 20px; color: var(--acm-muted); }

/* ── YAZILARDA OTEL MODU ───────────────────────────────── */
.acm-post-header-bar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0 0 20px; padding:16px; background:var(--acm-bg); border-radius:var(--acm-radius); border:1px solid var(--acm-border); }
.acm-post-original-content { margin:28px 0; }
.acm-post-gallery { margin-bottom:24px; }
.acm-contact-block { margin-bottom:40px; }
.acm-contact-grid { display:flex; flex-wrap:wrap; gap:10px; }
.acm-contact-grid .acm-contact-row { background:var(--acm-bg); border:1px solid var(--acm-border); border-radius:8px; padding:10px 18px; font-size:14px; color:var(--acm-text); transition:background .2s; }
.acm-contact-grid .acm-contact-row:hover { background:#e0f2fe; color:var(--acm-primary); }
.acm-contact-grid .acm-contact-row.whatsapp { background:#dcfce7; color:#15803d; border-color:#86efac; }
.acm-contact-grid .acm-social-btn { padding:10px 20px; border-radius:8px; font-size:13px; font-weight:600; color:#fff; }
.acm-contact-grid .acm-social-btn.facebook { background:#1877F2; }
.acm-contact-grid .acm-social-btn.instagram { background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }

/* ── SHORTCODE GRID ────────────────────────────────────── */
.acm-shortcode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin: 24px 0; }
.acm-shortcode-grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.acm-shortcode-grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.acm-search-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; background: #fff; padding: 20px; border-radius: var(--acm-radius); box-shadow: var(--acm-shadow); }
.acm-search-form select, .acm-search-form input { padding: 10px 14px; border: 1px solid var(--acm-border); border-radius: 8px; font-size: 14px; min-width: 160px; }
.acm-search-form button { padding: 10px 24px; background: var(--acm-primary); color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 14px; }
.acm-search-form button:hover { background: #1558a3; }

/* ── FEATURED SLIDER (shortcode) ───────────────────────── */
.acm-featured-slider { position: relative; overflow: hidden; border-radius: var(--acm-radius); margin: 24px 0; }
.acm-featured-slider .acm-card { display: none; }
.acm-featured-slider .acm-card.active { display: flex; flex-direction: row; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .acm-content-wrap { grid-template-columns: 1fr; }
  .acm-sidebar-col { position: static; }
  .acm-gallery-slider { height: 320px; }
  .acm-booking-cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 600px) {
  .acm-title { font-size: 1.4rem; }
  .acm-gallery-slider { height: 240px; border-radius: 0; }
  .acm-cards-grid { grid-template-columns: 1fr; }
  .acm-filter-form { flex-direction: column; }
  .acm-filter-form select { width: 100%; }
  .acm-booking-cards { grid-template-columns: repeat(2, 1fr); }
  .acm-amenities-grid { grid-template-columns: repeat(2, 1fr); }
}
