/**
 * Chalet of Canandaigua - Elementor Customizations
 *
 * Custom CSS overrides and enhancements specifically for Elementor widgets
 * to ensure consistency with the Chalet theme design system.
 *
 * @package Chalet_Canandaigua
 * @version 1.0.0
 */

/* ========================================
   1. ELEMENTOR SECTION & CONTAINER STYLES
   ======================================== */

/* Reset Elementor defaults */
.elementor-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Section backgrounds */
.elementor-section {
  position: relative;
}

.elementor-section.elementor-section-full_width {
  padding: 0;
}

.elementor-section-wrap {
  position: relative;
}

/* Section gap and padding */
.elementor-section {
  --e-default-section-gap: 60px;
}

.elementor-section > .elementor-container {
  max-width: none;
  padding-left: 40px;
  padding-right: 40px;
}

/* Full width sections */
.elementor-section.elementor-full-width .elementor-container {
  max-width: 100%;
  padding-left: 60px;
  padding-right: 60px;
}

/* ========================================
   2. ELEMENTOR TEXT WIDGET OVERRIDES
   ======================================== */

.elementor-text-editor {
  color: #1a1a1a;
  line-height: 1.6;
  font-family: 'Lato', sans-serif;
}

.elementor-text-editor h1,
.elementor-text-editor h2,
.elementor-text-editor h3,
.elementor-text-editor h4,
.elementor-text-editor h5,
.elementor-text-editor h6 {
  font-family: 'Playfair Display', serif;
  color: #233d2d;
  margin-bottom: 15px;
  font-weight: 700;
}

.elementor-text-editor h1 {
  font-size: 3.5rem;
  line-height: 1.1;
}

.elementor-text-editor h2 {
  font-size: 2.5rem;
  line-height: 1.2;
}

.elementor-text-editor h3 {
  font-size: 1.75rem;
  line-height: 1.3;
}

.elementor-text-editor a {
  color: #233d2d;
  transition: color 0.3s ease;
  text-decoration: none;
}

.elementor-text-editor a:hover {
  color: #d4af37;
}

/* ========================================
   3. ELEMENTOR HEADING WIDGET
   ======================================== */

.elementor-heading-title {
  font-family: 'Playfair Display', serif;
  color: #233d2d;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.elementor-widget-heading .elementor-heading-title {
  margin-bottom: 10px;
}

/* Heading sizes */
.elementor-widget-heading h1.elementor-heading-title {
  font-size: 3.5rem;
}

.elementor-widget-heading h2.elementor-heading-title {
  font-size: 2.5rem;
}

.elementor-widget-heading h3.elementor-heading-title {
  font-size: 1.75rem;
}

.elementor-widget-heading h4.elementor-heading-title {
  font-size: 1.5rem;
}

.elementor-widget-heading h5.elementor-heading-title {
  font-size: 1.25rem;
}

.elementor-widget-heading h6.elementor-heading-title {
  font-size: 1rem;
}

/* ========================================
   4. ELEMENTOR BUTTON WIDGET
   ======================================== */

.elementor-button {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 2px solid #233d2d;
  background-color: #233d2d;
  color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.elementor-button:hover {
  background-color: #ffffff;
  color: #233d2d;
  border-color: #d4af37;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.elementor-button:focus {
  outline: none;
}

/* Button variants */
.elementor-button.elementor-button-secondary {
  background-color: transparent;
  color: #233d2d;
  border-color: #233d2d;
}

.elementor-button.elementor-button-secondary:hover {
  background-color: #233d2d;
  color: #ffffff;
}

.elementor-button.elementor-button-accent {
  background-color: #d4af37;
  border-color: #d4af37;
  color: #1a1a1a;
}

.elementor-button.elementor-button-accent:hover {
  background-color: #b8860b;
  border-color: #b8860b;
  color: #ffffff;
}

/* Booking button */
.elementor-button.elementor-button-chalet {
  background-color: #d4af37;
  border-color: #d4af37;
  color: #1a1a1a;
  font-weight: 700;
}

.elementor-button.elementor-button-chalet:hover {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  color: #d4af37;
}

/* ========================================
   5. ELEMENTOR IMAGE WIDGET
   ======================================== */

.elementor-widget-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.elementor-widget-image .elementor-image-box-img {
  overflow: hidden;
  border-radius: 2px;
}

.elementor-widget-image a img {
  transition: transform 0.3s ease;
}

.elementor-widget-image a:hover img {
  transform: scale(1.05);
}

/* ========================================
   6. ELEMENTOR IMAGE CAROUSEL / SLIDER
   ======================================== */

.elementor-image-carousel-wrapper {
  overflow: hidden;
  border-radius: 2px;
}

.elementor-image-carousel .elementor-image-carousel-image {
  overflow: hidden;
}

.elementor-image-carousel .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Carousel navigation */
.elementor-image-carousel .swiper-button-prev,
.elementor-image-carousel .swiper-button-next {
  background-color: rgba(35, 61, 45, 0.8);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 0;
  transition: all 0.3s ease;
}

.elementor-image-carousel .swiper-button-prev:hover,
.elementor-image-carousel .swiper-button-next:hover {
  background-color: #d4af37;
  color: #1a1a1a;
}

.elementor-image-carousel .swiper-pagination-bullet {
  background-color: rgba(255, 255, 255, 0.5);
  width: 10px;
  height: 10px;
}

.elementor-image-carousel .swiper-pagination-bullet-active {
  background-color: #d4af37;
}

/* ========================================
   7. ELEMENTOR ICON BOX WIDGET
   ======================================== */

.elementor-icon-box-wrapper {
  text-align: center;
}

.elementor-icon-box-content {
  padding: 0;
}

.elementor-icon-box-title a,
.elementor-icon-box-title {
  color: #233d2d;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.elementor-icon-box-description {
  color: #6b6b6b;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Icon styling */
.elementor-icon-box-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.elementor-icon-box-icon i,
.elementor-icon-box-icon svg {
  color: #d4af37;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.elementor-icon-box-icon svg {
  width: 2rem;
  height: 2rem;
}

.elementor-icon-box:hover .elementor-icon-box-icon i,
.elementor-icon-box:hover .elementor-icon-box-icon svg {
  color: #233d2d;
  transform: translateY(-5px);
}

/* ========================================
   8. ELEMENTOR TESTIMONIAL WIDGET
   ======================================== */

.elementor-testimonial-wrapper {
  background-color: #ffffff;
  border-radius: 2px;
  padding: 30px;
  border-left: 4px solid #d4af37;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.elementor-testimonial-wrapper:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.elementor-testimonial-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: #233d2d;
  margin-bottom: 20px;
  position: relative;
  padding-left: 40px;
  line-height: 1.8;
}

.elementor-testimonial-text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 4rem;
  color: #d4af37;
  opacity: 0.3;
  line-height: 1;
}

.elementor-testimonial-meta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.elementor-testimonial-meta-data {
  flex: 1;
}

.elementor-testimonial-name {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 1rem;
  margin-bottom: 3px;
}

.elementor-testimonial-title {
  color: #6b6b6b;
  font-size: 0.85rem;
  font-style: italic;
}

.elementor-testimonial-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.elementor-testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.elementor-testimonial-rating {
  color: #d4af37;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

/* ========================================
   9. ELEMENTOR PRICING TABLE WIDGET
   ======================================== */

.elementor-pricing-table {
  background-color: #ffffff;
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.elementor-pricing-table:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-8px);
  border-top: 4px solid #d4af37;
}

.elementor-pricing-table-header {
  padding: 30px 20px;
  background-color: #f5f0e8;
  border-bottom: 1px solid #e0dcd4;
}

.elementor-pricing-table-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #233d2d;
  margin-bottom: 10px;
  font-weight: 700;
}

.elementor-pricing-table-subheading {
  color: #6b6b6b;
  font-size: 0.9rem;
}

.elementor-pricing-table-price {
  padding: 25px 20px;
  text-align: center;
  border-bottom: 1px solid #e0dcd4;
}

.elementor-pricing-table-price-currency {
  font-size: 1.5rem;
  color: #d4af37;
  font-weight: 700;
}

.elementor-pricing-table-price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: #233d2d;
  font-weight: 700;
  line-height: 1;
  margin: 10px 0;
}

.elementor-pricing-table-price-period {
  color: #6b6b6b;
  font-size: 0.9rem;
}

.elementor-pricing-table-features {
  padding: 25px 20px;
  list-style: none;
}

.elementor-pricing-table-feature-inner {
  padding: 10px 0;
  border-bottom: 1px solid #e0dcd4;
  color: #6b6b6b;
  font-size: 0.95rem;
}

.elementor-pricing-table-feature-inner:last-child {
  border-bottom: none;
}

.elementor-pricing-table-feature-inner i {
  color: #d4af37;
  margin-right: 10px;
  font-weight: 700;
}

.elementor-pricing-table-footer {
  padding: 25px 20px;
  background-color: #f5f0e8;
  border-top: 1px solid #e0dcd4;
}

.elementor-pricing-table-button {
  width: 100%;
  text-align: center;
}

/* Highlighted pricing table */
.elementor-pricing-table.elementor-pricing-table-highlighted {
  border-top: 4px solid #d4af37;
  transform: scale(1.05);
}

/* ========================================
   10. ELEMENTOR GALLERY WIDGET
   ======================================== */

.elementor-gallery {
  display: grid;
  gap: 20px;
}

.elementor-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background-color: #f5f0e8;
}

.elementor-gallery-item a {
  display: block;
  position: relative;
}

.elementor-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.elementor-gallery-item:hover img {
  transform: scale(1.1);
}

.elementor-gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(35, 61, 45, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elementor-gallery-item:hover .elementor-gallery-item-overlay {
  opacity: 1;
}

.elementor-gallery-item-overlay i {
  color: #d4af37;
  font-size: 2rem;
}

/* ========================================
   11. ELEMENTOR FORM WIDGET
   ======================================== */

.elementor-form-fields-wrapper {
  margin-bottom: 20px;
}

.elementor-field-group {
  margin-bottom: 20px;
}

.elementor-field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.elementor-field-label .elementor-field-required {
  color: #d4af37;
}

.elementor-field:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="file"]) {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0dcd4;
  border-radius: 2px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: #1a1a1a;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.elementor-field:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="file"]):focus {
  border-color: #d4af37;
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

textarea.elementor-field {
  resize: vertical;
  min-height: 150px;
}

.elementor-field-type-checkbox .elementor-field-option,
.elementor-field-type-radio .elementor-field-option {
  margin-bottom: 10px;
}

.elementor-field-type-checkbox input[type="checkbox"],
.elementor-field-type-radio input[type="radio"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: #d4af37;
}

.elementor-field-type-checkbox label,
.elementor-field-type-radio label {
  color: #1a1a1a;
  font-weight: 500;
  cursor: pointer;
}

/* Form button */
.elementor-button[type="submit"] {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 2px solid #233d2d;
  background-color: #233d2d;
  color: #ffffff;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 48px;
}

.elementor-button[type="submit"]:hover {
  background-color: #ffffff;
  color: #233d2d;
  border-color: #d4af37;
}

/* Form messages */
.elementor-message {
  padding: 15px;
  border-radius: 2px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.elementor-message.elementor-message-success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #4caf50;
}

.elementor-message.elementor-message-danger {
  background-color: #ffebee;
  color: #c62828;
  border-left: 4px solid #f44336;
}

.elementor-message.elementor-message-warning {
  background-color: #fff3e0;
  color: #e65100;
  border-left: 4px solid #ff9800;
}

.elementor-message.elementor-message-info {
  background-color: #e3f2fd;
  color: #1565c0;
  border-left: 4px solid #2196f3;
}

/* ========================================
   12. ELEMENTOR TABS & ACCORDION
   ======================================== */

.elementor-tabs .elementor-tab-title {
  background-color: #f5f0e8;
  color: #233d2d;
  padding: 15px 20px;
  border: 1px solid #e0dcd4;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Lato', sans-serif;
}

.elementor-tabs .elementor-tab-title.elementor-active {
  background-color: #233d2d;
  color: #ffffff;
  border-color: #d4af37;
  border-top: 3px solid #d4af37;
}

.elementor-tabs .elementor-tab-title:hover {
  background-color: #e8e4dc;
}

.elementor-tabs .elementor-tab-content {
  padding: 25px;
  background-color: #ffffff;
  border: 1px solid #e0dcd4;
  border-top: none;
  color: #1a1a1a;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Accordion */
.elementor-accordion .elementor-accordion-title {
  background-color: #f5f0e8;
  color: #233d2d;
  padding: 15px 20px;
  border: 1px solid #e0dcd4;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Lato', sans-serif;
}

.elementor-accordion .elementor-accordion-title.elementor-active {
  background-color: #233d2d;
  color: #ffffff;
  border-color: #d4af37;
}

.elementor-accordion .elementor-accordion-title:hover {
  background-color: #e8e4dc;
}

.elementor-accordion .elementor-accordion-content {
  padding: 25px 20px;
  background-color: #ffffff;
  border: 1px solid #e0dcd4;
  border-top: none;
  color: #1a1a1a;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================================
   13. ELEMENTOR COUNTDOWN WIDGET
   ======================================== */

.elementor-countdown-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.elementor-countdown-item {
  padding: 20px;
}

.elementor-countdown-label {
  color: #6b6b6b;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}

.elementor-countdown-digit {
  font-size: 3rem;
  font-weight: 700;
  color: #d4af37;
  font-family: 'Playfair Display', serif;
}

/* ========================================
   14. ELEMENTOR VIDEO WIDGET
   ======================================== */

.elementor-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 2px;
}

.elementor-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ========================================
   15. ELEMENTOR DIVIDER WIDGET
   ======================================== */

.elementor-divider {
  margin: 20px 0;
}

.elementor-divider--line {
  border-top: 1px solid #e0dcd4;
}

.elementor-divider--text {
  border-top: 1px solid #e0dcd4;
  text-align: center;
  position: relative;
}

.elementor-divider-separator {
  display: inline-block;
  padding: 0 15px;
  color: #6b6b6b;
  font-weight: 600;
  background-color: #f5f0e8;
  font-size: 0.9rem;
}

/* ========================================
   16. RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
  .elementor-section > .elementor-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .elementor-section.elementor-full-width .elementor-container {
    padding-left: 30px;
    padding-right: 30px;
  }

  .elementor-pricing-table:hover {
    transform: translateY(-4px);
  }

  .elementor-widget-heading h1.elementor-heading-title {
    font-size: 2.5rem;
  }

  .elementor-widget-heading h2.elementor-heading-title {
    font-size: 2rem;
  }

  .elementor-widget-heading h3.elementor-heading-title {
    font-size: 1.5rem;
  }

  .elementor-image-carousel .swiper-button-prev,
  .elementor-image-carousel .swiper-button-next {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .elementor-testimonial-text {
    font-size: 1.1rem;
  }

  .elementor-countdown-digit {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .elementor-section > .elementor-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .elementor-pricing-table-price-amount {
    font-size: 2rem;
  }

  .elementor-countdown-wrapper {
    flex-wrap: wrap;
    gap: 10px;
  }

  .elementor-countdown-item {
    padding: 10px;
    flex: 1 1 calc(50% - 5px);
  }

  .elementor-widget-heading h1.elementor-heading-title {
    font-size: 2rem;
  }

  .elementor-widget-heading h2.elementor-heading-title {
    font-size: 1.5rem;
  }
}

/* ========================================
   17. PRINT STYLES
   ======================================== */

@media print {
  .elementor-section {
    break-inside: avoid;
  }

  .elementor-image-carousel .swiper-button-prev,
  .elementor-image-carousel .swiper-button-next {
    display: none;
  }
}
