@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Cairo:wght@400;600;700;800&family=Amiri:wght@400;700&display=swap');

/* ========================================================
   CESMEPANSIYON.COM - MEDITERRANEAN EDITORIAL THEME
   Anti-AI Slop, High RPM AdSense Layout, Full RTL Support
   100 Facilities Verified Directory
   ======================================================== */

:root {
  --color-sand-light: #FDFBF8;
  --color-sand-warm: #F5F1E9;
  --color-sand-border: #E5E0D8;
  --color-navy-deep: #0D1B2A;
  --color-navy-muted: #1E293B;
  --color-navy-soft: #334155;
  --color-blue-alacati: #1D4ED8;
  --color-blue-cobalt: #1E40AF;
  --color-terracotta: #C25E38;
  --color-terracotta-dark: #A54422;
  --color-stone-card: #FFFFFF;
  --color-stone-hover: #FAF7F2;
  --color-green-whatsapp: #25D366;
  --color-green-whatsapp-dark: #1EBE5D;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Cairo', 'Amiri', system-ui, sans-serif;
  --radius-card: 12px;
  --radius-badge: 6px;
  --shadow-subtle: 0 4px 20px -2px rgba(13, 27, 42, 0.05);
  --shadow-elevated: 0 10px 30px -4px rgba(13, 27, 42, 0.10);
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Setup */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-sand-light);
  color: var(--color-navy-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-sand-light);
  line-height: 1.6;
}

/* Arabic RTL Specific Typography & Layout */
[dir="rtl"] {
  font-family: var(--font-arabic) !important;
  text-align: right;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] .font-serif {
  font-family: 'Cairo', sans-serif !important;
  font-weight: 700;
  letter-spacing: normal;
}

/* Typography Helpers */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

/* Header & Navigation */
.header-glass {
  background: rgba(253, 251, 248, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-sand-border);
}

.brand-title {
  letter-spacing: -0.02em;
}

/* Search Box with Integrated Region Dropdown */
.hero-search-wrapper {
  background: #FFFFFF;
  border: 1px solid var(--color-sand-border);
  border-radius: 14px;
  box-shadow: 0 8px 30px -4px rgba(13, 27, 42, 0.08);
  transition: var(--transition-smooth);
}

.hero-search-wrapper:focus-within {
  border-color: var(--color-blue-alacati);
  box-shadow: 0 10px 35px -4px rgba(29, 78, 216, 0.15);
}

.search-region-select {
  background-color: var(--color-sand-warm);
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy-deep);
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  transition: var(--transition-smooth);
}

.search-region-select:hover {
  background-color: #EAE5DC;
}

/* Accommodation Cards */
.place-card {
  background: var(--color-stone-card);
  border: 1px solid var(--color-sand-border);
  border-radius: var(--radius-card);
  transition: var(--transition-smooth);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.place-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: #D1C9BE;
}

.place-card .card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #EAE5DC;
}

.place-card .card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.place-card:hover .card-thumb {
  transform: scale(1.05);
}

.place-card .region-tag {
  background-color: rgba(13, 27, 42, 0.88);
  color: #FFFFFF;
  backdrop-filter: blur(4px);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.place-card .type-tag {
  background-color: var(--color-sand-warm);
  color: var(--color-navy-muted);
  border: 1px solid var(--color-sand-border);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Action Buttons */
.btn-call {
  background-color: var(--color-navy-deep);
  color: #FFFFFF;
  transition: var(--transition-smooth);
}
.btn-call:hover {
  background-color: var(--color-blue-cobalt);
  color: #FFFFFF;
}

.btn-whatsapp {
  background-color: #E8F8EE;
  color: #128C7E;
  border: 1px solid #C4EED3;
  transition: var(--transition-smooth);
}
.btn-whatsapp:hover {
  background-color: var(--color-green-whatsapp);
  color: #FFFFFF;
  border-color: var(--color-green-whatsapp);
}

.btn-maps {
  background-color: var(--color-sand-warm);
  color: var(--color-navy-deep);
  border: 1px solid var(--color-sand-border);
  transition: var(--transition-smooth);
}
.btn-maps:hover {
  background-color: #EAE4D9;
  border-color: #D6CEBF;
}

/* ========================================================
   ADSENSE FIXED CONTAINERS (CLS PREVENTION & HIGH RPM)
   Guaranteed display, zero collapse, fallback visual design
   ======================================================== */

.ad-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 6px;
  text-align: center;
  font-weight: 700;
}

ins.adsbygoogle {
  display: block !important;
  max-width: 100% !important;
}

/* Header Leaderboard (728x90, 970x90, 320x100 Mobile) */
.ad-slot-header {
  width: 100%;
  max-width: 970px;
  min-height: 90px;
  margin: 1.25rem auto 1.5rem auto;
  padding: 8px;
  background-color: var(--color-sand-warm);
  border: 1px dashed #D6CEBF;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .ad-slot-header {
    min-height: 100px;
    max-width: 340px;
  }
}

/* Sticky Sidebar Banner (300x600 Half-Page) */
.ad-slot-sidebar {
  width: 300px;
  min-height: 600px;
  margin: 1.5rem auto 0 auto;
  padding: 8px;
  background-color: var(--color-sand-warm);
  border: 1px dashed #D6CEBF;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.sidebar-sticky-wrap {
  position: sticky;
  top: 90px;
  z-index: 10;
}

/* In-Feed Native Ad (Card Styled to match 12-item grid) */
.ad-slot-feed {
  background: #FCFAF6;
  border: 1px dashed #C8BFB2;
  border-radius: var(--radius-card);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ad-slot-feed .ad-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(203, 213, 225, 0.6);
  color: #475569;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

[dir="rtl"] .ad-slot-feed .ad-badge {
  right: auto;
  left: 12px;
}

/* Multiplex Ad Grid (Bottom 4-recommendation area) */
.ad-slot-multiplex {
  width: 100%;
  min-height: 250px;
  margin: 2.5rem 0 1.5rem 0;
  padding: 1.25rem;
  background-color: var(--color-sand-warm);
  border: 1px dashed #D6CEBF;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Mobile Sticky Bottom Anchor (320x50) */
.ad-slot-bottom-anchor {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: rgba(253, 251, 248, 0.98);
  border-top: 1px solid var(--color-sand-border);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .ad-slot-bottom-anchor {
    display: flex;
  }
  body {
    padding-bottom: 58px;
  }
}

/* Filter Controls */
.filter-btn-pill {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 500;
  border: 1px solid var(--color-sand-border);
  background-color: var(--color-stone-card);
  color: var(--color-navy-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn-pill:hover,
.filter-btn-pill.active {
  background-color: var(--color-navy-deep);
  color: #FFFFFF;
  border-color: var(--color-navy-deep);
}

.filter-btn-pill .count-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 9999px;
  background-color: rgba(0, 0, 0, 0.08);
  font-size: 0.72rem;
  margin-left: 4px;
}

[dir="rtl"] .filter-btn-pill .count-pill {
  margin-left: 0;
  margin-right: 4px;
}

.filter-btn-pill.active .count-pill {
  background-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Pagination Bar */
.page-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--color-sand-border);
  background-color: var(--color-stone-card);
  color: var(--color-navy-deep);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.page-btn:hover:not(:disabled) {
  background-color: var(--color-sand-warm);
  border-color: #D1C9BE;
}

.page-btn.active {
  background-color: var(--color-navy-deep);
  color: #FFFFFF;
  border-color: var(--color-navy-deep);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Editorial Guide Section */
.editorial-section {
  background-color: var(--color-sand-warm);
  border-top: 1px solid var(--color-sand-border);
  border-bottom: 1px solid var(--color-sand-border);
}

.editorial-section p {
  color: var(--color-navy-soft);
  margin-bottom: 1.25rem;
}

/* Modals */
.modal-overlay {
  background: rgba(13, 27, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.3s ease;
}

.modal-content-box {
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid var(--color-sand-border);
}

/* Badge Amenities */
.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: #F1ECE3;
  color: #475569;
  font-weight: 500;
}

/* Language Switcher */
.lang-link {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition-smooth);
  color: #64748B;
}

.lang-link:hover,
.lang-link.active-lang {
  color: var(--color-navy-deep);
  background-color: var(--color-sand-warm);
}

/* Print styles */
@media print {
  .header-glass,
  .ad-slot-header,
  .ad-slot-sidebar,
  .ad-slot-feed,
  .ad-slot-multiplex,
  .ad-slot-bottom-anchor,
  .pagination-container,
  #filter-sidebar {
    display: none !important;
  }
}
