/*
Theme Name: Yogyandini Homestay
Theme URI: https://example.com/yogyandini-homestay
Author: Panditya & ChatGPT
Author URI: https://example.com
Description: Tema WordPress ringan yang meniru struktur halaman Google Sites Yogyandini Homestay (Beranda, Tentang Kami, Wisata Jogja, Wisata Kuliner, Harga, Pesan, Temukan Kami). Gunakan Customizer untuk mengganti gambar & teks.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yogyandini
Tags: custom-colors, custom-menu, one-column, responsive-layout, custom-logo, custom-header
*/

/* ====== RESET & BASE ====== */
*, *::before, *::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #111;
    background: #fff;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ====== LINK COLORS ====== */
a {
    text-decoration: none;
}
a:link {
    color: #74664d !important;
}
a:visited {
    color: #a29070 !important;
}
a:hover {
    color: #74664d !important;
    text-decoration: underline;
}
a:active {
    color: #74664d !important;
}

/* ====== GLOBAL CONTAINER ====== */
.container-global,
.site-header .wrap,
.hero .inner,
.site-content,
.site-footer .cols,
.site-footer .copy {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}
@media (max-width: 768px) {
    .container-global,
    .site-header .wrap,
    .hero .inner,
    .site-content,
    .site-footer .cols,
    .site-footer .copy {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ====== HEADER ====== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #eaeaea;
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 3px !important;
}
.brand img.logo,
.brand img.custom-logo {
    margin-right: 0 !important;
}
.brand .title {
    margin-left: 0 !important;
    font-size: 22px !important;
    font-weight: bold !important;
    color: #000000 !important;
    line-height: 1.2;
}
.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
}
.primary-nav ul {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.primary-nav a {
    padding: 8px 10px;
    border-radius: 8px;
}
.primary-nav a:hover,
.primary-nav .current-menu-item a {
    background: #f6f6f6;
}

/* ====== MOBILE MENU ====== */
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }
    .primary-nav {
        position: fixed;
        inset: 64px 0 auto 0;
        background: #fff;
        border-top: 1px solid #eaeaea;
        display: none;
    }
    .primary-nav.open {
        display: block;
    }
    .primary-nav ul {
        flex-direction: column;
        padding: 12px;
    }
}

/* ====== HERO ====== */
.hero {
    background: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.45)),
                var(--hero-url, url('../images/placeholder-hero.jpg')) center/cover no-repeat;
    color: #fff;
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.hero h1 {
    font-size: clamp(28px, 6vw, 48px);
    margin: 0 0 8px;
}
.hero p {
    font-size: clamp(16px, 3vw, 20px);
    opacity: .95;
}
.hero .cta {
    margin-top: 18px;
}

/* ====== SITE CONTENT ====== */
.site-content {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* ====== CARDS ====== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}
.card {
    border: 1px solid #eaeaea;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}
.card .card-body {
    padding: 16px;
}
.card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

/* ====== GALLERY ====== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}
.gallery img {
    border-radius: 12px;
}

/* ====== GALERI HALAMAN UTAMA ====== */
.home-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.home-gallery img {
    width: 100%;
    height: 200px; /* seragam tingginya */
    object-fit: cover; /* biar proporsional */
    border-radius: 10px;
    transition: opacity 0.3s ease-in-out;
    cursor: pointer;
}

/* Efek berkedip saat hover */
.home-gallery img:hover {
    animation: blink 0.6s infinite alternate;
}

@keyframes blink {
    from { opacity: 1; }
    to { opacity: 0.5; }
}

/* Responsive */
@media (max-width: 768px) {
    .home-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ====== LIGHTBOX JS STYLE ====== */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}




/* ====== FOOTER ====== */
.site-footer {
    background: #0b0b0b;
    color: #eee;
    padding: 28px 0;
    margin-top: 40px;
}
.site-footer a {
    color: #eee;
    text-decoration: underline;
}
.copy {
    border-top: 1px solid #222;
    margin-top: 20px;
    padding-top: 12px;
    color: #aaa;
    font-size: 14px;
}

.site-footer .cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.site-footer h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}
.site-footer p {
    margin: 0;
}
.site-footer .map-embed iframe {
    width: 100%;
    border: none;
    border-radius: 8px;
}
.footer-news {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-news li {
    margin-bottom: 8px;
}

.footer-news a {
    color: #eee;
    text-decoration: none;
}

.footer-news a:hover {
    text-decoration: underline;
}

.footer-news .post-date {
    display: block;
    font-size: 12px;
    color: #aaa;
}





/* ====== BUTTON: PESAN SEKARANG ====== */
.pesan-btn {
    background-color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.pesan-btn:hover {
    background-color: #ccc;
    transform: translateY(-2px);
}
.pesan-btn:active {
    background-color: #ccc;
    transform: translateY(0);
}



#tentang {
    background-color: #f7f4ee;
    padding: 0px 20px; /* tambahkan ruang dalam agar nyaman dibaca */
    border-radius: 8px;
}
#tentang h2 {
    margin-top: 0;
}
#tentang2 {
    background-color: #857251;
    padding: 0px 20px; /* tambahkan ruang dalam agar nyaman dibaca */
}
#tentang2 h2 {
     margin: 0px 0px 0px 0px;
     color: #fffaf1;
}

/* ====== TESTIMONI ====== */
.home-testimoni {
    margin-top: 10px;
}

.testimoni-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimoni-item {
    background: #f7f4ee;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.testimoni-item:hover {
    transform: translateY(-3px);
}

.testimoni-header {
    font-size: 16px;
    margin-bottom: 8px;
    color: #857251;
}

.testimoni-header small {
    color: #777;
}

.testimoni-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .testimoni-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .testimoni-grid {
        grid-template-columns: 1fr;
    }
}

/* ====== FASILITAS ====== */

.fasilitas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.fasilitas-item {
    background: #f7f4ee;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.fasilitas-item h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.fasilitas-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fasilitas-item ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.fasilitas-item ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #d35400;
}

.fasilitas-tambahan {
  background-color: #f7f4ee; /* Warna latar lembut */
  padding: 20px 25px;
  border-radius: 10px; /* Sudut tumpul */
  margin-top: 30px;
}

.fasilitas-tambahan h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #444;
}

.fasilitas-tambahan ul {
  list-style: none;
  padding: 0;
}

.fasilitas-tambahan ul li {
  margin-bottom: 12px;
  line-height: 1.6;
  position: relative;
  padding-left: 25px;
}

.fasilitas-tambahan ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #c0392b; /* Warna ikon checklist */
  font-size: 1.2em;
}

.home-fasilitas {
  padding: 50px 20px;
  background: #f7f4ee;
  text-align: center;
}

.home-fasilitas h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #333;
}

.fasilitas-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.fasilitas-home-item {
  background: white;
  padding: 25px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fasilitas-home-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.fasilitas-home-item .icon {
  font-size: 3em;
  margin-bottom: 15px;
}

.fasilitas-home-item h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #d35400;
}

.fasilitas-home-item p {
  font-size: 0.95em;
  color: #555;
  line-height: 1.5;
}
/* ====== Related News ====== */
.related-news {
    margin-top: 50px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}
.related-news h3 {
    margin-bottom: 20px;
    color: #2980b9;
}
.related-news ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.related-news ul li {
    margin-bottom: 12px;
}
.related-news ul li a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}
.related-news ul li a:hover {
    color: #2980b9;
}
.related-news .date {
    display: block;
    font-size: 12px;
    color: #888;
}
/* ====== whatsapp  ====== */

/* Tombol melayang pojok kanan bawah */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 50px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.2s ease-in-out, background 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.05);
  background-color: #20ba5a;
}
.whatsapp-float img {
  width: 24px;
  height: 24px;
}
