﻿/*
Theme Name: Kaleidos
Template: twentytwentyfive
Author: Ilona
Author URI: 
Description: Kaleidos emphasizes simplicity and adaptability.
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kaleidos
Tags:custom
*/

/* ==================== */
/* 1. General Styles    */
/* ==================== */
.is-style-outline a:hover {
  background: var(--wp--preset--color--white);
  border-color: var(--wp--preset--color--turqoise);
  color: var(--wp--preset--color--turqoise) !important;
}

.is-style-outline.blueish a:hover {
  border-color: var(--wp--preset--color--lighter-blue);
  color: var(--wp--preset--color--lighter-blue) !important;
}

.wp-block-read-more:hover {
  color: var(--wp--preset--color--lighter-blue) !important;
  text-decoration: none;
}
.wp-block-post-navigation-link {
  max-width: 300px;
  font-size: 1rem;
}

/* ==================== */
/* 2. Utilities         */
/* ==================== */
.uppercase,
ul.uppercase span,
nav span {
  text-transform: uppercase;
}

.wp-block-column figure.to-right {
  text-align: right;
}

h1, h2, h3, h5, h6 {
  text-wrap: balance;
}

a:focus {
  outline: none !important;
}

footer {
  margin-block-start: 0 !important;
}

.align-start {
  align-items: start;
}

.min-350 {
  min-height: 22rem;
}
.min-350-42 {
  min-height: calc(22rem - 42px);
}

.cover, .cover.wp-block-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}


/* options: entire chalet / 2 bedroom apartment */
.option-selector {
  display: flex;
  gap: 16px;
}

.option-card {
  border: 2px solid #dddddd;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.option-card:hover {
  border-color: #b0b0b0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.option-card.active {
  border-color: var(--wp--preset--color--turqoise);
  background-color: #fff8f9;
}

.option-title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.option-title::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 50%;
  margin-right: 12px;
  transition: all 0.2s ease;
}

.option-card.active .option-title::before {
  border-color: var(--wp--preset--color--turqoise);
  background-color: var(--wp--preset--color--turqoise);
  box-shadow: inset 0 0 0 3px white;
}

.container {
  padding: 20px;
}

@media (max-width: 480px) { 
  .option-card {
      padding: 16px;
  }
}
.content-section {
  display: none;
  animation: fadeIn 0.5s ease;
}

.content-section.active {
  display: block;
}

.contact-box {
  background: white;
  border-radius: 12px;
  padding: 30px !important;
  border: 1px solid #ddd;
  max-width: 400px;
  margin: 20px auto;
}

.contact-method {
  display: flex;
  align-items: center;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.contact-method:hover {
  border-color: #1299ad;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 16px;
  font-size: 18px;
}

.email-icon {
  background-color: #ecf7f9;
}

.email-icon svg {
  width: 20px;
  height: 20px;
  fill: #1299ad;
}

.whatsapp-icon {
  background-color: #f0fff4;
}

header .text-with-icon {
  background: none;
  gap: 8px;
  white-space: nowrap;
}

header a:hover {
  color: #000;
}

header .envelope-icon svg {
  width: 25px;
  height: auto;
  fill: #414141;
}

header .whatsapp svg {
  fill:#5f5f5f;
  width: 20px;
  height: 20px;
}

header .text-with-icon a {
  text-decoration: none;
}

.whatsapp-icon svg {
  width: 20px;
  height: 20px;
  fill: #25D366;
}

.contact-details {
  flex: 1;
}

.contact-type {
  font-size: 14px;
  color: #717171;
}

.contact-value {
  font-size: 16px;
  font-weight: 500;
  color: #222;
}

.response-time {
  font-size: 12px;
  color: #717171;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .contact-box {
      padding: 0 !important;
      margin: 10px;
  }
  
  .contact-method {
      padding: 12px;
  }
}



.available, .not-available{
  list-style: none;
  padding-left: 0;
}

.available li, 
.not-available li {
  padding: 10px 0;
  padding-left: 40px; 
  position: relative;
  font-size: 1rem;
  line-height: 1.5;
}
.not-available li {
  padding-left: 30px;
}
.available li:before, 
.not-available li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%); /* This perfectly centers the circle vertically */
  width: 20px; /* Circle size */
  height: 20px;
  border-radius: 50%; /* This makes it a circle */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
}

/* Green checkmark for included amenities */
.available li:before {
  border: 2px solid #40e0d0; /* Your green color */
  color: #40e0d0;
  content: "✓"; 
}

/* Red "X" for not included amenities */
.not-available li:before {
  background-color: #fe6f5f; /* Your red color */
  color: white;
  content: "✕"; /* "X" character */
}

.open-gallery {
  cursor: pointer;
  transition: filter 0.3s ease-in-out;
}
.open-gallery:hover {
  filter: brightness(110%); 
}

.view-gallery {
  border-radius: 10px;
  position: absolute;
  right: 30px;
  bottom: 30px;
  background: white;
  padding: 8px 25px;
  text-decoration: none;
  border: 2px solid black;
  color: black;
  display: flex;
  align-items: center;
  cursor: pointer
}

#close-gallery {
  position: sticky;
  top: 20px;
  left: 99%;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
}
#close-gallery:hover {
  opacity: 0.9;
}
.close-wrapper {
  position: fixed;
  z-index: 999;
  max-width: 1340px;
  background: white;
  padding: 10px  1.5rem;
  width: 100%;
  box-sizing: border-box;
  top: 0;
  text-align: right;
}

#gallery-modal {
  display:none; 
  position:fixed; 
  top:0; 
  left:0; 
  width:100vw; 
  height:100dvh; 
  background:#fff;
  z-index:99; 
  overflow-y:auto;
  overflow-x:hidden;
}

#gallery-content{
  position: relative;
  top: 100px;
}

.gallery-container {
  margin: auto;
  position: relative;
  width: 100%;
  max-width: 1280px;
  box-sizing: border-box;
}

@media (min-width: 901px) {
  .gallery-container {
    padding: 1rem 1.5rem;
  }
}

.custom-grid {
  column-count: 2;       
  column-gap: 12px;
}

.custom-grid a {
  display: block;
  margin-bottom: 12px;
  width: 100%;
}

.custom-grid img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-wrapper {
  display:grid;
   grid-template-columns:1fr 3fr; 
   gap:40px; 
   align-items:start;
}

@media (max-width: 900px) {
  .gallery-wrapper  {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.gallery-info p {
  margin-top: 5px;
  font-size: 1rem;
}

.modal-visible {
  overflow: hidden;
}

/*slider*/
.swipe-container {
  position: relative;
  /* Add any additional styling for the wrapper */
}

.swipe-wrapper {
  /* Existing styles */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  display: flex !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth;
  flex-wrap: nowrap;
  height: auto;
  position: relative;
  gap: 1rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
.swipe-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.swipe-item {
  flex: 0 0 50%; /* Each item takes exactly 50% width, showing 2 at a time */
  scroll-snap-align: start; /* Ensures snapping to the start of each item */
  box-sizing: border-box; /* Includes padding and border in width calculation */
  margin: 0 !important; /* Force remove any margins */
  padding: 0 !important; /* Force remove any padding */
  display: none;
}

.swipe-item.active {
  display: block;
}

.swipe-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Makes images cover their container nicely */
  display: block;
}

.swipe-item a {
  display: block !important;
}

.carousel-nav {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}
.carousel-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid #666;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:disabled {
  border-color: #ccc;
  color: #ccc;
  cursor: not-allowed;
}
.carousel-btn:hover:not(:disabled) {
  border-color: #333;
  background: rgba(255, 255, 255, 0.1);
}

svg.icon {
  width: 35px;
  height: 35px;
}

.text-with-icon {
  display: flex;
  align-items: center;
  gap: 5px;
}

.only-mobile {
  display: none !important;
}

.content-section {
  padding-right: 2rem;
}

@media (max-width: 768px) { 
  .only-mobile {
    display: flex  !important;
  }
  .only-desktop {
    display: none  !important;
  }

  nav .wp-block-navigation-item__label {
    text-transform: none;   
  }

  nav button .wp-block-navigation-item__label {
    padding-left: 30px;
    position: relative;
    top: -1px;
  }

  nav button {
    background: url('assets/img/contact.png') no-repeat left center;
    background-size: 25px;
  }

  nav ul ul {
    font-size: 1rem;
  }
  .wp-block-navigation__submenu-icon { display: none !important;}

  .wp-block-site-logo {
    padding: 5px 0;
  }
  .wp-block-site-logo img {
    max-width: 80px;
  }

  .option-selector.is-layout-flex {
    display: block;
  }  
  .option-card {
    padding :1rem;
    margin-bottom: 12px !important;
  } 
  .option-card > div {
    gap: 5px;
  }

  .view-gallery {
    right: 5px;
    bottom: 5px;   
    padding: 5px 15px;
    font-size:1rem;
  }
  .content-section {
    padding-right: 0;
  }
  .contact-box {
    padding: 0;
    border:none;
  }
  .contact-box h3 {
    text-align: left;
    font-weight: bold !important;
    font-size: 1.1rem !important;
  }
  p.has-small-font-size {
    font-size: 1rem !important;
  }
  .burger-menu span.wp-block-navigation-item__label  {
    font-size: 1.1rem;
  }
}

@media (max-width: 940px) { 
  .stack-on-tablet.is-layout-flex {
    display: block;
  }
}


.gallery-section {
  display: none;
}

.gallery-section.active {
  display: block;
}

.wpml-language-switcher-block li,
.wp-block-navigation-item,
.wpml-language-switcher-block [data-wpml='language-item']:first-of-type,
li[data-wpml='language-item']:first-of-type {
    margin: 0 !important;
} 

.wpml-language-switcher-block a:hover,
li[data-wpml="current-language-item"] span {
  color: #108293 !important;
  text-decoration: none;
}

