/* ============================================
   MIRAVA HOSPITALITY — SHARED STYLESHEET
   Tropical & Fresh Theme
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  --primary:        #1B4332;
  --primary-mid:    #2D6A4F;
  --primary-light:  #40916C;
  --accent:         #52B788;
  --accent-light:   #95D5B2;
  --accent-pale:    #D8F3DC;
  --sand:           #F7F4EB;
  --sand-dark:      #EDE7D0;
  --gold:           #C9A84C;
  --gold-light:     #E8D5A0;
  --white:          #FFFFFF;
  --text-dark:      #1A2E1F;
  --text-mid:       #3D5247;
  --text-light:     #6B8070;
  --border:         #D4E6DA;
  --shadow-sm:      0 2px 8px rgba(27,67,50,0.08);
  --shadow-md:      0 6px 24px rgba(27,67,50,0.12);
  --shadow-lg:      0 12px 48px rgba(27,67,50,0.18);
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-xl:      32px;
  --transition:     all 0.3s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-mid); line-height: 1.75; }

/* ── Utility ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.text-center { text-align: center; }
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-villa   { background: #FFF3CD; color: #8B6914; }
.badge-hotel   { background: var(--accent-pale); color: var(--primary); }
.badge-cottage { background: #FDE8D0; color: #7A3B1E; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary-mid);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--primary-mid);
  border: 2px solid var(--primary-mid);
}
.btn-outline:hover {
  background: var(--primary-mid);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--primary-mid);
}
.btn-white:hover {
  background: var(--accent-pale);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: #a8862a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
}
.navbar.transparent {
  background: transparent;
}
.navbar.scrolled, .navbar.solid {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--primary-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.navbar.transparent .logo { color: var(--white); }
.navbar.transparent .logo-icon { background: rgba(255,255,255,0.2); }
.navbar.scrolled .logo,
.navbar.solid .logo   { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.navbar.transparent .nav-links a { color: rgba(255,255,255,0.9); }
.navbar.transparent .nav-links a:hover { color: var(--white); }
.navbar.scrolled .nav-links a,
.navbar.solid .nav-links a   { color: var(--text-mid); }
.navbar.scrolled .nav-links a:hover,
.navbar.solid .nav-links a:hover { color: var(--primary-mid); }
.nav-links a.active { color: var(--primary-mid) !important; font-weight: 600; }
.navbar.transparent .nav-links a.active { color: var(--white) !important; text-decoration: underline; text-underline-offset: 4px; }

.nav-cta {
  padding: 9px 22px !important;
  font-size: 0.88rem !important;
}
.navbar.transparent .nav-cta {
  background: rgba(255,255,255,0.18);
  color: var(--white) !important;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-md);
}
.navbar.transparent .nav-cta:hover {
  background: rgba(255,255,255,0.3);
}
.navbar.scrolled .nav-cta,
.navbar.solid .nav-cta {
  background: var(--primary-mid);
  color: var(--white) !important;
  border-radius: var(--radius-md);
}
.navbar.scrolled .nav-cta:hover,
.navbar.solid .nav-cta:hover { background: var(--primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.transparent .hamburger span { background: var(--white); }
.navbar.scrolled .hamburger span,
.navbar.solid .hamburger span    { background: var(--primary); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 24px;
  gap: 4px;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  padding: 12px 16px;
  color: var(--text-mid);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-menu a:hover { background: var(--accent-pale); color: var(--primary-mid); }
.mobile-menu a.active { background: var(--accent-pale); color: var(--primary-mid); font-weight: 600; }
.mobile-menu .mobile-cta {
  margin-top: 12px;
  background: var(--primary-mid);
  color: var(--white) !important;
  text-align: center;
  border-radius: var(--radius-md);
}

/* ── Page Hero (for inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 50%, var(--primary-light) 100%);
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::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='%2395D5B2' fill-opacity='0.08'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { color: var(--white); position: relative; z-index: 1; }
.page-hero p  { color: rgba(255,255,255,0.8); margin-top: 12px; font-size: 1.1rem; position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  position: relative; z-index: 1;
}
.breadcrumb a { color: var(--accent-light); }
.breadcrumb a:hover { color: var(--white); }

/* ── Section Headers ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 28px; height: 1.5px;
  background: var(--accent);
}
.section-title { color: var(--primary); margin-bottom: 14px; }
.section-sub   { color: var(--text-light); font-size: 1.05rem; max-width: 560px; }
.section-sub.center { margin: 0 auto; }

/* ── Property Cards ── */
.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.property-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.property-card-img .img-bg {
  width: 100%; height: 100%;
  transition: transform 0.5s ease;
}
.property-card:hover .img-bg { transform: scale(1.05); }
.property-card-img .badge-overlay {
  position: absolute;
  top: 16px; left: 16px;
}
.property-card-img .rating-overlay {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(0,0,0,0.55);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.property-card-body { padding: 20px; }
.property-card-body h3 {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.property-card-body .location {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.property-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.property-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.property-card-footer .price {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
}
.property-card-footer .price span {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
}

/* ── Property image gradients (by type) ── */
.img-bg-hotel   { background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #40916C 100%); }
.img-bg-villa   { background: linear-gradient(135deg, #0D2137 0%, #1A4A6B 50%, #2874A6 100%); }
.img-bg-cottage { background: linear-gradient(135deg, #4A2C0A 0%, #7D4F1A 50%, #B07B3E 100%); }
.img-inner {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.img-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='30' fill='rgba(255,255,255,0.04)'/%3E%3Ccircle cx='50' cy='50' r='15' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") repeat;
}
.img-icon { font-size: 3.5rem; position: relative; z-index: 1; opacity: 0.85; }

/* ── Footer ── */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 64px 24px 28px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand .logo-icon { background: rgba(255,255,255,0.15); }
.footer-brand p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--white); }
.footer-col .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.footer-col .contact-item span:first-child { flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  max-width: 1200px;
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--white); }

/* ── Forms ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}
.form-group label .req { color: #e05a5a; margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(82,183,136,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #A9BAB3; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B8070' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Radio group for type selection */
.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.radio-option {
  flex: 1;
  min-width: 100px;
}
.radio-option input[type="radio"] { display: none; }
.radio-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
}
.radio-option input[type="radio"]:checked + label {
  background: var(--accent-pale);
  border-color: var(--accent);
  color: var(--primary-mid);
}
.radio-option label:hover { border-color: var(--accent-light); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section    { padding: 64px 0; }
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .mobile-menu.open { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { padding: 11px 20px; font-size: 0.88rem; }
}
