/* Facebook-style Design Reset and Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1c1e21;
    background-color: #f0f2f5;
    font-size: 14px;
}


/* Facebook-style Header */

.fb-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 56px;
    border-bottom: 1px solid #dadde1;
}

.fb-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
}

.fb-header-left {
    display: flex;
    align-items: center;
    min-width: 260px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    height: 40px;
    width: 40px;
    /*border-radius: 50%;*/
    object-fit: cover;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1877f2;
    text-decoration: none;
}

.fb-header-center {
    flex: 1;
    max-width: 680px;
    padding: 0 16px;
}

.search-bar {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 50px;
    background-color: #f0f2f5;
    padding: 0 16px 0 40px;
    font-size: 15px;
    outline: none;
}

.search-input::placeholder {
    color: #65676b;
}

.search-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #65676b;
    cursor: pointer;
}

.fb-header-right {
    display: flex;
    align-items: center;
    min-width: 260px;
    justify-content: flex-end;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.contact-btn:hover {
    background-color: #166fe5;
}


/* Main Container */

.fb-main-container {
    display: flex;
    max-width: 1920px;
    margin: 0 auto;
    padding-top: 72px;
    gap: 20px;
    min-height: calc(100vh - 72px);
}


/* Left Sidebar */

.fb-sidebar-left {
    width: 280px;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 16px;
    background-color: transparent;
}

.fb-nav-menu ul {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: #1c1e21;
    font-weight: 600;
    transition: background-color 0.2s;
    margin-bottom: 4px;
}

.nav-item:hover {
    background-color: #e4e6ea;
}

.nav-icon {
    width: 36px;
    height: 36px;
    background-color: #e4e6ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Main Content */

.fb-main-content {
    flex: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 16px;
}

.fb-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* Facebook-style Posts */

.fb-post {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.fb-post-header {
    display: flex;
    align-items: center;
    padding: 16px 16px 0;
    gap: 12px;
}

.fb-post-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.fb-post-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1c1e21;
    margin-bottom: 2px;
}

.fb-post-time {
    font-size: 13px;
    color: #65676b;
}

.fb-post-content {
    padding: 16px;
}

.fb-post-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1c1e21;
}

.fb-post-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 8px;
    color: #1c1e21;
}

.fb-post-content p {
    margin-bottom: 12px;
    line-height: 1.5;
    color: #1c1e21;
}

.fb-post-content ul {
    margin: 12px 0;
    padding-left: 20px;
}

.fb-post-content li {
    margin-bottom: 4px;
    color: #1c1e21;
}

.fb-post-section {
    margin: 16px 0;
    padding: 16px;
    background-color: #f7f8fa;
    border-radius: 8px;
}


/* Gallery Styles */

.fb-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin: 16px 0;
}

.fb-gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
}

.fb-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.fb-gallery-item:hover img {
    transform: scale(1.05);
}

.fb-video-section {
    margin-top: 16px;
}

.fb-video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.fb-video {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}


/* Form Styles */

.fb-reservation-form {
    background-color: #f7f8fa;
    padding: 20px;
    border-radius: 8px;
    margin: 16px 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1c1e21;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 15px;
    color: #1c1e21;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
}

.fb-submit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    justify-content: center;
}

.fb-submit-btn:hover {
    background-color: #166fe5;
}

.contact-details {
    margin-top: 16px;
    padding: 16px;
    background-color: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #1877f2;
}

.phone-number {
    font-size: 18px;
    font-weight: 600;
    color: #1877f2;
}


/* Post Actions */

.fb-post-actions {
    display: flex;
    border-top: 1px solid #dadde1;
    margin-top: 12px;
}

.fb-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: none;
    border: none;
    color: #65676b;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.fb-action-btn:hover {
    background-color: #f2f3f5;
}


/* Right Sidebar */

.fb-sidebar-right {
    width: 320px;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 16px;
}

.fb-widget {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    padding: 16px;
    margin-bottom: 16px;
}

.fb-widget h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1c1e21;
}

.quick-info p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #1c1e21;
}

.facilities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.facility-tag {
    background-color: #e7f3ff;
    color: #1877f2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.attractions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attraction-item {
    padding: 8px 12px;
    background-color: #f7f8fa;
    border-radius: 6px;
    font-size: 14px;
    color: #1c1e21;
}


/* Footer */

.fb-footer {
    background-color: #ffffff;
    border-top: 1px solid #dadde1;
    padding: 20px 0;
    margin-top: 40px;
}

.fb-footer-content {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #65676b;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #1877f2;
}


/* Responsive Design */

@media (max-width: 1200px) {
    .fb-sidebar-right {
        display: none;
    }
    .fb-main-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .fb-sidebar-left {
        display: none;
    }
    .fb-main-container {
        padding-top: 60px;
        gap: 0;
    }
    .fb-main-content {
        padding: 0 8px;
    }
    .fb-header-center {
        display: none;
    }
    .fb-header-container {
        padding: 0 8px;
    }
    .logo-text {
        display: none;
    }
    .contact-text {
        display: none;
    }
    .fb-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .fb-video-container {
        grid-template-columns: 1fr;
    }
    .fb-footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .fb-post {
        border-radius: 0;
        margin: 0 -8px;
    }
    .fb-gallery {
        grid-template-columns: 1fr;
    }
    .contact-btn {
        padding: 6px 8px;
        font-size: 13px;
    }
    .toast-message {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
    .comments-section {
        padding: 12px;
    }
    .comments-section input {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }
    .field-error {
        font-size: 12px;
    }
}


/* ===========================================
   TOAST NOTIFICATIONS & ANIMATIONS
   =========================================== */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-message {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 10000;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease;
}


/* ===========================================
   FORM VALIDATION STYLES
   =========================================== */

.fb-input-group input.error,
.fb-input-group textarea.error,
.fb-input-group select.error,
.form-input.error,
.form-select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.field-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 4px;
    display: block;
}

.form-success-message,
.form-error-message {
    margin-bottom: 16px;
}


/* ===========================================
   SEARCH FUNCTIONALITY STYLES
   =========================================== */

.search-active .search-input {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-highlighted {
    background: rgba(24, 119, 242, 0.1);
    border: 2px solid rgba(24, 119, 242, 0.3);
    transition: all 0.3s ease;
}

.no-search-results {
    text-align: center;
    color: #65676b;
}


/* ===========================================
   POST ACTIONS STYLES
   =========================================== */

.fb-post-actions button.liked,
.fb-action-btn.liked {
    color: #1877f2 !important;
    font-weight: 600;
}

.fb-post-actions button:active,
.fb-action-btn:active {
    transform: scale(0.95);
}

.comments-section {
    margin-top: 16px;
    padding: 16px;
    background-color: #f0f2f5;
    border-radius: 8px;
}


/* ===========================================
   LOADING ANIMATIONS
   =========================================== */

.gallery-loading {
    text-align: center;
    padding: 40px;
    color: #65676b;
    font-size: 16px;
    background-color: #f7f8fa;
    border-radius: 8px;
}

.fb-gallery-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===========================================
   SCROLL ANIMATIONS
   =========================================== */

.animate-in {
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight-section {
    animation: highlightPulse 2s ease;
}

@keyframes highlightPulse {
    0%,
    100% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(24, 119, 242, 0.1);
    }
}


/* ===========================================
   BUTTON IMPROVEMENTS
   =========================================== */

.contact-btn:active {
    transform: scale(0.98);
}

.nav-item.active {
    background-color: #e7f3ff;
    color: #1877f2;
}

.nav-item.active .nav-icon {
    background-color: #1877f2;
    color: white;
}


/* ===========================================
   LOADING STATE IMPROVEMENTS
   =========================================== */

body.loaded {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}


/* ===========================================
   COMMENT ANIMATIONS
   =========================================== */

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===========================================
   POST ACTIONS IMPROVEMENTS
   =========================================== */

.fb-action-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.fb-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(24, 119, 242, 0.3);
    transition: width 0.6s, height 0.6s;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.fb-action-btn:active::before {
    width: 120%;
    height: 120%;
}

.fb-action-btn.liked {
    color: #1877f2 !important;
    font-weight: 600;
}

.fb-action-btn.liked svg {
    color: #1877f2;
    transition: transform 0.2s ease;
}

.fb-action-btn span,
.fb-action-btn svg {
    position: relative;
    z-index: 1;
}

.comments-section {
    animation: slideInDown 0.3s ease;
}


/* Comment list improvements */

.comments-list>div {
    transition: background-color 0.3s ease;
}

.comments-list>div:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Facebook-style Post Stats */
.fb-post-stats {
    padding: 12px 16px 8px;
    border-bottom: 1px solid #e4e6ea;
}

.stats-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.stats-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #65676b;
    font-weight: 400;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stats-btn:hover {
    background-color: #f0f2f5;
    text-decoration: underline;
}

.stats-btn .count {
    font-weight: 600;
    color: #1c1e21;
}

/* Likes List */
.likes-list {
    margin-top: 12px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e4e6ea;
}

.likes-list h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1c1e21;
    margin-bottom: 12px;
}

.like-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #e4e6ea;
}

.like-item:last-child {
    border-bottom: none;
}

.like-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #1877f2;
}

.like-item .avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1877f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.like-item .user-info {
    flex: 1;
}

.like-item .user-name {
    font-weight: 600;
    color: #1c1e21;
    font-size: 14px;
}

.like-item .like-time {
    font-size: 12px;
    color: #65676b;
}

/* Animation for stats appearance */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fb-post-stats {
    animation: fadeIn 0.3s ease;
}