<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow"> <!-- Google'da çıkmasın -->
<title>Villa Rehberi & Yakındaki Yerler</title>
<style>
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f8fafc; margin: 0; padding: 15px; color: #1e293b; }
.container { max-width: 600px; margin: 0 auto; }
.card { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); margin-bottom: 20px; }
h1 { font-size: 20px; color: #0f172a; margin-top: 0; margin-bottom: 15px; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; }
.info-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 15px; }
.info-label { font-weight: 600; color: #64748b; }
.info-value { font-weight: 500; color: #0f172a; background: #f1f5f9; padding: 2px 8px; border-radius: 4px; }
.note-box { background: #eff6ff; border-left: 4px solid #3b82f6; padding: 12px; border-radius: 0 8px 8px 0; font-size: 14px; margin-top: 15px; }
/* Reklam Kartları */
.ad-card { display: flex; gap: 15px; background: white; border-radius: 12px; padding: 15px; margin-bottom: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.03); border: 1px solid #e2e8f0; align-items: center; }
.ad-img { width: 80px; height: 80px; border-radius: 8px; background: #cbd5e1; object-fit: cover; flex-shrink: 0; }
.ad-details h3 { margin: 0 0 5px 0; font-size: 16px; color: #0f172a; }
.ad-details p { margin: 0 0 8px 0; font-size: 13px; color: #475569; }
.ad-btn { display: inline-block; background: #10b981; color: white; padding: 6px 12px; border-radius: 6px; text-decoration: none; font-size: 12px; font-weight: 600; }
</style>
</head>
<body>
<div class="container">
<!-- Villa Bilgi Kutusu -->
<div class="card">
<h1>🏡 Villa Bilgi & Wi-Fi Rehberi</h1>
<div class="info-row">
<span class="info-label">Wi-Fi Ağ Adı</span>
<span class="info-value" id="wifi-name">Yükleniyor...</span>
</div>
<div class="info-row">
<span class="info-label">Wi-Fi Şifresi</span>
<span class="info-value" id="wifi-pass">Yükleniyor...</span>
</div>
<div class="note-box" id="salter-note">
<b>Önemli Bilgiler:</b> Yükleniyor...
</div>
</div>
<!-- Yakındaki Yerler / Reklamlar Bölümü -->
<h2 style="font-size: 18px; margin-bottom: 12px; color: #334155;">📍 Bölgedeki Önerilen Mekanlar & Fırsatlar</h2>
<div id="reklamlar-listesi">
<!-- Örnek Reklam Kartı 1 -->
<div class="ad-card">
<div class="ad-img" style="background: #3b82f6; display:flex; align-items:center; justify-content:center; color:white; font-weight:bold;">LOGO</div>
<div class="ad-details">
<h3>Alaturka Restaurant</h3>
<p>Villa misafirlerine özel %10 indirim! Fethiye'nin en taze deniz ürünleri.</p>
<a href="https://wa.me/905000000000" class="ad-btn" target="_blank">Rezervasyon Yap</a>
</div>
</div>
<!-- Örnek Reklam Kartı 2 -->
<div class="ad-card">
<div class="ad-img" style="background: #f59e0b; display:flex; align-items:center; justify-content:center; color:white; font-weight:bold;">LOGO</div>
<div class="ad-details">
<h3>Ölüdeniz Safari & Tekne Turları</h3>
<p>Günlük 12 Adalar tekne turunda %15 indirim fırsatı.</p>
<a href="https://wa.me/905000000000" class="ad-btn" target="_blank">Bilgi Al</a>
</div>
</div>
</div>
</div>
<script>
// URL'den ID çekme simülasyonu (İleride Google Sheets / Supabase bağlanacak)
const urlParams = new URLSearchParams(window.location.search);
const villaId = urlParams.get('id');
// Şimdilik test için örnek veriyi ekrana basalım:
document.getElementById('wifi-name').textContent = 'Villa_Guest_Net';
document.getElementById('wifi-pass').textContent = 'fethiye2026';
document.getElementById('salter-note').innerHTML = '<b>Önemli Bilgiler:</b> Elektrik panosu balkondadır. Çöp saat 21:00 de alınır.';
</script>
</body>
</html>