@charset "utf-8";

/* CHAT */

#whatsapp-chat {
    position: fixed;
    bottom: 11px;        
    right: 20px;         
    z-index: 999999;
}

#whatsapp-chat img {
    width: 49px;
    height: 49px;
    border-radius: 40px;  
    background-color: #16BE45; 
    padding: 10px;
    transition: transform 0.2s ease-in-out;
}

/* CURRENCY-CONVERTER */

/* Price styling */
.pricenew, .priceold {
    float: right;
    margin-left: 10px;
}

/* Currency Widget Base Styles */
.currency-widget {
    position: fixed;
    bottom: 20px;
    left: 120px;
    z-index: 9999;
    font-family: Arial, sans-serif;
    overflow: visible;
    transition: all 0.3s ease;
    visibility: hidden;
}

.currency-widget.initialized {
    visibility: visible;
}

/* Currency Header */
.currency-header {
    background: white;
    color: black;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: auto;
    white-space: nowrap;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 12px 18px;
}

/* Currency Options Dropdown */
.currency-options {
    max-height: none;
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.2s ease;
    overflow: hidden;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    width: 220px;
    padding: 0;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 10px;
    z-index: 10000;
}

.currency-widget.active .currency-options {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;  
    /*max-height: 500px;
    padding: 10px;
    overflow-y: auto;*/
}

.currency-widget:not(.active) .currency-options {
    border: none;
    box-shadow: none;
}

/* Currency Option Items */
.currency-option {
    padding: 10px 15px;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    font-weight: normal;
    text-align: left;
    gap: 8px;
    font-size: 16px;
    background-color: white;
}

.currency-option.active {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.currency-option:last-child {
    border-bottom: none;
}

.currency-option:hover {
    background: #f8f9fa;
}

/* Price Display */
.converted-price {
    font-weight: bold;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-left: 5px;
}

.price-container {
    display: flex;
    align-items: center;
}

/* CONSISTENT FLAG STYLING - This is the important part */
.currency-abbr {
    display: flex !important;
    align-items: center !important;
    gap: 6px;
    transform: translateY(0);
}

.currency-code {
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Base flag styling - CONSISTENT FOR ALL FLAGS */
.flag {
    display: inline-block !important;
    width: 24px !important;
    height: 16px !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: none !important;
    vertical-align: middle !important;
    border-radius: 2px !important;
    box-shadow: 0 0 1px rgba(0,0,0,0.1) !important;
    flex-shrink: 0 !important;
}

/* Flag images - ENSURE ALL PATHS ARE CORRECT */
.flag-THB { background-image: url('../images/flags/th.webp') !important; }
.flag-USD { background-image: url('../images/flags/us.webp') !important; }
.flag-EUR { background-image: url('../images/flags/eu.webp') !important; }
.flag-GBP { background-image: url('../images/flags/gb.webp') !important; }
.flag-AUD { background-image: url('../images/flags/au.webp') !important; }
.flag-INR { background-image: url('../images/flags/in.webp') !important; }
.flag-SGD { background-image: url('../images/flags/sg.webp') !important; }
.flag-MYR { background-image: url('../images/flags/my.webp') !important; }

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .currency-option[data-currency="THB"].active,
    .currency-option[data-currency="USD"].active,
    .currency-option[data-currency="EUR"].active,
    .currency-option[data-currency="GBP"].active,
    .currency-option[data-currency="AUD"].active,
    .currency-option[data-currency="SGD"].active,
    .currency-option[data-currency="NYR"].active,
    .currency-option[data-currency="INR"].active {
        background-color: #f8f9fa;
        color: #2c3e50;
    }
    
    .currency-widget {
        left: 110px;
        bottom: 20px;
        width: auto;
        min-width: 100px;
        max-width: 40%;
        min-height: auto;
    }
    
    .currency-widget.active .currency-options {
        max-height: 500px;
        background: white;
        width: 200px;
        max-width: 200px;
        overflow-y: auto;
    }
    
    .currency-option {
        padding: 10px 15px;
        font-size: 16px;
        gap: 8px;
    }
    
    .currency-header {
        padding: 10px 16px;
        min-width: auto;
        width: fit-content;
    }
    
    /* Keep flag sizes consistent on mobile too */
    .flag {
        width: 24px !important;
        height: 16px !important;
        border: none !important;
        box-shadow: 0 0 1px rgba(0,0,0,0.1) !important;
    }
    
    .currency-abbr {
        gap: 3px;
    }
    
    .currency-code {
        font-size: 14px;
    }
}

/* MODAL POPUP */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; 
  top: 0;
  width: 100%; 
  height: 100%;
  background-color: rgba(0,0,0,0.6);
}

/* Modal content styling - Made narrower */
.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 0;
  width: 80%; /* Fallback for very small screens */
  max-width: 400px; /* Changed the width of the widget from 350 which was a too short */
  border-radius: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Ensure header styles are consistent on mobile */
.modal-header {
  background-color: #3392de !important;
  color: white !important;
  padding: 15px;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.modal-body {
  padding: 20px;
  text-align: left;
}

.close {
  position: absolute;
  top: 10px; 
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-content {
    margin: 30% auto;
    width: 85%; /* Slightly wider on mobile for readability */
    max-width: 300px; /* Can be same or different for mobile */
  }
  
  .modal-header {
    padding: 12px;
    font-size: 14px;
  }
}

/* CALENDAR */

.calendar-icon {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calendar-icon:active {
  transform: scale(0.95);
  opacity: 0.8;
}

.calendar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 999;
  display: none;
}

.calendar-icon.mobile {
  width: 16px;
  height: 16px;
  margin-left: 8px;
}

.calendar-icon.desktop {
  width: 24px;
  height: 24px;
  position: absolute;
  left: -35px;
  top: 50%;
  transform: translateY(-50%);
}

.calendar {
  display: none;
  position: absolute; /* Changed from fixed to absolute */
  background: white;
  border: 1px solid #4682b4;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 15px;
  z-index: 1000;
  width: 280px;
  max-height: 80vh;
  overflow-y: auto;
  font-family: Arial, sans-serif;
  /* Center horizontally only */
  left: 50%;
  transform: translateX(-50%);
  /* Prevent floating */
  top: auto;
  bottom: auto;
}

.calendar-controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  align-items: center;
}

.calendar-controls select {
  padding: 5px 8px;
  border: 1px solid #4682b4;
  border-radius: 3px;
  background-color: #f5f9fc;
  color: #333;
  font-size: 14px;
}

.calendar table {
  width: 100%;
  border-collapse: collapse;
}

#calendarTable td {
    color: black;
}

#calendarTable td.other-month {
    color: lightgray;
}
  
#calendarTable td.disabled {
    color: #ccc; /* even lighter gray */
    pointer-events: none;
}

.calendar th {
  background-color: #4682b4;
  color: white;
  padding: 5px;
  font-size: 13px;
  text-align: center;
}

.calendar td {
  cursor: pointer;
  padding: 8px 5px;
  text-align: center;
  font-size: 13px;
  border: 1px solid #e0e0e0;
}

.calendar td:hover {
  background-color: #e6f2ff;
}

.calendar td.today {
  background-color: #4682b4;
  color: white;
  font-weight: bold;
  border-radius: 3px;
}

.calendar td.disabled {
  color: #ccc;
  background-color: #f9f9f9;
  pointer-events: none;
}

.calendar td.other-month {
  color: #aaa;
  opacity: 0.7;
}

.calendar td.other-month:hover {
  background-color: #f0f0f0;
  cursor: pointer;
}

@media (max-width: 768px) {
.calendar {
    width: 280px;
    left: 50%;
    transform: translateX(-50%);
  }

.calendar-icon.desktop {
    display: none !important; /* Hide desktop icon on mobile */
  }
  
.hide-for-computer {
    display: block !important;
  }
  
.hide-for-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-for-computer {
    display: none !important;
  }
  
  .hide-for-mobile {
    display: block !important;
  }
}

/* TRANSLATOR */

#azure-translate-widget {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Adjust this to position next to currency widget */
    z-index: 99999;
    font-family: Arial, sans-serif;
}

#azure-translate-button {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 12px 18px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

#azure-translate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

#azure-translate-button img {
    margin-right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

#azure-translate-button span {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

#azure-translate-options {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    width: 250px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px;
    display: none;
}

.azure-translate-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 6px;
}

.azure-translate-option:hover {
    background-color: #f8f9fa;
}

.azure-translate-option:last-child {
    border-bottom: none;
}

.azure-translate-option img {
    margin-right: 10px;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
    border-radius: 50%;
}

.azure-translate-option span {
    font-size: 16px;
    color: #2c3e50;
}

.azure-translation-status {
    position: fixed;
    bottom: 80px;
    left: 120px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 8px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 99998;
}

.azure-translation-status.active {
    display: flex;
}

.azure-status-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #0078d4;
    border-radius: 50%;
    animation: azure-spin 0.8s linear infinite;
}

@keyframes azure-spin {
    to { transform: rotate(360deg); }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    #azure-translate-widget {
        bottom: 20px;
        left: 20px;
    }
    
    #azure-translate-button {
        padding: 10px 16px;
    }
    
    #azure-translate-button img {
        width: 21px;
        height: 21px;
        margin-right: 8px;
    }
    
    #azure-translate-button span {
        font-size: 15px;
    }
    
    #azure-translate-options {
        width: calc(100vw - 40px);
        max-width: 250px;
        left: 0;
    }
    
    .azure-translation-status {
        left: 80px;
    }
    
    @media (max-width: 320px) {
        #azure-translate-options {
            width: calc(100vw - 20px);
            left: 0;
        }
    }
}

/* REVIEWS */

#ptd-reviews {
  max-width: 1200px;
  margin: 20px auto 0 !important;
  padding: 0 20px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: auto !important;
}
.ptd-section-heading {
  font-size: 1.85rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem 0;
  text-align: center;
}
.ptd-rating-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px 18px;
  margin-bottom: 1.8rem;
  text-align: center;
}
.ptd-rating-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 1.4rem;
  color: #f5a623;
  letter-spacing: 1px;
  flex-wrap: wrap;
}
.ptd-rating-stars .ptd-rating-num {
  font-weight: 700;
  font-size: 1.6rem;
  color: #1a1a1a;
  letter-spacing: 0;
}
.ptd-rating-stars .ptd-rating-count {
  font-size: 0.95rem;
  font-weight: 400;
  color: #555;
  letter-spacing: 0;
}
.ptd-rating-source {
  font-size: 0.8rem;
  color: #999;
  font-style: italic;
  margin: 0;
  padding-top: 2px;
}
.ptd-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 28px;
  margin-bottom: 0 !important;
}
.ptd-carousel-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  width: 100%;
}
.ptd-review-card {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 0;
  max-width: 100%;
  background: #f5f5f2;
  border: 1px solid #e0ddd4;
  border-radius: 12px;
  padding: 18px 20px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  transition: border-color 0.15s;
  box-sizing: border-box;
  min-height: 220px;
}
.ptd-review-card:hover { border-color: #c8c4b8; }
.ptd-review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 2px;
}
.ptd-review-stars {
  color: #f5a623;
  font-size: 1rem;
  letter-spacing: 0.5px;
}
.ptd-review-date {
  font-size: 0.75rem;
  color: #888;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.ptd-review-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #333;
  margin: 2px 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  max-height: 5.888rem;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.ptd-review-body.expanded {
  -webkit-line-clamp: unset;
  max-height: none;
}
.ptd-read-more {
  color: #1a7a7a;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.92rem;
  display: inline-block;
  margin-top: 4px;
  line-height: 1.4;
  flex-shrink: 0;
  transition: color 0.15s;
}
.ptd-read-more:hover { color: #0d5555; text-decoration: underline; }
.ptd-read-more.hidden { display: none !important; }
.ptd-review-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
  margin-top: 2px;
  flex-shrink: 0;
}
.ptd-review-author .ptd-fish { font-size: 0.85rem; display: inline-block; }
.ptd-review-author .ptd-author-country {
  font-weight: 400;
  color: #777;
  font-size: 0.85rem;
}
.ptd-review-tour {
  font-size: 0.75rem;
  color: #888;
  font-style: italic;
  margin-top: 0;
  line-height: 1.3;
  flex-shrink: 0;
}
.ptd-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #6b6b6b;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-size: 1.8rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s, opacity 0.2s;
  opacity: 1;
  padding: 0;
}
.ptd-carousel-btn:hover { background: #555; transform: translateY(-50%) scale(1.08); }
.ptd-carousel-btn:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
  transform: translateY(-50%) scale(0.95);
}
.ptd-carousel-btn--prev { left: 2px; }
.ptd-carousel-btn--next { right: 2px; }
.ptd-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 15px;
  margin-bottom: 30px;
}
.ptd-dot {
  width: 10px;
  height: 10px;
  padding: 19px;
  margin: -14px;
  background-clip: content-box;
  background-color: #aaa;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ptd-dot.active { background-color: #000; }
.ptd-dot:hover { background-color: #666; }

/* Reviews responsive */
@media (max-width: 992px) {
  .ptd-review-card { flex: 0 0 calc(50% - 15px); max-width: calc(50% - 15px); }
  .ptd-carousel-wrapper { padding: 0 20px; }
  .ptd-carousel-btn { width: 32px; height: 32px; font-size: 1.6rem; }
  .ptd-carousel-btn--prev { left: 0; }
  .ptd-carousel-btn--next { right: 0; }
}
@media (max-width: 600px) {
  .ptd-section-heading { font-size: 1.5rem; }
  .ptd-rating-stars { font-size: 1.2rem; }
  .ptd-rating-stars .ptd-rating-num { font-size: 1.4rem; }
  .ptd-review-card { flex: 0 0 100%; max-width: 100%; min-height: 180px; padding: 14px 16px 10px; }
  .ptd-carousel-wrapper { padding: 0 20px; }
  .ptd-carousel-btn { width: 30px; height: 30px; font-size: 1.4rem; }
  .ptd-carousel-btn--prev { left: -4px; }
  .ptd-carousel-btn--next { right: -4px; }
}