/* ============================================
   Phu Quoc Apartment Rental - Custom Styles
   Extends Tailwind CDN with brand-specific CSS
   ============================================ */

/* --- CSS Variables (Brand Identity) --- */
:root {
  --color-primary: #0e7490;      /* Cyan-700 - ocean/tropical */
  --color-primary-dark: #155e75;  /* Cyan-800 */
  --color-primary-light: #22d3ee; /* Cyan-400 */
  --color-accent: #f59e0b;       /* Amber-500 - warm/sun */
  --color-accent-dark: #d97706;   /* Amber-600 */
  --color-dark: #1e293b;          /* Slate-800 */
  --color-text: #334155;          /* Slate-700 */
  --color-text-light: #64748b;    /* Slate-500 */
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;        /* Slate-50 */
  --color-bg-warm: #fffbeb;       /* Amber-50 */
  --color-border: #e2e8f0;        /* Slate-200 */
  --color-success: #10b981;       /* Emerald-500 */
  --color-whatsapp: #25d366;
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --transition: 0.2s ease;
}

/* --- Base Reset & Typography --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

/* --- GLOBAL MOBILE FIX: prevent horizontal overflow --- */
img, video, iframe, table, svg, canvas {
  max-width: 100%;
}

/* Force all inline styles with grid to wrap on mobile */
@media (max-width: 640px) {
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="display:flex"][style*="gap"] {
    flex-wrap: wrap !important;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.2;
  font-weight: 700;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  overflow-x: hidden;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-warm {
  background: var(--color-bg-warm);
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 0.5rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .header-inner { height: 4.5rem; }
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .logo { font-size: 1rem; gap: 0.375rem; }
  .logo svg { width: 22px; height: 22px; }
}

.logo span {
  color: var(--color-accent);
}

/* --- Navigation --- */
.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

.nav a {
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition);
}

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

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 40;
  overflow-y: auto;
  padding: 1.5rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.875rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--color-primary);
}

/* --- Language Switcher --- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.lang-switcher a {
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-light);
  transition: all var(--transition);
  text-transform: uppercase;
}

.lang-switcher a:hover {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

.lang-switcher a.active {
  background: var(--color-primary);
  color: white;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  overflow: hidden;
}

@media (max-width: 640px) {
  .hero { min-height: 70vh; padding: 2rem 0; }
  .hero h1 { font-size: 1.75rem !important; }
  .hero p { font-size: 1rem !important; }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.85) 0%, rgba(30, 41, 59, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.25rem;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 3.5rem; }
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero .trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  opacity: 0.85;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  min-height: 48px;
  line-height: 1;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-accent:hover {
  background: var(--color-accent-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

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

.btn-whatsapp:hover {
  background: #20ba5a;
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-white:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  min-height: 40px;
}

/* --- Cards --- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
}

.card-price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-light);
}

/* Card Grid */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid-2 { grid-template-columns: 1fr; }
.card-grid-3 { grid-template-columns: 1fr; }
.card-grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Section Headings --- */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .section-heading h2 { font-size: 2.25rem; }
}

.section-heading p {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* --- USP / Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.feature-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 116, 144, 0.1);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
}

.feature-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* --- Amenity Icons --- */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .amenity-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .amenity-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .amenity-grid { grid-template-columns: repeat(6, 1fr); }
}

.amenity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
}

.amenity-item svg {
  width: 2rem;
  height: 2rem;
  color: var(--color-primary);
}

.amenity-item span {
  font-size: 0.8125rem;
  color: var(--color-text);
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-table th,
.comparison-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.comparison-table th {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  white-space: nowrap;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: var(--color-bg-alt);
}

.comparison-table .highlight {
  background: var(--color-bg-warm);
  font-weight: 600;
}

/* Responsive table wrapper */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  max-width: 100%;
}

@media (max-width: 640px) {
  .comparison-table th,
  .comparison-table td,
  .pricing-table th,
  .pricing-table td {
    padding: 0.5rem 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

/* --- Reviews --- */
.review-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.review-stars {
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.review-text {
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  font-style: italic;
  line-height: 1.6;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.875rem;
}

.review-author-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.review-author-date {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-dark);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--color-bg-alt);
}

.faq-question svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--color-text-light);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* --- Breadcrumbs --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb .separator {
  color: var(--color-border);
}

.breadcrumb .current {
  color: var(--color-text);
  font-weight: 500;
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
}

.footer h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer a:hover {
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
}

/* --- Sticky WhatsApp Button (Mobile) --- */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 30;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.whatsapp-float svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: white;
}

/* --- Scroll to Top --- */
.scroll-top {
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  z-index: 29;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.scroll-top.visible {
  display: flex;
}

.scroll-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* --- Pricing Table --- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.pricing-table th {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
}

.pricing-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.pricing-table .best-value {
  background: var(--color-bg-warm);
  font-weight: 700;
}

/* --- Blog Article --- */
.article-content {
  max-width: 768px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content img {
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

/* --- Table of Contents --- */
.toc {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.toc h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.toc ol {
  padding-left: 1.25rem;
  margin: 0;
}

.toc li {
  margin-bottom: 0.375rem;
}

.toc a {
  font-size: 0.875rem;
  color: var(--color-text);
}

.toc a:hover {
  color: var(--color-primary);
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.filter-bar select {
  padding: 0.625rem 2rem 0.625rem 0.875rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white;
  color: var(--color-text);
  cursor: pointer;
  min-height: 48px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 01.708 0L8 10.293l5.646-5.647a.5.5 0 01.708.708l-6 6a.5.5 0 01-.708 0l-6-6a.5.5 0 010-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.filter-bar select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.1);
}

/* --- CTA Block --- */
.cta-block {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
}

.cta-block h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-block p {
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Badge / Tag --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  line-height: 1;
}

.badge-primary {
  background: rgba(14, 116, 144, 0.1);
  color: var(--color-primary);
}

.badge-accent {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-accent-dark);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

/* --- Map Container --- */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .map-container { height: 500px; }
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr) !important; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr !important; }
  .gallery-grid .gallery-item[style*="grid-column:span 2"] { grid-column: span 1 !important; }
  .gallery-grid .gallery-item[style*="grid-row:span 2"] { grid-row: span 1 !important; }
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* --- Utilities --- */
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-success { color: var(--color-success); }
.text-muted { color: var(--color-text-light); }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- Social Proof Bar --- */
.social-proof-bar {
  background: var(--color-primary);
  color: white;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  text-align: center;
  overflow: hidden;
}

.social-proof-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .social-proof-bar { font-size: 0.6875rem; padding: 0.375rem 0; }
  .social-proof-bar .container { gap: 0.5rem; }
}

/* --- Urgency Bar --- */
.urgency-bar {
  background: var(--color-bg-warm);
  border-bottom: 1px solid #fde68a;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--color-accent-dark);
  overflow: hidden;
}

@media (max-width: 480px) {
  .urgency-bar { font-size: 0.75rem; }
}

/* --- Hashtag Cloud --- */
.hashtag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.hashtag-cloud span {
  font-size: 0.75rem;
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  white-space: nowrap;
}

/* --- Quick Verdict Boxes --- */
.verdict-box {
  border-left: 4px solid;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.verdict-box p { margin: 0; }

.verdict-box--short { background: rgba(245,158,11,0.1); border-color: var(--color-accent); }
.verdict-box--medium { background: rgba(14,116,144,0.1); border-color: var(--color-primary); }
.verdict-box--long { background: rgba(16,185,129,0.1); border-color: var(--color-success); }
.verdict-box--best { background: rgba(139,92,246,0.1); border-color: #8b5cf6; }

/* --- Booking Quiz --- */
#booking-quiz label {
  transition: all var(--transition);
}

#booking-quiz label:hover {
  border-color: var(--color-primary-light);
  background: rgba(14, 116, 144, 0.03);
}

#booking-quiz input[type="radio"]:checked + span,
#booking-quiz label:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(14, 116, 144, 0.05);
}

/* ============================================
   MOBILE RESPONSIVE FIXES
   ============================================ */

@media (max-width: 640px) {
  /* Prevent ANY horizontal scroll */
  html, body { overflow-x: hidden !important; max-width: 100vw !important; }

  /* All sections full width */
  .section { padding: 2rem 0; }
  .section-heading h2 { font-size: 1.5rem; }

  /* Cards single column */
  .card-grid { grid-template-columns: 1fr !important; }
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr !important; }

  /* Feature grid 2 cols on mobile */
  .feature-grid { grid-template-columns: 1fr 1fr !important; gap: 0.75rem !important; }
  .feature-item { padding: 1rem 0.75rem; }
  .feature-item h3 { font-size: 0.875rem; }
  .feature-item p { font-size: 0.75rem; }

  /* Amenity grid */
  .amenity-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 0.5rem !important; }
  .amenity-item { padding: 0.5rem 0.25rem; }
  .amenity-item span { font-size: 0.6875rem; }
  .amenity-item svg { width: 24px; height: 24px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.75rem; }

  /* CTA block */
  .cta-block { padding: 2rem 1.25rem; }
  .cta-block h2 { font-size: 1.25rem; }

  /* Filter bar */
  .filter-bar { flex-direction: column; }
  .filter-bar select { width: 100%; }

  /* Buttons */
  .btn-lg { padding: 0.875rem 1.5rem; font-size: 0.9375rem; }

  /* Breadcrumb */
  .breadcrumb { font-size: 0.75rem; }

  /* Article content */
  .article-content h2 { font-size: 1.25rem; }
  .article-content h3 { font-size: 1.0625rem; }

  /* TOC */
  .toc { padding: 1rem; }
  .toc ol { padding-left: 1rem; }

  /* Hashtag cloud */
  .hashtag-cloud { gap: 0.375rem; }
  .hashtag-cloud span { font-size: 0.6875rem; padding: 0.1875rem 0.5rem; }

  /* WhatsApp float — not overlap content */
  .whatsapp-float { width: 3rem; height: 3rem; bottom: 1rem; right: 1rem; }
  .whatsapp-float svg { width: 1.5rem; height: 1.5rem; }

  /* Scroll top button */
  .scroll-top { width: 2.5rem; height: 2.5rem; bottom: 4.5rem; right: 1rem; }

  /* Images */
  img[style*="aspect-ratio:12/5"] { aspect-ratio: 16/9 !important; }

  /* Inline grids with 2fr 1fr */
  [style*="grid-template-columns:2fr 1fr"] { grid-template-columns: 1fr !important; }

  /* Price badges */
  .card-price { font-size: 1.125rem; }
  .card-price small { font-size: 0.6875rem; }

  /* Review cards */
  .review-card { padding: 1rem; }
  .review-text { font-size: 0.875rem; }

  /* Badge */
  .badge { font-size: 0.6875rem; }
}

@media (max-width: 375px) {
  .logo span { display: none; }
  .lang-switcher a { padding: 0.25rem 0.5rem; font-size: 0.6875rem; }
  .feature-grid { grid-template-columns: 1fr !important; }
  .amenity-grid { grid-template-columns: repeat(2, 1fr) !important; }
  h1 { font-size: 1.5rem !important; }
}

/* --- Print --- */
@media print {
  .header, .footer, .whatsapp-float, .scroll-top, .mobile-menu-btn {
    display: none !important;
  }
  body { color: #000; background: #fff; }
}
