/* STYLESHEET FOR CASA TOSCA JAVEA WEBSITE */
/* Site Colors*/
:root {
  --color-primary-1: #CEB3AA;       /* light pink */
  --color-primary-2: #D2BEBE;       /* lighter pink */
  --color-primary-3: #caa16c;       /* light stone */
  --color-primary-4: #f3edef;

  --background-color-1: #f4f7f4;    /* light sage */
  --background-color-2: #f8f1e6;    /* light stone */

  --text-color-1: #575757;          /* dark gray */
  --text-color-2: #8d8076;          /* light gray */
  --text-hover-color: #4E5869; /* desaturated blue for hover effects */

  --gap: clamp(16px, 2vw, 28px);
  --card-bg: #fff;
  --border: 1px solid #e7e7e7;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(0,0,0,.06);
  --brand: #0e7a6d;
  --text: #2a2a2a;
}

html {
    font-size: 100%;
}

body {
	background: var(--background-color-1); /* this is a light sage background color */
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	color: #333;
	font-family: Tahoma, Geneva, sans-serif;
	font-size: 1.5rem;
	line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, p {
	margin-top: 20px;	 /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
	padding-right: 20px;
	padding-left: 30px;
}


h1 {
	font-size: 1.6rem;
	text-align: center;
}

h2 {
	font-size: 1.6rem;
	text-align: center;
}

h3 {
	font-size: 1.3rem;
}

h4 {
	font-size: 1.1rem;
}

h5 {
	font-size: 1.1rem;
}

h6 {
	font-size: 1rem
}

a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
	border: none;
}

/* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
a:link {
	text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
}

a:visited {
	color: #4E5869;
	text-decoration: underline;
}
a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
	text-decoration: none;
	color:#4E5869;
}

/* LOGO AND NAV MENU _ GENERAL */
.casatosca-logo {
    width: 120px;
    height: auto;
    padding-top: 10px;
}

.nav-menu {
    display: flex;
    gap: 15px;
    list-style: none;
    background: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.nav-menu li a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.nav-menu li a:hover {
    color: #666;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: var(--background-color-2); /* light stone background */
  position: relative;
}

/* Hamburger button - hidden on large screens */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #333;
}

/* Show APARTMENT NAV ON APARTMENT PAGES */
.apt-nav {
  position: sticky;
  top: 0;
  background-color: #f8f1e6;
  z-index: 1000;
  padding: 0.5rem 1rem;
  border-bottom: 2px solid #caa16c;
}

.apt-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.apt-nav li a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #caa16c;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1rem;
}

.apt-nav li a:hover {
  background-color: #b8914f;
  transform: translateY(-2px);
}

/* LANGUAGE SWITCHER STYLES - FLAGS*/
.lang-switcher {
  display: flex;
  align-items: center;
  padding-left: 10px;
  padding-right: 10px;
}

.flag {
  width: 40px;
  height: auto;
  max-height: 40px;
  margin-left: 8px;
  vertical-align: middle;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lang-switcher img.flag:hover {
  transform: scale(1.1);
}

/* HERO CONTENT OR SECTION */
.hero-content {
	justify-content: center;
	align-items: center;
	text-align: center;
	color: #033
}

.hero-img-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  max-height: 400px;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-activities {
  background-image: url('/images/og/activities-OG.jpg');
  background-size: cover;
  background-position: center;
  padding: 6rem 2rem;
  color: white;
  text-align: center;
}

.hero-apt-ca {
  background-image: url('/images/gallery/ca/19-6-interior-01.jpg');
  background-size: cover;
  background-position: center;
  padding: 6rem 2rem;
  color: white;
  text-align: center;
}

.enq-now-btn {
	background-color: #c3bdb4; /* light stone background */
	color: #333; /* dark text color */
	border: 2px solid #333; /* dark border */
	padding: 10px 20px;
	text-align: center;
	text-decoration: none;
	font-weight: bold;
	border-radius: 5px; /* Optional: smooth edges */
	transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effect */
}

/* base button look */
.btn-consulta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  background: #0f6;
  color: #0a0a0a;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  transition: transform .08s ease, box-shadow .2s ease;
}
.btn-consulta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }

/* container alignment */
.booking-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding-right: 12px;
  font-size: 1rem;
}

.cta.secondary {
  background-color: #0071c2; /* Booking blue */
}
.cta.secondary:hover {
  background-color: #005b99;
}

/* ENQUIRY FORM CONTENT STYTLING */
.enquiry-page {
  background-color: #f9f9f9;
  padding: 2rem;
}

.enquiry-page .enquiry-content {
  max-width: 800px;
  margin: auto;
  background: white;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

label {
  display: block;
  margin-top: 1.2rem;
  font-weight: bold;
}

input, select {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.apart-row, .form-row {
  margin-top: 2rem;
}

button.submit-btn {
  margin-top: 1.5rem;
  padding: 0.7rem 1.5rem;
  background-color: #444;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button.submit-btn:hover {
  background-color: #666;
}

/* MAP & CALENDAR SECTION – Responsive Grid Layout */
.calendar {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns on large screens */
  gap: 2rem;
  padding: 2rem 1rem;
  justify-items: center; /* centers cards horizontally */
  align-items: start;
  box-sizing: border-box;
}

/* STYLING FOR THE MAP PAGE AND HOW TO GET THERE */
/* Full-width MAP SECTION */
.map-section {
  width: 100%;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

/* MAP + CALENDAR LAYOUT (used on index.html) */
/* ================================
   MAP SYSTEM — UNIFIED
================================ */

/* INDEX (2-column layout) */
.map-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 30px 10px;
}

.map-panel,
.calendar-panel {
  flex: 1 1 600px;
  min-width: 300px;
}

.map-iframe,
.calendar-iframe {
  width: 100%;
  height: 500px !important;
  border: 0;
  border-radius: 8px;
}

/* MAPA PAGE (full-width map) */
.map-full {
  padding: 20px 10px;
  max-width: 1100px;
  margin: 0 auto;
}

.map-full .map-iframe {
  width: 100%;
  height: 500px;
  border: 0;
  border-radius: 8px;
}

/* Instructions below the map */
.instructions-panel {
  padding: 20px 10px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.instructions-panel p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Container keeps it responsive */
.calendar-embed {
  position: relative;
  width: 100%;
  /* Month grids need more vertical room than agenda view */
  min-height: 700px;
  border-radius: 8px;
  overflow: hidden;
}

.calendar-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
  padding-left: 10px;
}

.apt-link {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}

/* Colors matching your calendar colors */
.apt-link.blue   { background: #4285F4; }  /* Google blue */
.apt-link.yellow { background: #F6BF26; }  /* Calendar yellow */
.apt-link.red    { background: #D50000; }  /* Calendar red */
.apt-link.orange { background: #EF6C00; }  /* Calendar orange */
.apt-link.green  { background: #0B8043; }  /* Calendar green */

.apt-link:hover {
  opacity: 0.85;
}

/* Apartments Grid used in Photo Gallery page – Responsive Columns */
.apt-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  gap: 20px;
  background: linear-gradient(to bottom, #fdf7f1, #f8f1e6);
  border-top: 2px solid #c7aa8a;
  border-bottom: 2px solid #c7aa8a;
}

.apartment-gallery {
  flex: 1 1 calc(33.33% - 20px);
  max-width: calc(33.33% - 20px);
  background-color: #f8f1e6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  position: relative;
  margin-bottom: 20px;
}

.apt-card {
  position: relative;
  overflow: hidden;
}

.apt-card p {
    font-size: 1rem;
    padding: 0 8px;
  }

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


.apt-card:hover {
  transform: translateY(-5px);
}


/* Caption Overlay */
.apt-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.10)
  );                             
  /* soft top bar that fades */
  -webkit-backdrop-filter: saturate(110%) blur(1px);
  z-index: 2;
  backdrop-filter: saturate(110%) blur(1px);
  pointer-events: none; /* allows clicks to pass through to the image */
}

/* CAPTION STYLING */

.caption h3 {
	font-size: 1.1rem;
}

.caption h3, .caption p {
    margin: 5px 0;
}

/* RESENAS - REVIEWS SECTION */
.section-reviews {
  background-color: #f8f1e6;
  padding: 3rem 1rem;
  text-align: center;
}

.section-reviews h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #4b3d33;
}

.review-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.review-card {
  background: #fff;
  border: 1px solid #e1d2be;
  border-radius: 10px;
  padding: 1.2rem;
  max-width: 300px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-style: italic;
}

.review-card cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.9rem;
  color: #777;
}

.review-source i {
  color: #caa16c;
  margin-right: 5px;
}

.btn-secondary {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.4rem 0.9rem;
  background-color: #caa16c;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.asterisk-note {
  list-style: none;
  padding: 0;
  margin: 1rem auto;
  font-size: 1rem;
  color: #4b3d33;
  max-width: 600px;
  text-align: center;
}

.asterisk-note li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.asterisk-note i {
  color: #caa16c;
  font-size: 1.1rem;
}

/* STYLING FOR THE APARTMENT PAGES */
.apartment-page {
  color: var(--text);
}

/* 1) Two-column detail area: calendar (left) + info (right) */
.apartment-details {
  display: grid;
  grid-template-columns: 2fr 1fr;   /* calendar wider */
  gap: var(--gap);
  align-items: start;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.apartment-calendar,
.apartment-info {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Calendar iframe behaves responsively */
.apartment-calendar iframe {
  display: block;
  width: 100%;
  min-height: 540px;               /* adjust to your widget */
  border: 0;
}

/* Info panel styling */
.apartment-info {
  padding: clamp(16px, 2.2vw, 24px);
}

.apartment-info h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 1.6vw, 1.6rem);
}

.apartment-info .amenities {
  list-style: none;
  padding: 0;
  margin: 12px 0 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  font-size: .90rem;
}

.apartment-info .short-desc {
  margin: 0 0 16px;
  line-height: 1.5;
}

.apartment-info .cta {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  transition: transform .08s ease, box-shadow .2s ease;
}
.apartment-info .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0,0,0,.15);
}

/* AMENITIES STYLES FOR ALL ICONS ON ONE LINE DESKTOP*/
.amenities-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap; /* forces one line */
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.amenities-row li {
  font-size: 1.4rem; /* icon size */
}

.amenities-row li i {
  color: #444;
}

/* FOOTER STYLES */

footer {
  background-color: #f8f1e6;
  padding: 3rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  border-top: 2px solid #caa16c;
  color: #4b3d33;
  font-size: 1rem;
}

.footer-col {
  flex: 1 1 200px;
  margin: 1rem;
  min-width: 220px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #7a5c3c;
  border-bottom: 2px solid #caa16c;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-col li i {
  margin-right: 8px;
  color: #caa16c;
}

.footer-col a {
  text-decoration: none;
  color: #4b3d33;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #7a5c3c;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  font-size: 1.8rem;
  padding: 12px 16px;
  border-radius: 50%;
  z-index: 999;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:hover {
  background-color: #1ebd5b;
}
.footer-bottom {
  width: 100%;
  text-align: center;
  padding-top: 2rem;
  font-size: 0.9rem;
  color: #7a5c3c;
  border-top: 1px solid #d9cbb8;
  margin-top: 2rem;
}

address {
  font-size: 1.2rem;
  color: #4b3d33;
  margin-top: 10px;
}

/* PRECIOS/PRICES PAGE ONLY SECTION */
.price-card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2rem 0;
}

.price-card {
  width: calc(33% - 20px);
  min-width: 260px;
  background-color: #fffefc;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 1.5rem 1rem;
  margin: 1rem 0;
  text-align: left;
  transition: transform 0.3s ease;
  border-left: 5px solid #caa16c;
}

.price-card:hover {
  transform: translateY(-5px);
}

.price-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #4b3d33;
}

.price-range {
  font-weight: bold;
  font-size: 1rem;
  color: #00796b;
  margin-bottom: 0.5rem;
}

.price-card ul.features {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.price-card ul.features li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #444;
}

.price-card ul.features li i {
  color: #caa16c;
}

/* STYLING FOR THE APARTMENT PHOTO GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

/* Use natural aspect ratio from HTML width/height */
.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

/* Panorama images you INTENTIONALLY want wide */
.gallery img.panorama {
  grid-column: 1 / -1;
  height: auto;
}

.gallery img:hover {
  transform: scale(1.02);
}

/* Apartment Gallery (responsive + last image full-width) */
.apt-gallery {
  flex: 1 1 calc(50% - 20px); /* 2 columns */
  max-width: calc(50% - 20px);
  gap: 12px;
  margin-top: 20px;
}

/* Images scale nicely without distortion */
.apt-gallery .img-grid-item {
  width: 100%;
  height: auto;                 /* keep original aspect ratio */
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Make the LAST image span all columns (so it sits alone on its row) */
.apt-gallery > img:last-child {
  grid-column: 1 / -1;
}

.list-activities {
  margin-top: 3rem;
}
/*STYLES FOR THE ACTIVITIES PAGE ONLY */
/* Main container */
.fiestas-calendar {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Main title */
.fiestas-calendar h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #003366;
  font-size: 2rem;
}

/* Accordion items */
.fiestas-calendar details {
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 5px 12px;
  background: #fafafa;
}

.fiestas-calendar summary {
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: #b00000;
  outline: none;
}

.fiestas-calendar summary::-webkit-details-marker {
  display: none;
}

.fiestas-calendar details[open] {
  background: #fff2ee;
  border-color: #d9a0a0;
}

.fiestas-calendar ul {
  margin-left: 20px;
  margin-top: 10px;
}
/*STYLES FOR THE ACTIVITIES PAGE ONLY */
/* Reusable activity blocks + imagery */
.activity-section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.activity-header h2 {
  margin: 0 0 12px;
  font-size: 1.6rem;
  color: #003366;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.activity-figure {
  margin: 8px 0 14px;
}
.activity-figure.sm { /* smaller top banner for the fiestas section */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.activity-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;        /* maintains consistent crop */
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.activity-figure figcaption {
  font-size: .9rem;
  color: #666;
  margin-top: 6px;
  text-align: center;
}

.activity-links {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 6px;
}

.activity-links li a {
  color: #0a4a8a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* END OF GENERAL STYLES - START OF MEDIA QUERIES FOR RESPONSIVE DESIGN */

/* Optional: XL screens (1200px and up) */
@media (min-width: 1200px) {
  .apt-box {  
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    }
    /* wide layout tweaks */
  .apt-card {
    flex: 1 1 calc(33% - 20px);
    max-width: calc(33% - 20px);
    }

  .apt-card img {
    height: 400px;
    width: auto
    }

  .apartment-details {
    grid-template-columns: 1.5fr 1fr; /* slightly tighter on tablets */
    }
  .apt-gallery { grid-template-columns: repeat(8, 1fr); 
  }

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

/* RESPONSIVE DESIGN - MAP/CAL  side-by-side layout - Used in Index page */
@media (min-width: 900px) {

  .amenity-item {
	font-size: 1.1rem;
	padding: 10px;
	line-height: 1.2rem;
  }
 
}  /*end of media query section for Map/Cal */

@media (min-width: 769px) and (max-width: 1199px) {
  
  .nav-menu i {
    display: none; /* hides the Font Awesome icons */
  }

  .casatosca-logo {
    width: 120px; /* Example larger size for medium screens */
  }

  .apt-box {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(to bottom, #fdf7f1, #f8f1e6);
    border-top: 2px solid #c7aa8a;
    border-bottom: 2px solid #c7aa8a;
    align-items: stretch;
  }

  .apt-card  {
    flex: 1 1 calc(50% - 20px); /* 2 columns */
    max-width: calc(50% - 20px);
  }

  .apt-card img {
    height: 300px; /* Adjusted height for smaller screens */
  }

  .apt-card p {
    font-size: .75rem;
    padding: 0 8px;
  }

  .calendar {
    grid-template-columns: repeat(2, 1fr);
  }

   /* STYLING FOR THE Activities Page - List of activities */

  .fiestas-calendar details {
    background: #fff;
    border: none;
    padding: 0;
  }

  /* Replace details/summary with headings (desktop) */
  .fiestas-calendar .month-desktop h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #b00000;
  }

  .fiestas-calendar details,
  .fiestas-calendar summary {
    display: none; /* hide accordion on desktop */
  }
  /* Optional: image + text side-by-side for variety */
  .activity-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
  }
  .activity-section .activity-header {
    grid-column: 1 / -1; /* header full width */
  }
  #beaches .activity-figure,
  #hikes .activity-figure,
  #restaurants .activity-figure,
  #bikes-boats .activity-figure {
    grid-column: 1 / 2;
  }
  
  footer {
    justify-content: space-between;
  }

  .footer-col {
    flex: 1 1 calc(50% - 40px); /* 2 columns */
    max-width: calc(50% - 40px);
  }
}

/* END OF MEDIA QUERY FOR MEDIUM SCREENS (TABLETS) */

/* MEDIA QUERY GENERAL - 768px NAV MENU_LOGO_TITLES*/
@media (max-width: 768px) {

  body {
        font-size: 1.2rem;
    }
    h1, h2 {
        padding-left: 0;
        padding-right: 0;
    }
    h1 {
        font-size: 1.4rem;
        padding-top: 8%;
    }
    h2 {
        font-size: 1.3rem;
    }
  .casatosca-logo {
        width: 100px; /* Example smaller size */
    }

  .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    /* NAV MENU ON SMALL SCREENS */
  .nav-menu {
    display: none;
    flex-wrap: wrap;
    justify-content: space-evenly;
    background-color: #f8f1e6;
    padding: 10px 0;
    position: absolute;
    top: 60px; /* adjust depending on header height */
    left: 0;
    right: 0;
    z-index: 10;
    text-align: center;
    gap: 10px;
  }
  .nav-menu li {
      width: 45%; /* each nav item takes about half the width */
  }

  /* When .show is added, display it */
  .nav-menu.show {
  display: flex;
  }
  .hamburger {
      display: block;
      position: absolute;
      top: 20px;
      right: 20px;
  }

  .apt-nav ul {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  }

  .btn-secondary {
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  }

  /* APT CAPTION ON INDEX PAGE */
  .apt-caption {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }


  /* SNMALL SCREENS - Flag size adjustment */
 .lang-switcher {
    justify-content: center;
    width: 100%;
    padding: 10px 0;
  }

  .hero-content p {
    font-size: 1rem;
    padding: 0 10px;
  }
  /* RESPONSIVE DESIGN - FOR MAP AND CAL. */
  .calendar {
    grid-template-columns: 1fr;
  }
  .map,
  .calendar {
      max-width: 100%;
    }
  
  .calendar-embed { 
    max-height: 800px; 
    }
    
  .calendar h4 {
    font-size: .9rem;
    padding: 0px;
  }

  /* Apartment section INDEX.HTML for small devices */

  .apt-box {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
  }
  
  .apt-card {
    flex: 1 1 calc(100%); /* 1 column by default */
    max-width: 100%;
    margin-bottom: 20px;
  }

  .apt-card img {
    height: 300px; /* Adjusted height for smaller screens */
  }

  .apartments p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .apt-card p {
    font-size: .70rem;
    padding: 0 5px;
  }

  .amenity-item {
    font-size: .9rem;
    padding: 5px 10px;
    line-height: .7rem;
  }

  .asterisk-note {
    font-size: 0.85rem;
  }

    /* Apartment pages No1 to No5 Stack details: show INFO first (so guests see key details before the calendar). 
     Swap the order if you prefer calendar first. */
  .apartment-details {
    grid-template-columns: 1fr;
  }
  .apartment-info { order: 1; }
  .apartment-calendar { order: 2; }
  
  .apt-gallery { 
    grid-template-columns: repeat(6, 1fr);
  }
  .apt-gallery img { 
  grid-column: span 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  }
  /* Activities Page - List of activities */
  .month-desktop {
    display: none;
  }
  /* STYLING FOR THE Activities Page  */

/* Reusable activity blocks + imagery */
  .activity-section {
    margin: 28px auto;
  }
  .activity-header h2 {
    font-size: 1.35rem;
  }
  
  footer {
    flex-direction: column;
    text-align: center;
    justify-content: space-between;
  }

  .footer-col {
    margin: 1.5rem auto;
    max-width: 100%;
  }

}
