﻿:root {
  --green-900: #1b5e20;
  --green-700: #2e7d32;
  --green-500: #66bb6a;
  --cream: #fff8e1;
  --gold: #ffc107;
  --text: #263238;
  --surface: #ffffff;
  --border-soft: #d4e0d2;
  --focus-ring: 0 0 0 3px rgba(46, 125, 50, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  line-height: 1.5;
  background: radial-gradient(circle at top right, #edf8ea 0, transparent 35%), var(--cream);
}

.malayalam {
  font-family: "Noto Sans Malayalam", sans-serif;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(120deg, var(--green-900), var(--green-700));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(4px);
}

.nav-wrap {
  padding: 0.8rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-weight: 600;
}

.brand-sub {
  opacity: 0.9;
  font-size: 0.85rem;
}

.main-nav {
  display: flex;
  gap: 1rem;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.main-nav a.active,
.main-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.hero-panel {
  margin-top: 1.2rem;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  background: url("../images/shops/backwater.svg") center/cover;
}

.home-hero {
  min-height: 340px;
}

.list-hero {
  min-height: 260px;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(27, 94, 32, 0.82), rgba(102, 187, 106, 0.28));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  color: #fff;
}

.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.2rem;
  align-items: center;
}

.eyebrow {
  color: #ffe082;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0;
}

.hero-content h1 {
  margin: 0.4rem 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.01em;
}

.hero-ml {
  margin: 0;
  color: #e2f7dd;
}

.hero-copy {
  margin-top: 0.7rem;
  max-width: 58ch;
  line-height: 1.6;
}

.search-card {
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.search-card label {
  font-weight: 500;
}

.search-card select,
.search-card input,
.search-card textarea,
.field select,
.review-form input,
.review-form select,
.review-form textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-card select,
.field select,
.review-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #5e6d73 50%), linear-gradient(135deg, #5e6d73 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1em + 1px), calc(100% - 13px) calc(1em + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.search-card select:focus,
.search-card input:focus,
.search-card textarea:focus,
.field select:focus,
.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: var(--focus-ring);
}

.search-card button,
.filter-bar button,
.btn-fill,
.review-form button {
  border: 0;
  border-radius: 10px;
  background: var(--green-900);
  color: #fff;
  padding: 0.7rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.search-card button:hover,
.filter-bar button:hover,
.btn-fill:hover,
.review-form button:hover {
  background: #144b18;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(20, 75, 24, 0.22);
}

.section-head-row {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-head-row a {
  color: var(--green-900);
  font-weight: 600;
}

.card-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.listing-card,
.details-card,
.reviews-panel,
.filter-bar,
.empty-state {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
  border: 1px solid rgba(33, 49, 38, 0.05);
}

.card,
.listing-body {
  padding: 1rem;
}

.card,
.listing-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.14);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}

.card-head h3 {
  margin: 0;
  line-height: 1.35;
  font-size: clamp(1.15rem, 2.3vw, 1.35rem);
  overflow-wrap: anywhere;
}

.badge {
  white-space: nowrap;
  background: rgba(255, 193, 7, 0.2);
  color: #6d4c41;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.muted {
  color: #59696f;
}

.rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: #48575d;
}

.stars {
  color: var(--gold);
}

.btn-outline {
  margin-top: 0.35rem;
  display: inline-block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  padding: 0.62rem;
  border-radius: 10px;
  border: 1px solid var(--green-900);
  color: var(--green-900);
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-outline:hover {
  background: var(--green-900);
  color: #fff;
  transform: translateY(-1px);
}

.filter-bar-wrap {
  margin-top: -18px;
  position: relative;
  z-index: 2;
}

.filter-bar {
  padding: 0.9rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem;
}

.field {
  flex: 1;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.listing-card {
  overflow: hidden;
}

.listing-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.icon {
  margin-right: 0.35rem;
}

.hidden {
  display: none;
}

.empty-state {
  margin-top: 1rem;
  padding: 1rem;
}

.details-shell {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.details-card,
.reviews-panel {
  padding: 1.1rem;
}

.details-card h1 {
  margin: 0.5rem 0 0.25rem;
  line-height: 1.25;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.detail-block {
  margin-top: 0.9rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.6rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e9dec2;
}

.map-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e9dec2;
}

.map-wrap iframe {
  width: 100%;
  height: 260px;
  border: 0;
}

.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.review-item {
  border: 1px solid #efe5ca;
  border-radius: 10px;
  padding: 0.8rem;
  background: #fffdf4;
}

.review-head {
  display: flex;
  justify-content: space-between;
}

.review-form {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.6rem;
}

.review-form textarea {
  resize: vertical;
  min-height: 100px;
}

@media (max-width: 1024px) {
  .cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col,
  .details-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .cols-4,
  .cols-3 {
    grid-template-columns: 1fr;
  }

  .main-nav {
    gap: 0.7rem;
    font-size: 0.95rem;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-content {
    padding: 1.3rem;
  }

  .home-hero {
    min-height: 300px;
  }
}

.card-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.45rem;
}

.card-actions .btn-fill,
.card-actions .btn-outline {
  width: 100%;
  text-align: center;
}

.card-actions .btn-fill {
  display: inline-block;
  text-decoration: none;
}

.card-actions .btn-outline {
  cursor: pointer;
  background: #fff;
  font-family: inherit;
}

.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 20, 0.5);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 94vw);
  max-height: 92vh;
  overflow: auto;
  margin: 3.5vh auto 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
}

.modal-close {
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.modal-header {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 0.95rem;
  padding: 1rem;
}

.modal-header img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e8ddc3;
}

.modal-header-body h3 {
  margin: 0.25rem 0;
  font-size: 1.45rem;
}

.modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 1rem 0.8rem;
  border-bottom: 1px solid #ecdfc0;
}

.modal-tab {
  border: 0;
  background: transparent;
  color: #5d6d73;
  font-weight: 600;
  padding: 0.45rem 0.6rem;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}

.modal-tab.active {
  color: #0f6f7a;
  border-bottom-color: #0f6f7a;
}

.modal-content-area {
  padding: 1rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.overview-card {
  border: 1px solid #ebdfc2;
  border-radius: 12px;
  padding: 0.8rem;
  background: #fffdf5;
}

.overview-card h4 {
  margin: 0 0 0.25rem;
}

.overview-card p {
  margin: 0;
  color: #1b5e20;
  font-weight: 600;
}

.overview-card small {
  color: #64757b;
}

@media (max-width: 720px) {
  .modal-header {
    grid-template-columns: 1fr;
  }

  .modal-header img {
    height: 190px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }
}
