body,form,figure{margin:0;padding:0}img{border:0}header,footer,nav,section,aside,article,figure,figcaption{display:block}body{font-size:100.01%}select,input,textarea{font-size:99%}#container,.inside{position:relative}#main,#left,#right{float:left;position:relative}#main{width:100%}#left{margin-left:-100%}#right{margin-right:-100%}#footer{clear:both}#main .inside{min-height:1px}.ce_gallery>ul,.content-gallery>ul{margin:0;padding:0;overflow:hidden;list-style:none}.ce_gallery>ul li,.content-gallery>ul li{float:left}.ce_gallery>ul li.col_first,.content-gallery>ul li.col_first{clear:left}.float_left,.media--left>figure{float:left}.float_right,.media--right>figure{float:right}.block{overflow:hidden}.media{display:flow-root}.clear,#clear{height:.1px;font-size:.1px;line-height:.1px;clear:both}.invisible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.custom{display:block}#container:after,.custom:after{content:"";display:table;clear:both}
@media (max-width:767px){#wrapper{margin:0;width:auto}#container{padding-left:0;padding-right:0}#main,#left,#right{float:none;width:auto}#left{right:0;margin-left:0}#right{margin-right:0}}img{max-width:100%;height:auto}.audio_container audio{max-width:100%}.video_container video{max-width:100%;height:auto}.aspect,.responsive{position:relative;height:0}.aspect iframe,.responsive iframe{position:absolute;top:0;left:0;width:100%;height:100%}.aspect--16\:9,.responsive.ratio-169{padding-bottom:56.25%}.aspect--16\:10,.responsive.ratio-1610{padding-bottom:62.5%}.aspect--21\:9,.responsive.ratio-219{padding-bottom:42.8571%}.aspect--4\:3,.responsive.ratio-43{padding-bottom:75%}.aspect--3\:2,.responsive.ratio-32{padding-bottom:66.6666%}.aspect--9\:16,.responsive.ratio-916{padding-bottom:177.7777%}.aspect--1\:1,.responsive.ratio-11{padding-bottom:100%}
/* ===================================
   Algarve-Sol Rental Bundle
   Inspired by traum-ferienwohnungen.de
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');

:root {
  --color-primary: #1a5f7a;
  --color-accent: #fdc400;
  --color-accent-hover: #e5b200;
  --color-success: #0d7c4f;
  --color-text: #212121;
  --color-text-secondary: #5f5f5f;
  --color-text-light: #888;
  --color-bg: #ffffff;
  --color-bg-light: #f8f8f8;
  --color-bg-warm: #fef4ef;
  --color-border: #e0e0e0;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.14);
  --max-width: 1200px;
  --font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.5;
  margin: 0;
  background: var(--color-bg);
}

/* === HEADER === */
#header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* === NAVIGATION === */
.mod_navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
}

.mod_navigation li a,
.mod_navigation li strong {
  display: block;
  padding: 0.875rem 1.25rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 700;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.mod_navigation li a:hover { color: var(--color-primary); background: var(--color-bg-light); }
.mod_navigation li strong.active { color: var(--color-primary); border-bottom: 3px solid var(--color-accent); }

/* === BREADCRUMB === */
.mod_breadcrumb { background: var(--color-bg-light); border-bottom: 1px solid var(--color-border); }
.mod_breadcrumb ol, .mod_breadcrumb ul {
  list-style: none; margin: 0; padding: 0.5rem 1rem;
  display: flex; gap: 0.25rem; font-size: 0.8125rem; color: var(--color-text-light);
  max-width: var(--max-width); margin: 0 auto; padding: 0.5rem 1rem;
}
.mod_breadcrumb li::after { content: '\203A'; margin-left: 0.5rem; color: #ccc; }
.mod_breadcrumb li:last-child::after { display: none; }
.mod_breadcrumb a { color: var(--color-text-secondary); text-decoration: none; }
.mod_breadcrumb a:hover { color: var(--color-primary); }

/* === MAIN === */
.wrapper { min-height: 100vh; display: flex; flex-direction: column; }
main .inside, .main-content .inside {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* === HERO BANNER === */
.hero-banner {
  position: relative;
  height: 420px;
  background: linear-gradient(135deg, #0a4a6e 0%, #1a5f7a 40%, #2980b9 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-banner__bg {
  position: absolute; inset: 0;
  background: url('/files/theme/img/hero-algarve.jpg') center 40% / cover;
  opacity: 0.35;
}
.hero-banner__content {
  position: relative; z-index: 2; text-align: center; color: #fff;
  padding: 2rem 1rem; max-width: 700px;
}
.hero-banner__title {
  font-size: 2.25rem; font-weight: 900; margin: 0 0 0.75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-banner__subtitle { font-size: 1.125rem; margin: 0 0 1.5rem; opacity: 0.9; }

/* === SEARCH WIDGET === */
.search-widget {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  padding: 1rem; max-width: 900px;
  margin: -2rem auto 2rem; position: relative; z-index: 10;
}
.search-widget__form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.search-widget__field { flex: 1; min-width: 140px; }
.search-widget__field label {
  display: block; font-size: 0.6875rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-text-light);
  margin-bottom: 0.25rem;
}
.search-widget__field input,
.search-widget__field select {
  width: 100%; height: 2.75rem; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm); padding: 0 0.75rem;
  font-size: 0.9375rem; font-family: var(--font-family);
}
.search-widget__field input:focus,
.search-widget__field select:focus {
  border-color: var(--color-accent); outline: none;
  box-shadow: 0 0 0 3px rgba(253,196,0,0.15);
}

.btn--search, .search-widget__submit button {
  height: 2.75rem; padding: 0 2rem; background: var(--color-accent);
  color: var(--color-text); border: none; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 900; cursor: pointer; transition: background 0.2s;
}
.btn--search:hover { background: var(--color-accent-hover); }

/* === TRUST BAR === */
.trust-bar {
  display: flex; justify-content: center; gap: 3rem; padding: 2rem 1rem;
  background: var(--color-bg-light); border-bottom: 1px solid var(--color-border); flex-wrap: wrap;
}
.trust-bar__item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--color-text-secondary); }
.trust-bar__icon {
  width: 2.5rem; height: 2.5rem; background: var(--color-accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0;
}
.trust-bar__text strong { display: block; color: var(--color-text); font-size: 0.9375rem; }

/* === SECTION HEADINGS === */
.section-heading { font-size: 1.5rem; font-weight: 900; margin: 2.5rem 0 1.25rem; }
.section-heading--center { text-align: center; }

/* === REGION TILES === */
.region-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.region-tile {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3; background: linear-gradient(135deg, #ccd5e0, #a8b8c8);
}
.region-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.region-tile__bg { position: absolute; inset: 0; transition: transform 0.4s; }
.region-tile:hover img,
.region-tile:hover .region-tile__bg { transform: scale(1.08); }
.region-tile__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.25rem; color: #fff; text-decoration: none;
}
.region-tile__name { font-size: 1.125rem; font-weight: 900; margin: 0; }
.region-tile__count { font-size: 0.8125rem; opacity: 0.85; }

/* === THEME TILES (search filters) === */
.theme-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
}
.theme-tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.3s, transform 0.3s;
}
.theme-tile:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.theme-tile__image {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: #e8e8e8;
  transition: transform 0.5s;
}
.theme-tile:hover .theme-tile__image { transform: scale(1.04); }
.theme-tile__body {
  flex: 1;
  padding: 1.125rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.theme-tile__title {
  margin: 0 0 0.375rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a5f7a;
  line-height: 1.25;
}
.theme-tile__subtitle {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #5f5f5f;
  line-height: 1.4;
  flex: 1;
}
.theme-tile__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
  font-size: 0.8125rem;
}
.theme-tile__count {
  color: #888;
  font-weight: 700;
}
.theme-tile__cta {
  color: #1a5f7a;
  font-weight: 700;
  transition: transform 0.15s;
}
.theme-tile:hover .theme-tile__cta {
  transform: translateX(4px);
}

/* === ACTIVE FILTERS (on list page) === */
.rental-list-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 1rem 0 1.5rem;
  padding: 0.75rem 1rem;
  background: #f5f5f5;
  border-radius: 0.5rem;
}
.rental-list-filters__label {
  font-weight: 700;
  color: #5f5f5f;
  font-size: 0.875rem;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: #1a5f7a;
  color: #fff;
  border-radius: 1rem;
  font-size: 0.8125rem;
  text-decoration: none;
}
.filter-chip__remove {
  opacity: 0.7;
  font-weight: 700;
}
.filter-chip:hover .filter-chip__remove { opacity: 1; }
.rental-list-filters__clear {
  margin-left: auto;
  color: #1a5f7a;
  text-decoration: underline;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .theme-tiles { gap: 1rem; }
  .theme-tile__body { padding: 1rem; }
  .theme-tile__title { font-size: 1rem; }
  .theme-tile__subtitle { font-size: 0.8125rem; margin-bottom: 0.75rem; }
}

/* === PROPERTY TYPE CIRCLES === */
.property-types { display: flex; gap: 2rem; justify-content: center; padding: 2rem 0; flex-wrap: wrap; }
.property-type { text-align: center; text-decoration: none; color: var(--color-text); transition: transform 0.2s; }
.property-type:hover { transform: translateY(-4px); }
.property-type__icon {
  width: 5rem; height: 5rem; border-radius: 50%;
  background: var(--color-bg-light); border: 2px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.5rem; font-size: 2rem; transition: border-color 0.2s;
}
.property-type:hover .property-type__icon { border-color: var(--color-accent); background: #fffbeb; }
.property-type__label { font-size: 0.8125rem; font-weight: 700; }

/* === PROPERTY CARDS === */
.vacation-rentals-list { margin: 1.5rem 0; }
.vacation-rentals-list .row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.vacation-rentals-list .col-md-4 { width: 100%; }

.rental-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card); transition: box-shadow 0.3s, transform 0.3s;
  height: 100%; display: flex; flex-direction: column;
}
.rental-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }

.rental-card .rental-image {
  position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; background: #eee;
}
.rental-card .rental-image img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s;
}
.rental-card:hover .rental-image img { transform: scale(1.06); }
.rental-card .rental-image a { display: block; width: 100%; height: 100%; }

.rental-card .rental-image--placeholder {
  background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
  display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 2.5rem;
}

/* Type badge on image */
.rental-card .rental-type {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: rgba(255,255,255,0.92); color: var(--color-text);
  font-size: 0.6875rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 0.25rem 0.625rem; border-radius: 2rem; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); z-index: 2;
}

/* Wishlist heart */
.rental-card .rental-wishlist {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 2.25rem; height: 2.25rem; background: rgba(255,255,255,0.85);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.125rem; transition: background 0.2s, transform 0.2s;
  z-index: 2; border: none; color: #999;
}
.rental-card .rental-wishlist:hover { background: #fff; transform: scale(1.1); color: #e74c3c; }

.rental-card .rental-header { padding: 0; background: none; min-height: 0; }

.rental-card .rental-content { flex: 1; padding: 1rem 1.25rem; }
.rental-card .rental-content h3 { margin: 0 0 0.25rem; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.rental-card .rental-content h3 a { color: var(--color-text); text-decoration: none; }
.rental-card .rental-content h3 a:hover { color: var(--color-primary); }

.rental-card .rental-location {
  font-size: 0.8125rem; color: var(--color-text-secondary); margin: 0 0 0.75rem;
  display: flex; align-items: center; gap: 0.25rem;
}
.rental-card .rental-location::before { content: '\1F4CD'; font-size: 0.75rem; }

.rental-card .rental-capacity {
  font-size: 0.8125rem; color: var(--color-text-secondary); margin: 0 0 0.5rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}

.rental-card .rental-teaser {
  font-size: 0.875rem; color: var(--color-text-secondary); line-height: 1.45;
  margin: 0.5rem 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.rental-card .rental-footer {
  padding: 0.875rem 1.25rem; border-top: 1px solid #f0f0f0;
  display: flex; align-items: center; justify-content: space-between;
}
.rental-card .rental-price { font-size: 1rem; font-weight: 900; }
.rental-card .rental-price small { font-weight: 400; font-size: 0.75rem; color: var(--color-text-light); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.5rem; border-radius: var(--radius-sm); text-decoration: none;
  font-weight: 700; font-size: 0.875rem; font-family: var(--font-family);
  transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary, .btn--primary { background: var(--color-accent); color: var(--color-text); }
.btn-primary:hover, .btn--primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); text-decoration: none; }
.btn--secondary { background: var(--color-bg-light); color: var(--color-text); border: 1.5px solid var(--color-border); }
.btn--secondary:hover { background: #eee; }
.btn--outline { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }

/* === DETAIL PAGE === */
.rental-detail { max-width: var(--max-width); margin: 0 auto; }
.rental-detail__header { margin-bottom: 1.5rem; }
.rental-detail__title { font-size: 1.75rem; font-weight: 900; margin: 0 0 0.25rem; }
.rental-detail__location { font-size: 0.9375rem; color: var(--color-text-secondary); margin: 0 0 0.5rem; }
.rental-detail__type {
  display: inline-block; background: var(--color-bg-light); border: 1px solid var(--color-border);
  padding: 0.2rem 0.75rem; border-radius: 2rem; font-size: 0.75rem;
  font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px;
}

/* Gallery Teaser (1 large + 3 small, click opens lightbox) */
.rental-detail__gallery-teaser {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 440px;
}
.rental-detail__teaser-main {
  display: block;
  overflow: hidden;
  background: #eee;
  position: relative;
}
.rental-detail__teaser-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.rental-detail__teaser-main:hover img { transform: scale(1.03); }

.rental-detail__teaser-side {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 0.5rem;
}
.rental-detail__teaser-thumb {
  display: block;
  overflow: hidden;
  background: #eee;
  position: relative;
}
.rental-detail__teaser-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.rental-detail__teaser-thumb:hover img { transform: scale(1.05); }

/* "+X Fotos" overlay */
.rental-detail__teaser-more {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; font-weight: 900;
  letter-spacing: 0.5px;
  pointer-events: none;
}

/* Legacy thumbnails (floorplan etc.) */
.rental-detail__thumbnails { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
.rental-detail__thumb {
  border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3;
  cursor: pointer; opacity: 0.8; transition: opacity 0.2s;
}
.rental-detail__thumb:hover { opacity: 1; }
.rental-detail__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Info Box */
.rental-detail__info-box {
  background: var(--color-bg-light); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin-bottom: 2rem;
}
.rental-detail__specs {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; flex-wrap: wrap;
}
.rental-detail__specs li { text-align: center; min-width: 80px; }
.rental-detail__specs li strong {
  display: block; font-size: 0.6875rem; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--color-text-light); margin-bottom: 0.25rem;
}
.rental-detail__specs li span { font-size: 1.25rem; font-weight: 900; }

/* Description */
.rental-detail__description { margin-bottom: 2rem; line-height: 1.7; }
.rental-detail__description h2 { font-size: 1.25rem; font-weight: 900; margin: 0 0 0.75rem; }

/* Features */
.rental-detail__features { margin-bottom: 2rem; }
.rental-detail__features h2 { font-size: 1.25rem; font-weight: 900; margin: 0 0 1rem; }
.feature-group { margin-bottom: 1.25rem; }
.feature-group h3 {
  font-size: 0.875rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--color-text-secondary); margin: 0 0 0.5rem;
}
.feature-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.375rem 1rem;
}
.feature-list li { padding: 0.375rem 0 0.375rem 1.75rem; position: relative; font-size: 0.875rem; }
.feature-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--color-success); font-weight: 900; }

/* Distances */
.rental-detail__distances { margin-bottom: 2rem; }
.distance-table { width: 100%; border-collapse: collapse; }
.distance-table tr { border-bottom: 1px solid #f0f0f0; }
.distance-table td { padding: 0.625rem 0.5rem; font-size: 0.875rem; }
.distance-table__type { font-weight: 700; color: var(--color-text-secondary); width: 120px; }
.distance-table__value { text-align: right; font-weight: 700; color: var(--color-primary); }

/* Price Table */
.price-table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; }
.price-table thead { background: var(--color-bg-light); }
.price-table th {
  padding: 0.75rem; font-size: 0.75rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--color-text-secondary); text-align: left;
  border-bottom: 2px solid var(--color-border);
}
.price-table td { padding: 0.75rem; font-size: 0.875rem; border-bottom: 1px solid #f0f0f0; }
.price-table__price { font-weight: 700; }

.season-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 2rem; font-size: 0.75rem; font-weight: 700; }
.season-badge--low { background: #e8f5e9; color: #2e7d32; }
.season-badge--mid { background: #fff3e0; color: #e65100; }
.season-badge--high { background: #fce4ec; color: #c62828; }
.season-badge--peak { background: #f3e5f5; color: #7b1fa2; }

/* Calendar */
.availability-calendar { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin: 1rem 0; }
.calendar-month { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem; }
.calendar-month__title { font-size: 0.9375rem; font-weight: 900; text-align: center; margin: 0 0 0.75rem; }
.calendar-month__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.calendar-cell { text-align: center; padding: 0.35rem 0; font-size: 0.75rem; border-radius: 4px; }
.calendar-cell--header { font-weight: 900; font-size: 0.625rem; text-transform: uppercase; color: var(--color-text-light); }
.calendar-cell--free { background: #e8f5e9; color: #2e7d32; }
.calendar-cell--booked { background: #ffcdd2; color: #c62828; }
.calendar-cell--blocked { background: #e0e0e0; color: #666; }
.calendar-cell--ical { background: #fff3e0; color: #e65100; }
.calendar-cell--past { opacity: 0.35; }
.calendar-cell--today { outline: 2px solid var(--color-accent); outline-offset: -2px; }

.calendar-legend { display: flex; gap: 1.25rem; margin-top: 1rem; font-size: 0.75rem; flex-wrap: wrap; }
.calendar-legend__item { display: flex; align-items: center; gap: 0.375rem; }
.calendar-legend__color { width: 1rem; height: 1rem; border-radius: 3px; display: inline-block; }

/* Map */
#rental-map-canvas, .rental-detail__map > div { border-radius: var(--radius-lg); border: 1px solid var(--color-border); }

/* Search Module */
.rental-search__form { margin-bottom: 2rem; }
.search-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; align-items: end; }
.rental-search .form-group label {
  display: block; font-size: 0.6875rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--color-text-light); margin-bottom: 0.25rem;
}
.rental-search .form-group input,
.rental-search .form-group select {
  width: 100%; height: 2.75rem; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm); padding: 0 0.75rem; font-size: 0.9375rem;
}
.rental-search .form-group input:focus,
.rental-search .form-group select:focus { border-color: var(--color-accent); outline: none; }

/* Booking Wizard */
.booking-wizard { max-width: 720px; margin: 0 auto; }
.booking-wizard__progress { display: flex; margin-bottom: 2rem; }
.progress-step { flex: 1; text-align: center; padding: 0.75rem 0.5rem; min-width: 80px; }
.progress-step__number {
  display: block; width: 2rem; height: 2rem; line-height: 2rem; border-radius: 50%;
  background: var(--color-bg-light); border: 2px solid var(--color-border);
  font-size: 0.75rem; font-weight: 900; margin: 0 auto 0.25rem;
}
.progress-step--active .progress-step__number { background: var(--color-accent); border-color: var(--color-accent); }
.progress-step--current .progress-step__number { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.progress-step__label { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; color: var(--color-text-light); }
.progress-step--active .progress-step__label { color: var(--color-text); }

.booking-wizard__message--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 1rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }
.booking-wizard__message--success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; padding: 1.5rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }

.form-row { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.form-group { flex: 1; min-width: 140px; }
.form-group--small { flex: 0.5; }
.form-group--checkbox { flex-basis: 100%; }
.form-group label { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--color-text-secondary); margin-bottom: 0.25rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.625rem 0.75rem; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm); font-size: 0.9375rem; font-family: var(--font-family);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--color-accent); outline: none; }
.booking-step__nav { display: flex; gap: 1rem; margin-top: 1.5rem; }

.price-summary { background: var(--color-bg-light); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1.5rem; }
.price-summary__table { width: 100%; border-collapse: collapse; }
.price-summary__table td { padding: 0.5rem 0; font-size: 0.875rem; }
.price-summary__subtotal td { border-top: 1px solid var(--color-border); font-weight: 700; }
.price-summary__total td { border-top: 2px solid var(--color-text); font-size: 1.125rem; padding-top: 0.75rem; }
.text-right { text-align: right; }

.service-option {
  display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  margin-bottom: 0.5rem; cursor: pointer; transition: border-color 0.2s;
}
.service-option:hover { border-color: var(--color-accent); }
.service-option input[type="checkbox"] { width: auto; margin-top: 0.2rem; }
.service-option__title { font-weight: 700; }
.service-option__price { margin-left: auto; font-weight: 700; color: var(--color-text-secondary); font-size: 0.875rem; white-space: nowrap; }

/* Services on detail */
.services-group { margin-bottom: 1.25rem; }
.services-group h3 { font-size: 0.875rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-text-secondary); margin: 0 0 0.5rem; }
.services-table { width: 100%; border-collapse: collapse; }
.services-table td { padding: 0.5rem 0; font-size: 0.875rem; border-bottom: 1px solid #f0f0f0; }
.services-table__price { text-align: right; font-weight: 700; white-space: nowrap; }
.services-table__type { font-weight: 400; font-size: 0.75rem; color: var(--color-text-light); margin-left: 0.25rem; }

/* Footer */
#footer { background: var(--color-bg-light); border-top: 1px solid var(--color-border); margin-top: auto; }
.footer-inner, #footer .inside {
  max-width: var(--max-width); margin: 0 auto; padding: 2rem 1rem;
  font-size: 0.8125rem; color: var(--color-text-secondary);
}

/* Content Headlines */
.content-headline, h1.content-headline { font-size: 1.75rem; font-weight: 900; margin: 0 0 1rem; }
.rental-list--empty, .no-rentals { text-align: center; padding: 4rem 2rem; color: var(--color-text-light); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .vacation-rentals-list .row { grid-template-columns: repeat(2, 1fr); }
  .region-tiles { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .mod_navigation ul { flex-wrap: wrap; }
  .mod_navigation li a, .mod_navigation li strong { padding: 0.625rem 0.875rem; font-size: 0.875rem; }
  .vacation-rentals-list .row { grid-template-columns: 1fr; }
  .hero-banner { height: 300px; }
  .hero-banner__title { font-size: 1.5rem; }
  .search-widget__form { flex-direction: column; }
  .rental-detail__gallery-teaser { grid-template-columns: 1fr; max-height: none; }
  .rental-detail__teaser-side { grid-template-rows: auto; grid-template-columns: repeat(3, 1fr); }
  .rental-detail__teaser-main img { aspect-ratio: 16/9; }
  .rental-detail__thumbnails { grid-template-columns: repeat(3, 1fr); }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .trust-bar { gap: 1.5rem; }
  .property-types { gap: 1rem; }
  .property-type__icon { width: 3.5rem; height: 3.5rem; font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .region-tiles { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .progress-step__label { display: none; }
}

/* === HEADER META + RATING LINK === */
.rental-detail__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.rental-detail__rating-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--color-text, #212121);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.15s;
}
.rental-detail__rating-link:hover { background: #f5f5f5; }

/* === STARS === */
.stars, .review__stars {
  display: inline-flex;
  gap: 2px;
  font-size: 0.95rem;
  line-height: 1;
}
.star {
  color: #e0e0e0;
  font-size: 1rem;
}
.star--full { color: #fdc400; }

/* === POI BADGE === */
.poi-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 1rem;
  background: #eef4f7;
  color: #1a5f7a;
  white-space: nowrap;
}
.poi-badge--beach { background: #fff4cc; color: #8a6600; }
.poi-badge--airport { background: #e8eaf6; color: #283593; }
.poi-badge--golf { background: #e8f5e9; color: #2e7d32; }
.poi-badge--restaurant { background: #fce4ec; color: #ad1457; }
.poi-badge--supermarket { background: #fff3e0; color: #e65100; }
.poi-badge--pharmacy { background: #ffebee; color: #c62828; }
.poi-badge--marina { background: #e0f7fa; color: #00695c; }
.poi-badge--bus_stop { background: #f3e5f5; color: #6a1b9a; }
.poi-badge--town_center { background: #eef4f7; color: #1a5f7a; }

/* === PRICE BASE === */
.price-base {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  background: #fff8dc;
  border-left: 4px solid #fdc400;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}
.price-base__label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #5f5f5f;
}
.price-base__value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a5f7a;
}
.price-base__min { font-size: 0.875rem; color: #5f5f5f; }

/* === REVIEWS === */
.rental-detail__reviews {
  background: #fafafa;
  padding: 2rem;
  border-radius: 1rem;
  margin: 2rem 0;
}
.rental-detail__reviews h2 { margin-top: 0; }

.reviews-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: center;
}
.reviews-summary__score {
  text-align: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #fdc400 0%, #fdba00 100%);
  border-radius: 0.75rem;
  color: #fff;
  min-width: 110px;
}
.reviews-summary__avg {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  display: block;
}
.reviews-summary__max { font-size: 1rem; opacity: 0.9; }
.reviews-summary__count {
  font-size: 1.1rem;
  font-weight: 700;
  color: #5f5f5f;
  margin-bottom: 0.75rem;
}
.reviews-summary__cats { display: grid; gap: 0.5rem; }
.reviews-cat {
  display: grid;
  grid-template-columns: 110px 1fr 40px;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.9rem;
}
.reviews-cat__bar {
  display: block;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}
.reviews-cat__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #fdc400, #fdba00);
}
.reviews-cat strong { text-align: right; color: #1a5f7a; }

.reviews-list { display: grid; gap: 1rem; }
.review {
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #eee;
}
.review__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}
.review__author { font-weight: 700; color: #212121; }
.review__date { color: #888; font-size: 0.875rem; }
.review__stars { margin-left: auto; }
.review__comment { color: #424242; line-height: 1.65; }
.review__comment h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #1a5f7a;
}
.review__comment p { margin: 0 0 0.5rem; }
.review__comment hr {
  border: 0;
  border-top: 1px dashed #ddd;
  margin: 0.75rem 0;
}
.reviews-more-wrap { text-align: center; margin-top: 1.25rem; }
.reviews-more-btn {
  background: #fff;
  color: #1a5f7a;
  border: 2px solid #1a5f7a;
  padding: 0.625rem 1.5rem;
  border-radius: 2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.reviews-more-btn:hover { background: #1a5f7a; color: #fff; }
.reviews-list--extra { margin-top: 1rem; }

/* === FEATURE BLOCK (SPECIFIC details appended to description) === */
.rental-detail__description h3 {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 1.1rem;
  color: #1a5f7a;
}
.rental-detail__description ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.5rem 1.25rem;
}
.rental-detail__description ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.925rem;
  color: #424242;
}
.rental-detail__description ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #fdc400;
  font-weight: 700;
}

/* === REVIEWS RESPONSIVE === */
@media (max-width: 768px) {
  .rental-detail__reviews { padding: 1.25rem; }
  .reviews-summary { grid-template-columns: 1fr; text-align: center; padding: 1rem; }
  .reviews-summary__score { margin: 0 auto; }
  .reviews-cat { grid-template-columns: 90px 1fr 36px; font-size: 0.85rem; }
  .review { padding: 1rem; }
  .review__header { gap: 0.5rem; }
  .review__stars { margin-left: 0; }
}

/* ============================================================
   RESPONSIVE POLISH — global safety + mobile-first refinements
   ============================================================ */

/* Global safety: prevent horizontal scroll from any element */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Media elements never overflow their container */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* Tables in content never overflow — wrap them in horizontal scroll fallback */
.rental-detail__prices,
.rental-detail__distances,
.rental-detail__services {
  overflow-x: auto;
}

/* On mobile: reduce rental-detail section spacing */
@media (max-width: 768px) {
  .rental-detail__title { font-size: 1.5rem; line-height: 1.2; }
  .rental-detail__meta { gap: 0.5rem; font-size: 0.875rem; }

  .rental-detail__info-box { padding: 1rem; }
  .rental-detail__specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
  }
  .rental-detail__specs li { margin: 0; }

  .rental-detail__gallery-teaser { margin-bottom: 1.25rem; }

  /* Price table becomes more compact */
  .price-table { font-size: 0.8125rem; }
  .price-table th, .price-table td { padding: 0.5rem 0.375rem; }
  .price-base { flex-direction: column; align-items: flex-start; gap: 0.25rem; padding: 0.875rem 1rem; }
  .price-base__value { font-size: 1.15rem; }

  /* Distance table: collapse type column on narrow screens */
  .distance-table__type { width: auto; }
  .distance-table td { padding: 0.5rem 0.375rem; font-size: 0.8125rem; }
  .poi-badge { font-size: 0.6875rem; padding: 0.1rem 0.4rem; }

  /* Feature grid: 2 columns already at 768, tighter gap */
  .rental-detail__description ul { gap: 0.375rem 0.75rem; }

  /* CTA button smaller */
  .rental-detail__reviews + section a.btn,
  section .btn-primary { font-size: 0.9375rem !important; padding: 0.75rem 1.5rem !important; }

  /* Map height reduced on mobile */
  #rental-detail-map { height: 300px !important; }
}

@media (max-width: 480px) {
  .rental-detail__title { font-size: 1.25rem; }
  .rental-detail__location { font-size: 0.875rem; }

  /* Specs: single row with tiny labels on very small screens */
  .rental-detail__specs { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .rental-detail__specs li { font-size: 0.8125rem; }

  /* Info box padding tighter */
  .rental-detail__info-box { padding: 0.875rem 1rem; margin-bottom: 1.25rem; }

  /* Gallery thumbnails stack differently at very narrow */
  .rental-detail__teaser-side { grid-template-columns: 1fr 1fr; gap: 0.25rem; }
  .rental-detail__teaser-side a:last-child { display: none; }

  /* Sections padding */
  section.rental-detail__features,
  section.rental-detail__distances,
  section.rental-detail__prices,
  section.rental-detail__reviews { padding: 1rem; border-radius: 0.75rem; }

  /* Review header stacks on very narrow */
  .review { padding: 0.875rem 1rem; }
  .review__header { flex-direction: column; align-items: flex-start; gap: 0.25rem; padding-bottom: 0.5rem; }
  .review__stars { margin-left: 0; font-size: 0.875rem; }
  .review__comment { font-size: 0.875rem; }

  /* Reviews summary: smaller score badge */
  .reviews-summary__score { padding: 0.75rem 1rem; min-width: auto; }
  .reviews-summary__avg { font-size: 2.25rem; }
  .reviews-cat { grid-template-columns: 80px 1fr 32px; font-size: 0.8125rem; gap: 0.5rem; }

  /* Hero slimmer */
  .hero-banner { height: 260px; }
  .hero-banner__subtitle { font-size: 0.875rem; }

  /* Trust bar items smaller */
  .trust-bar { gap: 1rem; padding: 1rem 0.5rem; font-size: 0.8125rem; }

  /* Price base wraps nicely */
  .price-base { padding: 0.75rem 0.875rem; }
  .price-base__value { font-size: 1rem; }

  /* CTA section less padding */
  .rental-detail__reviews + section,
  article.rental-detail > section[style*="background:var(--color-bg-warm)"] { padding: 1.5rem 1rem !important; }
  article.rental-detail > section h2 { font-size: 1.125rem; }
}

/* Very small screens (legacy phones, < 360px) */
@media (max-width: 360px) {
  .rental-detail__title { font-size: 1.125rem; }
  .hero-banner__title { font-size: 1.25rem; }
  .rental-detail__specs { grid-template-columns: 1fr; }
  .distance-table__type .poi-badge { display: block; text-align: center; }
}

/* Ensure navigation wraps gracefully on mobile */
@media (max-width: 768px) {
  .mod_navigation ul.level_1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    gap: 0.25rem;
  }
  .mod_navigation ul.level_2 { display: none; }
  .mod_navigation li.submenu:hover ul.level_2,
  .mod_navigation li.submenu:focus-within ul.level_2 { display: block; }
}

/* Print: hide interactive bits */
@media print {
  .rental-detail__reviews + section,
  .mod_navigation,
  .reviews-more-btn,
  .glightbox,
  #footer { display: none !important; }
  a { color: #000 !important; text-decoration: none !important; }
  .rental-detail__description ul { grid-template-columns: repeat(2, 1fr); }
}


